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.2-r2.ebuild ChangeLog
Date: Sun, 23 Mar 2014 19:29:38
Message-Id: 20140323192935.AF1542004F@flycatcher.gentoo.org
1 swift 14/03/23 19:29:35
2
3 Modified: ChangeLog
4 Added: libsemanage-2.2-r2.ebuild
5 Log:
6 Use PREFIX, not DESTDIR for SHLIBS call (bug #502078)
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.65 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 2 Feb 2014 17:05:58 -0000 1.64
24 +++ ChangeLog 23 Mar 2014 19:29:35 -0000 1.65
25 @@ -1,6 +1,11 @@
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.64 2014/02/02 17:05:58 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.65 2014/03/23 19:29:35 swift Exp $
30 +
31 +*libsemanage-2.2-r2 (23 Mar 2014)
32 +
33 + 23 Mar 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.2-r2.ebuild:
34 + Fix bug #502078 - have SHLIBS use PREFIX, not DESTDIR
35
36 02 Feb 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.2-r1.ebuild:
37 Support multilib
38
39
40
41 1.1 sys-libs/libsemanage/libsemanage-2.2-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libsemanage-2.2-r2.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/libsemanage/libsemanage-2.2-r2.ebuild,v 1.1 2014/03/23 19:29:35 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 SELNX_VER="2.2.2-r1"
59
60 DESCRIPTION="SELinux kernel and policy management library"
61 HOMEPAGE="http://userspace.selinuxproject.org"
62 SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="python"
68
69 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
70 >=sys-libs/libselinux-${SELNX_VER}
71 dev-libs/ustr
72 sys-process/audit"
73 DEPEND="${RDEPEND}
74 sys-devel/bison
75 sys-devel/flex
76 python? (
77 >=dev-lang/swig-2.0.4-r1
78 virtual/pkgconfig
79 ${PYTHON_DEPS}
80 )"
81
82 # tests are not meant to be run outside of the
83 # full SELinux userland repo
84 RESTRICT="test"
85
86 src_prepare() {
87 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
88 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
89 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
90 echo "save-linked=false" >> "${S}/src/semanage.conf"
91 echo >> "${S}/src/semanage.conf"
92 echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
93 echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
94 echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
95 echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
96 echo "# would catch." >> "${S}/src/semanage.conf"
97 echo "expand-check=1" >> "${S}/src/semanage.conf"
98 echo >> "${S}/src/semanage.conf"
99 echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
100 echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
101 echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf"
102 echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
103 echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
104 echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
105 echo >> "${S}/src/semanage.conf"
106 echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
107 echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
108 echo "bzip-small=true" >> "${S}/src/semanage.conf"
109
110 epatch_user
111
112 multilib_copy_sources
113 }
114
115 multilib_src_compile() {
116 emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
117
118 if multilib_is_native_abi && use python; then
119 building() {
120 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
121 emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
122 }
123 python_foreach_impl building swigify
124 python_foreach_impl building pywrap
125 fi
126 }
127
128 multilib_src_install() {
129 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(PREFIX)/$(get_libdir)" \
130 emake DESTDIR="${D}" install
131
132 if multilib_is_native_abi && use python; then
133 installation() {
134 emake DESTDIR="${D}" install-pywrap
135 }
136 python_foreach_impl installation
137 fi
138 }