Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86542 - emerge db-4.1.25_p1-r4 dies with a syntax error on line 51 of /usr/portage/eclass/db.eclass
Summary: emerge db-4.1.25_p1-r4 dies with a syntax error on line 51 of /usr/portage/ec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 08:47 UTC by Jason Dyer
Modified: 2005-03-24 09:19 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 Jason Dyer 2005-03-24 08:47:14 UTC
There appears to be a syntax error in /usr/portage/eclass/db.eclass

Original code (starting at line 48):
<code>
        if [ -n ${target} ]; then ewarn "Could not find ${target}/db.h"
        elif
            einfo "Apparently you just removed the last instance of $PN. Removing the symlinks"
        fi
</code>

The 'elif' on line 49 has no condition after it, hence causing the syntax error at 'fi'.  My solution was to change 'elif' to an 'else' and it seemed to work just fine.

I'm not sure if this should be considered a 'major' issue, but it prevented me from doing 'emerge -u world' until I fixed it.



Reproducible: Always
Steps to Reproduce:
1.emerge db
2.
3.

Actual Results:  
Emerge crashed with a syntax error. 

Expected Results:  
Emerged db.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2005-03-24 09:19:16 UTC
Already fixed, please 'emerge --sync' again.
Thanks for reporting.