Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/util-linux: util-linux-2.25.ebuild ChangeLog util-linux-2.23.2-r2.ebuild
Date: Fri, 01 Aug 2014 05:30:38
Message-Id: 20140801053032.325572004E@flycatcher.gentoo.org
1 polynomial-c 14/08/01 05:30:31
2
3 Modified: ChangeLog
4 Added: util-linux-2.25.ebuild
5 Removed: util-linux-2.23.2-r2.ebuild
6 Log:
7 Version bump (bug #518702). Removed old
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.475 sys-apps/util-linux/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.475&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.475&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.474&r2=1.475
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
21 retrieving revision 1.474
22 retrieving revision 1.475
23 diff -u -r1.474 -r1.475
24 --- ChangeLog 31 Jul 2014 20:56:53 -0000 1.474
25 +++ ChangeLog 1 Aug 2014 05:30:31 -0000 1.475
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-apps/util-linux
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.474 2014/07/31 20:56:53 ottxor Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.475 2014/08/01 05:30:31 polynomial-c Exp $
31 +
32 +*util-linux-2.25 (01 Aug 2014)
33 +
34 + 01 Aug 2014; Lars Wendler <polynomial-c@g.o>
35 + -util-linux-2.23.2-r2.ebuild, +util-linux-2.25.ebuild:
36 + Version bump (bug #518702). Removed old.
37
38 31 Jul 2014; Christoph Junghans <ottxor@g.o> util-linux-2.24.2.ebuild:
39 fixed prefix install
40
41
42
43 1.1 sys-apps/util-linux/util-linux-2.25.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.25.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.25.ebuild?rev=1.1&content-type=text/plain
47
48 Index: util-linux-2.25.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/util-linux-2.25.ebuild,v 1.1 2014/08/01 05:30:30 polynomial-c Exp $
53
54 EAPI="4"
55
56 PYTHON_COMPAT=( python2_7 python3_{2,3,4} )
57
58 inherit eutils toolchain-funcs libtool flag-o-matic bash-completion-r1 \
59 python-single-r1 multilib-minimal
60
61 MY_PV=${PV/_/-}
62 MY_P=${PN}-${MY_PV}
63
64 if [[ ${PV} == 9999 ]] ; then
65 inherit git-2 autotools
66 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
67 else
68 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
69 SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz"
70 fi
71
72 DESCRIPTION="Various useful Linux utilities"
73 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
74
75 LICENSE="GPL-2 LGPL-2.1 BSD-4 MIT public-domain"
76 SLOT="0"
77 IUSE="bash-completion caps +cramfs cytune fdformat ncurses nls pam python selinux slang static-libs +suid test tty-helpers udev unicode"
78
79 RDEPEND="!sys-process/schedutils
80 !sys-apps/setarch
81 !<sys-apps/sysvinit-2.88-r7
82 !sys-block/eject
83 !<sys-libs/e2fsprogs-libs-1.41.8
84 !<sys-fs/e2fsprogs-1.41.8
85 !<app-shells/bash-completion-1.3-r2
86 caps? ( sys-libs/libcap-ng )
87 cramfs? ( sys-libs/zlib )
88 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
89 pam? ( sys-libs/pam )
90 python? ( ${PYTHON_DEPS} )
91 selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
92 slang? ( sys-libs/slang )
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 if [[ ${PV} == 9999 ]] ; then
114 po/update-potfiles
115 eautoreconf
116 fi
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="${EPREFIX}/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 }