From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5C982138A30 for ; Sat, 25 Jan 2014 03:11:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA488E0B85; Sat, 25 Jan 2014 03:11:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34A69E0B69 for ; Sat, 25 Jan 2014 03:11:12 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 663CD33F5C4 for ; Sat, 25 Jan 2014 03:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 1CACC183B3 for ; Sat, 25 Jan 2014 03:11:10 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1390619423.e49b8a450aba6eced9caa608a3bfdc38a7dbe677.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_package.sh X-VCS-Directories: / X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: e49b8a450aba6eced9caa608a3bfdc38a7dbe677 X-VCS-Branch: master Date: Sat, 25 Jan 2014 03:11:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1021afd6-90ae-4635-ba63-3656338f07c8 X-Archives-Hash: 79d08fac981959d22440371f4de65b0e commit: e49b8a450aba6eced9caa608a3bfdc38a7dbe677 Author: Richard Yao gentoo org> AuthorDate: Sat Jan 25 03:06:41 2014 +0000 Commit: Richard Yao gentoo org> CommitDate: Sat Jan 25 03:10:23 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=e49b8a45 Make --kerncache compatible with recent versions of GNU tar, bug #457168 Older versions of GNU tar would extract files to the interior of the directory specified after an adjustment via -C was taken into consideration. Newer versions will perform extraction to the exterior of that directory. This caused --kerncache to override the /lib symlink with an actual directory. We correct this by switching to a more standard syntax that should be consistent against old and new versions of GNU tar, as well as bsdtar. Signed-off-by: Richard Yao gentoo.org> --- gen_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_package.sh b/gen_package.sh index ed7a5f4..520d771 100755 --- a/gen_package.sh +++ b/gen_package.sh @@ -134,9 +134,9 @@ gen_kerncache_extract_modules() print_info 1 'Extracting kerncache kernel modules' if [ "${INSTALL_MOD_PATH}" != '' ] then - /bin/tar -xjf ${KERNCACHE} -C ${INSTALL_MOD_PATH} lib + /bin/tar -xjf ${KERNCACHE} --strip-components 1 -C ${INSTALL_MOD_PATH}/lib else - /bin/tar -xjf ${KERNCACHE} -C / lib + /bin/tar -xjf ${KERNCACHE} --strip-components 1 -C /lib fi fi }