Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libselinux/
Date: Sat, 09 Apr 2022 02:55:15
Message-Id: 1649472883.e0936169816c4008bd79b0d09a73a97d8f75619e.perfinion@gentoo
1 commit: e0936169816c4008bd79b0d09a73a97d8f75619e
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 01:55:13 2022 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 02:54:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0936169
7
8 sys-libs/libselinux: Drop old
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 sys-libs/libselinux/Manifest | 2 -
14 sys-libs/libselinux/libselinux-3.1-r1.ebuild | 155 --------------------------
15 sys-libs/libselinux/libselinux-3.2.ebuild | 156 ---------------------------
16 3 files changed, 313 deletions(-)
17
18 diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest
19 index 18b3e6b273f7..e25476f7e88e 100644
20 --- a/sys-libs/libselinux/Manifest
21 +++ b/sys-libs/libselinux/Manifest
22 @@ -1,3 +1 @@
23 -DIST libselinux-3.1.tar.gz 204703 BLAKE2B 72ff2d99dd6640405e804f58bdfbf05e152615ea92f902b3942602af13dc17080afeabb942ed33ae6b3f528870f4b11584e533848e455a97bf8f7151a8d44646 SHA512 57730cddd2d4751556d9e1f207c0f85119c81848f0620c16239e997150989e3f9a586a8c23861fd51ed89f7e084ad441190a58a288258a49a95f7beef7dbbb13
24 -DIST libselinux-3.2.tar.gz 206380 BLAKE2B 544eaaa87b9738c61929abe48713b530a8909eaea017890040f2fe299af86f09b6eb2cf4c9a68e06268ba09923b2b67703ac7a2b973906acb45f698e9ccaeed2 SHA512 18129ac0b9936e1f66021f1b311cf1c1e27a01e50cb70f08a3e1c642c5251e4538aec25a8427778569dfecf5333cf1fb84f1a59afdce8019328d0cff7e5833c5
25 DIST libselinux-3.3.tar.gz 206826 BLAKE2B e4cd2bf7172db1dd7661dd7981f875eb45f3c123805618edd03d7258f4b1f7afc974020187ec2e9e50dd59b3581ee21a29012eaa90ddfa82e43db4b8e60c51b7 SHA512 9a89c05ea4b17453168a985ece93ba6d6c4127916e657c46d4135eb59a1f6408faa0802cc2e49187defbde5247d659037beee089877affbab3eab6af3433696c
26
27 diff --git a/sys-libs/libselinux/libselinux-3.1-r1.ebuild b/sys-libs/libselinux/libselinux-3.1-r1.ebuild
28 deleted file mode 100644
29 index 9734717e280c..000000000000
30 --- a/sys-libs/libselinux/libselinux-3.1-r1.ebuild
31 +++ /dev/null
32 @@ -1,155 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI="7"
37 -PYTHON_COMPAT=( python3_{7..9} )
38 -USE_RUBY="ruby25 ruby26 ruby27"
39 -
40 -# No, I am not calling ruby-ng
41 -inherit python-r1 toolchain-funcs multilib-minimal
42 -
43 -MY_P="${P//_/-}"
44 -SEPOL_VER="${PV}"
45 -MY_RELEASEDATE="20200710"
46 -
47 -DESCRIPTION="SELinux userland library"
48 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
49 -
50 -if [[ ${PV} == 9999 ]] ; then
51 - inherit git-r3
52 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
53 - S="${WORKDIR}/${MY_P}/${PN}"
54 -else
55 - SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
56 - KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
57 - S="${WORKDIR}/${MY_P}"
58 -fi
59 -
60 -LICENSE="public-domain"
61 -SLOT="0"
62 -IUSE="pcre2 python ruby static-libs ruby_targets_ruby25 ruby_targets_ruby26 ruby_targets_ruby27"
63 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
64 -
65 -RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}:=[${MULTILIB_USEDEP}]
66 - !pcre2? ( >=dev-libs/libpcre-8.33-r1:=[static-libs?,${MULTILIB_USEDEP}] )
67 - pcre2? ( dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}] )
68 - python? ( ${PYTHON_DEPS} )
69 - ruby? (
70 - ruby_targets_ruby25? ( dev-lang/ruby:2.5 )
71 - ruby_targets_ruby26? ( dev-lang/ruby:2.6 )
72 - ruby_targets_ruby27? ( dev-lang/ruby:2.7 )
73 - )
74 - elibc_musl? ( sys-libs/fts-standalone )"
75 -DEPEND="${RDEPEND}"
76 -BDEPEND="virtual/pkgconfig
77 - python? ( >=dev-lang/swig-2.0.9 )
78 - ruby? ( >=dev-lang/swig-2.0.9 )"
79 -
80 -src_prepare() {
81 - eapply_user
82 -
83 - multilib_copy_sources
84 -}
85 -
86 -multilib_src_compile() {
87 - tc-export AR CC PKG_CONFIG RANLIB
88 -
89 - emake \
90 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
91 - SHLIBDIR="/$(get_libdir)" \
92 - LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
93 - USE_PCRE2="$(usex pcre2 y n)" \
94 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
95 - all
96 -
97 - if multilib_is_native_abi && use python; then
98 - building() {
99 - emake \
100 - LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
101 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
102 - SHLIBDIR="/$(get_libdir)" \
103 - USE_PCRE2="$(usex pcre2 y n)" \
104 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
105 - pywrap
106 - }
107 - python_foreach_impl building
108 - fi
109 -
110 - if multilib_is_native_abi && use ruby; then
111 - building() {
112 - einfo "Calling rubywrap for ${1}"
113 - # Clean up .lo file to force rebuild
114 - rm -f src/selinuxswig_ruby_wrap.lo || die
115 - emake \
116 - RUBY=${1} \
117 - LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
118 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
119 - SHLIBDIR="/$(get_libdir)" \
120 - USE_PCRE2="$(usex pcre2 y n)" \
121 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
122 - rubywrap
123 - }
124 - for RUBYTARGET in ${USE_RUBY}; do
125 - use ruby_targets_${RUBYTARGET} || continue
126 -
127 - building ${RUBYTARGET}
128 - done
129 - fi
130 -}
131 -
132 -multilib_src_install() {
133 - emake DESTDIR="${D}" \
134 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
135 - SHLIBDIR="/$(get_libdir)" \
136 - USE_PCRE2="$(usex pcre2 y n)" \
137 - install
138 -
139 - if multilib_is_native_abi && use python; then
140 - installation() {
141 - emake DESTDIR="${D}" \
142 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
143 - SHLIBDIR="/$(get_libdir)" \
144 - USE_PCRE2="$(usex pcre2 y n)" \
145 - install-pywrap
146 - python_optimize # bug 531638
147 - }
148 - python_foreach_impl installation
149 - fi
150 -
151 - if multilib_is_native_abi && use ruby; then
152 - installation() {
153 - einfo "Calling install-rubywrap for ${1}"
154 - # Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions
155 - rm src/selinuxswig_ruby_wrap.lo
156 - emake DESTDIR="${D}" \
157 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
158 - SHLIBDIR="/$(get_libdir)" \
159 - RUBY=${1} \
160 - USE_PCRE2="$(usex pcre2 y n)" \
161 - install-rubywrap
162 - }
163 - for RUBYTARGET in ${USE_RUBY}; do
164 - use ruby_targets_${RUBYTARGET} || continue
165 -
166 - installation ${RUBYTARGET}
167 - done
168 - fi
169 -
170 - use static-libs || rm "${D}"/usr/lib*/*.a || die
171 -}
172 -
173 -pkg_postinst() {
174 - # Fix bug 473502
175 - for POLTYPE in ${POLICY_TYPES};
176 - do
177 - mkdir -p /etc/selinux/${POLTYPE}/contexts/files || die
178 - touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local || die
179 - # Fix bug 516608
180 - for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do
181 - if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then
182 - sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \
183 - || die "Failed to recompile contexts"
184 - fi
185 - done
186 - done
187 -}
188
189 diff --git a/sys-libs/libselinux/libselinux-3.2.ebuild b/sys-libs/libselinux/libselinux-3.2.ebuild
190 deleted file mode 100644
191 index 8cb65e1d9e80..000000000000
192 --- a/sys-libs/libselinux/libselinux-3.2.ebuild
193 +++ /dev/null
194 @@ -1,156 +0,0 @@
195 -# Copyright 1999-2021 Gentoo Authors
196 -# Distributed under the terms of the GNU General Public License v2
197 -
198 -EAPI="7"
199 -PYTHON_COMPAT=( python3_{7..10} )
200 -USE_RUBY="ruby25 ruby26 ruby27"
201 -
202 -# No, I am not calling ruby-ng
203 -inherit python-r1 toolchain-funcs multilib-minimal
204 -
205 -MY_PV="${PV//_/-}"
206 -MY_P="${PN}-${MY_PV}"
207 -
208 -DESCRIPTION="SELinux userland library"
209 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
210 -
211 -if [[ ${PV} == 9999 ]]; then
212 - inherit git-r3
213 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
214 - S="${WORKDIR}/${P}/${PN}"
215 -else
216 - SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
217 - KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
218 - S="${WORKDIR}/${MY_P}"
219 -fi
220 -
221 -LICENSE="public-domain"
222 -SLOT="0"
223 -IUSE="pcre2 python ruby static-libs ruby_targets_ruby25 ruby_targets_ruby26 ruby_targets_ruby27"
224 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
225 -
226 -RDEPEND=">=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
227 - !pcre2? ( >=dev-libs/libpcre-8.33-r1:=[static-libs?,${MULTILIB_USEDEP}] )
228 - pcre2? ( dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}] )
229 - python? ( ${PYTHON_DEPS} )
230 - ruby? (
231 - ruby_targets_ruby25? ( dev-lang/ruby:2.5 )
232 - ruby_targets_ruby26? ( dev-lang/ruby:2.6 )
233 - ruby_targets_ruby27? ( dev-lang/ruby:2.7 )
234 - )
235 - elibc_musl? ( sys-libs/fts-standalone )"
236 -DEPEND="${RDEPEND}"
237 -BDEPEND="virtual/pkgconfig
238 - python? ( >=dev-lang/swig-2.0.9 )
239 - ruby? ( >=dev-lang/swig-2.0.9 )"
240 -
241 -src_prepare() {
242 - eapply_user
243 -
244 - multilib_copy_sources
245 -}
246 -
247 -multilib_src_compile() {
248 - tc-export AR CC PKG_CONFIG RANLIB
249 -
250 - local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
251 -
252 - emake \
253 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
254 - SHLIBDIR="/$(get_libdir)" \
255 - LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
256 - USE_PCRE2="$(usex pcre2 y n)" \
257 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
258 - all
259 -
260 - if multilib_is_native_abi && use python; then
261 - building() {
262 - emake \
263 - LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
264 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
265 - SHLIBDIR="/$(get_libdir)" \
266 - USE_PCRE2="$(usex pcre2 y n)" \
267 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
268 - pywrap
269 - }
270 - python_foreach_impl building
271 - fi
272 -
273 - if multilib_is_native_abi && use ruby; then
274 - building() {
275 - einfo "Calling rubywrap for ${1}"
276 - # Clean up .lo file to force rebuild
277 - rm -f src/selinuxswig_ruby_wrap.lo || die
278 - emake \
279 - RUBY=${1} \
280 - LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
281 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
282 - SHLIBDIR="/$(get_libdir)" \
283 - USE_PCRE2="$(usex pcre2 y n)" \
284 - FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \
285 - rubywrap
286 - }
287 - for RUBYTARGET in ${USE_RUBY}; do
288 - use ruby_targets_${RUBYTARGET} || continue
289 -
290 - building ${RUBYTARGET}
291 - done
292 - fi
293 -}
294 -
295 -multilib_src_install() {
296 - emake DESTDIR="${D}" \
297 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
298 - SHLIBDIR="/$(get_libdir)" \
299 - USE_PCRE2="$(usex pcre2 y n)" \
300 - install
301 -
302 - if multilib_is_native_abi && use python; then
303 - installation() {
304 - emake DESTDIR="${D}" \
305 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
306 - SHLIBDIR="/$(get_libdir)" \
307 - USE_PCRE2="$(usex pcre2 y n)" \
308 - install-pywrap
309 - python_optimize # bug 531638
310 - }
311 - python_foreach_impl installation
312 - fi
313 -
314 - if multilib_is_native_abi && use ruby; then
315 - installation() {
316 - einfo "Calling install-rubywrap for ${1}"
317 - # Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions
318 - rm src/selinuxswig_ruby_wrap.lo
319 - emake DESTDIR="${D}" \
320 - LIBDIR="\$(PREFIX)/$(get_libdir)" \
321 - SHLIBDIR="/$(get_libdir)" \
322 - RUBY=${1} \
323 - USE_PCRE2="$(usex pcre2 y n)" \
324 - install-rubywrap
325 - }
326 - for RUBYTARGET in ${USE_RUBY}; do
327 - use ruby_targets_${RUBYTARGET} || continue
328 -
329 - installation ${RUBYTARGET}
330 - done
331 - fi
332 -
333 - use static-libs || rm "${D}"/usr/lib*/*.a || die
334 -}
335 -
336 -pkg_postinst() {
337 - # Fix bug 473502
338 - for POLTYPE in ${POLICY_TYPES};
339 - do
340 - mkdir -p /etc/selinux/${POLTYPE}/contexts/files || die
341 - touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local || die
342 - # Fix bug 516608
343 - for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do
344 - if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then
345 - sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \
346 - || die "Failed to recompile contexts"
347 - fi
348 - done
349 - done
350 -}