Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130636 - unpack "${A}" doesn't work for more than one file in SRC_URI
Summary: unpack "${A}" doesn't work for more than one file in SRC_URI
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: High minor
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 11:31 UTC by Alexandru Toma
Modified: 2006-04-20 18:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Toma 2006-04-20 11:31:20 UTC
I was trying to write an ebuild and noticed that unpack "${A}" doesn't work (for more than one file in SRC_URI) ... the correct syntax seems to be unpack ${A} (without the quotes).

This is not documented anywhere (I couldn't find it at least) and I think it should be mentioned somewhere. I became very frustrated while writing the ebuild because I couldn't understand what was going on. Having this mentioned in the docs somewhere would be helpful I think. It should definately be mentioned in "man 5 ebuild", because for me, and many others I think, that's the first place I look when I don't remember something or something doesn't work.
Comment 1 SpanKY gentoo-dev 2006-04-20 16:42:40 UTC
document what exactly ?  you're talking about basic shell coding here, the fact that it's ${A} is irrelevant

ebuild manpage says `unpack` takes a list of sources ... ${A} is a list of sources, but doing "${A}" means pass everything in ${A} as a single argument
Comment 2 Alexandru Toma 2006-04-20 17:09:14 UTC
Yes I figured that out by myself. However, some people might still be confused by this before they realize what's going on. Usually you use quotes around the variables in an ebuild so the natural instinct is to use quotes here as well to make everything neat. Yes, I should have realized sooner (this is not my first ebuild after all) that by putting quotes around ${A} I turned it into a string, but I still made this mistake. I was just thinking that other people might also get a little confused so mentioning something about this would be a good idea, but that was just a thought... you can do as you wish.
Comment 3 SpanKY gentoo-dev 2006-04-20 18:35:20 UTC
k