Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450736 - sys-apps/portage- spaces in the patch filenames
Summary: sys-apps/portage- spaces in the patch filenames
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
Depends on:
Reported: 2013-01-07 18:38 UTC by Andrey Ovcharov
Modified: 2013-01-08 00:59 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Ovcharov 2013-01-07 18:38:57 UTC
Current sys-apps/portage- not support patch file names with spaces.

Reproducible: Always

Steps to Reproduce:
1. Create any new ebuild or use any existing… In the files/ add a patch containing a space in its name.
2. ebuild <name>.ebuild digest
3. ebuild <name>.ebuild compile
Actual Results:  
ebuild <name>.ebuild compile
!!! A file is not listed in the Manifest: '/usr/local/portage/<name>/<name>/files/<name contains a space>.patch'

Expected Results:  
Manifest with <name contains a space>.patch

The current solution:

Add thin-manifests = true to metadata/layout.conf

> cat /usr/local/portage/metadata/layout.conf 
thin-manifests = true
sign-manifests = false
profile-formats = portage-2
cache-formats = md5-dict

And take care yourself on handling filenames containing spaces.
Comment 1 Zac Medico gentoo-dev 2013-01-08 00:59:08 UTC
This patch fixes the manifest parser to handle spaces in names:;a=commit;h=bdc4b8b09a249451bc471f1a2f03963559a9fb3a

In addition, we'll have to add a metadata/layout.conf extension that allows specification of allowed file name characters, as mentioned in bug #411127, comment #7.