You are not logged in.
Pages: 1
If you try to build a package inside a folder that has a space in the name the build fails.
Can someone please report it as I don't have a arch bug tracker account.
Thanks.
Offline
Create an account then... but there really is no need. This definitely does work as long as the PKGBUILD always uses $srcdir and $pkgdir in quotes.
Offline
In that case the AUR packaging standards need to be updated because most PKGBUILDs do not put $srcdir and $pkgdir in quotes.
Offline
More to the point though, can pacman handle packages with a space in the name? I know I've never seen one, and I doubt anyone would want to. Why does your package need a space?
[git] | [AURpkgs] | [arch-games]
Offline
OP is talking about 'building inside a folder with a space in the name', by which he's referring to the path I guess.
pacman -U works fine, though I've never seen a package with a space in the file-name itself, I've -U from a package which was on a path with a space in the name.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
I've never tested a space in the "pkgname" var. My guess is it does not work... Spaces in source file names should work.
In that case the AUR packaging standards need to be updated because most PKGBUILDs do not put $srcdir and $pkgdir in quotes.
The prototype in /usr/share/pacman does use quotes. However, even many official packages don't because no-one really cares about this.
Offline
Yes, I was under the impression that spaces in your directory path would break plenty of stuff. Just say no, when the paths in question are to be used for anything other than user data, in other words, everything outside /home
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Save a PKGBUILD in a folder called "Build folder" and try to build it.
Offline
Your point being? makepkg can handle it provided the PKGBUILD is quotes the relevant variables. Problem is, no-one cars enough to do that...
Offline
Save a PKGBUILD in a folder called "Build folder" and try to build it.
Spaces are traditionally not used in paths for exactly this reason. Regardless, Alan is right. It's not makepkg that's broken, it's the syntax of the PKGBUILD's you're using.
I'd suggest you'll have a hard time getting this "fixed" since:
1) you'll have to file a bug against every single package that doesn't quote the variable in the PKGBUILD; and
2) this seems to be the first time anyone has wanted to use a build directory with a space in the name....
Probably going to take even longer if you won't make yourself an account on the bug tracker and want someone else to do all the reporting for you ![]()
Last edited by fukawi2 (2009-09-17 02:03:06)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Here's plan:
1. Wait untill 3.00 am.
2. Hack AUR and get root access.
3. Dissable AUR submissions.
4. Run script to decompress the PKGBUILDs, add quotes to the variables using sed, then recompress them.
5. Re-enable AUR submissions.
6. Edit Wiki AUR packaging standards page to require all variables be quoted.
Also thought of plan for getting 1000000000 USD while I was making the first plan.
1. Wait untill 3.00 am.
2. Hack AUR and get root access.
3. Dissable AUR submissions.
4. Move all the PKGBUILDs onto usb flash drive.
5. Tie some string onto the flash drive.
6. Tie the other end of the string to a bridge with water underneath.
7. Put sharks into the water under the bridge.
8. Steal some nukular missiles.
9. Aim the nukular missiles at the string.
10. Hold the PKGBUILDs for ransom for 1000000000 USD.
Offline
Someone would need to care about this.
I doubt anyone would. Spaces in file/directory names are the evil step-child of Unix filesystems, we can deal with them, but everyone would rather they didn't exist.
The PKGBUILDs in question just aren't kind enough to care
.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
1. Wait untill 3.00 am.
Who's 3.00am? Your 3.00am is probably right when I am using the AUR.
Why would we take down the AUR and do a mass change of all the packages just because 1 person doesn't want to rename their build directory from "Build Dir" to "BuildDir" or "Build_Dir"?
Last edited by fukawi2 (2009-09-17 22:40:52)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1