cvs commit: fptools/libraries/Cabal/Distribution/Simple Build.hs
ka2_mail at yahoo.com
Sun Oct 30 12:05:11 EST 2005
krasimir 2005/10/30 09:05:11 PST
libraries/Cabal/Distribution/Simple Build.hs Configure.hs
The previous implementation for Paths_<pkgid>.hs building was broken on Windows.
The prefixRel function was expecting that all bindir/libdir/datadir/... paths
are $prefix relative but the corresponding functions (mkBinDir/mkLibDir/...)
was returning absolute paths with expanded $path variable. This commit fixes
the bug and also:
* In LocalBuildInfo are added mkLibDirRel/mkBinDirRel/... functions. They
return the corresponding but without the $prefix part. When the path isn't
prefix relative then they return Nothing
* The restriction that all paths on Windows are $prefix relative is removed.
* The code in Paths_<pkgid>.hs can contain both absolute and prefix relative
paths. When the package is configured only with $prefix relative paths then
the generated executable will be prefix independent and can be moved from one
directory to another.
Revision Changes Path
1.72 +41 -49 fptools/libraries/Cabal/Distribution/Simple/Build.hs
1.57 +0 -15 fptools/libraries/Cabal/Distribution/Simple/Configure.hs
1.18 +42 -41 fptools/libraries/Cabal/Distribution/Simple/LocalBuildInfo.hs
More information about the Cvs-libraries