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/libsemanage: libsemanage-2.3-r1.ebuild ChangeLog
Date: Sun, 01 Jun 2014 12:21:21
Message-Id: 20140601122116.445692004E@flycatcher.gentoo.org
1 swift 14/06/01 12:21:16
2
3 Modified: ChangeLog
4 Added: libsemanage-2.3-r1.ebuild
5 Log:
6 Fixing multilib support (bug #506460) with thanks to Sven Eden. Package has dep on audit-2.2.2 which is p.masked so added same package to p.mask combo
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.69 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.69&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.69&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.68&r2=1.69
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.68
21 retrieving revision 1.69
22 diff -u -r1.68 -r1.69
23 --- ChangeLog 10 May 2014 14:01:27 -0000 1.68
24 +++ ChangeLog 1 Jun 2014 12:21:16 -0000 1.69
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/libsemanage
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.68 2014/05/10 14:01:27 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.69 2014/06/01 12:21:16 swift Exp $
30 +
31 +*libsemanage-2.3-r1 (01 Jun 2014)
32 +
33 + 01 Jun 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.3-r1.ebuild:
34 + Fixing multilib support (bug #506460) with thanks to Sven Eden. Package has
35 + dep on audit-2.2.2 which is p.masked so added same package to p.mask combo
36
37 10 May 2014; Sven Vermeulen <swift@g.o> -libsemanage-2.1.10.ebuild,
38 -libsemanage-2.2-r1.ebuild, -libsemanage-2.3_rc1.ebuild:
39
40
41
42 1.1 sys-libs/libsemanage/libsemanage-2.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libsemanage-2.3-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/libsemanage/libsemanage-2.3-r1.ebuild,v 1.1 2014/06/01 12:21:16 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 MY_P="${P//_/-}"
59
60 SEPOL_VER="2.3"
61 SELNX_VER="2.3"
62
63 DESCRIPTION="SELinux kernel and policy management library"
64 HOMEPAGE="http://userspace.selinuxproject.org"
65 SRC_URI="http://userspace.selinuxproject.org/releases/20140506/${MY_P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="python"
71
72 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
73 >=sys-libs/libselinux-${SELNX_VER}
74 sys-process/audit
75 abi_x86_32? (
76 !<dev-libs/ustr-1.0.4-r4
77 !dev-libs/ustr[-abi_x86_32(-)]
78 !<sys-process/audit-2.2.2-r2
79 )"
80 DEPEND="${RDEPEND}
81 sys-devel/bison
82 sys-devel/flex
83 python? (
84 >=dev-lang/swig-2.0.4-r1
85 virtual/pkgconfig
86 ${PYTHON_DEPS}
87 )"
88
89 # tests are not meant to be run outside of the
90 # full SELinux userland repo
91 RESTRICT="test"
92
93 S="${WORKDIR}/${MY_P}"
94
95 src_prepare() {
96 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
97 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
98 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
99 echo "save-linked=false" >> "${S}/src/semanage.conf"
100 echo >> "${S}/src/semanage.conf"
101 echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
102 echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
103 echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
104 echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
105 echo "# would catch." >> "${S}/src/semanage.conf"
106 echo "expand-check=1" >> "${S}/src/semanage.conf"
107 echo >> "${S}/src/semanage.conf"
108 echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
109 echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
110 echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf"
111 echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
112 echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
113 echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
114 echo >> "${S}/src/semanage.conf"
115 echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
116 echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
117 echo "bzip-small=true" >> "${S}/src/semanage.conf"
118
119 epatch_user
120
121 multilib_copy_sources
122 }
123
124 multilib_src_compile() {
125 building() {
126 emake \
127 AR="$(tc-getAR)" \
128 CC="$(tc-getCC)" \
129 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
130 SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \
131 "$@" || die
132 }
133
134 multilib_foreach_abi building all
135
136 if multilib_is_native_abi && use python; then
137 building_py() {
138 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
139 emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
140 }
141 python_foreach_impl building_py swigify
142 python_foreach_impl building_py pywrap
143 fi
144 }
145
146 multilib_src_install() {
147 installation() {
148 emake \
149 LIBDIR="${D}/${EPREFIX}/usr/$(get_libdir)" \
150 SHLIBDIR="${D}/${EPREFIX}/usr/$(get_libdir)" \
151 DESTDIR="${D}" "$@"
152 }
153
154 multilib_foreach_abi installation install
155
156 if multilib_is_native_abi && use python; then
157 installation_py() {
158 emake DESTDIR="${D}" install-pywrap
159 }
160 python_foreach_impl installation_py
161 fi
162 }