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.21.1.ebuild ChangeLog
Date: Fri, 30 Mar 2012 18:53:22
Message-Id: 20120330185306.A59312004B@flycatcher.gentoo.org
1 vapier 12/03/30 18:53:06
2
3 Modified: ChangeLog
4 Added: util-linux-2.21.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha95/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.374 sys-apps/util-linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.374&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.374&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.373&r2=1.374
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
20 retrieving revision 1.373
21 retrieving revision 1.374
22 diff -u -r1.373 -r1.374
23 --- ChangeLog 3 Mar 2012 15:31:19 -0000 1.373
24 +++ ChangeLog 30 Mar 2012 18:53:06 -0000 1.374
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/util-linux
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.373 2012/03/03 15:31:19 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.374 2012/03/30 18:53:06 vapier Exp $
30 +
31 +*util-linux-2.21.1 (30 Mar 2012)
32 +
33 + 30 Mar 2012; Mike Frysinger <vapier@g.o> +util-linux-2.21.1.ebuild:
34 + Version bump.
35
36 03 Mar 2012; Markus Meier <maekke@g.o> util-linux-2.20.1-r1.ebuild:
37 arm stable, bug #404179
38
39
40
41 1.1 sys-apps/util-linux/util-linux-2.21.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.21.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.21.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: util-linux-2.21.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.21.1.ebuild,v 1.1 2012/03/30 18:53:06 vapier Exp $
51
52 EAPI="3"
53
54 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
55 inherit eutils toolchain-funcs libtool flag-o-matic
56 [[ ${PV} == "9999" ]] && inherit git-2 autotools
57
58 MY_PV=${PV/_/-}
59 MY_P=${PN}-${MY_PV}
60 S=${WORKDIR}/${MY_P}
61
62 DESCRIPTION="Various useful Linux utilities"
63 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux/"
64 if [[ ${PV} == "9999" ]] ; then
65 SRC_URI=""
66 #KEYWORDS=""
67 else
68 SRC_URI="mirror://kernel/linux/utils/util-linux/v${PV:0:4}/${MY_P}.tar.xz
69 loop-aes? ( http://loop-aes.sourceforge.net/updates/util-linux-2.20-20110905.diff.bz2 )"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-linux"
71 fi
72
73 LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain"
74 SLOT="0"
75 IUSE="+cramfs crypt ddate loop-aes ncurses nls old-linux perl selinux slang static-libs uclibc unicode"
76
77 RDEPEND="!sys-process/schedutils
78 !sys-apps/setarch
79 !<sys-apps/sysvinit-2.88-r3
80 !<sys-libs/e2fsprogs-libs-1.41.8
81 !<sys-fs/e2fsprogs-1.41.8
82 cramfs? ( sys-libs/zlib )
83 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
84 perl? ( dev-lang/perl )
85 selinux? ( sys-libs/libselinux )
86 slang? ( sys-libs/slang )"
87 DEPEND="${RDEPEND}
88 nls? ( sys-devel/gettext )
89 virtual/os-headers"
90
91 src_prepare() {
92 if [[ ${PV} == "9999" ]] ; then
93 po/update-potfiles
94 autopoint --force
95 eautoreconf
96 else
97 use loop-aes && epatch "${WORKDIR}"/util-linux-*.diff
98 fi
99 use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c
100 elibtoolize
101 }
102
103 lfs_fallocate_test() {
104 # Make sure we can use fallocate with LFS #300307
105 cat <<-EOF > "${T}"/fallocate.c
106 #define _GNU_SOURCE
107 #include <fcntl.h>
108 main() { return fallocate(0, 0, 0, 0); }
109 EOF
110 append-lfs-flags
111 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
112 || export ac_cv_func_fallocate=no
113 rm -f "${T}"/fallocate.c
114 }
115
116 src_configure() {
117 lfs_fallocate_test
118 econf \
119 --enable-fs-paths-extra=/usr/sbin \
120 $(use_enable nls) \
121 --enable-agetty \
122 $(use_enable cramfs) \
123 $(use_enable ddate) \
124 $(use_enable old-linux elvtune) \
125 --with-ncurses=$(usex ncurses $(usex unicode auto yes) no) \
126 --disable-kill \
127 --disable-last \
128 --disable-mesg \
129 --enable-partx \
130 --enable-raw \
131 --enable-rename \
132 --disable-reset \
133 --disable-login-utils \
134 --enable-schedutils \
135 --disable-wall \
136 --enable-write \
137 $(use_with selinux) \
138 $(use_with slang) \
139 $(use_enable static-libs static) \
140 $(tc-has-tls || echo --disable-tls)
141 }
142
143 src_install() {
144 emake install DESTDIR="${D}" || die
145 dodoc AUTHORS NEWS README* Documentation/{TODO,*.txt}
146
147 if ! use perl ; then #284093
148 rm "${ED}"/usr/bin/chkdupexe || die
149 rm "${ED}"/usr/share/man/man1/chkdupexe.1 || die
150 fi
151
152 # need the libs in /
153 gen_usr_ldscript -a blkid mount uuid
154 # e2fsprogs-libs didnt install .la files, and .pc work fine
155 find "${ED}" -name '*.la' -delete
156
157 if use crypt ; then
158 newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die
159 newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die
160 fi
161 }
162
163 pkg_postinst() {
164 elog "The agetty util now clears the terminal by default. You"
165 elog "might want to add --noclear to your /etc/inittab lines."
166 }