Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269362 - [portage-2.2.00.13405] bootstrapping portage fails with syntax error
Summary: [portage-2.2.00.13405] bootstrapping portage fails with syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 05:10 UTC by Togge
Modified: 2009-05-12 06:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Togge 2009-05-11 05:10:08 UTC
When running: "bootstrap-prefix.sh $EPREFIX portage" the following is the result.
----
Making install in bin
make[1]: Entering directory `/local/gentoo/var/tmp/portage-2.2.00.13405/prefix-portage-2.2.00.13405/bin'
/usr/bin/install -c -d -m 755 -o "etornyb" -g "ldasic" /local/gentoo//usr/lib/portage/bin
( cd "." && find . -name '.svn' -prune -o -type d -print ) | while read f ; do \
		files=( ) ; \
		for t in "./${f}"/* ; do \
			[[ -d ${t} ]] && continue ; \
			[[ ${t} == Makefile* ]] && continue ; \
			files=( "${files[@]}" "${t}" ) ; \
		done ; \
		/usr/bin/install -c -d -m 755 \
			-o "etornyb" -g "ldasic" \
			"/local/gentoo//usr/lib/portage/bin/${f}" && \
		../subst-install -m 755 \
			-o "etornyb" -g "ldasic" \
			-t "/local/gentoo//usr/lib/portage/bin/${f}" \
			"${files[@]}" ; \
	done
/bin/sh: Syntax error: "(" unexpected (expecting "done")
make[1]: *** [install] Error 2
make[1]: Leaving directory `/local/gentoo/var/tmp/portage-2.2.00.13405/prefix-portage-2.2.00.13405/bin'
make: *** [install-recursive] Error 1
----
Comment 1 Markus Duft (RETIRED) gentoo-dev 2009-05-11 07:48:30 UTC
recent build system changes introduced some bash-ism to portage. make needs to be called with SHELL=${BASH}, or the bash-ism needs to be killed. grobian? which one?

bash has to be available anyway, so no problem in using it - make just needs to know :)
Comment 2 Fabian Groffen gentoo-dev 2009-05-11 09:01:36 UTC
The latest portage should set SHELL to bash itself.

Probably related to the tree snapshot then.  Can you try with latest_tree instead of tree?
Comment 3 Fabian Groffen gentoo-dev 2009-05-11 15:09:41 UTC
I've updated the snapshot, you should see no portage earlier than 2.2.00.13621.  Please check.
Comment 4 Togge 2009-05-12 06:01:06 UTC
Thanks that did it.