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: ChangeLog util-linux-2.19.1.ebuild
Date: Mon, 02 May 2011 21:12:40
Message-Id: 20110502211230.C99F620054@flycatcher.gentoo.org
1 vapier 11/05/02 21:12:30
2
3 Modified: ChangeLog
4 Added: util-linux-2.19.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.336 sys-apps/util-linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.336&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?rev=1.336&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/ChangeLog?r1=1.335&r2=1.336
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v
20 retrieving revision 1.335
21 retrieving revision 1.336
22 diff -u -r1.335 -r1.336
23 --- ChangeLog 7 Apr 2011 05:18:20 -0000 1.335
24 +++ ChangeLog 2 May 2011 21:12:30 -0000 1.336
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/util-linux
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.335 2011/04/07 05:18:20 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/util-linux/ChangeLog,v 1.336 2011/05/02 21:12:30 vapier Exp $
30 +
31 +*util-linux-2.19.1 (02 May 2011)
32 +
33 + 02 May 2011; Mike Frysinger <vapier@g.o> +util-linux-2.19.1.ebuild:
34 + Version bump.
35
36 07 Apr 2011; Mike Frysinger <vapier@g.o> util-linux-2.19.ebuild,
37 util-linux-9999.ebuild:
38
39
40
41 1.1 sys-apps/util-linux/util-linux-2.19.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.19.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/util-linux/util-linux-2.19.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: util-linux-2.19.1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.19.1.ebuild,v 1.1 2011/05/02 21:12:30 vapier Exp $
51
52 EAPI="2"
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 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.bz2"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
70 fi
71
72 LICENSE="GPL-2"
73 SLOT="0"
74 IUSE="+cramfs crypt ncurses nls old-linux perl selinux slang uclibc unicode"
75
76 RDEPEND="!sys-process/schedutils
77 !sys-apps/setarch
78 !<sys-libs/e2fsprogs-libs-1.41.8
79 !<sys-fs/e2fsprogs-1.41.8
80 cramfs? ( sys-libs/zlib )
81 ncurses? ( >=sys-libs/ncurses-5.2-r2 )
82 perl? ( dev-lang/perl )
83 selinux? ( sys-libs/libselinux )
84 slang? ( sys-libs/slang )"
85 DEPEND="${RDEPEND}
86 nls? ( sys-devel/gettext )
87 virtual/os-headers"
88
89 src_prepare() {
90 if [[ ${PV} == "9999" ]] ; then
91 autopoint --force
92 eautoreconf
93 fi
94 use uclibc && sed -i -e s/versionsort/alphasort/g -e s/strverscmp.h/dirent.h/g mount/lomount.c
95 elibtoolize
96 }
97
98 lfs_fallocate_test() {
99 # Make sure we can use fallocate with LFS #300307
100 cat <<-EOF > "${T}"/fallocate.c
101 #define _GNU_SOURCE
102 #include <fcntl.h>
103 main() { return fallocate(0, 0, 0, 0); }
104 EOF
105 append-lfs-flags
106 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} "${T}"/fallocate.c -o /dev/null >/dev/null 2>&1 \
107 || export ac_cv_func_fallocate=no
108 rm -f "${T}"/fallocate.c
109 }
110
111 usex() { use $1 && echo ${2:-yes} || echo ${3:-no} ; }
112 src_configure() {
113 lfs_fallocate_test
114 econf \
115 --enable-fs-paths-extra=/usr/sbin \
116 $(use_enable nls) \
117 --enable-agetty \
118 $(use_enable cramfs) \
119 $(use_enable old-linux elvtune) \
120 --with-ncurses=$(usex ncurses $(usex unicode auto yes) no) \
121 --disable-init \
122 --disable-kill \
123 --disable-last \
124 --disable-mesg \
125 --enable-partx \
126 --enable-raw \
127 --enable-rename \
128 --disable-reset \
129 --disable-login-utils \
130 --enable-schedutils \
131 --disable-wall \
132 --enable-write \
133 --without-pam \
134 $(use_with selinux) \
135 $(use_with slang) \
136 $(tc-has-tls || echo --disable-tls)
137 }
138
139 src_install() {
140 emake install DESTDIR="${D}" || die "install failed"
141 dodoc AUTHORS NEWS README* TODO docs/*
142
143 if ! use perl ; then #284093
144 rm "${D}"/usr/bin/chkdupexe || die
145 rm "${D}"/usr/share/man/man1/chkdupexe.1 || die
146 fi
147
148 # need the libs in /
149 gen_usr_ldscript -a blkid uuid
150 # e2fsprogs-libs didnt install .la files, and .pc work fine
151 rm -f "${D}"/usr/$(get_libdir)/*.la
152
153 if use crypt ; then
154 newinitd "${FILESDIR}"/crypto-loop.initd crypto-loop || die
155 newconfd "${FILESDIR}"/crypto-loop.confd crypto-loop || die
156 fi
157 }