Gentoo Archives: gentoo-commits

From: Richard Yao <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Fri, 24 Jan 2014 19:15:34
Message-Id: 1390589623.2d720491bd62eb1c87f8da23ec7aef393207bf30.ryao@gentoo
1 commit: 2d720491bd62eb1c87f8da23ec7aef393207bf30
2 Author: Richard Yao <ryao <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 24 18:53:39 2014 +0000
4 Commit: Richard Yao <ryao <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 24 18:53:43 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=2d720491
7
8 Make --kerncache compatible with recent versions of GNU tar, bug #457168
9
10 Older versions of GNU tar would extract files to the interior of the
11 directory specified after an adjustment via -C was taken into
12 consideration. Newer versions will perform extraction to the exterior of
13 that directory. This caused --kerncache to override the /lib symlink
14 with an actual directory.
15
16 We correct this by switching to a more standard syntax that should be
17 consistent against all tar implementations, including both old and new
18 versions of GNU tar.
19
20 Signed-off-by: Richard Yao <ryao <AT> gentoo.org>
21
22 ---
23 gen_package.sh | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26 diff --git a/gen_package.sh b/gen_package.sh
27 index ed7a5f4..c06521c 100755
28 --- a/gen_package.sh
29 +++ b/gen_package.sh
30 @@ -134,9 +134,9 @@ gen_kerncache_extract_modules()
31 print_info 1 'Extracting kerncache kernel modules'
32 if [ "${INSTALL_MOD_PATH}" != '' ]
33 then
34 - /bin/tar -xjf ${KERNCACHE} -C ${INSTALL_MOD_PATH} lib
35 + /bin/tar -xjf ${KERNCACHE} -C ${INSTALL_MOD_PATH}/lib
36 else
37 - /bin/tar -xjf ${KERNCACHE} -C / lib
38 + /bin/tar -xjf ${KERNCACHE} -C /lib
39 fi
40 fi
41 }