Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240684 - dev-lang/python-2.6 - /var/tmp/portage/dev-lang/python-2.6-r2/temp/environment: line 3412: default: command not found
Summary: dev-lang/python-2.6 - /var/tmp/portage/dev-lang/python-2.6-r2/temp/environmen...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 210077
  Show dependency tree
Reported: 2008-10-09 13:02 UTC by Rafał Mużyło
Modified: 2008-10-09 21:42 UTC (History)
0 users

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

fix default() function creation for src_prepare phase (default_src_prepare.patch,348 bytes, patch)
2008-10-09 19:37 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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

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/ /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.