Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap/files/, sys-libs/libcap/
Date: Wed, 30 Mar 2016 23:49:05
Message-Id: 1459381663.1f6bf821bf9d9e9182c3fc086ecad319da61d591.vapier@gentoo
1 commit: 1f6bf821bf9d9e9182c3fc086ecad319da61d591
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 23:15:53 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 23:47:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f6bf821
7
8 sys-libs/libcap: drop old <2.24 versions
9
10 sys-libs/libcap/Manifest | 1 -
11 .../files/libcap-2.22-build-system-fixes.patch | 171 ---------------------
12 sys-libs/libcap/libcap-2.22-r2.ebuild | 69 ---------
13 3 files changed, 241 deletions(-)
14
15 diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
16 index ba24d96..265935c 100644
17 --- a/sys-libs/libcap/Manifest
18 +++ b/sys-libs/libcap/Manifest
19 @@ -1,3 +1,2 @@
20 -DIST libcap-2.22.tar.bz2 60051 SHA256 73ebbd4877b5f69dd28b72098e510c5b318bc480f8201c4061ac98b78c04050f SHA512 d4e070cfed7dbf416c949e79fbfbfcde2da4705d4f55527b18482c9959b80fea2841bf70f317fa5e620e13a75a8e5da69f94304b8e54195f2d0492f14d342339 WHIRLPOOL 000e3c76e83366423efc0e935c6191496c0e9bf1cc559babdbeea74c8c81009e883985c5f1c739b4fb1744522e09bda253f6012b7e52284f291eabeaf20f6a88
21 DIST libcap-2.24.tar.xz 63412 SHA256 cee4568f78dc851d726fc93f25f4ed91cc223b1fe8259daa4a77158d174e6c65 SHA512 c062bab936d651a50efa66dcfa51ab3ce4b0881195d23bb32142b5c8044d30e0e2152f3497844ce90c04f909aeffe2d41203efff41972e38758dcca7b653884b WHIRLPOOL bb7a9d8d3b999ad289962ebdc8b9eff87e25bd744a86ee4717e999738cb5a556a51826d0f0cbfc628629948fa8355d5d972208910d6c1c99bdf66a673b6f1cc8
22 DIST libcap-2.25.tar.xz 63672 SHA256 693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162 SHA512 c3ab491885292adc171cde542b96f1295e84132febb50112a46575c3bde3a3eb6fcf733f7a756b4b656e013c0abb5ed6571db24799f8c0b23d8f759f992864f9 WHIRLPOOL 294a399224997bb3e6187103f364dee2d64f5ab633068361c56fcb4a496abf24d0283b35d4c48df193d36f9372540a3afe853627429ba7f7caba7e9826e1a13d
23
24 diff --git a/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch b/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch
25 deleted file mode 100644
26 index 888c089..0000000
27 --- a/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch
28 +++ /dev/null
29 @@ -1,171 +0,0 @@
30 -From 5540f3c2a3bd70ebc8140b74ac5a0aecdbc53234 Mon Sep 17 00:00:00 2001
31 -From: Mike Frysinger <vapier@g.o>
32 -Date: Sun, 16 Nov 2008 09:10:31 -0500
33 -Subject: [PATCH] build system fixes
34 -
35 -This touches up the homebrewed build system to work much better "out of the
36 -box" for people. Specifically:
37 - - allow toolchain vars to be set via environment
38 - - CC / BUILD_CC / AR / RANLIB
39 - - CFLAGS / CPPFLAGS / LDFLAGS
40 - - split CPPFLAGS out of CFLAGS
41 - - break -fPIC out of global CFLAGS and only use where needed
42 - - use LDLIBS for libraries, not LDFLAGS
43 -
44 -Signed-off-by: Mike Frysinger <vapier@g.o>
45 ----
46 - Make.Rules | 25 +++++++++++++------------
47 - libcap/Makefile | 11 ++++++-----
48 - pam_cap/Makefile | 8 +++++---
49 - progs/Makefile | 2 +-
50 - 4 files changed, 25 insertions(+), 21 deletions(-)
51 -
52 -diff --git a/Make.Rules b/Make.Rules
53 -index 011aa14..6e432a6 100644
54 ---- a/Make.Rules
55 -+++ b/Make.Rules
56 -@@ -44,27 +44,28 @@ MINOR=19
57 -
58 - # Compilation specifics
59 -
60 --KERNEL_HEADERS := $(topdir)/libcap/include
61 --IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
62 --
63 --CC := gcc
64 --CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
65 --BUILD_CC := $(CC)
66 --BUILD_CFLAGS := $(CFLAGS) $(IPATH)
67 --AR := ar
68 --RANLIB := ranlib
69 -+CC ?= gcc
70 -+CFLAGS ?= -O2
71 -+BUILD_CC ?= $(CC)
72 -+BUILD_CFLAGS ?= $(CFLAGS)
73 -+AR ?= ar
74 -+RANLIB ?= ranlib
75 - DEBUG = -g #-DDEBUG
76 - WARNINGS=-Wall -Wwrite-strings \
77 - -Wpointer-arith -Wcast-qual -Wcast-align \
78 - -Wstrict-prototypes -Wmissing-prototypes \
79 - -Wnested-externs -Winline -Wshadow
80 - LD=$(CC) -Wl,-x -shared
81 --LDFLAGS := #-g
82 -+LDFLAGS ?= #-g
83 -
84 --SYSTEM_HEADERS = /usr/include
85 -+KERNEL_HEADERS = $(topdir)/libcap/include
86 -+LIBCAP_CPPFLAGS = -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
87 -+CPPFLAGS += $(LIBCAP_CPPFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
88 -+BUILD_CPPFLAGS += $(LIBCAP_CPPFLAGS)
89 - INCS=$(topdir)/libcap/include/sys/capability.h
90 - LDFLAGS += -L$(topdir)/libcap
91 --CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
92 -+CPPFLAGS += -Dlinux
93 -+CFLAGS += $(WARNINGS) $(DEBUG)
94 - PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
95 - INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
96 - DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
97 -diff --git a/libcap/Makefile b/libcap/Makefile
98 -index 4762c60..cf99523 100644
99 ---- a/libcap/Makefile
100 -+++ b/libcap/Makefile
101 -@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_flag cap_text
102 - # no support).
103 - ifeq ($(LIBATTR),yes)
104 - FILES += cap_file
105 --LDFLAGS += -lattr
106 -+LDLIBS += -lattr
107 - endif
108 -
109 - INCLS=libcap.h cap_names.h $(INCS)
110 -@@ -24,6 +24,7 @@ OBJS=$(addsuffix .o, $(FILES))
111 - MAJLIBNAME=$(LIBNAME).$(VERSION)
112 - MINLIBNAME=$(MAJLIBNAME).$(MINOR)
113 - GPERF_OUTPUT = _caps_output.gperf
114 -+CFLAGS += -fPIC
115 -
116 - all: $(MINLIBNAME) $(STALIBNAME)
117 -
118 -@@ -33,7 +34,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
119 - endif
120 -
121 - _makenames: _makenames.c cap_names.list.h
122 -- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
123 -+ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
124 -
125 - cap_names.h: _makenames
126 - ./_makenames > cap_names.h
127 -@@ -50,15 +51,15 @@ $(STALIBNAME): $(OBJS)
128 - $(RANLIB) $@
129 -
130 - $(MINLIBNAME): $(OBJS)
131 -- $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
132 -+ $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^ $(LDLIBS)
133 - ln -sf $(MINLIBNAME) $(MAJLIBNAME)
134 - ln -sf $(MAJLIBNAME) $(LIBNAME)
135 -
136 - %.o: %.c $(INCLS)
137 -- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
138 -+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
139 -
140 - cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
141 -- $(CC) $(CFLAGS) $(IPATH) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
142 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
143 -
144 - install: all
145 - mkdir -p -m 0755 $(INCDIR)/sys
146 -@@ -77,7 +77,7 @@ install: all
147 - install -m 0644 include/sys/capability.h $(INCDIR)/sys
148 - mkdir -p -m 0755 $(LIBDIR)
149 - install -m 0644 $(STALIBNAME) $(LIBDIR)/$(STALIBNAME)
150 -- install -m 0644 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
151 -+ install -m 0755 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
152 - ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME)
153 - ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME)
154 - ifeq ($(FAKEROOT),)
155 -diff --git a/pam_cap/Makefile b/pam_cap/Makefile
156 -index 9ca5bef..bdae933 100644
157 ---- a/pam_cap/Makefile
158 -+++ b/pam_cap/Makefile
159 -@@ -9,6 +9,8 @@ include ../Make.Rules
160 - # written (and you know why it fails), email me and explain why. Thanks!
161 - LDLIBS += -L../libcap -lcap
162 -
163 -+CFLAGS += -fPIC
164 -+
165 - all: pam_cap.so
166 - $(MAKE) testcompile
167 -
168 -@@ -17,13 +19,13 @@ install: all
169 - install -m 0755 pam_cap.so $(LIBDIR)/security
170 -
171 - pam_cap.so: pam_cap.o
172 -- $(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
173 -+ $(LD) $(CFLAGS) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
174 -
175 - pam_cap.o: pam_cap.c
176 -- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
177 -+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
178 -
179 - testcompile: test.c pam_cap.o
180 -- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
181 -+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
182 -
183 - clean:
184 - rm -f *.o *.so testcompile *~
185 -diff --git a/progs/Makefile b/progs/Makefile
186 -index ef51dc6..c261f57 100644
187 ---- a/progs/Makefile
188 -+++ b/progs/Makefile
189 -@@ -22,7 +22,7 @@ $(BUILD): %: %.o
190 - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
191 -
192 - %.o: %.c $(INCS)
193 -- $(CC) $(IPATH) $(CFLAGS) -c $< -o $@
194 -+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
195 -
196 - install: all
197 - mkdir -p -m 0755 $(SBINDIR)
198 ---
199 -1.7.4.rc2
200 -
201
202 diff --git a/sys-libs/libcap/libcap-2.22-r2.ebuild b/sys-libs/libcap/libcap-2.22-r2.ebuild
203 deleted file mode 100644
204 index 6fb3f81..0000000
205 --- a/sys-libs/libcap/libcap-2.22-r2.ebuild
206 +++ /dev/null
207 @@ -1,69 +0,0 @@
208 -# Copyright 1999-2015 Gentoo Foundation
209 -# Distributed under the terms of the GNU General Public License v2
210 -# $Id$
211 -
212 -EAPI="4"
213 -
214 -inherit eutils multilib multilib-minimal toolchain-funcs pam
215 -
216 -DESCRIPTION="POSIX 1003.1e capabilities"
217 -HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
218 -SRC_URI="mirror://gentoo/${P}.tar.bz2"
219 -
220 -# it's available under either of the licenses
221 -LICENSE="|| ( GPL-2 BSD )"
222 -SLOT="0"
223 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
224 -IUSE="pam"
225 -
226 -RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}]
227 - pam? ( virtual/pam )"
228 -DEPEND="${RDEPEND}
229 - sys-kernel/linux-headers"
230 -
231 -src_prepare() {
232 - epatch "${FILESDIR}"/${PN}-2.22-build-system-fixes.patch
233 - epatch "${FILESDIR}"/${PN}-2.22-no-perl.patch
234 - epatch "${FILESDIR}"/${PN}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
235 - epatch "${FILESDIR}"/${PN}-2.21-include.patch
236 -
237 - multilib_copy_sources
238 -}
239 -
240 -multilib_src_configure() {
241 - if multilib_is_native_abi && use pam; then
242 - pam=yes
243 - else
244 - pam=no
245 - fi
246 -
247 - sed -i \
248 - -e "/^PAM_CAP/s:=.*:=${pam}:" \
249 - -e '/^DYNAMIC/s:=.*:=yes:' \
250 - -e "/^lib=/s:=.*:=/usr/$(get_libdir):" \
251 - Make.Rules
252 -}
253 -
254 -multilib_src_compile() {
255 - tc-export_build_env BUILD_CC
256 - tc-export AR CC RANLIB
257 -
258 - default
259 -}
260 -
261 -multilib_src_install() {
262 - # no configure, needs explicit install line #444724#c3
263 - emake install DESTDIR="${ED}"
264 -
265 - gen_usr_ldscript -a cap
266 -
267 - rm -rf "${ED}"/usr/$(get_libdir)/security
268 - if multilib_is_native_abi && use pam; then
269 - dopammod pam_cap/pam_cap.so
270 - dopamsecurity '' pam_cap/capability.conf
271 - fi
272 -}
273 -
274 -multilib_src_install_all() {
275 - dodoc CHANGELOG README doc/capability.notes
276 -}