Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/util-linux: util-linux-2.24.1-r3.ebuild ChangeLog
Date: Fri, 02 May 2014 10:04:12
Message-Id: 20140502100408.823692004C@flycatcher.gentoo.org
1 mgorny 14/05/02 10:04:08
2
3 Modified: ChangeLog
4 Added: util-linux-2.24.1-r3.ebuild
5 Log:
6 Introduce multilib support, bug #490968.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.458 sys-apps/util-linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.458&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.458&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.457&r2=1.458
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
20 retrieving revision 1.457
21 retrieving revision 1.458
22 diff -u -r1.457 -r1.458
23 --- ChangeLog 27 Apr 2014 21:07:00 -0000 1.457
24 +++ ChangeLog 2 May 2014 10:04:08 -0000 1.458
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/util-linux
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.457 2014/04/27 21:07:00 floppym Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.458 2014/05/02 10:04:08 mgorny Exp $
30 +
31 +*util-linux-2.24.1-r3 (02 May 2014)
32 +
33 + 02 May 2014; Michał Górny <mgorny@g.o> +util-linux-2.24.1-r3.ebuild:
34 + Introduce multilib support, bug #490968.
35
36 27 Apr 2014; Mike Gilbert <floppym@g.o> util-linux-2.24.1-r2.ebuild,
37 util-linux-9999.ebuild:
38
39
40
41 1.1 sys-apps/util-linux/util-linux-2.24.1-r3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.24.1-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.24.1-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: util-linux-2.24.1-r3.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-apps/util-linux/util-linux-2.24.1-r3.ebuild,v 1.1 2014/05/02 10:04:08 mgorny Exp $
51
52 EAPI="4"
53
54 PYTHON_COMPAT=( python2_7 python3_{2,3,4} )
55
56 inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
57 python-single-r1 multilib-minimal
58
59 MY_PV=${PV/_/-}
60 MY_P=${PN}-${MY_PV}
61
62 if [[ ${PV} == 9999 ]] ; then
63 inherit git-2 autotools
64 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
65 else
66 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
67 SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
68 fi
69
70 DESCRIPTION="Various useful Linux utilities"
71 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
72
73 LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
74 SLOT="0"
75 IUSE="bash-completion caps +cramfs cytune fdformat ncurses nls pam python selinux slang static-libs +suid test tty-helpers udev unicode"
76
77 RDEPEND="!sys-process/schedutils
78 !sys-apps/setarch
79 !<sys-apps/sysvinit-2.88-r7
80 !sys-block/eject
81 !<sys-libs/e2fsprogs-libs-1.41.8
82 !<sys-fs/e2fsprogs-1.41.8
83 !<app-shells/bash-completion-1.3-r2
84 caps? ( sys-libs/libcap-ng )
85 cramfs? ( sys-libs/zlib )
86 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
87 pam? ( sys-libs/pam )
88 python? ( ${PYTHON_DEPS} )
89 selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
90 slang? ( sys-libs/slang )
91 udev? ( virtual/udev )
92 abi_x86_32? (
93 !<=app-emulation/emul-linux-x86-baselibs-20140406-r2
94 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
95 )"
96 DEPEND="${RDEPEND}
97 virtual/pkgconfig
98 nls? ( sys-devel/gettext )
99 test? ( sys-devel/bc )
100 virtual/os-headers"
101
102 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
103
104 S=${WORKDIR}/${MY_P}
105
106 pkg_setup() {
107 use python && python-single-r1_pkg_setup
108 }
109
110 src_prepare() {
111 if [[ ${PV} == 9999 ]] ; then
112 po/update-potfiles
113 eautoreconf
114 fi
115 epatch "${FILESDIR}"/${PN}-2.24-skip-last-tests.patch #491742
116 epatch "${FILESDIR}"/${PN}-2.24-last-tests.patch #501408
117 find tests/ -name bigyear -delete #489794
118 elibtoolize
119 }
120
121 lfs_fallocate_test() {
122 # Make sure we can use fallocate with LFS #300307
123 cat <<-EOF > "${T}"/fallocate.${ABI}.c
124 #define _GNU_SOURCE
125 #include <fcntl.h>
126 main() { return fallocate(0, 0, 0, 0); }
127 EOF
128 append-lfs-flags
129 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.${ABI}.c -o /dev/null >/dev/null 2>&1 \
130 || export ac_cv_func_fallocate=no
131 rm -f "${T}"/fallocate.${ABI}.c
132 }
133
134 multilib_src_configure() {
135 lfs_fallocate_test
136 export ac_cv_header_security_pam_misc_h=$(multilib_native_usex pam) #485486
137 ECONF_SOURCE=${S} \
138 econf \
139 --docdir="/usr/share/doc/${PF}" \
140 --enable-fs-paths-extra=/usr/sbin:/bin:/usr/bin \
141 $(multilib_native_use_enable nls) \
142 --enable-agetty \
143 --with-bashcompletiondir="$(get_bashcompdir)" \
144 $(multilib_native_use_enable bash-completion) \
145 $(multilib_native_use_enable caps setpriv) \
146 $(multilib_native_use_enable cramfs) \
147 $(multilib_native_use_enable cytune) \
148 $(multilib_native_use_enable fdformat) \
149 --with-ncurses=$(multilib_native_usex ncurses $(usex unicode auto yes) no) \
150 --disable-kill \
151 --disable-login \
152 $(multilib_native_use_enable tty-helpers mesg) \
153 --disable-nologin \
154 --enable-partx \
155 $(multilib_native_use_with python) \
156 --enable-raw \
157 --enable-rename \
158 --disable-reset \
159 --enable-schedutils \
160 --disable-su \
161 $(multilib_native_use_enable tty-helpers wall) \
162 $(multilib_native_use_enable tty-helpers write) \
163 $(multilib_native_use_enable suid makeinstall-chown) \
164 $(multilib_native_use_enable suid makeinstall-setuid) \
165 $(use_with selinux) \
166 $(multilib_native_use_with slang) \
167 $(use_enable static-libs static) \
168 $(multilib_native_use_with udev) \
169 $(tc-has-tls || echo --disable-tls)
170 }
171
172 multilib_src_compile() {
173 if multilib_is_native_abi; then
174 default
175 else
176 # build libraries only
177 emake -f Makefile -f - mylibs \
178 <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
179 fi
180 }
181
182 multilib_src_test() {
183 multilib_is_native_abi && emake check
184 }
185
186 multilib_src_install() {
187 if multilib_is_native_abi; then
188 default
189 else
190 emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
191 install-pkgconfigDATA install-uuidincHEADERS \
192 install-nodist_blkidincHEADERS install-nodist_mountincHEADERS
193 fi
194
195 if multilib_is_native_abi; then
196 # need the libs in /
197 gen_usr_ldscript -a blkid mount uuid
198
199 use python && python_optimize
200 fi
201 }
202
203 multilib_src_install_all() {
204 dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
205
206 # e2fsprogs-libs didnt install .la files, and .pc work fine
207 prune_libtool_files
208 }
209
210 pkg_postinst() {
211 if ! use tty-helpers; then
212 elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
213 fi
214
215 if [[ -z ${REPLACING_VERSIONS} ]]; then
216 elog "The agetty util now clears the terminal by default. You"
217 elog "might want to add --noclear to your /etc/inittab lines."
218 fi
219 }