Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/util-linux: util-linux-2.25.2-r1.ebuild ChangeLog
Date: Fri, 02 Jan 2015 12:21:11
Message-Id: 20150102122108.6E1C2EB5D@oystercatcher.gentoo.org
1 pacho 15/01/02 12:21:08
2
3 Modified: ChangeLog
4 Added: util-linux-2.25.2-r1.ebuild
5 Log:
6 Prevent automagic dependency on systemd (#533726 by nzqr)
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.487 sys-apps/util-linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.487&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.487&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.486&r2=1.487
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
20 retrieving revision 1.486
21 retrieving revision 1.487
22 diff -u -r1.486 -r1.487
23 --- ChangeLog 24 Oct 2014 16:27:07 -0000 1.486
24 +++ ChangeLog 2 Jan 2015 12:21:08 -0000 1.487
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.486 2014/10/24 16:27:07 vapier Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.487 2015/01/02 12:21:08 pacho Exp $
31 +
32 +*util-linux-2.25.2-r1 (02 Jan 2015)
33 +
34 + 02 Jan 2015; Pacho Ramos <pacho@g.o> +util-linux-2.25.2-r1.ebuild:
35 + Prevent automagic dependency on systemd (#533726 by nzqr)
36
37 *util-linux-2.25.2 (24 Oct 2014)
38
39
40
41
42 1.1 sys-apps/util-linux/util-linux-2.25.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.25.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.25.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: util-linux-2.25.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.25.2-r1.ebuild,v 1.1 2015/01/02 12:21:08 pacho Exp $
52
53 EAPI="4"
54
55 PYTHON_COMPAT=( python2_7 python3_{2,3,4} )
56
57 inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
58 python-single-r1 multilib-minimal systemd
59
60 MY_PV=${PV/_/-}
61 MY_P=${PN}-${MY_PV}
62
63 if [[ ${PV} == 9999 ]] ; then
64 inherit git-2 autotools
65 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
66 else
67 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
68 SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
69 fi
70
71 DESCRIPTION="Various useful Linux utilities"
72 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
73
74 LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
75 SLOT="0"
76 IUSE="caps +cramfs fdformat ncurses nls pam python selinux slang static-libs +suid systemd test tty-helpers udev unicode"
77
78 RDEPEND="!sys-process/schedutils
79 !sys-apps/setarch
80 !<sys-apps/sysvinit-2.88-r7
81 !sys-block/eject
82 !<sys-libs/e2fsprogs-libs-1.41.8
83 !<sys-fs/e2fsprogs-1.41.8
84 !<app-shells/bash-completion-1.3-r2
85 caps? ( sys-libs/libcap-ng )
86 cramfs? ( sys-libs/zlib )
87 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
88 pam? ( sys-libs/pam )
89 python? ( ${PYTHON_DEPS} )
90 selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
91 slang? ( sys-libs/slang )
92 systemd? ( sys-apps/systemd )
93 udev? ( virtual/udev )
94 abi_x86_32? (
95 !<=app-emulation/emul-linux-x86-baselibs-20140406-r2
96 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
97 )"
98 DEPEND="${RDEPEND}
99 virtual/pkgconfig
100 nls? ( sys-devel/gettext )
101 test? ( sys-devel/bc )
102 virtual/os-headers"
103
104 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
105
106 S=${WORKDIR}/${MY_P}
107
108 pkg_setup() {
109 use python && python-single-r1_pkg_setup
110 }
111
112 src_prepare() {
113 epatch "${FILESDIR}"/${P}-runuser-bash-completion.patch #522288
114 if [[ ${PV} == 9999 ]] ; then
115 po/update-potfiles
116 eautoreconf
117 fi
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 # We manually set --libdir to the default since on prefix, econf will set it to
138 # a value which the configure script does not recognize. This makes it set the
139 # usrlib_execdir to a bad value. bug #518898#c2, fixed upstream for >2.25
140 ECONF_SOURCE=${S} \
141 econf \
142 --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" \
143 --libdir='${prefix}/'"$(get_libdir)" \
144 $(multilib_native_use_enable nls) \
145 --enable-agetty \
146 --with-bashcompletiondir="$(get_bashcompdir)" \
147 --enable-bash-completion \
148 $(multilib_native_use_enable caps setpriv) \
149 --disable-chfn-chsh \
150 $(multilib_native_use_enable cramfs) \
151 $(multilib_native_use_enable fdformat) \
152 --with-ncurses=$(multilib_native_usex ncurses $(usex unicode auto yes) no) \
153 --disable-kill \
154 --disable-login \
155 $(multilib_native_use_enable tty-helpers mesg) \
156 --disable-nologin \
157 --enable-partx \
158 $(multilib_native_use_with python) \
159 --enable-raw \
160 --enable-rename \
161 --disable-reset \
162 --enable-schedutils \
163 --disable-su \
164 $(multilib_native_use_enable tty-helpers wall) \
165 $(multilib_native_use_enable tty-helpers write) \
166 $(multilib_native_use_enable suid makeinstall-chown) \
167 $(multilib_native_use_enable suid makeinstall-setuid) \
168 $(use_with selinux) \
169 $(multilib_native_use_with slang) \
170 $(use_enable static-libs static) \
171 $(multilib_native_use_with systemd) \
172 --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_unitdir)" "no") \
173 $(multilib_native_use_with udev) \
174 $(tc-has-tls || echo --disable-tls)
175 }
176
177 multilib_src_compile() {
178 if multilib_is_native_abi; then
179 default
180 else
181 # build libraries only
182 emake -f Makefile -f - mylibs \
183 <<< 'mylibs: $(usrlib_exec_LTLIBRARIES) $(pkgconfig_DATA)'
184 fi
185 }
186
187 multilib_src_test() {
188 multilib_is_native_abi && emake check
189 }
190
191 multilib_src_install() {
192 if multilib_is_native_abi; then
193 default
194 else
195 emake DESTDIR="${D}" install-usrlib_execLTLIBRARIES \
196 install-pkgconfigDATA install-uuidincHEADERS \
197 install-nodist_blkidincHEADERS install-nodist_mountincHEADERS \
198 install-nodist_smartcolsincHEADERS
199 fi
200
201 if multilib_is_native_abi; then
202 # need the libs in /
203 gen_usr_ldscript -a blkid mount smartcols uuid
204
205 use python && python_optimize
206 fi
207 }
208
209 multilib_src_install_all() {
210 dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt,releases/*}
211
212 # e2fsprogs-libs didnt install .la files, and .pc work fine
213 prune_libtool_files
214 }
215
216 pkg_postinst() {
217 if ! use tty-helpers; then
218 elog "The mesg/wall/write tools have been disabled due to USE=-tty-helpers."
219 fi
220
221 if [[ -z ${REPLACING_VERSIONS} ]]; then
222 elog "The agetty util now clears the terminal by default. You"
223 elog "might want to add --noclear to your /etc/inittab lines."
224 fi
225 }