Hi!
I’m using openSUSE 11.3 i586 and trying to use build to build some packages.
However when I start build in a package directory I get:
logging output to /var/tmp/build-root/.build.log...
Memory limit set to 2715416KB
Using BUILD_ROOT=/var/tmp/build-root
Using BUILD_ARCH=i586:i486:i386
charger.at.home started "build gmrun.spec" at Sun Jul 25 12:31:51 UTC 2010.
processing specfile /home/muczy/home:muczy/gmrun/gmrun.spec ...
init_buildsystem --cachedir /var/cache/build --repository zypp:// /home/muczy/home:muczy/gmrun/gmrun.spec ...
initializing /var/tmp/build-root/.srcfiles.cache ...
/usr/lib/build/createrepomddeps zypp://Mozilla
/usr/lib/build/createrepomddeps zypp://NVIDIA
can't parse NVIDIA
The problem is that the Nvidia repo’s name is: “NVIDIA Repository” which contains a space which breaks createrepomddeps.
You can say that I shouldn’t use a space in the repo’s name however the opensuse installer created an update repo automatically (!): “Frissítések ehhez: openSUSE 11.3 11.3-1.82” (it’s Hungarian, meaning: “Updates for this: …”). So build fails on this one too.
Also I haven’t got this problem under 11.2.
Any ideas?
Show us the command line that you are using. Have you tried using your quotes around the folder name in the command line? What about using an underscore? You know that sometimes you have to go with the flow, or more to the point, use what seems to work. It is good perhaps to find out why, but I would not stop production over using a space I don’t think.
The space isn’t in the path string but in the name of some opensuse repositories I’m using.
The full path I’m using to build is: /home/muczy/home:muczy/gmrun which was created by “osc co home:muczy gmrun”.
I’ve taken a look at /usr/lib/build/init_buildsystem and noticed that since it is written in bash, the main problem is that bash seperates array items with space, so if you give a string like “Nvidia repository” to a bash array it will store not one but two items: “Nvidia” and “repository”.
I don’t know how 11.2’s build package handled this but it did.
My wrong…
I’ve user “osc build” under 11.2 not “build”.
However this is still a bug I think.
So, did using quotes fix the problem or is it really working or what? I guess I am confused but if there is a solution in here, we need to let everyone else know what it was.