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

Bug 129244

Summary: missing exported EBUILD_PHASE=package|rpm
Product: Portage Development Reporter: Peter S. Mazinger <ps.m>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: ps.m
Priority: Highest Keywords: InVCS, REGRESSION
Version: 2.0   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: EBUILD_PHASE support for package and rpm

Description Peter S. Mazinger 2006-04-08 07:44:31 UTC
recent changes to portage-2.1 moved package|rpm targets to misc-functions.sh and
removed them from EBUILD_PHASES list. I was using this through /etc/portage/bashrc
to detect in phase I am, and do adequate corrections w/o touching ebuilds (redo
false links that point to /var/tmp/portage/*, change absolute links to relative,
remove unneeded files and the like.
I have tried adding them back to EBUILD_PHASES, but I do not achieve anything.
If this was an unintended change, please correct, else please give me a pointer
how I get those back to do it locally.
Comment 1 Zac Medico gentoo-dev 2006-04-10 20:56:55 UTC
Created attachment 84415 [details, diff]
EBUILD_PHASE support for package and rpm

This is in svn r3125 for the next release.
Comment 2 Zac Medico gentoo-dev 2006-04-10 21:14:20 UTC
On more hunk was needed, in svn r3126.

=== modified file 'pym/portage.py'
--- pym/portage.py	
+++ pym/portage.py	
@@ -2246,6 +2246,8 @@
 		# XXX: that creates a deadlock... Really need to isolate that.
 		mysettings.reset(use_cache=use_cache)
 	mysettings.setcpv(mycpv,use_cache=use_cache)
+
+	mysettings["EBUILD_PHASE"] = mydo
 
 	if debug: # Otherwise it overrides emerge's settings.
 		# We have no other way to set debug... debug can't be passed in

Comment 3 Peter S. Mazinger 2006-04-11 00:04:08 UTC
it is not solved (tested w/ pre7-r5)
Comment 4 Peter S. Mazinger 2006-04-11 00:10:24 UTC
sorry for the noise, overseen the next part of patch, now it is ok (at least
setup|compile|package work), thanks
Comment 5 Zac Medico gentoo-dev 2006-04-13 00:10:14 UTC
Released in 2.1_pre8-r1.