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

Bug 133628

Summary: 2.1_rc1-r2 prepstrip gets path wrong for split-debug files
Product: Portage Development Reporter: Kevin F. Quinn (RETIRED) <kevquinn>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: flameeyes, marc
Priority: High Keywords: InVCS, REGRESSION
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: Remove '+1' from ${x:${#D}+1}, and -print0 => -print so the bash for loop works.

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