Attached Files |
-
0001-Allow-usr-lib64-override-required-for-multilib.patch (2,422 bytes) 2012-07-08 03:58
From fe004251b15889c2ab2c6675fc179529efaaebe0 Mon Sep 17 00:00:00 2001
From: Nikolay Orlyuk <virkony@gmail.com>
Date: Sat, 7 Jul 2012 20:53:25 +0300
Subject: [PATCH] Allow /usr/lib64 override (required for multilib)
Many linux distributives uses /usr/lib64 for amd64 libraries and
/usr/lib32 for x86. To support those this change allows to override
/usr/lib with standart libdir var in autoconf.
---
scripts/Mmake.vars.in | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/scripts/Mmake.vars.in b/scripts/Mmake.vars.in
index f808d21..e5d782a 100644
--- a/scripts/Mmake.vars.in
+++ b/scripts/Mmake.vars.in
@@ -691,26 +691,30 @@ else
DESTDIR_AND_SLASH=$(DESTDIR)/
endif
-INSTALL_PREFIX = $(DESTDIR_AND_SLASH)@prefix@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+libdir = @libdir@
+
+INSTALL_PREFIX = $(DESTDIR_AND_SLASH)$(prefix)
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
-INSTALL_LIBDIR = $(INSTALL_PREFIX)/lib/mercury
+INSTALL_LIBDIR = $(DESTDIR_AND_SLASH)$(libdir)/mercury
INSTALL_INFO_DIR = $(INSTALL_PREFIX)/info
-INSTALL_DVI_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_TEXT_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_PS_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_PDF_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
+INSTALL_DVI_DIR = $(INSTALL_LIBDIR)/doc
+INSTALL_TEXT_DIR = $(INSTALL_LIBDIR)/doc
+INSTALL_PS_DIR = $(INSTALL_LIBDIR)/doc
+INSTALL_PDF_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
-INSTALL_HTML_DIR = $(INSTALL_PREFIX)/lib/mercury/html
-INSTALL_MDB_DOC_DIR = $(INSTALL_PREFIX)/lib/mercury/mdb
-INSTALL_ELISP_DIR = $(INSTALL_PREFIX)/lib/mercury/elisp
+INSTALL_HTML_DIR = $(INSTALL_LIBDIR)/html
+INSTALL_MDB_DOC_DIR = $(INSTALL_LIBDIR)/mdb
+INSTALL_ELISP_DIR = $(INSTALL_LIBDIR)/elisp
INSTALL_CGI_DIR = $(DESTDIR_AND_SLASH)@CGIDIR@
-FINAL_INSTALL_PREFIX = @prefix@
+FINAL_INSTALL_PREFIX = $(prefix)
FINAL_INSTALL_BINDIR = $(FINAL_INSTALL_PREFIX)/bin
-FINAL_INSTALL_LIBDIR = $(FINAL_INSTALL_PREFIX)/lib/mercury
+FINAL_INSTALL_LIBDIR = $(libdir)/mercury
FINAL_INSTALL_INFO_DIR = $(FINAL_INSTALL_PREFIX)/info
FINAL_INSTALL_MAN_DIR = $(FINAL_INSTALL_PREFIX)/man
-FINAL_INSTALL_ELISP_DIR = $(FINAL_INSTALL_PREFIX)/lib/mercury/elisp
+FINAL_INSTALL_ELISP_DIR = $(FINAL_INSTALL_LIBDIR)/elisp
FINAL_INSTALL_CGI_DIR = @CGIDIR@
# You should not need to override anything below here
--
1.7.10.4
-
0001-Add-man-info-and-lisp-dirs-configuring.patch (1,869 bytes) 2012-07-08 06:39
From bd9a3b7f187d945ddfc8d6a0fd43a8a48d078630 Mon Sep 17 00:00:00 2001
From: Nikolay Orlyuk <virkony@gmail.com>
Date: Sat, 7 Jul 2012 23:36:07 +0300
Subject: [PATCH] Add man, info and lisp dirs configuring
---
scripts/Mmake.vars.in | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/scripts/Mmake.vars.in b/scripts/Mmake.vars.in
index e5d782a..b54d29f 100644
--- a/scripts/Mmake.vars.in
+++ b/scripts/Mmake.vars.in
@@ -691,9 +691,16 @@ else
DESTDIR_AND_SLASH=$(DESTDIR)/
endif
+# autoconf provided vars
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
+datarootdir = @datarootdir@
+mandir = @mandir@
+infodir = @infodir@
+lispdir = @lispdir@
+
+# actual vars used for installation
INSTALL_PREFIX = $(DESTDIR_AND_SLASH)$(prefix)
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
@@ -703,18 +710,18 @@ INSTALL_DVI_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_TEXT_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_PS_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_PDF_DIR = $(INSTALL_LIBDIR)/doc
-INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
+INSTALL_MAN_DIR = $(DESTDIR_AND_SLASH)$(mandir)
INSTALL_HTML_DIR = $(INSTALL_LIBDIR)/html
INSTALL_MDB_DOC_DIR = $(INSTALL_LIBDIR)/mdb
-INSTALL_ELISP_DIR = $(INSTALL_LIBDIR)/elisp
+INSTALL_ELISP_DIR = $(DESTDIR_AND_SLASH)$(lispdir)
INSTALL_CGI_DIR = $(DESTDIR_AND_SLASH)@CGIDIR@
FINAL_INSTALL_PREFIX = $(prefix)
FINAL_INSTALL_BINDIR = $(FINAL_INSTALL_PREFIX)/bin
FINAL_INSTALL_LIBDIR = $(libdir)/mercury
-FINAL_INSTALL_INFO_DIR = $(FINAL_INSTALL_PREFIX)/info
-FINAL_INSTALL_MAN_DIR = $(FINAL_INSTALL_PREFIX)/man
-FINAL_INSTALL_ELISP_DIR = $(FINAL_INSTALL_LIBDIR)/elisp
+FINAL_INSTALL_INFO_DIR = $(infodir)/info
+FINAL_INSTALL_MAN_DIR = $(mandir)
+FINAL_INSTALL_ELISP_DIR = $(lsipdir)
FINAL_INSTALL_CGI_DIR = @CGIDIR@
# You should not need to override anything below here
--
1.7.10.4
-
0002-Add-man-info-and-lisp-dirs-configuring.patch (1,847 bytes) 2012-07-08 08:54
From ecf30d037caf1dec0a4b46841f4ac633d2971c5d Mon Sep 17 00:00:00 2001
From: Nikolay Orlyuk <virkony@gmail.com>
Date: Sat, 7 Jul 2012 23:36:07 +0300
Subject: [PATCH 2/2] Add man, info and lisp dirs configuring
---
scripts/Mmake.vars.in | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/scripts/Mmake.vars.in b/scripts/Mmake.vars.in
index e5d782a..c411bbc 100644
--- a/scripts/Mmake.vars.in
+++ b/scripts/Mmake.vars.in
@@ -691,19 +691,25 @@ else
DESTDIR_AND_SLASH=$(DESTDIR)/
endif
+# autoconf provided vars
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
+datarootdir = @datarootdir@
+mandir = @mandir@
+infodir = @infodir@
+
+# actual vars used for installation
INSTALL_PREFIX = $(DESTDIR_AND_SLASH)$(prefix)
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
INSTALL_LIBDIR = $(DESTDIR_AND_SLASH)$(libdir)/mercury
-INSTALL_INFO_DIR = $(INSTALL_PREFIX)/info
+INSTALL_INFO_DIR = $(DESTDIR_AND_SLASH)$(infodir)
INSTALL_DVI_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_TEXT_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_PS_DIR = $(INSTALL_LIBDIR)/doc
INSTALL_PDF_DIR = $(INSTALL_LIBDIR)/doc
-INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
+INSTALL_MAN_DIR = $(DESTDIR_AND_SLASH)$(mandir)
INSTALL_HTML_DIR = $(INSTALL_LIBDIR)/html
INSTALL_MDB_DOC_DIR = $(INSTALL_LIBDIR)/mdb
INSTALL_ELISP_DIR = $(INSTALL_LIBDIR)/elisp
@@ -712,8 +718,8 @@ INSTALL_CGI_DIR = $(DESTDIR_AND_SLASH)@CGIDIR@
FINAL_INSTALL_PREFIX = $(prefix)
FINAL_INSTALL_BINDIR = $(FINAL_INSTALL_PREFIX)/bin
FINAL_INSTALL_LIBDIR = $(libdir)/mercury
-FINAL_INSTALL_INFO_DIR = $(FINAL_INSTALL_PREFIX)/info
-FINAL_INSTALL_MAN_DIR = $(FINAL_INSTALL_PREFIX)/man
+FINAL_INSTALL_INFO_DIR = $(infodir)
+FINAL_INSTALL_MAN_DIR = $(mandir)
FINAL_INSTALL_ELISP_DIR = $(FINAL_INSTALL_LIBDIR)/elisp
FINAL_INSTALL_CGI_DIR = @CGIDIR@
--
1.7.10.4
-
mercury-13.05-bug259-dirs-overriding.patch (2,680 bytes) 2013-05-19 03:39
Source: Nikolay Orlyuk <virkony@gmail.com>
Upstream: http://bugs.mercury.csse.unimelb.edu.au/view.php?id=259
Reason: Current Mercury sources doesn't handle libdir override well as well as
man, info and lisp dirs. But this is crusical for multilib env.
--- mercury-srcdist-13.05/configure.ac.orig 2013-05-14 07:10:16.000000000 +0300
+++ mercury-srcdist-13.05/configure.ac 2013-05-18 12:48:16.489028416 +0300
@@ -1103,6 +1103,9 @@
AC_SUBST(FIX_PATH_FOR_CC)
AC_SUBST(CYGPATH)
+lispdir='${datarootdir}/emacs/site-lisp'
+AC_SUBST(lispdir)
+
#-----------------------------------------------------------------------------#
# Check for `-lm': some systems, e.g. MacOS X (Darwin), don't have it.
# The result of this check may be overridden below.
--- mercury-srcdist-13.05/scripts/Mmake.vars.in.orig 2013-05-18 13:02:09.669064476 +0300
+++ mercury-srcdist-13.05/scripts/Mmake.vars.in 2013-05-18 13:08:41.195748087 +0300
@@ -684,24 +684,24 @@
INSTALL_PREFIX = $(DESTDIR_AND_SLASH)@prefix@
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
-INSTALL_LIBDIR = $(INSTALL_PREFIX)/lib/mercury
-INSTALL_INFO_DIR = $(INSTALL_PREFIX)/info
-INSTALL_DVI_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_TEXT_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_PS_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_PDF_DIR = $(INSTALL_PREFIX)/lib/mercury/doc
-INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
-INSTALL_HTML_DIR = $(INSTALL_PREFIX)/lib/mercury/html
-INSTALL_MDB_DOC_DIR = $(INSTALL_PREFIX)/lib/mercury/mdb
-INSTALL_ELISP_DIR = $(INSTALL_PREFIX)/lib/mercury/elisp
+INSTALL_LIBDIR = $(DESTDIR_AND_SLASH)@libdir@/mercury
+INSTALL_INFO_DIR = $(DESTDIR_AND_SLASH)@infodir@
+INSTALL_DVI_DIR = $(DESTDIR_AND_SLASH)@docdir@
+INSTALL_TEXT_DIR = $(DESTDIR_AND_SLASH)@docdir@
+INSTALL_PS_DIR = $(DESTDIR_AND_SLASH)@docdir@
+INSTALL_PDF_DIR = $(DESTDIR_AND_SLASH)@docdir@
+INSTALL_MAN_DIR = $(DESTDIR_AND_SLASH)@mandir@
+INSTALL_HTML_DIR = $(DESTDIR_AND_SLASH)@docdir@/html
+INSTALL_MDB_DOC_DIR = $(DESTDIR_AND_SLASH)@docdir@/mdb
+INSTALL_ELISP_DIR = $(INSTALL_PREFIX)@lispdir@
INSTALL_CGI_DIR = $(DESTDIR_AND_SLASH)@CGIDIR@
FINAL_INSTALL_PREFIX = @prefix@
FINAL_INSTALL_BINDIR = $(FINAL_INSTALL_PREFIX)/bin
-FINAL_INSTALL_LIBDIR = $(FINAL_INSTALL_PREFIX)/lib/mercury
-FINAL_INSTALL_INFO_DIR = $(FINAL_INSTALL_PREFIX)/info
-FINAL_INSTALL_MAN_DIR = $(FINAL_INSTALL_PREFIX)/man
-FINAL_INSTALL_ELISP_DIR = $(FINAL_INSTALL_PREFIX)/lib/mercury/elisp
+FINAL_INSTALL_LIBDIR = @libdir@/mercury
+FINAL_INSTALL_INFO_DIR = @infodir@
+FINAL_INSTALL_MAN_DIR = @mandir@
+FINAL_INSTALL_ELISP_DIR = @lispdir@
FINAL_INSTALL_CGI_DIR = @CGIDIR@
# You should not need to override anything below here
|
---|