Mercury Bugs - mercury
View Issue Details
0000259mercuryFeature Requestpublic2012-07-08 03:582013-06-04 03:41
Reporterony 
Assigned To 
PriorityhighSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformAllOSAllOS VersionAll
Product Version 
Target VersionFixed in Version 
Summary0000259: Impossible to override /lib dir with /lib64 etc
DescriptionTo support multilib install we need to have possibility to use /usr/lib64 instead of /usr/lib.
Appropriate patch based on rotd-2012-07-01 attached
TagsNo tags attached.
Attached Filespatch 0001-Allow-usr-lib64-override-required-for-multilib.patch (2,422) 2012-07-08 03:58
https://bugs.mercurylang.org/file_download.php?file_id=155&type=bug
patch 0001-Add-man-info-and-lisp-dirs-configuring.patch (1,869) 2012-07-08 06:39
https://bugs.mercurylang.org/file_download.php?file_id=156&type=bug
patch 0002-Add-man-info-and-lisp-dirs-configuring.patch (1,847) 2012-07-08 08:54
https://bugs.mercurylang.org/file_download.php?file_id=157&type=bug
patch mercury-13.05-bug259-dirs-overriding.patch (2,680) 2013-05-19 03:39
https://bugs.mercurylang.org/file_download.php?file_id=174&type=bug

Notes
(0000473)
ony   
2012-07-08 08:57   
sorry for 0001-Add-man-info-and-lisp-dirs-configuring.patch
second should be good (after applying first one).

I can create another issue for it (actually I'd prefer to edit description for this to make it sounds like "directory overriding for libdir, mandir, infodir etc").
(0000474)
pbone   
2012-07-08 10:59   
Thanks. Someone will look at this as time permits (I promise!). Don't worry about adding a new issue, they've enough in common that a general issue is fine.
(0000518)
ony   
2013-05-19 03:44   
both patches now in single mercury-13.05-bug259-dirs-overriding.patch

please consider using /usr/share/doc/mercury-13.05 etc for documentation rather than /usr/lib/mercury/doc. currently patch changes those folder according to this suggestion
(0000533)
keri   
2013-06-04 03:41   
This bug is a little more complicated than first meets the eye. In addition to the changes in mercury-13.05-bug259-dirs-overriding.patch there are a few other places in which $(INSTALL_PREFIX)/lib/mercury is referenced:

* library/Mmakefile:

   260 install_mer_rt: $(RT_LIB_NAME).jar
   261 mkdir -p $(INSTALL_PREFIX)/lib/mercury/lib/$(GRADE)
   262 cp $(RT_LIB_NAME).jar $(INSTALL_PREFIX)/lib/mercury/lib/$(GRADE)

* the mercury compiler itself

compiler/file_util.m:

   262 InstallNamePath = InstallPrefix / "lib" / "mercury" / "lib" / GradeDir

compiler/make.program_target.m:

  1374 LibDir = Prefix/"lib"/"mercury",
  1427 IncDir = Prefix / "lib" / "mercury" / "inc",
  1576 GradeLibDir = Prefix/"lib"/"mercury"/"lib"/GradeDir,
  1581 GradeLibDir = Prefix/"lib"/"mercury"/"lib"/GradeDir,
  1586 GradeLibDir = Prefix/"lib"/"mercury"/"lib"/GradeDir,
  1593 GradeLibDir = Prefix/"lib"/"mercury"/"lib"/GradeDir,
  1624 GradeModulesDir = Prefix / "lib" / "mercury" / "modules" / GradeDir,
  1641 LibDir = Prefix/"lib"/"mercury",
  1788 LibDir = Prefix/"lib"/"mercury",
  1819 LibDir = Prefix/"lib"/"mercury",

* extras/posix/Mmakefile

    37 cp $(ADDITIONAL_HDRS) $(INSTALL_PREFIX)/lib/mercury/inc

Issue History
2012-07-08 03:58onyNew Issue
2012-07-08 03:58onyFile Added: 0001-Allow-usr-lib64-override-required-for-multilib.patch
2012-07-08 06:39onyFile Added: 0001-Add-man-info-and-lisp-dirs-configuring.patch
2012-07-08 08:54onyFile Added: 0002-Add-man-info-and-lisp-dirs-configuring.patch
2012-07-08 08:57onyNote Added: 0000473
2012-07-08 10:59pboneNote Added: 0000474
2013-05-19 03:39onyFile Added: mercury-13.05-bug259-dirs-overriding.patch
2013-05-19 03:44onyNote Added: 0000518
2013-06-04 03:41keriNote Added: 0000533