[Bug 1132275] ghc-rpm-macros should run ghc-deps.sh using a fileattrs file

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 10 10:05:30 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1132275



--- Comment #9 from Panu Matilainen <pmatilai at redhat.com> ---
The scripts should only ever be executed if there are files that match the
rules specified by the fileattr, so it sounds like either the rule is too
broad/buggy and/or rpm is buggy. And indeed, on freshly upgraded-to-F21, every
single file appears to be classified as ghc (try rpmbuild with --rpmfcdebug to
see the classification spew at end of %install).

Okay, the matching rule is indeed the problem:
%__ghc_path     ^%{ghclibdir}/.*/libHS.*\\.(so|a)$ || ^%{_bindir}/.*

I assume '||' is intended as "or" operator there, but regexes doesn't support
such a syntax. You need to cram it all into a single regex, something like (but
untested so dont apply blindly):

%__ghc_path     ^(%{ghclibdir}/.*/libHS.*\\.(so|a)|%{_bindir}/.*)$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=4dnsz1Cpv4&a=cc_unsubscribe


More information about the haskell-devel mailing list