[opensuse-buildservice] osc build causes "Too many arguments" in /usr/bin/build
Hi! I was trying to do a local build using 'osc build openSUSE_10.3 x86_64 sane-backends-snapshot.spec'. However the build will fail on invocation of the build-script: sudo /usr/bin/build --root=/var/tmp/build-root --rpmlist=/tmp/rpmlist.bCcRF4 --dist=/tmp/buildconfig.24-lvT sane-backends-snapshot.spec --norootforbuild --changelog /usr/bin/build: line 387: test: too many arguments Usage: /usr/bin/build <src-dirctory> Manuall invoking /usr/bin/build will work. sudo build --rpms /media/SU1030.001/suse/ Is there a newer version of /usr/bin/build that I will have to use. I am using the one from opensuse 10.3 with the osc from openSUSE:/Tools, this means I got the newest version I could find of those two tools Any advice is appreciated, Matthias -- Matthias Bach www.marix.org "Was nicht mit einer gewissen Unsicherheit behaftet ist, kann unmöglich die Wahrheit sein." - Richard P. Feynman
Hi! Am Samstag 02 Februar 2008 schrieb Matthias Bach:
sudo /usr/bin/build --root=/var/tmp/build-root --rpmlist=/tmp/rpmlist.bCcRF4 --dist=/tmp/buildconfig.24-lvT sane-backends-snapshot.spec --norootforbuild --changelog /usr/bin/build: line 387: test: too many arguments Usage: /usr/bin/build <src-dirctory>
Seems like I have been looking for the wrong problem all the time. The error is caused by /usr/bin/build sometimes not using quotes when passing $SRCDIR as a parameter to other applications. The error therefore is a result of a directory name containing a space. osc build is not the problem. Regards, Matthias -- Matthias Bach www.marix.org "Was nicht mit einer gewissen Unsicherheit behaftet ist, kann unmöglich die Wahrheit sein." - Richard P. Feynman
Hi! Am Samstag 02 Februar 2008 schrieb Matthias Bach:
Hi!
Am Samstag 02 Februar 2008 schrieb Matthias Bach:
sudo /usr/bin/build --root=/var/tmp/build-root --rpmlist=/tmp/rpmlist.bCcRF4 --dist=/tmp/buildconfig.24-lvT sane-backends-snapshot.spec --norootforbuild --changelog /usr/bin/build: line 387: test: too many arguments Usage: /usr/bin/build <src-dirctory>
Seems like I have been looking for the wrong problem all the time. The error is caused by /usr/bin/build sometimes not using quotes when passing $SRCDIR as a parameter to other applications. The error therefore is a result of a directory name containing a space.
The attached diff will fix the problem if applied to /usr/bin/build Regards, Matthias -- Matthias Bach www.marix.org "Was nicht mit einer gewissen Unsicherheit behaftet ist, kann unmöglich die Wahrheit sein." - Richard P. Feynman
On Sat, 2 Feb 2008 22:25:33 +0100, Matthias Bach wrote:
The attached diff will fix the problem if applied to /usr/bin/build
Please open a bug report on https://bugzilla.novell.com and attach your patch. That makes sure it won't get lost here. Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Matthias Bach
-
Philipp Thomas