guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add ghc-unix-time.


From: Eric Bavier
Subject: Re: [PATCH] gnu: Add ghc-unix-time.
Date: Thu, 22 Oct 2015 11:57:49 -0500
User-agent: Roundcube Webmail/1.0.6

On 2015-10-22 10:43, Paul van der Walt wrote:
On 2015-10-22 at 10:47, quoth address@hidden:
+       #:phases
+       (alist-cons-before
+        'configure 'fix-/bin/sh
+        (lambda _
+          ;; Use `sh', not `/bin/sh'.
+          (substitute* (find-files "." "Makefile|configure")
+            (("/bin/sh")
+             "sh")))
+        %standard-phases)))

See the ghc-x11 package for a, IMHO, more elegant solution.

Ah!  Indeed.

This appears to be a more general issue however. Any package that declares in its *.cabal file "build-type: Configure" is going to need CONFIG_SHELL and/or
SHELL in the environment.  See additionally the proposed ghc-sdl,
ghc-sdl-image, ghc-sdl-mixer, and ghc-old-time patches.

Perhaps we could patch haskell-build-system to export appropriate CONFIG_SHELL and SHELL variables if it sees a "configure" file in the top-level source
directory.  WDYT?  Would you like to send a patch?

Right, i see what you mean.  I agree that it'd probably be the right
thing to do.  However, to expedite the merge of wip-haskell-… i propose
that i take the solution of ghc-x11 and apply it to the relevant
packages, and then look at fixing the haskell-build-system.  At that
point we can simply remove the phases introduced to work around this
deficiency.

OK.

Do you think that's acceptable, or is it imperative* that we first solve
the problem in the build system?

An incremental approach seems reasonable to me in this case, since there are not so many affected packages at this point.

--
`~Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]