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

Bug 240684

Summary: dev-lang/python-2.6 - /var/tmp/portage/dev-lang/python-2.6-r2/temp/environment: line 3412: default: command not found
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: New packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077    
Attachments: fix default() function creation for src_prepare phase

Description Rafał Mużyło 2008-10-09 13:02:58 UTC
It emerges fine, but right at the start it prints:
/var/tmp/portage/dev-lang/python-2.6-r2/temp/environment: line 3412: default: command not found
It's caused by the line in the ebuild that reads simply
default;

My portage is 2.2_r11 (had to be due to EAPI=2).
Comment 1 Zac Medico gentoo-dev 2008-10-09 19:34:48 UTC
It's a portage bug but you can safely ignore it for the dev-lang/python-2.6-r2 ebuild since the default() function for the src_prepare phase isn't supposed to do anything anyway.
Comment 2 Zac Medico gentoo-dev 2008-10-09 19:37:59 UTC
Created attachment 167768 [details, diff]
fix default() function creation for src_prepare phase

If this patch is saved as /tmp/default_src_prepare.patch then it can be applied as follows:

patch /usr/lib/portage/bin/ebuild.sh /tmp/default_src_prepare.patch
Comment 3 Zac Medico gentoo-dev 2008-10-09 21:42:38 UTC
This is fixed in 2.2_rc12.