Gentoo Archives: gentoo-commits

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libselinux: libselinux-2.2.2-r4.ebuild ChangeLog
Date: Sun, 23 Mar 2014 19:19:21
Message-Id: 20140323191917.AE46E2004F@flycatcher.gentoo.org
1 swift 14/03/23 19:19:17
2
3 Modified: ChangeLog
4 Added: libselinux-2.2.2-r4.ebuild
5 Log:
6 Fix bug #504832 - Do not dynamically link with libsepol, we use hidden symbols
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.114 sys-libs/libselinux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.114&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.114&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.113&r2=1.114
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
20 retrieving revision 1.113
21 retrieving revision 1.114
22 diff -u -r1.113 -r1.114
23 --- ChangeLog 8 Mar 2014 22:11:32 -0000 1.113
24 +++ ChangeLog 23 Mar 2014 19:19:17 -0000 1.114
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libselinux
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.113 2014/03/08 22:11:32 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.114 2014/03/23 19:19:17 swift Exp $
30 +
31 +*libselinux-2.2.2-r4 (23 Mar 2014)
32 +
33 + 23 Mar 2014; Sven Vermeulen <swift@g.o> +libselinux-2.2.2-r4.ebuild:
34 + Fix bug #504832 - audit2why.so failures due to dynamic linking
35
36 *libselinux-2.2.2-r3 (08 Mar 2014)
37
38
39
40
41 1.1 sys-libs/libselinux/libselinux-2.2.2-r4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libselinux-2.2.2-r4.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r4.ebuild,v 1.1 2014/03/23 19:19:17 swift Exp $
51
52 EAPI="5"
53 PYTHON_COMPAT=( python2_7 python3_2 python3_3 )
54
55 inherit multilib python-r1 toolchain-funcs eutils multilib-minimal
56
57 SEPOL_VER="2.2"
58
59 DESCRIPTION="SELinux userland library"
60 HOMEPAGE="http://userspace.selinuxproject.org"
61 SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz
62 http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r4.tar.gz"
63
64 LICENSE="public-domain"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="python static-libs"
68
69 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
70 >=dev-libs/libpcre-8.30-r2[static-libs?]
71 python? ( ${PYTHON_DEPS} )"
72 DEPEND="${RDEPEND}
73 virtual/pkgconfig
74 python? ( >=dev-lang/swig-2.0.9 )"
75
76 src_prepare() {
77 EPATCH_MULTI_MSG="Applying libselinux patches ... " \
78 EPATCH_SUFFIX="patch" \
79 EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
80 EPATCH_FORCE="yes" \
81 epatch
82
83 epatch_user
84
85 multilib_copy_sources
86 }
87
88 multilib_src_compile() {
89 tc-export PKG_CONFIG RANLIB
90 local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags)
91 local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs)
92 export PCRE_{CFLAGS,LIBS}
93
94 emake \
95 AR="$(tc-getAR)" \
96 CC="$(tc-getCC)" \
97 LIBDIR="\$(PREFIX)/$(get_libdir)" \
98 SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
99 LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
100 all
101
102 if multilib_is_native_abi && use python; then
103 building() {
104 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
105 emake \
106 CC="$(tc-getCC)" \
107 PYINC="-I${PYTHON_INCLUDEDIR}" \
108 PYTHONLIBDIR="${PYTHON_LIBPATH}" \
109 PYPREFIX="${EPYTHON##*/}" \
110 LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
111 pywrap
112 }
113 python_foreach_impl building
114 fi
115 }
116
117 multilib_src_install() {
118 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
119 emake DESTDIR="${D}" install
120
121 if multilib_is_native_abi && use python; then
122 installation() {
123 LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap
124 }
125 python_foreach_impl installation
126 fi
127
128 use static-libs || rm "${D}"/usr/lib*/*.a
129 }
130
131 pkg_postinst() {
132 # Fix bug 473502
133 for POLTYPE in ${POLICY_TYPES};
134 do
135 mkdir -p /etc/selinux/${POLTYPE}/contexts/files
136 touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local
137 done
138 }