[Hugs] #34: Incorrect prefix in installed files
Hugs <[email protected]> Thu, 03 Aug 2006 18:04:39 -0000
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <061.30577a04e99411b0a9ab46c7cdbbc458@localhost> |
#34: Incorrect prefix in installed files -----------------------------+---------------------------------------------- Reporter: [email protected] | 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 <[email protected]> -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/34> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell _______________________________________________ Hugs-Bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/hugs-bugs