[Hugs] #34: Incorrect prefix in installed files

Hugs trac at galois.com
Thu Aug 3 14:04:39 EDT 2006


#34: Incorrect prefix in installed files
-----------------------------+----------------------------------------------
 Reporter:  jmmv at 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 at NetBSD.org>

-- 
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/34>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell


More information about the Hugs-Bugs mailing list