1 |
chainsaw 10/04/25 18:53:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: tar-1.22-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.144 app-arch/tar/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?rev=1.144&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?rev=1.144&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/ChangeLog?r1=1.143&r2=1.144 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v |
19 |
retrieving revision 1.143 |
20 |
retrieving revision 1.144 |
21 |
diff -u -r1.143 -r1.144 |
22 |
--- ChangeLog 25 Apr 2010 16:44:23 -0000 1.143 |
23 |
+++ ChangeLog 25 Apr 2010 18:53:46 -0000 1.144 |
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.143 2010/04/25 16:44:23 chainsaw Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.144 2010/04/25 18:53:46 chainsaw Exp $ |
29 |
+ |
30 |
+*tar-1.22-r1 (25 Apr 2010) |
31 |
+ |
32 |
+ 25 Apr 2010; <chainsaw@g.o> +tar-1.22-r1.ebuild, |
33 |
+ +files/tar-1.22-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-r1 (25 Apr 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-arch/tar/tar-1.22-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/tar-1.22-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-arch/tar/tar-1.22-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: tar-1.22-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.22-r1.ebuild,v 1.1 2010/04/25 18:53:46 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}"/${PN}-1.21-revert-pipe.patch #252680 |
76 |
epatch "${FILESDIR}"/${P}-strncpy.patch #317139 |
77 |
|
78 |
if ! use userland_GNU ; then |
79 |
sed -i \ |
80 |
-e 's:/backup\.sh:/gbackup.sh:' \ |
81 |
scripts/{backup,dump-remind,restore}.in \ |
82 |
|| die "sed non-GNU" |
83 |
fi |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
local myconf |
88 |
use static && append-ldflags -static |
89 |
use userland_GNU || myconf="--program-prefix=g" |
90 |
# Work around bug in sandbox #67051 |
91 |
gl_cv_func_chown_follows_symlink=yes \ |
92 |
econf \ |
93 |
--enable-backup-scripts \ |
94 |
--bindir=/bin \ |
95 |
--libexecdir=/usr/sbin \ |
96 |
$(use_enable nls) \ |
97 |
${myconf} || die |
98 |
emake || die "emake failed" |
99 |
} |
100 |
|
101 |
src_install() { |
102 |
local p="" |
103 |
use userland_GNU || p=g |
104 |
|
105 |
emake DESTDIR="${D}" install || die "make install failed" |
106 |
|
107 |
if [[ -z ${p} ]] ; then |
108 |
# a nasty yet required piece of baggage |
109 |
exeinto /etc |
110 |
doexe "${FILESDIR}"/rmt || die |
111 |
fi |
112 |
|
113 |
dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS |
114 |
newman "${FILESDIR}"/tar.1 ${p}tar.1 |
115 |
mv "${D}"/usr/sbin/${p}backup{,-tar} |
116 |
mv "${D}"/usr/sbin/${p}restore{,-tar} |
117 |
|
118 |
rm -f "${D}"/usr/$(get_libdir)/charset.alias |
119 |
} |