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 5E84513827E for ; Fri, 24 Jan 2014 19:15:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29647E0AF9; Fri, 24 Jan 2014 19:15:33 +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 B6FBCE0AF9 for ; Fri, 24 Jan 2014 19:15:32 +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 BBF1B33F082 for ; Fri, 24 Jan 2014 19:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id E5347183B3 for ; Fri, 24 Jan 2014 19:15:29 +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: <1390589623.2d720491bd62eb1c87f8da23ec7aef393207bf30.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: 2d720491bd62eb1c87f8da23ec7aef393207bf30 X-VCS-Branch: master Date: Fri, 24 Jan 2014 19:15:29 +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: 426c4964-a3f0-4225-9f25-7572c12ca098 X-Archives-Hash: 3e95afbb4b475152095b5e170b7fd2da commit: 2d720491bd62eb1c87f8da23ec7aef393207bf30 Author: Richard Yao gentoo org> AuthorDate: Fri Jan 24 18:53:39 2014 +0000 Commit: Richard Yao gentoo org> CommitDate: Fri Jan 24 18:53:43 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=2d720491 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 all tar implementations, including both old and new versions of GNU tar. 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..c06521c 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} -C ${INSTALL_MOD_PATH}/lib else - /bin/tar -xjf ${KERNCACHE} -C / lib + /bin/tar -xjf ${KERNCACHE} -C /lib fi fi }