Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-libs/libsepol/, sys-libs/libsepol/files/
Date: Mon, 13 Nov 2017 21:26:38
Message-Id: 1510608345.fb962988444456ac3314cf252513e16818286a57.lluixhi@gentoo
1 commit: fb962988444456ac3314cf252513e16818286a57
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 13 21:25:45 2017 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Mon Nov 13 21:25:45 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=fb962988
7
8 sys-libs/libsepol: cleanup
9
10 libsepol-2.7 builds fine.
11
12 sys-libs/libsepol/Manifest | 1 -
13 sys-libs/libsepol/files/libsepol-2.7-cdefs.patch | 102 -----------------------
14 sys-libs/libsepol/libsepol-2.7_rc1.ebuild | 50 -----------
15 3 files changed, 153 deletions(-)
16
17 diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest
18 index d6370f2..052ac19 100644
19 --- a/sys-libs/libsepol/Manifest
20 +++ b/sys-libs/libsepol/Manifest
21 @@ -1,2 +1 @@
22 DIST libsepol-2.6.tar.gz 442549 SHA256 d856d6506054f52abeaa3543ea2f2344595a3dc05d0d873ed7f724f7a16b1874 SHA512 17d007857634e3d581fcc9bafcbb75674a06e382bb258c2c6b3656c141d71493699c42b78c8e1917c628476aeb8ead73bb86e8ccf43d7ce59aa0b7884bea132a WHIRLPOOL c02b9dc9dcf13ce3f200293695565dec4a220f7a6b29c76121ba5a4f8c05fb347a034763f417927ed7b1952a4989a7738c9327dc47cd976410db695fd6e662ae
23 -DIST libsepol-2.7-rc1.tar.gz 471201 SHA256 a00523b53c6f96e5a811a0315b02db0f290b19c8f8376369216aaa08377dcbc6 SHA512 040107fdd03f36c5f8a02220f930c16256e93891d2e934f2b45ee29938809d72192efb5c59a900c2802f73cfd9670ff7758083544376ee5c58a992651e8ea12d WHIRLPOOL d75e046a5f7298503b837c65147ca970e243ea23d07c96f67090758fed4a058dfcfa98d711f25f7bec3fd65238faa78a16132e23efdd3df6aabcfe49a7a29f9e
24
25 diff --git a/sys-libs/libsepol/files/libsepol-2.7-cdefs.patch b/sys-libs/libsepol/files/libsepol-2.7-cdefs.patch
26 deleted file mode 100644
27 index 7f312d2..0000000
28 --- a/sys-libs/libsepol/files/libsepol-2.7-cdefs.patch
29 +++ /dev/null
30 @@ -1,102 +0,0 @@
31 -diff -Naur libsepol-2.7-rc1.orig/include/sepol/ibendport_record.h libsepol-2.7-rc1/include/sepol/ibendport_record.h
32 ---- libsepol-2.7-rc1.orig/include/sepol/ibendport_record.h 2017-06-13 10:21:05.311417509 -0700
33 -+++ libsepol-2.7-rc1/include/sepol/ibendport_record.h 2017-06-13 10:21:43.258706824 -0700
34 -@@ -4,9 +4,10 @@
35 - #include <stddef.h>
36 - #include <sepol/context_record.h>
37 - #include <sepol/handle.h>
38 --#include <sys/cdefs.h>
39 -
40 --__BEGIN_DECLS
41 -+#ifdef __cplusplus
42 -+extern "C" {
43 -+#endif
44 -
45 - struct sepol_ibendport;
46 - struct sepol_ibendport_key;
47 -@@ -64,5 +65,7 @@
48 -
49 - extern void sepol_ibendport_free(sepol_ibendport_t *ibendport);
50 -
51 --__END_DECLS
52 -+#ifdef __cplusplus
53 -+}
54 -+#endif
55 - #endif
56 -diff -Naur libsepol-2.7-rc1.orig/include/sepol/ibendports.h libsepol-2.7-rc1/include/sepol/ibendports.h
57 ---- libsepol-2.7-rc1.orig/include/sepol/ibendports.h 2017-06-13 10:21:05.311417509 -0700
58 -+++ libsepol-2.7-rc1/include/sepol/ibendports.h 2017-06-13 10:22:08.981902844 -0700
59 -@@ -4,9 +4,10 @@
60 - #include <sepol/handle.h>
61 - #include <sepol/policydb.h>
62 - #include <sepol/ibendport_record.h>
63 --#include <sys/cdefs.h>
64 -
65 --__BEGIN_DECLS
66 -+#ifdef __cplusplus
67 -+extern "C" {
68 -+#endif
69 -
70 - /* Return the number of ibendports */
71 - extern int sepol_ibendport_count(sepol_handle_t *handle,
72 -@@ -41,5 +42,7 @@
73 - int (*fn)(const sepol_ibendport_t *ibendport,
74 - void *fn_arg), void *arg);
75 -
76 --__END_DECLS
77 -+#ifdef __cplusplus
78 -+}
79 -+#endif
80 - #endif
81 -diff -Naur libsepol-2.7-rc1.orig/include/sepol/ibpkey_record.h libsepol-2.7-rc1/include/sepol/ibpkey_record.h
82 ---- libsepol-2.7-rc1.orig/include/sepol/ibpkey_record.h 2017-06-13 10:21:05.311417509 -0700
83 -+++ libsepol-2.7-rc1/include/sepol/ibpkey_record.h 2017-06-13 10:22:35.060090318 -0700
84 -@@ -5,11 +5,12 @@
85 - #include <stdint.h>
86 - #include <sepol/context_record.h>
87 - #include <sepol/handle.h>
88 --#include <sys/cdefs.h>
89 -
90 - #define INET6_ADDRLEN 16
91 -
92 --__BEGIN_DECLS
93 -+#ifdef __cplusplus
94 -+extern "C" {
95 -+#endif
96 -
97 - struct sepol_ibpkey;
98 - struct sepol_ibpkey_key;
99 -@@ -71,5 +72,7 @@
100 -
101 - extern void sepol_ibpkey_free(sepol_ibpkey_t *ibpkey);
102 -
103 --__END_DECLS
104 -+#ifdef __cplusplus
105 -+}
106 -+#endif
107 - #endif
108 -diff -Naur libsepol-2.7-rc1.orig/include/sepol/ibpkeys.h libsepol-2.7-rc1/include/sepol/ibpkeys.h
109 ---- libsepol-2.7-rc1.orig/include/sepol/ibpkeys.h 2017-06-13 10:21:05.311417509 -0700
110 -+++ libsepol-2.7-rc1/include/sepol/ibpkeys.h 2017-06-13 10:22:58.990257871 -0700
111 -@@ -4,9 +4,10 @@
112 - #include <sepol/handle.h>
113 - #include <sepol/policydb.h>
114 - #include <sepol/ibpkey_record.h>
115 --#include <sys/cdefs.h>
116 -
117 --__BEGIN_DECLS
118 -+#ifdef __cplusplus
119 -+extern "C" {
120 -+#endif
121 -
122 - /* Return the number of ibpkeys */
123 - extern int sepol_ibpkey_count(sepol_handle_t *handle,
124 -@@ -40,5 +41,7 @@
125 - int (*fn)(const sepol_ibpkey_t *ibpkey,
126 - void *fn_arg), void *arg);
127 -
128 --__END_DECLS
129 -+#ifdef __cplusplus
130 -+}
131 -+#endif
132 - #endif
133
134 diff --git a/sys-libs/libsepol/libsepol-2.7_rc1.ebuild b/sys-libs/libsepol/libsepol-2.7_rc1.ebuild
135 deleted file mode 100644
136 index c296999..0000000
137 --- a/sys-libs/libsepol/libsepol-2.7_rc1.ebuild
138 +++ /dev/null
139 @@ -1,50 +0,0 @@
140 -# Copyright 1999-2017 Gentoo Foundation
141 -# Distributed under the terms of the GNU General Public License v2
142 -
143 -EAPI="6"
144 -
145 -inherit multilib toolchain-funcs multilib-minimal
146 -
147 -MY_P="${P//_/-}"
148 -MY_RELEASEDATE="20170609"
149 -
150 -DESCRIPTION="SELinux binary policy representation library"
151 -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
152 -
153 -if [[ ${PV} == 9999 ]]; then
154 - inherit git-r3
155 - EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
156 - S="${WORKDIR}/${MY_P}/${PN}"
157 -else
158 - SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
159 - KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
160 - S="${WORKDIR}/${MY_P}"
161 -fi
162 -
163 -LICENSE="GPL-2"
164 -SLOT="0"
165 -IUSE=""
166 -
167 -DEPEND=""
168 -RDEPEND=""
169 -
170 -PATCHES=( "${FILESDIR}"/${PN}-2.7-cdefs.patch )
171 -
172 -# tests are not meant to be run outside of the full SELinux userland repo
173 -RESTRICT="test"
174 -
175 -src_prepare() {
176 - default
177 - multilib_copy_sources
178 -}
179 -
180 -multilib_src_compile() {
181 - tc-export RANLIB;
182 - LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
183 - emake AR="$(tc-getAR)" CC="$(tc-getCC)"
184 -}
185 -
186 -multilib_src_install() {
187 - LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
188 - emake DESTDIR="${D}" install
189 -}