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

Bug 523152

Summary: sys-apps/portage-2.2.13: cannot use "unmerge-backup" or "downgrade-backup" in FEATURES
Product: Portage Development Reporter: Maxim Prokhorov <prohorov.max+gentoo>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: da_risk, gentoo-bugs, lukas.schneiderbauer
Priority: Normal Keywords: InVCS, REGRESSION
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    
Attachments: emerge --info
_quickpkg_dblink: fix bug #523152

Description Maxim Prokhorov 2014-09-18 17:56:03 UTC
Created attachment 385058 [details]
emerge --info

Running portage-2.2.13:

$ emerge eix
$ FEATURES="unmerge-backup" emerge -C eix
...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) app-portage/eix-0.29.3...
/usr/bin/python2.7: can't open file '/usr/lib/portage/python2.7/quickpkg': [Errno 2] No such file or directory
...

Where quickpkg really is:
$ qlist sys-apps/portage | grep quickpkg
/usr/bin/quickpkg
/usr/lib/python-exec/python2.7/quickpkg

Falling back to portage-2.2.8-r1 resolves the issue.
Comment 1 Zac Medico gentoo-dev 2014-09-19 23:05:21 UTC
Created attachment 385150 [details, diff]
_quickpkg_dblink: fix bug #523152

This fixes the unmerge-backup and downgrade-backup features to be compatible with the new setup.py quickpkg install location, while preserving compatibility for running from a source tree (for unit tests or developement purposes). If not running from a source tree, then the PATH variable is used to locate the quickpkg binary.

I'll be maintaining this patch in the following branch:

	https://github.com/zmedico/portage/tree/bug_523152
Comment 2 Zac Medico gentoo-dev 2014-09-19 23:25:26 UTC
(In reply to Zac Medico from comment #1)
> I'll be maintaining this patch in the following branch:
> 
> 	https://github.com/zmedico/portage/tree/bug_523152

Now it's fixed to use X_OK instead of EX_OK.
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2014-09-26 19:18:04 UTC
Released in portage2.2.14_rc1