1 |
commit: 0d93fa3157f99016175661613dae4112bd58752e |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 22 15:56:15 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jul 22 15:57:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=0d93fa31 |
7 |
|
8 |
sys-libs/libselinux: version bump to 2.7_rc5 |
9 |
|
10 |
sys-libs/libselinux/Manifest | 2 + |
11 |
sys-libs/libselinux/libselinux-2.7_rc5.ebuild | 160 ++++++++++++++++++++++++++ |
12 |
2 files changed, 162 insertions(+) |
13 |
|
14 |
diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest |
15 |
index dda67a1..b9dc29f 100644 |
16 |
--- a/sys-libs/libselinux/Manifest |
17 |
+++ b/sys-libs/libselinux/Manifest |
18 |
@@ -3,7 +3,9 @@ AUX libselinux-2.7-fts_ldlibs.patch 536 SHA256 8baac2b87e3f50b071a70651d965d564a |
19 |
DIST libselinux-2.6.tar.gz 203119 SHA256 4ea2dde50665c202253ba5caac7738370ea0337c47b251ba981c60d24e1a118a SHA512 906e1bf98c669862ab4f4e883d511db8d739a5763dc857c9405ad3cc6c70766a482853d07134698a1a98257a8632cc756d0549a7640c2915d051714f502ff14b WHIRLPOOL bf60ce907b7057ada5d19e3a0cd1f092a7dfc2de774e504762424c325c657a4f144fbe252e7d908f7c6d902d80388517e15134a289f4358e564c8720ea6534d9 |
20 |
DIST libselinux-2.7-rc1.tar.gz 186897 SHA256 213e1ca473855a61e8147e027b6ee5edf4162c9fbfc00749643f0ecc0a08371c SHA512 fe7fe67f14e5483fbb237eeb33f6eca48f1d3f6a3ab7fa1cfa99e5143ce4d6a03c9033a03a82bb3954d07c4d1a2c211cf5dea80030c727f9adcb3cc6bd72e641 WHIRLPOOL dfee20eaf3ea9e3cb7caa21ac10e710799ed324eee833650fc0bdf17c3fbcd3426bea7d915f6d6b79ca4440b99c57805a018bbd6a6103d97cb590f52d58f0e40 |
21 |
DIST libselinux-2.7-rc4.tar.gz 186904 SHA256 27c1780d6c623ab70ccf6923b8c8f386f8984ec99b7b4734f7b23d3d25809970 SHA512 788beb44ca2d2b6d84b57193538ed6f9c25f536c129903d58a852a64fc2c46a4e4249c4acd6234a6242a6ac0ea828a553f42a0e80fd9405ff5225c8a722c395f WHIRLPOOL 709ba4c3021d8b9e260ec8dbb0ff0ecd2a06a32cb44ce2c6fc486004e4c7f8cc28728150df40967472d00b97a26194dc36702dc990f5dd7055b2571714ccd37a |
22 |
+DIST libselinux-2.7-rc5.tar.gz 186909 SHA256 b002ec2fc5ab74041a5138ebc680e5bc2045c7a5089699f39c494ac1f0b482b2 SHA512 01a600d03ff2a04f91efee8ab6ef9dccc3e39c64e2857be57b84ab0a38e01a55710d7c1b4e3d33b69f0ed0f04e1af14b9569d65ce419294d40177baff283a8b7 WHIRLPOOL 05fa39c10669eeaf7e91609ff77967c0b3187c27d9edeee0614110e9dbe54068df317df73ce421e9a0a5511705a374f02abcf8f5dc3f8006ef73d88cb597534a |
23 |
EBUILD libselinux-2.6.ebuild 4484 SHA256 ce11a2196a960e75df6ff4eafd8ab670687c7ead2cca6f51c15d5c9688d34e26 SHA512 6bf726dc5594ffba0aa36e4f97fc4131c4c4b78ad498c0c36dffdd335ca9772d1f3d6c57dc8de87e431b06bbb2e190f220932dc166e8220d68cf6293bca518f4 WHIRLPOOL 5a7df89e0c1f21f3bc3f0a6e3f590520c51879b9a62a78c42435fd0a7ee9e876d47a7d3d5c48a659aedc18fa0835fd59164773073ed30ed1167648771b98f540 |
24 |
EBUILD libselinux-2.7_rc1.ebuild 4508 SHA256 8273a5a82155cdc299135f00250410047e81a4941c900d96802f6107718a81c5 SHA512 c5afe914323f99c45cdd5058c45754231c8d1d29a17a4ac4046d99c6697fac6366ea4fac854f64c849edc15a74525ef2d8c34826957048a35eb455253ab5caa5 WHIRLPOOL 2ed67afde472c91f9397a3a21ff19652c32e03e746619c542202afe99e51e5ab17833b6e7b62d0020f7a3249c27c1e667126510217578ec9a97c6995a6cdc0e6 |
25 |
EBUILD libselinux-2.7_rc4.ebuild 4508 SHA256 0dbd2576be8d3e485d0fd5c312fa786e673258c06eaee5cf3b1d1a1544feb394 SHA512 ea38b6042023e2993958e3634733549a58f935cc77853a7443b5d5d948f8becbbd3d5aabfedad12bc9c3f51bbc80be9462a276397371cbb91137c96ed40ab82a WHIRLPOOL 706f99fb0c39dee6785009208a44e2d9409f267021cabf1393604a4f3f165c23a312f7dc83dc2646e97a9442a6925667de8664a12515ede3c5044eff29f0d30e |
26 |
+EBUILD libselinux-2.7_rc5.ebuild 4508 SHA256 0044e655fea9123afcb9e03769ebaccedf969365a83324540c069886075591a4 SHA512 3d1633ad5ffc75178c8053cc70b946f6837cc9336e451c18788b9f22d2eea2a10712a2d6ea11a42d1bc03bdd372899a0942d879c74ae4970f35b2cc52b40a9b5 WHIRLPOOL fe4362ec75da5187f2139c7b562fac2235625771a0ecf959e9bcd463dd8c1d79d95dc1d7c06c6b80231554dcb44b1fb1ea1cd65cf9140c8a6205810829f0d1c6 |
27 |
MISC metadata.xml 676 SHA256 288211da34dc4cabaeaa85c52462c3ad2792347abbf88f78eae812a4e3dc8c8c SHA512 7b33e0d113637a129a7894d8720feb9024d67466b86d475fbc3398f514b2ecc28c70dc759952376208d2022a00658eb120fc3561edbb9c7ecdc4404bed5f57a7 WHIRLPOOL bd4938862e3ec119c1da448d5bc8c99a6063704a65c8a906514f5160adf65851af64c6a1c4626e97438e9f4a7288ef002b06a876b9d73e67d70e38ca31cc1319 |
28 |
|
29 |
diff --git a/sys-libs/libselinux/libselinux-2.7_rc5.ebuild b/sys-libs/libselinux/libselinux-2.7_rc5.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..f263966 |
32 |
--- /dev/null |
33 |
+++ b/sys-libs/libselinux/libselinux-2.7_rc5.ebuild |
34 |
@@ -0,0 +1,160 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI="6" |
39 |
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) |
40 |
+USE_RUBY="ruby21 ruby22 ruby23" |
41 |
+ |
42 |
+# No, I am not calling ruby-ng |
43 |
+inherit multilib python-r1 toolchain-funcs multilib-minimal |
44 |
+ |
45 |
+MY_P="${P//_/-}" |
46 |
+SEPOL_VER="${PV}" |
47 |
+MY_RELEASEDATE="20170718" |
48 |
+ |
49 |
+DESCRIPTION="SELinux userland library" |
50 |
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
51 |
+ |
52 |
+if [[ ${PV} == 9999 ]] ; then |
53 |
+ inherit git-r3 |
54 |
+ EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git" |
55 |
+ S="${WORKDIR}/${MY_P}/${PN}" |
56 |
+else |
57 |
+ SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz" |
58 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" |
59 |
+ S="${WORKDIR}/${MY_P}" |
60 |
+fi |
61 |
+ |
62 |
+LICENSE="public-domain" |
63 |
+SLOT="0" |
64 |
+IUSE="pcre2 python ruby static-libs ruby_targets_ruby21 ruby_targets_ruby22 ruby_targets_ruby23" |
65 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
66 |
+ |
67 |
+RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}:=[${MULTILIB_USEDEP}] |
68 |
+ !pcre2? ( >=dev-libs/libpcre-8.33-r1:=[static-libs?,${MULTILIB_USEDEP}] ) |
69 |
+ pcre2? ( dev-libs/libpcre2:=[static-libs?,${MULTILIB_USEDEP}] ) |
70 |
+ python? ( ${PYTHON_DEPS} ) |
71 |
+ ruby? ( |
72 |
+ ruby_targets_ruby21? ( dev-lang/ruby:2.1 ) |
73 |
+ ruby_targets_ruby22? ( dev-lang/ruby:2.2 ) |
74 |
+ ruby_targets_ruby23? ( dev-lang/ruby:2.3 ) |
75 |
+ ) |
76 |
+ elibc_musl? ( sys-libs/fts-standalone )" |
77 |
+DEPEND="${RDEPEND} |
78 |
+ virtual/pkgconfig |
79 |
+ python? ( >=dev-lang/swig-2.0.9 )" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ if [[ ${PV} != 9999 ]] ; then |
83 |
+ # If needed for live builds, place them in /etc/portage/patches |
84 |
+ eapply "${FILESDIR}/libselinux-2.7-fts_ldlibs.patch" |
85 |
+ fi |
86 |
+ |
87 |
+ eapply_user |
88 |
+ |
89 |
+ multilib_copy_sources |
90 |
+} |
91 |
+ |
92 |
+multilib_src_compile() { |
93 |
+ tc-export AR CC PKG_CONFIG RANLIB |
94 |
+ |
95 |
+ emake \ |
96 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
97 |
+ SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
98 |
+ LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
99 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
100 |
+ FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \ |
101 |
+ all |
102 |
+ |
103 |
+ if multilib_is_native_abi && use python; then |
104 |
+ building() { |
105 |
+ emake \ |
106 |
+ LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
107 |
+ FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \ |
108 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
109 |
+ SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
110 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
111 |
+ pywrap |
112 |
+ } |
113 |
+ python_foreach_impl building |
114 |
+ fi |
115 |
+ |
116 |
+ if multilib_is_native_abi && use ruby; then |
117 |
+ building() { |
118 |
+ einfo "Calling rubywrap for ${1}" |
119 |
+ # Clean up .lo file to force rebuild |
120 |
+ rm -f src/selinuxswig_ruby_wrap.lo || die |
121 |
+ emake \ |
122 |
+ RUBY=${1} \ |
123 |
+ LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
124 |
+ FTS_LDLIBS="$(usex elibc_musl '-lfts' '')" \ |
125 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
126 |
+ SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
127 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
128 |
+ rubywrap |
129 |
+ } |
130 |
+ for RUBYTARGET in ${USE_RUBY}; do |
131 |
+ use ruby_targets_${RUBYTARGET} || continue |
132 |
+ |
133 |
+ building ${RUBYTARGET} |
134 |
+ done |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+multilib_src_install() { |
139 |
+ emake DESTDIR="${D}" \ |
140 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
141 |
+ SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
142 |
+ LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \ |
143 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
144 |
+ install |
145 |
+ |
146 |
+ if multilib_is_native_abi && use python; then |
147 |
+ installation() { |
148 |
+ emake DESTDIR="${D}" \ |
149 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
150 |
+ LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \ |
151 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
152 |
+ install-pywrap |
153 |
+ python_optimize # bug 531638 |
154 |
+ } |
155 |
+ python_foreach_impl installation |
156 |
+ fi |
157 |
+ |
158 |
+ if multilib_is_native_abi && use ruby; then |
159 |
+ installation() { |
160 |
+ einfo "Calling install-rubywrap for ${1}" |
161 |
+ # Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions |
162 |
+ rm src/selinuxswig_ruby_wrap.lo |
163 |
+ emake DESTDIR="${D}" \ |
164 |
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
165 |
+ LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \ |
166 |
+ RUBY=${1} \ |
167 |
+ USE_PCRE2="$(usex pcre2 y n)" \ |
168 |
+ install-rubywrap |
169 |
+ } |
170 |
+ for RUBYTARGET in ${USE_RUBY}; do |
171 |
+ use ruby_targets_${RUBYTARGET} || continue |
172 |
+ |
173 |
+ installation ${RUBYTARGET} |
174 |
+ done |
175 |
+ fi |
176 |
+ |
177 |
+ use static-libs || rm "${D}"/usr/lib*/*.a || die |
178 |
+} |
179 |
+ |
180 |
+pkg_postinst() { |
181 |
+ # Fix bug 473502 |
182 |
+ for POLTYPE in ${POLICY_TYPES}; |
183 |
+ do |
184 |
+ mkdir -p /etc/selinux/${POLTYPE}/contexts/files || die |
185 |
+ touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local || die |
186 |
+ # Fix bug 516608 |
187 |
+ for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do |
188 |
+ if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then |
189 |
+ sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \ |
190 |
+ || die "Failed to recompile contexts" |
191 |
+ fi |
192 |
+ done |
193 |
+ done |
194 |
+} |