Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133628 - 2.1_rc1-r2 prepstrip gets path wrong for split-debug files
Summary: 2.1_rc1-r2 prepstrip gets path wrong for split-debug files
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 133693 133719 (view as bug list)
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-05-17 12:08 UTC by Kevin F. Quinn (RETIRED)
Modified: 2006-05-18 13:33 UTC (History)
2 users (show)

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


Attachments
Remove '+1' from ${x:${#D}+1}, and -print0 => -print so the bash for loop works. (prepstrp-3367-splitdebugpath.diff,1.07 KB, patch)
2006-05-17 12:10 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2006-05-17 12:08:04 UTC
In prepstrip, save_elf_debug() we have:

local y="${D}usr/lib/debug/${x:${#D}+1}.debug"

which is causing the first character after ${D} to be removed.

I think the '+1' just needs to be removed (here and on two vecho lines further on).

Also there's a '-print0' on a find command, which I think should be just '-print'.

Actually - I'll attach a diff to be clear :)
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2006-05-17 12:10:29 UTC
Created attachment 86935 [details, diff]
Remove '+1' from ${x:${#D}+1}, and -print0 => -print so the bash for loop works.

(the -print0 causes bash to process the find output as one big string, as it doesn't consider '\0' as a separator)
Comment 2 Zac Medico gentoo-dev 2006-05-18 02:00:29 UTC
Thanks, this is in svn r3373.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-18 08:01:23 UTC
*** Bug 133693 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2006-05-18 11:33:46 UTC
This has been released in 2.1_rc1-r3.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-18 13:33:57 UTC
*** Bug 133719 has been marked as a duplicate of this bug. ***