From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2EF4B138334 for ; Tue, 29 Jan 2019 15:59:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 214BAE0C4A; Tue, 29 Jan 2019 15:59:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7E88E0C40 for ; Tue, 29 Jan 2019 15:59:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B8C7335D84 for ; Tue, 29 Jan 2019 15:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78C154D9 for ; Tue, 29 Jan 2019 15:59:06 +0000 (UTC) From: "Michael Haubenwallner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Haubenwallner" Message-ID: <1548696897.b109ca82c51df4073dbb37ff239f6097504582ef.haubi@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-prefix.sh X-VCS-Directories: scripts/ X-VCS-Committer: haubi X-VCS-Committer-Name: Michael Haubenwallner X-VCS-Revision: b109ca82c51df4073dbb37ff239f6097504582ef X-VCS-Branch: master Date: Tue, 29 Jan 2019 15:59:06 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ad894628-7510-4812-9719-263682c6f5ca X-Archives-Hash: 4231f4c8539027949914436966b85c25 commit: b109ca82c51df4073dbb37ff239f6097504582ef Author: Michael Haubenwallner gentoo org> AuthorDate: Mon Jan 28 17:28:23 2019 +0000 Commit: Michael Haubenwallner gentoo org> CommitDate: Mon Jan 28 17:34:57 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b109ca82 bootstrap-prefix.sh: provide fake makeinfo early Provide fake makeinfo scripts early enough to avoid MAKEINFO variable. Closes: https://bugs.gentoo.org/673808 Signed-off-by: Michael Haubenwallner gentoo.org> scripts/bootstrap-prefix.sh | 55 ++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 39e508de56..d74a35372d 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1539,7 +1539,30 @@ bootstrap_stage2() { # GCC sometimes decides that it needs to run makeinfo to update some # info pages from .texi files. Obviously we don't care at this # stage and rather have it continue instead of abort the build - export MAKEINFO="echo makeinfo GNU texinfo 4.13" + if [[ ! -x "${ROOT}"/tmp/usr/bin/makeinfo ]] + then + cat > "${ROOT}"/tmp/usr/bin/makeinfo <<-EOF + #!${ROOT}/bin/bash + ### bootstrap-prefix.sh will act on this line ### + echo "makeinfo GNU texinfo 4.13" + f= + while (( \$# > 0 )); do + a=\$1 + shift + case \$a in + --output=) continue ;; + --output=*) f=\${a#--output=} ;; + -o) f=\$1; shift;; + esac + done + [[ -z \$f ]] || [[ -e \$f ]] || touch "\$f" + EOF + cat > "${ROOT}"/tmp/usr/bin/install-info <<-EOF + #!${ROOT}/bin/bash + : + EOF + chmod +x "${ROOT}"/tmp/usr/bin/{makeinfo,install-info} + fi # on Solaris 64-bits, (at least up to 10) libgcc_s resides in a # non-standard location, and the compiler doesn't seem to record @@ -1719,32 +1742,12 @@ bootstrap_stage3() { do_emerge_pkgs "$@" } - # GCC sometimes decides that it needs to run makeinfo to update some - # info pages from .texi files. Obviously we don't care at this - # stage and rather have it continue instead of aborting the build + # Some packages fail to properly depend on sys-apps/texinfo. + # We don't really need that package, so we fake it instead, + # explicitly emerging it later on will overwrite the fakes. if [[ ! -x "${ROOT}"/usr/bin/makeinfo ]] then - cat > "${ROOT}"/usr/bin/makeinfo <<-EOF - #!${ROOT}/bin/bash - ### bootstrap-prefix.sh will act on this line ### - echo "makeinfo GNU texinfo 4.13" - f= - while (( \$# > 0 )); do - a=\$1 - shift - case \$a in - --output=) continue ;; - --output=*) f=\${a#--output=} ;; - -o) f=\$1; shift;; - esac - done - [[ -z \$f ]] || [[ -e \$f ]] || touch "\$f" - EOF - cat > "${ROOT}"/usr/bin/install-info <<-EOF - #!${ROOT}/bin/bash - : - EOF - chmod +x "${ROOT}"/usr/bin/{makeinfo,install-info} + cp -p "${ROOT}"/tmp/usr/bin/{makeinfo,install-info} "${ROOT}"/usr/bin fi if is-rap ; then @@ -1900,7 +1903,7 @@ bootstrap_stage3() { emerge_pkgs "" "${pkgs[@]}" || return 1 # Switch to the proper portage. - unset CONFIG_SHELL MAKEINFO CXX CPPFLAGS LDFLAGS + unset CONFIG_SHELL CXX CPPFLAGS LDFLAGS hash -r # Update the portage tree.