Patchwork [git,commit] Add libcap-ng package.

login
register
mail settings
Submitter Peter Korsgaard
Date April 4, 2012, 7:57 p.m.
Message ID <20120404200933.2D85596A01@busybox.osuosl.org>
Download mbox | patch
Permalink /patch/150796/
State Not Applicable
Headers show

Comments

Peter Korsgaard - April 4, 2012, 7:57 p.m.
commit: http://git.buildroot.net/buildroot/commit/?id=defa173e08a34723f7a168ea4b76b10578591d6c
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/Config.in              |    1 +
 package/libcap-ng/Config.in    |   10 ++++++++++
 package/libcap-ng/libcap-ng.mk |   12 ++++++++++++
 3 files changed, 23 insertions(+), 0 deletions(-)
Thomas Petazzoni - April 5, 2012, 7:27 a.m.
Le Wed, 4 Apr 2012 21:57:47 +0200,
Peter Korsgaard <jacmet@sunsite.dk> a écrit :

> --- /dev/null
> +++ b/package/libcap-ng/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_LIBCAP_NG
> +	bool "libcap-ng"
> +	help
> +	  The libcap-ng library is intended to make programming with
> +	  posix capabilities much easier than the traditional libcap
> +	  library. It includes utilities that can analyse all currently
> +	  running applications and print out any capabilities and whether
> +	  or not it has an open ended bounding set.
> +
> +	  http://people.redhat.com/sgrubb/libcap-ng/

This new package should probably depends on BR2_LARGEFILE, or get some
sort of fix for largefile support. See:

http://autobuild.buildroot.org/results/7aab0aecc3a49b55d65f168bb2a7165bcfc62acb/build-end.log
http://autobuild.buildroot.org/results/22ec96b9a821c89ebba804f71b97707718038549/build-end.log
http://autobuild.buildroot.org/results/15d94ece63b89517d8d896785fec5085a573e740/build-end.log
http://autobuild.buildroot.org/results/b76c3195656fa96ffa8446ac03bde51690a4dc90/build-end.log

Best regards,

Thomas
Peter Korsgaard - April 5, 2012, 7:49 a.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

 Thomas> Le Wed, 4 Apr 2012 21:57:47 +0200,
 Thomas> Peter Korsgaard <jacmet@sunsite.dk> a écrit :

 >> --- /dev/null
 >> +++ b/package/libcap-ng/Config.in
 >> @@ -0,0 +1,10 @@
 >> +config BR2_PACKAGE_LIBCAP_NG
 >> +	bool "libcap-ng"
 >> +	help
 >> +	  The libcap-ng library is intended to make programming with
 >> +	  posix capabilities much easier than the traditional libcap
 >> +	  library. It includes utilities that can analyse all currently
 >> +	  running applications and print out any capabilities and whether
 >> +	  or not it has an open ended bounding set.
 >> +
 >> +	  http://people.redhat.com/sgrubb/libcap-ng/

 Thomas> This new package should probably depends on BR2_LARGEFILE, or get some
 Thomas> sort of fix for largefile support. See:

Seems like it, but only for the python bindings. The library itself
builds fine without largefile support (I tested that).

It should also ensure it builds after python if enabled for the
bindings.
Thomas Petazzoni - April 5, 2012, 8:04 a.m.
Le Thu, 05 Apr 2012 09:49:17 +0200,
Peter Korsgaard <jacmet@uclibc.org> a écrit :

> Seems like it, but only for the python bindings. The library itself
> builds fine without largefile support (I tested that).
> 
> It should also ensure it builds after python if enabled for the
> bindings.

And disable the build of the Python bindings if Python is not selected
as a package for the target.

Regards,

Thomas

Patch

diff --git a/package/Config.in b/package/Config.in
index e1629c8..e4f7dd2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -377,6 +377,7 @@  source "package/argp-standalone/Config.in"
 source "package/boost/Config.in"
 source "package/libatomic_ops/Config.in"
 source "package/libcap/Config.in"
+source "package/libcap-ng/Config.in"
 source "package/libdaemon/Config.in"
 source "package/libelf/Config.in"
 source "package/libevent/Config.in"
diff --git a/package/libcap-ng/Config.in b/package/libcap-ng/Config.in
new file mode 100644
index 0000000..d1663cd
--- /dev/null
+++ b/package/libcap-ng/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_LIBCAP_NG
+	bool "libcap-ng"
+	help
+	  The libcap-ng library is intended to make programming with
+	  posix capabilities much easier than the traditional libcap
+	  library. It includes utilities that can analyse all currently
+	  running applications and print out any capabilities and whether
+	  or not it has an open ended bounding set.
+
+	  http://people.redhat.com/sgrubb/libcap-ng/
diff --git a/package/libcap-ng/libcap-ng.mk b/package/libcap-ng/libcap-ng.mk
new file mode 100644
index 0000000..6ea5de4
--- /dev/null
+++ b/package/libcap-ng/libcap-ng.mk
@@ -0,0 +1,12 @@ 
+#############################################################
+#
+# libcap-ng
+#
+#############################################################
+
+LIBCAP_NG_VERSION = 0.6.6
+LIBCAP_NG_SITE = http://people.redhat.com/sgrubb/libcap-ng/
+LIBCAP_NG_SOURCE = libcap-ng-$(LIBCAP_NG_VERSION).tar.gz
+LIBCAP_NG_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS))