On Tuesday 31 May 2011, Daniel-Constantin Mierla wrote:
On 5/31/11 9:55 AM, Alex Hermann wrote:
I still had the issue that the install process
was installing the libs to
/usr/lib64 instead of /usr/lib. The rules file was only removing dups
from /usr/lib. The fix for me was to export the LIBDIR variable in the
rules file to have the libs installed in the correct directory:
/usr/lib.
that was solved some time ago.
Do you still get the issue with 3.1.4? I checked kamailio mysql deb
packages and they don't have anymore the libs.
The build server uses several chroot environments, so the host system
architecture is in some cases different that target architecture, so for
a while, even the 'make deb' was fixed in git repository, some of
packages were still broke since the build server uses completely
different building script. That was fixed also and all packages should
be in good shape.
Well, I just downloaded a 3.1.4 amd64 .deb from
deb.kamailio.org and that
still has the libraries in the wrong location: /usr/lib64 instead of /usr/lib.
I can't reproduce creating the same packages. If i build them with the rules
file from the git repo, libs go to /usr/lib64, but dups aren't cleared
(because LIBDIR=/usr/lib in the rules file and LIBDIR=/usr/lib64 in the
Makefile). If I use the patch below, LIBDIR is the same (and correct) in both
the rules file and the Makefile.
The Makefile does not automatically inherit variables set in the rules file.
They need to be explicitly exported as in the patch below or be added to the
make command line:
$(MAKE) LIBDIR=$(LIBDIR) ....
--
Greetings,
Alex Hermann
commit f5adae2236c2c4bf037bf55bcd11100b83622c34
Author: Alex Hermann <alex(a)speakup.nl>
Date: Mon May 23 16:55:47 2011 +0200
pkg: Export the LIBDIR variable from the rules file, so libraries are installed to the
correct directory.
diff --git a/pkg/kamailio/deb/debian/rules b/pkg/kamailio/deb/debian/rules
index 30feea7..1c7423f 100755
--- a/pkg/kamailio/deb/debian/rules
+++ b/pkg/kamailio/deb/debian/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
ldap xml perl utils purple memcached tls \
snmpstats carrierroute xmpp cpl lua python geoip
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
# directories with possible duplicate libraries (that should be deleted
# from current module* packages)
diff --git a/pkg/kamailio/deb/lenny/rules b/pkg/kamailio/deb/lenny/rules
index 38066c0..730d3c9 100755
--- a/pkg/kamailio/deb/lenny/rules
+++ b/pkg/kamailio/deb/lenny/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
ldap xml perl utils purple memcached tls \
snmpstats carrierroute xmpp cpl lua python
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
# directories with possible duplicate libraries (that should be deleted
# from current module* packages)
diff --git a/pkg/kamailio/deb/lucid/rules b/pkg/kamailio/deb/lucid/rules
index 30feea7..1c7423f 100755
--- a/pkg/kamailio/deb/lucid/rules
+++ b/pkg/kamailio/deb/lucid/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
ldap xml perl utils purple memcached tls \
snmpstats carrierroute xmpp cpl lua python geoip
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
# directories with possible duplicate libraries (that should be deleted
# from current module* packages)
diff --git a/pkg/kamailio/deb/squeeze/rules b/pkg/kamailio/deb/squeeze/rules
index 0f2e2a5..d80b129 100755
--- a/pkg/kamailio/deb/squeeze/rules
+++ b/pkg/kamailio/deb/squeeze/rules
@@ -44,8 +44,8 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
ldap xml perl utils geoip memcached tls \
snmpstats carrierroute xmpp cpl lua python
-# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
-LIBDIR ?= lib
+# name of libdir in the path for libraries
+export LIBDIR ?= lib
# directories with possible duplicate libraries (that should be deleted
# from current module* packages)