rsbac-admin on amd64
Bernhard Seibold <[email protected]>
| Newsgroups | gmane.linux.rsbac |
|---|---|
| Message-ID | <[email protected]> |
Hi! I tried to build a Debian package of rsbac-admin on amd64. It failed, because some libs were installed into /usr/lib64 while the debian/rules script expected them to be in /usr/lib. The attached patch moves the libnss libraries to /usr/lib64 if on amd64, and fixes the debian/rules file by overriding the library path to /usr/lib. _______________________________________________ rsbac mailing list [email protected] http://www.rsbac.org/mailman/listinfo/rsbac
rsbac-admin-1.4.0-rc3_amd64_install.patch
(text/x-patch, 1.1 KB)
diff -Nru a/debian/rules b/debian/rules --- a/debian/rules 2008-11-10 13:45:59.000000000 +0100 +++ b/debian/rules 2008-11-14 12:55:57.000000000 +0100 @@ -30,7 +30,7 @@ build-arch: build-arch-stamp build-arch-stamp: - $(MAKE) PREFIX=/usr DIR_PAM=/lib/security build + $(MAKE) PREFIX=/usr LIBDIR=/usr/lib DIR_PAM=/lib/security build touch build-arch-stamp build-indep: build-indep-stamp @@ -69,7 +69,7 @@ dh_clean -k -s dh_installdirs -s - $(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp DIR_PAM=/lib/security + $(MAKE) install PREFIX=/usr LIBDIR=/usr/lib DESTDIR=$(CURDIR)/debian/tmp DIR_PAM=/lib/security # Installing rsbac.conf mkdir -p $(CURDIR)/debian/tmp/etc diff -Nru a/main/nss/Makefile b/main/nss/Makefile --- a/main/nss/Makefile 2008-11-10 13:46:03.000000000 +0100 +++ b/main/nss/Makefile 2008-11-14 12:42:08.000000000 +0100 @@ -17,11 +17,16 @@ ifeq ($(ECHO),) ECHO := echo endif +HOST := $(shell uname -m) DESTDIR := PREFIX := /usr/local ifeq ($(DIR_NSS),) +ifeq ($(HOST), x86_64) +LIBDIR := $(PREFIX)/lib64 +else LIBDIR := $(PREFIX)/lib +endif else LIBDIR := $(DIR_NSS) endif
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkkdaloACgkQYHTgXE+fjpmJ7ACdG/IHcIZJSCiTM87Y8NcayE91 mG4AnAwx/DNgQvn0tujp7wMSDWyWLcgA =LqDb -----END PGP SIGNATURE-----