Gentoo Archives: gentoo-commits

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