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: ChangeLog libselinux-2.2.2-r1.ebuild
Date: Sun, 02 Feb 2014 15:38:12
Message-Id: 20140202153807.2A74B2004C@flycatcher.gentoo.org
1 swift 14/02/02 15:38:07
2
3 Modified: ChangeLog
4 Added: libselinux-2.2.2-r1.ebuild
5 Log:
6 Fix bug #480960 (multilib). Drop ruby for now (cannot get my head around it). Bump to upstream 2.2.2 release
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.110 sys-libs/libselinux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.110&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.110&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.109&r2=1.110
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
20 retrieving revision 1.109
21 retrieving revision 1.110
22 diff -u -r1.109 -r1.110
23 --- ChangeLog 2 Feb 2014 09:17:09 -0000 1.109
24 +++ ChangeLog 2 Feb 2014 15:38:07 -0000 1.110
25 @@ -1,6 +1,12 @@
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.109 2014/02/02 09:17:09 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.110 2014/02/02 15:38:07 swift Exp $
30 +
31 +*libselinux-2.2.2-r1 (02 Feb 2014)
32 +
33 + 02 Feb 2014; Sven Vermeulen <swift@g.o> +libselinux-2.2.2-r1.ebuild:
34 + Fix bug #480960 (multilib support). Drop ruby eclass as it messes with
35 + defaults and I do not understand it. Bump to 2.2.2 release
36
37 02 Feb 2014; Sven Vermeulen <swift@g.o> libselinux-2.2.1-r1.ebuild:
38 Support python 3.3, see bug 499604
39
40
41
42 1.1 sys-libs/libselinux/libselinux-2.2.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libselinux-2.2.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.2.2-r1.ebuild,v 1.1 2014/02/02 15:38:07 swift Exp $
52
53 EAPI="5"
54 PYTHON_COMPAT=( python2_7 python3_2 python3_3 )
55
56 inherit multilib python-r1 toolchain-funcs eutils multilib-minimal
57
58 SEPOL_VER="2.2"
59
60 DESCRIPTION="SELinux userland library"
61 HOMEPAGE="http://userspace.selinuxproject.org"
62 SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz
63 http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r1.tar.gz"
64
65 LICENSE="public-domain"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="python static-libs"
69
70 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
71 >=dev-libs/libpcre-8.30-r2[static-libs?]
72 python? ( ${PYTHON_DEPS} )"
73 DEPEND="${RDEPEND}
74 virtual/pkgconfig
75 python? ( >=dev-lang/swig-2.0.9 )"
76
77 src_prepare() {
78 EPATCH_MULTI_MSG="Applying libselinux patches ... " \
79 EPATCH_SUFFIX="patch" \
80 EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
81 EPATCH_FORCE="yes" \
82 epatch
83
84 epatch_user
85
86 multilib_copy_sources
87 }
88
89 multilib_src_compile() {
90 tc-export RANLIB
91
92 emake \
93 AR="$(tc-getAR)" \
94 CC="$(tc-getCC)" \
95 LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" all
96
97 if multilib_is_native_abi && use python; then
98 building() {
99 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
100 emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLIBDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" pywrap
101 }
102 python_foreach_impl building
103 fi
104 }
105
106 multilib_src_install() {
107 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
108 emake DESTDIR="${D}" install
109
110 if multilib_is_native_abi && use python; then
111 installation() {
112 emake DESTDIR="${D}" install-pywrap
113 }
114 python_foreach_impl installation
115 fi
116
117 use static-libs || rm "${D}"/usr/lib*/*.a
118 }
119
120 pkg_postinst() {
121 # Fix bug 473502
122 for POLTYPE in ${POLICY_TYPES};
123 do
124 mkdir -p /etc/selinux/${POLTYPE}/contexts/files
125 touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local
126 done
127 }