Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231394 - app-portage/gentoolkit-0.2.4_rc4's euse treats an absolute path a the profile's parent file as relative and may enter an infinite loop
Summary: app-portage/gentoolkit-0.2.4_rc4's euse treats an absolute path a the profile...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2008-07-10 09:56 UTC by Malte Starostik
Modified: 2011-05-10 23:04 UTC (History)
1 user (show)

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


Attachments
Patch to recognize absolute path as such (euse.patch,531 bytes, patch)
2008-07-10 09:56 UTC, Malte Starostik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Starostik 2008-07-10 09:56:05 UTC
I'm using a local profile of which the parent file links to the 2008.0/desktop profile in /usr/portage.  euse stubles over that absolute path and fails to find the parent profile(s).  Additionally, when running it from the profile dir, it enters an endless loop.

Reproducible: Always

Steps to Reproduce:
1. Create a portage profile with a parent file containing an absolute path
2. run sth. like euse -i doc

Actual Results:  
LC_ALL=C euse -i doc
/usr/bin/euse: line 61: cd: /home/malte/prof//usr/portage/profiles/default/linux/x86/2008.0/desktop/: No such file or directory

The error is repeated a few times when run from somewhere outside the profile dir, and forever when frun from the profile dir.

Expected Results:  
euse should correctly parse the path as absolute
Comment 1 Malte Starostik 2008-07-10 09:56:46 UTC
Created attachment 160023 [details, diff]
Patch to recognize absolute path as such
Comment 2 Jared Hancock 2009-08-10 02:38:55 UTC
I applied your patch to the work I've done for euse in bug #259318
Comment 3 Paul Varner (RETIRED) gentoo-dev 2011-01-05 16:02:59 UTC
This was committed with the euse changes from bug 259318.  It can be tested using gentoolkit-9999
Comment 4 Jared Hancock 2011-04-25 02:24:55 UTC
Can you verify this is fixed in gentoolkit-0.3.0?
Comment 5 Malte Starostik 2011-04-25 12:04:40 UTC
Yes, 0.3.0 works fine.  Thanks!
Comment 6 Paul Varner (RETIRED) gentoo-dev 2011-05-10 23:04:00 UTC
Released in gentoolkit-0.3.0