[Hugs] #34: Incorrect prefix in installed files
#34: Incorrect prefix in installed files -----------------------------+---------------------------------------------- Reporter: jmmv@NetBSD.org | Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: hugs | Version: 200605 Keywords: | -----------------------------+---------------------------------------------- Both the complete distribution (hugs98-plus) and the reduced one (hugs98) come with some packages that provide standard APIs. For example, the two include, at least, the Cabal, base and haskell98 packages. These packages are built and installed by the "global" build procedure through the bootstrapping interpreter, using the not-yet-installed Cabal. However, the installation prefix is not propagated to the built packages resulting in incorrect paths in the installed files. In my case, I'm using the following to configure Hugs (really, this is the command the NetBSD package uses): {{{ ./configure --prefix=/usr/pkg }}} After installation, the Paths_base.hs file of the installed packages looks like: {{{ bindir = "/usr/local/bin" libdir = "/usr/local/lib/hugs/packages/base" datadir = "/usr/local/share/base-1.0" libexecdir = "/usr/local/libexec" }}} And similarly for all other Paths_base.hs files in other packages. The above inconsistencies in the installed paths files lead to runtime problems later. For example, when running the installed Cabal with the installed Hugs (not the bootstrapping one) to configure other packages, the utility is unable to find some of its files. The attached patch fixes this issue by propagating prefix's value to the programs executed in the middle of the build procedure. I'm afraid this problem might also affect other variables that should be propagated but which are not currently. Submitted by: Julio M. Merino Vidal <jmmv@NetBSD.org> -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/34> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell
#34: Incorrect prefix in installed files ------------------------------+--------------------------------------------- Reporter: jmmv@NetBSD.org | Owner: nobody Type: defect | Status: closed Priority: major | Milestone: Component: build system | Version: 200605 Resolution: fixed | Keywords: ------------------------------+--------------------------------------------- Changes (by ross): * resolution: => fixed * component: hugs => build system * status: new => closed Comment: Thanks for the analysis -- I've applied the patch. However I think it had a visible effect only for hsc2hs-hugs, because the other packages don't use the Paths modules. And hsc2hs-hugs was also broken because it had the wrong data directory (also fixed now). -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/34> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell
participants (1)
-
Hugs