Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/bind/files: libcap.patch
Date: Sun, 03 Aug 2008 15:59:52
Message-Id: E1KPfzp-00039X-Hu@stork.gentoo.org
1 dertobi123 08/08/03 15:59:49
2
3 Added: libcap.patch
4 Log:
5 Fix threading, add dep on libcap (#220167)
6 (Portage version: 2.2_rc6/cvs/Linux 2.6.25-gentoo-r6 x86_64)
7
8 Revision Changes Path
9 1.1 net-dns/bind/files/libcap.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/bind/files/libcap.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/bind/files/libcap.patch?rev=1.1&content-type=text/plain
13
14 Index: libcap.patch
15 ===================================================================
16 diff -Naur bind-9.5.0-P2.orig/bin/named/unix/os.c bind-9.5.0-P2/bin/named/unix/os.c
17 --- bind-9.5.0-P2.orig/bin/named/unix/os.c 2008-05-06 03:32:51.000000000 +0200
18 +++ bind-9.5.0-P2/bin/named/unix/os.c 2008-08-03 17:46:19.000000000 +0200
19 @@ -170,7 +170,11 @@
20 return;
21 #ifndef HAVE_LIBCAP
22 memset(&caphead, 0, sizeof(caphead));
23 +#ifdef _LINUX_CAPABILITY_VERSION_3
24 + caphead.version = _LINUX_CAPABILITY_VERSION_3;
25 +#else
26 caphead.version = _LINUX_CAPABILITY_VERSION;
27 +#endif
28 caphead.pid = 0;
29 memset(&cap, 0, sizeof(cap));
30 cap.effective = caps;