Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 209433

Summary: sys-libs/ncurses-5.6-r2: won't compile because of MKhashsize.sh
Product: Gentoo Linux Reporter: nikos roussos <comzeradd>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ncurses emerge log
emerge --info

Description nikos roussos 2008-02-09 16:47:10 UTC
emerging ncurses gives me an error:

./MKhashsize.sh: line 38: unexpected EOF while looking for matching ``'
./MKhashsize.sh: line 42: syntax error: unexpected end of file

Reproducible: Always

Steps to Reproduce:
1. emerge -v ncurses

Actual Results:  
completely fails to compile

Expected Results:  
should compile and install
Comment 1 nikos roussos 2008-02-09 16:50:13 UTC
the solution i have found to override the bug is to enclose in quotes the line that causes the problem at /var/tmp/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/MKhashsize.sh:

TABSIZE="`grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`"

instead of:

TABSIZE=`grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`


but i guess this should be fixed a better way
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-09 17:41:14 UTC
Compiles just fine here; reopen with full emerge.log and emerge --info output.
Comment 3 nikos roussos 2008-02-09 18:42:05 UTC
Created attachment 143048 [details]
ncurses emerge log
Comment 4 nikos roussos 2008-02-09 18:42:48 UTC
Created attachment 143050 [details]
emerge --info
Comment 5 nikos roussos 2008-02-09 18:44:26 UTC
(In reply to comment #2)
> Compiles just fine here; reopen with full emerge.log and emerge --info output.

just uploaded them
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-09 18:46:25 UTC
Uh, what kind of whacky shell is your /bin/sh pointing to?
Comment 7 nikos roussos 2008-02-09 19:00:50 UTC
(In reply to comment #6)
> Uh, what kind of whacky shell is your /bin/sh pointing to?

#ls -l /in/sh

/bin/sh  ->  bash

Comment 8 SpanKY gentoo-dev 2008-02-09 20:33:44 UTC
your bash is broken then

please post your /bin/bash as an attachment
Comment 9 nikos roussos 2008-02-09 21:12:49 UTC
(In reply to comment #8)
> your bash is broken then

yeap. you're right. remerging bash solved the problem