Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-arch/tar: ChangeLog tar-1.23-r1.ebuild
Date: Sun, 25 Apr 2010 17:03:11
Message-Id: 20100425164423.A96D22C071@corvid.gentoo.org
1 chainsaw 10/04/25 16:44:23
2
3 Modified: ChangeLog
4 Added: tar-1.23-r1.ebuild
5 Log:
6 Glibc built with GCC 4.5 will notice a buffer overflow in the handling of OLD_GNU magic bytes and kill us. Apply a Fedora patch scavenged by Emil Karlson to avoid this happening; closes bug #317139.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.143 app-arch/tar/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?rev=1.143&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?rev=1.143&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?r1=1.142&r2=1.143
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v
19 retrieving revision 1.142
20 retrieving revision 1.143
21 diff -u -r1.142 -r1.143
22 --- ChangeLog 10 Mar 2010 13:55:50 -0000 1.142
23 +++ ChangeLog 25 Apr 2010 16:44:23 -0000 1.143
24 @@ -1,6 +1,14 @@
25 # ChangeLog for app-arch/tar
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.142 2010/03/10 13:55:50 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.143 2010/04/25 16:44:23 chainsaw Exp $
29 +
30 +*tar-1.23-r1 (25 Apr 2010)
31 +
32 + 25 Apr 2010; <chainsaw@g.o> +tar-1.23-r1.ebuild,
33 + +files/tar-1.23-strncpy.patch:
34 + Glibc built with GCC 4.5 will notice a buffer overflow in the handling of
35 + OLD_GNU magic bytes and kill us. Apply a Fedora patch scavenged by Emil
36 + Karlson to avoid this happening; closes bug #317139.
37
38 *tar-1.23 (10 Mar 2010)
39
40
41
42
43 1.1 app-arch/tar/tar-1.23-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/tar-1.23-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/tar-1.23-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: tar-1.23-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.23-r1.ebuild,v 1.1 2010/04/25 16:44:23 chainsaw Exp $
53
54 inherit flag-o-matic eutils
55
56 DESCRIPTION="Use this to make tarballs :)"
57 HOMEPAGE="http://www.gnu.org/software/tar/"
58 SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
59 ftp://alpha.gnu.org/gnu/tar/${P}.tar.bz2
60 mirror://gnu/tar/${P}.tar.bz2"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
65 IUSE="nls static userland_GNU"
66
67 RDEPEND=""
68 DEPEND="${RDEPEND}
69 nls? ( >=sys-devel/gettext-0.10.35 )"
70
71 src_unpack() {
72 unpack ${A}
73 cd "${S}"
74
75 epatch "${FILESDIR}"/${P}-strncpy.patch #317139
76
77 if ! use userland_GNU ; then
78 sed -i \
79 -e 's:/backup\.sh:/gbackup.sh:' \
80 scripts/{backup,dump-remind,restore}.in \
81 || die "sed non-GNU"
82 fi
83 }
84
85 src_compile() {
86 local myconf
87 use static && append-ldflags -static
88 use userland_GNU || myconf="--program-prefix=g"
89 # Work around bug in sandbox #67051
90 gl_cv_func_chown_follows_symlink=yes \
91 econf \
92 --enable-backup-scripts \
93 --bindir=/bin \
94 --libexecdir=/usr/sbin \
95 $(use_enable nls) \
96 ${myconf} || die
97 emake || die "emake failed"
98 }
99
100 src_install() {
101 local p=""
102 use userland_GNU || p=g
103
104 emake DESTDIR="${D}" install || die "make install failed"
105
106 if [[ -z ${p} ]] ; then
107 # a nasty yet required piece of baggage
108 exeinto /etc
109 doexe "${FILESDIR}"/rmt || die
110 fi
111
112 dodoc AUTHORS ChangeLog* NEWS README* THANKS
113 newman "${FILESDIR}"/tar.1 ${p}tar.1
114 mv "${D}"/usr/sbin/${p}backup{,-tar}
115 mv "${D}"/usr/sbin/${p}restore{,-tar}
116
117 rm -f "${D}"/usr/$(get_libdir)/charset.alias
118 }