Hi,
I've build a new ghc-cassava package against F25 and was wondering if either cabal-rpm generated a wrong spec file or ghc-rpm-macros' ghc_pkgdocdir might point to the wrong path.
The error I'm running into is:
rm: cannot remove '/builddir/build/BUILDROOT/ghc-cassava-0.4.5.1-1.fc25.x86_64/usr/share/doc/ghc-cassava/LICENSE': No such file or directory https://copr-be.cloud.fedoraproject.org/results/romanofski/gtfsschedule/fedo...
And in the spec file the LICENSE is declared as:
[...] %install %ghc_lib_install
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
%check %cabal_test
%post devel %ghc_pkg_recache
%postun devel %ghc_pkg_recache
%files -f %{name}.files %license LICENSE [...] https://paste.fedoraproject.org/492174/
Should ghc_pkgdocdir point to /usr/share/licenses ?
Kind Regards,
Hi, Róman,
On Tue, Nov 29, 2016 at 9:49 AM, Róman Joost rjoost@redhat.com wrote:
I've build a new ghc-cassava package against F25 and was wondering if either cabal-rpm generated a wrong spec file
Essentially yes: thanks for the report. Sorry about that, I just released cabal-rpm-0.10.1 to Hackage which should fix that. I should have done that before F25 was released....
rm: cannot remove '/builddir/build/BUILDROOT/ghc-cassava-0.4.5.1-1.fc25.x86_64/usr/share/doc/ghc-cassava/LICENSE':
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
This is now redundant for F24+, so either remove the line by hand or regenerate with newer cabal-rpm.
I will push Fedora builds to koji shortly.
Jens
haskell@lists.fedoraproject.org