FS#393 - makepkg cannot handle blanks in directory-name it is run in

Attached to Project: Pacman
Opened by Damir Perisa (damir.perisa) - Monday, 19 January 2004, 07:40 GMT
Last edited by Judd Vinet (judd) - Tuesday, 20 January 2004, 02:06 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.6 Widget
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

if you run makepkg in a directory with a name that contains a blank, makepkg is not capable of handling it:

[damir@Asteraceae damir]$ cd building/GYach\ Enhanced/
[damir@Asteraceae GYach Enhanced]$ ls
PKGBUILD PKGBUILD~
[damir@Asteraceae GYach Enhanced]$ makepkg
/usr/bin/makepkg: line 278: cd: /home/damir/building/GYach: No such file or directory
/usr/bin/makepkg: line 280: cd: OLDPWD not set
/usr/bin/makepkg: line 314: [: too many arguments
==> Entering fakeroot environment
/usr/bin/makepkg: line 278: cd: /home/damir/building/GYach: No such file or directory
/usr/bin/makepkg: line 280: cd: OLDPWD not set
/usr/bin/makepkg: line 314: [: too many arguments
==> Making package: gyache (Sun Jan 18 22:50:23 CET 2004)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
/usr/bin/makepkg: line 372: cd: /home/damir/building/GYach: No such file or directory
==> Retrieving Sources...
/usr/bin/makepkg: line 377: cd: /home/damir/building/GYach: No such file or directory
==> Downloading gyach-enhanced_pyvoice-source-1.0.0pre.tar.bz2
--22:50:25-- http://umn.dl.sourceforge.net/sourceforge/phpaint/gyach-enhanced_pyvoice-source-1.0.0pre.tar.bz2
=> `gyach-enhanced_pyvoice-source-1.0.0pre.tar.bz2'
Resolving umn.dl.sourceforge.net... 128.101.80.130
Connecting to umn.dl.sourceforge.net[128.101.80.130]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,328,897 [application/x-bzip2]

100%[========================================>] 1,328,897 30.75K/s ETA 00:00

22:51:03 (34.58 KB/s) - `gyach-enhanced_pyvoice-source-1.0.0pre.tar.bz2' saved [1328897/1328897]

==> WARNING: MD5sums are missing or incomplete. Cannot verify source integrity.
==> Extracting Sources...
==> tar --use-compress-program=bzip2 -xf gyach-enhanced_pyvoice-source-1.0.0pre.tar.bz2
chown: failed to get attributes of `/home/damir/building/GYach': No such file or directory
chown: failed to get attributes of `Enhanced/src': No such file or directory
/usr/bin/makepkg: line 528: [: /home/damir/building/GYach: binary operator expected
==> Starting build()...
/usr/bin/makepkg: line 15: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed. Aborting...
[damir@Asteraceae GYach Enhanced]$
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 07 February 2005, 17:45 GMT
Reason for closing:  Won't fix
Comment by dorphell (dorphell) - Tuesday, 20 January 2004, 14:48 GMT
apeiro, just need to double-quote vars (ie "$1")
Comment by Judd Vinet (judd) - Wednesday, 28 January 2004, 17:18 GMT
actually, it's more complicated than that. The $startdir variable contains the CWD, so every PKGBUILD would have to double-quote $startdir.
Comment by Shahar (sweiss) - Friday, 28 May 2004, 15:06 GMT
It also causes trouble when using an underscore, probably some other chars as well.
Comment by arjan timmerman (blaasvis) - Sunday, 06 February 2005, 14:07 GMT
this bug is old, what is it's state ?
Comment by Judd Vinet (judd) - Monday, 07 February 2005, 17:45 GMT
Same state. I haven't found an elegant way to fix this without having to tweak the PKGBUILDs themselves.

Closing as "Won't Fix" for now.

Loading...