Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223635 - syntax error in $EPREFIX/usr/portage/scripts/bootstrap-prefix.sh
Summary: syntax error in $EPREFIX/usr/portage/scripts/bootstrap-prefix.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: High normal (vote)
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 02:14 UTC by Mathias Laurin
Modified: 2008-05-26 07:41 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 Mathias Laurin 2008-05-26 02:14:18 UTC
"then" is missing line 445, after a "if ... ;"
so that generating startscript fails

Reproducible: Always

Steps to Reproduce:
1. cd $EPREFIX/usr/portage/scripts
2. ./bootstrap-prefix.sh $EPREFIX startscript

Actual Results:  
./bootstrap-prefix.sh: line 448: syntax error near unexpected token `else'
./bootstrap-prefix.sh: line 448: `	else'



Expected Results:  
* Bootstrapping Gentoo prefixed portage installation using
* host:   i386-apple-darwin9
etc.

~/Library/Gentoo/usr/portage/scripts $ diff -u bootstrap-prefix.sh{.orig,}                                                                                                                           
--- bootstrap-prefix.sh.orig	2008-05-26 11:11:03 +0900
+++ bootstrap-prefix.sh	2008-05-26 11:11:40 +0900
@@ -442,7 +442,7 @@
 	# AIX doesn't like it when --disable-nls is set, OSX doesn't like it
 	# when it's not.  Solaris and Linux build fine with --disable-nls.
 	# However, (horror) grep on OSX fails with --disable-nls :(
-	if [[ ${A%-*} == "grep" ]] ;
+	if [[ ${A%-*} == "grep" ]] ; then
 		[[ ${CHOST} == *-aix* || ${CHOST} == *-darwin* ]] || \
 			myconf="${myconf} --disable-nls"
 	else
Comment 1 Fabian Groffen gentoo-dev 2008-05-26 07:41:25 UTC
indeed thank you!  Fixed now, sorry for the inconvenience!