diff options
Diffstat (limited to 'sys-libs/libcap-ng')
-rw-r--r-- | sys-libs/libcap-ng/ChangeLog | 12 | ||||
-rw-r--r-- | sys-libs/libcap-ng/Manifest | 6 | ||||
-rw-r--r-- | sys-libs/libcap-ng/files/libcap-ng-0.6.4-fix_tests_building.patch | 27 | ||||
-rw-r--r-- | sys-libs/libcap-ng/files/libcap-ng-0.6.4-python.patch | 86 | ||||
-rw-r--r-- | sys-libs/libcap-ng/libcap-ng-0.6.4.ebuild | 109 |
5 files changed, 238 insertions, 2 deletions
diff --git a/sys-libs/libcap-ng/ChangeLog b/sys-libs/libcap-ng/ChangeLog index b0706099379d..9d2ad194805b 100644 --- a/sys-libs/libcap-ng/ChangeLog +++ b/sys-libs/libcap-ng/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sys-libs/libcap-ng # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.14 2010/07/19 21:16:52 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/ChangeLog,v 1.15 2010/09/20 18:41:56 arfrever Exp $ + +*libcap-ng-0.6.4 (20 Sep 2010) + + 20 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +libcap-ng-0.6.4.ebuild, +files/libcap-ng-0.6.4-fix_tests_building.patch, + +files/libcap-ng-0.6.4-python.patch: + Version bump (bug #311641). Support installation for multiple Python ABIs, + don't install .a, .la, .pyc and .pyo files into Python site-packages + directories, fix tests with Python 3, avoid breaking strict-aliasing rules + with Python 2 (bug #316953). 19 Jul 2010; Jeroen Roovers <jer@gentoo.org> libcap-ng-0.6.2.ebuild: Stable for HPPA (bug #314523). diff --git a/sys-libs/libcap-ng/Manifest b/sys-libs/libcap-ng/Manifest index 8fa534e3236f..4a6792c4266c 100644 --- a/sys-libs/libcap-ng/Manifest +++ b/sys-libs/libcap-ng/Manifest @@ -1,7 +1,11 @@ +AUX libcap-ng-0.6.4-fix_tests_building.patch 671 RMD160 d31281293849d2232892168fe9fc14018e01478e SHA1 13806a44b9b25ee0f6ef1b33b6edfb5fe5d60ac9 SHA256 fe7b2f8a64def178c0641b4b66f94e00cb8f96b0bc6e47f1e1c60b6f891def5a +AUX libcap-ng-0.6.4-python.patch 3060 RMD160 a72a20753c53f52a824272ae91674b375fcbf4f3 SHA1 1182a780dda839e6d6c49e196dc7be7bf9708b47 SHA256 73cdea90d2d79b0a57532aed6867c9beabb2a5e9b8b91a40e6fed6ab7788c295 AUX libcap-ng-gentoo.patch 1070 RMD160 23d69ecd9671243c91825af067f72468d6c4a6c1 SHA1 3feea7db14c639aeb61226f20094c8b2ab95613e SHA256 b556f6ed4e8192271e0d8d97d6685fcd9cb1f9200bb4119974e94436417ae4d3 DIST libcap-ng-0.6.1.tar.gz 399309 RMD160 09cf05f11403ae42efa22b35b4ede1ecf7de4120 SHA1 f023c57900ab6bf5062574df0f030525ff8d215a SHA256 ab38136549e2bbbd5bed8738bc8647b37d0f06df711e526f7ee3ea001fce0b5e DIST libcap-ng-0.6.2.tar.gz 358165 RMD160 a925a73e86d0bca0c8324a84df6e46307ca80768 SHA1 9394d5e61042c49cb0fe15bbbd70837bca1a46c9 SHA256 1d230a03c7e6adf1c761730bf27cee694d6658e97581c9507e993c80a1fab0ff +DIST libcap-ng-0.6.4.tar.gz 361366 RMD160 5f903d9ebede89be07f532ca4d26b6e0971e36bd SHA1 c84f137ccbc272ff2c4dd751048d8a2640a4351d SHA256 9d508706f72ba613e6afdcd02208e2491b3e0d4dff60867a7738ae8d352f0de8 EBUILD libcap-ng-0.6.1.ebuild 927 RMD160 4f8189aff1802823eead2267ec8ea629b189f959 SHA1 c04700726c3b49c3f6ae0b78bdd4e991bf924cee SHA256 3c6cc82a61768792a6ca21bf34fdeb29d3efe6eb71053ce5882f87cc548df721 EBUILD libcap-ng-0.6.2.ebuild 931 RMD160 e289d7c6fa408eea69179a8297158a57b3544897 SHA1 52aa5e2aab15d2bd713c798cc43a48b98db03d5b SHA256 8c7ccbf7154845c2aef5fd936e2a9715242c946ee8af42ec9c0f0a275a6dd7fe -MISC ChangeLog 1758 RMD160 71d9227ec25ba4c020301f0ccee8e1c0169c5fcc SHA1 8af4c60b25ebbea3b5e2791cc8f4501e6bc6a25f SHA256 fe8b3c4e47f58d66734df17da34febcf8a47165951f0c082dc252bd5d6832e7c +EBUILD libcap-ng-0.6.4.ebuild 2447 RMD160 8f12abd83c5c014ca9ad55c66f05eb1459632dba SHA1 79310cb2a6e00076b9798697ac13d7b589520897 SHA256 070b03c29020f8442468490b16ad0a297cbeb4ac34f030ad93f9057d0c5807a4 +MISC ChangeLog 2240 RMD160 7beed74e4423de3761dafec6c57002fc06c4ebf3 SHA1 aadc00dfc3f2a3b951f282868a7db0662882b3b0 SHA256 55d5d48702b2f0ece942bc6b1b0e621e4e4f8759aff7b4622d189d6461ec74a5 MISC metadata.xml 598 RMD160 4a0562ce9e5fab2b4d7310962390815b518a18a5 SHA1 2b87404da773bdf8e2dfb41844fc6c8c23c4bce4 SHA256 340a9c3dd4c0fe6edafe6685af1c8d9b8d2c668fe0b29c6809cc81dda5d06e9d diff --git a/sys-libs/libcap-ng/files/libcap-ng-0.6.4-fix_tests_building.patch b/sys-libs/libcap-ng/files/libcap-ng-0.6.4-fix_tests_building.patch new file mode 100644 index 000000000000..52a8e4ba2c5a --- /dev/null +++ b/sys-libs/libcap-ng/files/libcap-ng-0.6.4-fix_tests_building.patch @@ -0,0 +1,27 @@ +https://fedorahosted.org/libcap-ng/changeset/2 + +--- src/test/Makefile.am ++++ src/test/Makefile.am +@@ -1,5 +1,5 @@ + # Makefile.am -- +-# Copyright 2009 Red Hat Inc., Durham, North Carolina. ++# Copyright 2009,10 Red Hat Inc., Durham, North Carolina. + # All Rights Reserved. + # + # This library is free software; you can redistribute it and/or +@@ -20,6 +20,7 @@ + # Steve Grubb <sgrubb@redhat.com> + # + ++INCLUDES = -I${top_srcdir} -I${top_srcdir}/src + check_PROGRAMS = lib_test thread_test + TESTS = $(check_PROGRAMS) + +--- src/test/thread_test.c ++++ src/test/thread_test.c +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <stdlib.h> + #include <cap-ng.h> + #include <pthread.h> + diff --git a/sys-libs/libcap-ng/files/libcap-ng-0.6.4-python.patch b/sys-libs/libcap-ng/files/libcap-ng-0.6.4-python.patch new file mode 100644 index 000000000000..fdf8a51cb69b --- /dev/null +++ b/sys-libs/libcap-ng/files/libcap-ng-0.6.4-python.patch @@ -0,0 +1,86 @@ +https://fedorahosted.org/libcap-ng/changeset/9 + +--- bindings/python/Makefile.am ++++ bindings/python/Makefile.am +@@ -29,7 +29,8 @@ + pyexec_PYTHON = capng.py + pyexec_LTLIBRARIES = _capng.la + pyexec_SOLIBRARIES = _capng.so +-_capng_la_LDFLAGS = -module -avoid-version ++_capng_la_CFLAGS = -shared ++_capng_la_LDFLAGS = -module -avoid-version -shared + _capng_la_HEADERS: $(top_builddir)/config.h + _capng_la_DEPENDENCIES =${top_srcdir}/src/cap-ng.h ${top_builddir}/src/libcap-ng.la + nodist__capng_la_SOURCES = capng_wrap.c +--- bindings/python/test/capng-test.py ++++ bindings/python/test/capng-test.py +@@ -10,15 +10,15 @@ + import capng + last = capng.CAP_LAST_CAP + +-print "Doing basic bit tests..." ++print("Doing basic bit tests...") + capng.capng_clear(capng.CAPNG_SELECT_BOTH) + if capng.capng_have_capabilities(capng.CAPNG_SELECT_BOTH) != capng.CAPNG_NONE: +- print "Failed clearing capabilities\n" ++ print("Failed clearing capabilities\n") + sys.exit(1) + + capng.capng_fill(capng.CAPNG_SELECT_BOTH) + if capng.capng_have_capabilities(capng.CAPNG_SELECT_BOTH) != capng.CAPNG_FULL: +- print "Failed filling capabilities" ++ print("Failed filling capabilities") + sys.exit(1) + + text = capng.capng_print_caps_numeric(capng.CAPNG_PRINT_BUFFER, capng.CAPNG_SELECT_CAPS) +@@ -26,42 +26,42 @@ + if len < 80 and last > 30: + last = 30 + +-print "Doing advanced bit tests for %d capabilities...\n" % (last) ++print("Doing advanced bit tests for %d capabilities...\n" % (last)) + for i in range(last+1): + capng.capng_clear(capng.CAPNG_SELECT_BOTH) + rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i) + if rc: +- print "Failed update test 1" ++ print("Failed update test 1") + sys.exit(1) + + rc = capng.capng_have_capability(capng.CAPNG_EFFECTIVE, int(i)) + if rc <= capng.CAPNG_NONE: +- print "Failed have capability test 1" ++ print("Failed have capability test 1") + capng.capng_print_caps_numeric(capng.CAPNG_PRINT_STDOUT, capng.CAPNG_SELECT_CAPS) + sys.exit(1) + + if capng.capng_have_capabilities(capng.CAPNG_SELECT_CAPS) != capng.CAPNG_PARTIAL: +- print "Failed have capabilities test 1" ++ print("Failed have capabilities test 1") + sys.exit(1) + + capng.capng_fill(capng.CAPNG_SELECT_BOTH) + rc = capng.capng_update(capng.CAPNG_DROP, capng.CAPNG_EFFECTIVE, i) + if rc: +- print "Failed update test 3" ++ print("Failed update test 3") + sys.exit(1) + + if capng.capng_have_capabilities(capng.CAPNG_SELECT_CAPS)!=capng.CAPNG_PARTIAL: +- print "Failed have capabilities test 3" ++ print("Failed have capabilities test 3") + capng.capng_print_caps_numeric(capng.CAPNG_PRINT_STDOUT, capng.CAPNG_SELECT_CAPS) + sys.exit(1) + + rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i) + if rc: +- print "Failed update test 4" ++ print("Failed update test 4") + sys.exit(1) + + if capng.capng_have_capabilities(capng.CAPNG_SELECT_CAPS) != capng.CAPNG_FULL: +- print "Failed have capabilities test 4" ++ print("Failed have capabilities test 4") + capng.capng_print_caps_numeric(capng.CAPNG_PRINT_STDOUT, capng.CAPNG_SELECT_CAPS) + sys.exit(1) + diff --git a/sys-libs/libcap-ng/libcap-ng-0.6.4.ebuild b/sys-libs/libcap-ng/libcap-ng-0.6.4.ebuild new file mode 100644 index 000000000000..59ddb65f208d --- /dev/null +++ b/sys-libs/libcap-ng/libcap-ng-0.6.4.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap-ng/libcap-ng-0.6.4.ebuild,v 1.1 2010/09/20 18:41:56 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils autotools flag-o-matic python + +DESCRIPTION="POSIX 1003.1e capabilities" +HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/" +SRC_URI="http://people.redhat.com/sgrubb/libcap-ng/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="python" + +RDEPEND="sys-apps/attr + python? ( dev-lang/python )" +DEPEND="${RDEPEND} + sys-kernel/linux-headers + python? ( dev-lang/swig )" + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + +pkg_setup() { + use python && python_pkg_setup +} + +src_prepare() { + # Disable byte-compilation of Python modules. + echo "#!/bin/sh" > py-compile + + # Python bindings are built/tested/installed manually. + sed -e "/^SUBDIRS/s/ python//" -i bindings/Makefile.am + + epatch "${FILESDIR}"/${PN}-gentoo.patch + epatch "${FILESDIR}"/${P}-python.patch + epatch "${FILESDIR}"/${P}-fix_tests_building.patch + eautoreconf + + use sparc && replace-flags -O? -O0 +} + +src_configure() { + econf $(use_enable python) +} + +src_compile() { + default + + if use python; then + python_copy_sources bindings/python + + building() { + emake \ + CFLAGS="${CFLAGS}" \ + PYTHON_VERSION="$(python_get_version)" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" + } + python_execute_function -s --source-dir bindings/python building + fi +} + +src_test() { + default + + if use python; then + testing() { + emake \ + PYTHON_VERSION="$(python_get_version)" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" \ + TESTS_ENVIRONMENT="PYTHONPATH=..:../.libs" \ + check + } + python_execute_function -s --source-dir bindings/python testing + fi +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + + if use python; then + installation() { + emake \ + DESTDIR="${D}" \ + PYTHON_VERSION="$(python_get_version)" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" \ + install + } + python_execute_function -s --source-dir bindings/python installation + + python_clean_installation_image + fi + + dodoc ChangeLog README +} + +pkg_postinst() { + use python && python_mod_optimize capng.py +} + +pkg_postrm() { + use python && python_mod_cleanup capng.py +} |