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

Bug 231158

Summary: portage-2.2_rc1 does not handle spaces in files with fetch restriction
Product: Portage Development Reporter: Daniel Black (RETIRED) <dragonheart>
Component: CoreAssignee: PMS/EAPI <pms>
Status: RESOLVED OBSOLETE    
Severity: normal CC: pacho
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    
Attachments: truecrypt-6.0.ebuild

Description Daniel Black (RETIRED) gentoo-dev 2008-07-08 12:43:34 UTC
SRC_URI="TrueCrypt ${PV} Source.tar.gz"

stat("/usr/portage/distfiles/Source.tar.gz", 0x7fff38f7bdc0) = -1 ENOENT (No such file or directory
Comment 1 Daniel Black (RETIRED) gentoo-dev 2008-07-08 12:44:21 UTC
Created attachment 159866 [details]
truecrypt-6.0.ebuild
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2008-07-08 15:17:46 UTC
spaces are used as separators in metadata variables.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2008-07-09 08:58:13 UTC
(In reply to comment #2)
> spaces are used as separators in metadata variables.

Marius,

with due respect, and I do respect you a lot, this sounds like a excuse. It sounds like an internal design consideration rather than a specification problem.
Comment 4 Zac Medico gentoo-dev 2008-07-09 10:14:36 UTC
Well, one possible solution would be to add single quotes, like this:

SRC_URI="'TrueCrypt ${PV} Source.tar.gz'"
Comment 5 Ulrich Müller gentoo-dev 2009-06-30 09:47:35 UTC
(In reply to comment #4)
> Well, one possible solution would be to add single quotes, like this:
> 
> SRC_URI="'TrueCrypt ${PV} Source.tar.gz'"

And what will you do for filenames containing single quotes then? ;-)
<http://www.faqs.org/docs/artu/ch05s02.html> is worth reading...
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-06 21:43:01 UTC
Does anyone want to do this anymore? It looks like the idea is hard to implement, and TrueCrypt is no more :). I think we should WONTFIX it.
Comment 7 Ulrich Müller gentoo-dev 2014-09-06 21:58:38 UTC
I believe that this is obsolete: Escape mechanisms for URIs exist, and in addition we have SRC_URI arrows that allow saving the distfile under a reasonable name.