Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Cc: phajdan.jr@g.o
Subject: Re: [gentoo-dev] haskell-cabal.eclass suggestions
Date: Sat, 31 Mar 2012 09:18:54
Message-Id: 20120331122006.0809cf3e@sf.home
In Reply to: [gentoo-dev] haskell-cabal.eclass suggestions by "Paweł Hajdan
1 On Fri, 30 Mar 2012 13:59:10 +0200
2 ""Paweł Hajdan, Jr."" <phajdan.jr@g.o> wrote:
3
4 > > echo 'import Distribution.Simple; main = defaultMainWithHooks defaultUserHooks' \
5 > > > $setupdir/Setup.hs
6 > > }
7 >
8 > I think there should be || die after echo, to catch out-of-disk-space
9 > problems.
10
11 Ok :]
12
13 > > # GHC 6.4 has a bug in get/setPermission and Cabal 1.1.1 has
14 > > # no workaround.
15 > > # set the +x permission on executables
16 > > if [[ -d "${ED}/usr/bin" ]] ; then
17 > > chmod +x "${ED}/usr/bin/"*
18 > > fi
19 > > # TODO: do we still need this?
20 > > }
21 >
22 > I think there should be || die after chmod.
23
24 I'll remove the whole block.
25
26 > > if [[ -z "${CABAL_HAS_BINARIES}" ]] && [[ -z "${CABAL_HAS_LIBRARIES}" ]]; then
27 > > eerror "QA: Neither bin nor lib are in CABAL_FEATURES."
28 >
29 > Shouldn't this be eqawarn?
30 >
31 > > fi
32 > > if [[ -n "${CABAL_UNKNOWN}" ]]; then
33 > > ewarn "Unknown entry in CABAL_FEATURES: ${CABAL_UNKNOWN}"
34 >
35 > Shouldn't this be eqawarn?
36
37 'eqawarn' sounds fine here. I'll push the changes to overlay first and then to the gx86.
38
39 Thanks for sharing!
40
41 --
42
43 Sergei

Attachments

File name MIME type
signature.asc application/pgp-signature