summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-24 02:47:31 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-24 02:47:31 +0000
commit81c40be36faa0ed95dd14799ecb49f36f142c122 (patch)
treee7e9ac8938b1cdd34b3fe33ddb09e153b87590d5 /sys-libs/libcap
parentQA - fix use invocation (diff)
downloadhistorical-81c40be36faa0ed95dd14799ecb49f36f142c122.tar.gz
historical-81c40be36faa0ed95dd14799ecb49f36f142c122.tar.bz2
historical-81c40be36faa0ed95dd14799ecb49f36f142c122.zip
fix PIC prob #52813
Diffstat (limited to 'sys-libs/libcap')
-rw-r--r--sys-libs/libcap/ChangeLog7
-rw-r--r--sys-libs/libcap/Manifest20
-rw-r--r--sys-libs/libcap/files/1.10-python.patch9
-rw-r--r--sys-libs/libcap/libcap-1.10-r4.ebuild7
4 files changed, 28 insertions, 15 deletions
diff --git a/sys-libs/libcap/ChangeLog b/sys-libs/libcap/ChangeLog
index df1088d986bc..a13eeff3e219 100644
--- a/sys-libs/libcap/ChangeLog
+++ b/sys-libs/libcap/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/libcap
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.24 2004/05/03 22:19:22 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.25 2004/06/24 02:47:31 vapier Exp $
+
+ 23 Jun 2004; Mike Frysinger <vapier@gentoo.org> files/1.10-python.patch,
+ libcap-1.10-r4.ebuild:
+ Update the swig/python module to build with the shared objects instead of the
+ static objects so we get a PIC aware module #52813 by Joe Jezak.
03 May 2004; Michael Sterrett <mr_bones_@gentoo.org> libcap-1.10-r2.ebuild,
libcap-1.10.ebuild:
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
index 1b1ecf9fe919..ea3620b69495 100644
--- a/sys-libs/libcap/Manifest
+++ b/sys-libs/libcap/Manifest
@@ -1,10 +1,20 @@
-MD5 3d5209ddce54c89ac8f60d158a5c5037 files/1.10-python.patch 2681
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 09411a8805bf3b15af286666274db5b4 ChangeLog 3526
+MD5 a5216c04eac15e047f075c8ce5264950 libcap-1.10-r3.ebuild 1861
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 87786edadacbed71640afef2aa1b4ab9 libcap-1.10-r4.ebuild 1994
+MD5 9000d6c99fa8e618980893207442fb78 files/1.10-python.patch 2751
MD5 1a4b48f5a76c206e51c3b2321abd87e1 files/digest-libcap-1.10-r3 129
MD5 8f279ebf325d1b8efb6ad3c3a0d8cb5d files/libcap-1.10-python.patch 3353
MD5 3aa7335821ba75c0994083995b0331f2 files/libcap-1.10-syscall.patch 1051
MD5 2f1adcade85a501a8b4d47ddeb66ec9b files/digest-libcap-1.10-r4 129
MD5 1f60409beeba2a799bfbc44a8b826f11 files/libcap-1.10-r4-staticfix.diff 2113
-MD5 52c8adefebe3a6d4d0996bbde60639f0 ChangeLog 3282
-MD5 a5216c04eac15e047f075c8ce5264950 libcap-1.10-r3.ebuild 1861
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 9454be6a56129ec761c1ef7b2e0b430b libcap-1.10-r4.ebuild 2125
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.8 (GNU/Linux)
+
+iD8DBQFA2kDTHTu7gpaalycRAmcCAKD2oJl0pKok6uwxtYc+v6RthUPSJQCdH7Aq
+aLWfgDIMBz78QOkSWrtibGc=
+=mczd
+-----END PGP SIGNATURE-----
diff --git a/sys-libs/libcap/files/1.10-python.patch b/sys-libs/libcap/files/1.10-python.patch
index 7e1e77fb3881..f6c3517f68a7 100644
--- a/sys-libs/libcap/files/1.10-python.patch
+++ b/sys-libs/libcap/files/1.10-python.patch
@@ -21,15 +21,18 @@ diff -ur libcap-1.10.orig/libcap/Makefile libcap-1.10/libcap/Makefile
_makenames: _makenames.c cap_names.sed
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
-@@ -66,6 +71,12 @@
+@@ -66,6 +71,15 @@
ln -sf $(MINLIBNAME) $(MAJLIBNAME)
ln -sf $(MAJLIBNAME) $(LIBNAME).so
+libcap_wrap.c: include/sys/capability.h
+ swig -python -o libcap_wrap.c include/sys/capability.h
+
-+$(PYTHONMODNAME): $(OBJS) libcap_wrap.o
-+ $(LD) -x -shared -o $@ libcap_wrap.o $(OBJS)
++libcap_wrap.o: libcap_wrap.c
++ $(CC) $(CFLAGS) -fPIC -c $< -o $@
++
++$(PYTHONMODNAME): $(LOBJS) libcap_wrap.o
++ $(LD) -x -shared -o $@ libcap_wrap.o $(LOBJS)
+
%.o: %.c $(INCLS)
$(CC) $(CFLAGS) -c $< -o $@
diff --git a/sys-libs/libcap/libcap-1.10-r4.ebuild b/sys-libs/libcap/libcap-1.10-r4.ebuild
index e401173434c7..ebc41c9a24af 100644
--- a/sys-libs/libcap/libcap-1.10-r4.ebuild
+++ b/sys-libs/libcap/libcap-1.10-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r4.ebuild,v 1.3 2004/05/28 18:01:27 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r4.ebuild,v 1.4 2004/06/24 02:47:31 vapier Exp $
inherit flag-o-matic eutils
@@ -40,11 +40,6 @@ src_compile() {
append-flags -I/usr/include/python${PYTHONVER}
fi
- use pic && append-flags -fPIC
- use alpha && append-flags -fPIC
- use amd64 && append-flags -fPIC
- use hppa && append-flags -fPIC
-
emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" DEBUG="" ${myflags} || die
}