Package: libcap2
Version: 1:2.21-1

Setting capabilies on large files on i386 fails.  A fix for
this has been pushed to the upstream libcap git tree, with no
new version number.  Could this fix be pulled into the debian
package?

The relevant Ubuntu bug is 
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/794202

Here is a proposed debdiff.

thanks,
-serge

diff -Nru libcap2-2.21/debian/changelog libcap2-2.21/debian/changelog
--- libcap2-2.21/debian/changelog       2011-05-22 13:23:51.000000000 -0500
+++ libcap2-2.21/debian/changelog       2011-06-20 11:46:50.000000000 -0500
@@ -1,3 +1,11 @@
+libcap2 (1:2.21-2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * 0002-support-getting-setting-capabilities-on-large-files.patch:
+    patch from upstream to enable setting capabilities on large files.
+
+ -- Serge Hallyn <serge.hal...@ubuntu.com>  Mon, 20 Jun 2011 11:44:43 -0500
+
 libcap2 (1:2.21-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru 
libcap2-2.21/debian/patches/0002-support-getting-setting-capabilities-on-large-files.patch
 
libcap2-2.21/debian/patches/0002-support-getting-setting-capabilities-on-large-files.patch
--- 
libcap2-2.21/debian/patches/0002-support-getting-setting-capabilities-on-large-files.patch
  1969-12-31 18:00:00.000000000 -0600
+++ 
libcap2-2.21/debian/patches/0002-support-getting-setting-capabilities-on-large-files.patch
  2011-06-20 11:43:59.000000000 -0500
@@ -0,0 +1,32 @@
+From f464aa7fd9b5953c8ddc83450f37c00bf62ac1f2 Mon Sep 17 00:00:00 2001
+From: "Andrew G. Morgan" <mor...@kernel.org>
+Date: Sun, 12 Jun 2011 18:44:37 -0700
+Subject: [PATCH 1/1] Support getting/setting capabilities on large files.
+
+See:
+  https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/794202
+
+Patch originally from Mikhail Kulinich, but forwarded from Serge Hallyn
+at Canonical.
+
+Signed-off-by: Andrew G. Morgan <mor...@kernel.org>
+---
+ Make.Rules |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/Make.Rules b/Make.Rules
+index 2563e82..b99b752 100644
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -48,7 +48,7 @@ KERNEL_HEADERS := $(topdir)/libcap/include
+ IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+ 
+ CC := gcc
+-CFLAGS := -O2
++CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ BUILD_CC := $(CC)
+ BUILD_CFLAGS := $(CFLAGS) $(IPATH)
+ AR := ar
+-- 
+1.7.5.4
+
diff -Nru libcap2-2.21/debian/patches/series libcap2-2.21/debian/patches/series
--- libcap2-2.21/debian/patches/series  2011-05-22 13:22:10.000000000 -0500
+++ libcap2-2.21/debian/patches/series  2011-06-20 11:44:37.000000000 -0500
@@ -1 +1,2 @@
 0001-fix-Makefiles.patch
+0002-support-getting-setting-capabilities-on-large-files.patch



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to