Op 26-03-13 23:36, Greg Freemyer schreef:
On Tue, Mar 26, 2013 at 5:47 PM, Cor Blom <cornelis@solcon.nl> wrote:
Hi,
Sometimes I want to build a package on my machine, outside obs. The "build" script worked fine for this, until I upgraded to 12.3. I had to adapt the sl12.3.conf in /usr/lib/build/configs (libgcc%{gcc_version} --> gcc%{gcc_version}) but that is no problem. No I am stuck with the following message:
[ 6s] expanding package dependencies... [ 9s] Use of uninitialized value within %packs in hash element at /usr/lib/build/expanddeps line 199. [ 9s] Use of uninitialized value in concatenation (.) or string at /usr/lib/build/expanddeps line 199. [ 9s] Use of uninitialized value within %packs in exists at /usr/lib/build/expanddeps line 200. [ 9s] Use of uninitialized value within %packs in hash element at /usr/lib/build/expanddeps line 199. [ 9s] Use of uninitialized value in concatenation (.) or string at /usr/lib/build/expanddeps line 199. [ 9s] Use of uninitialized value within %packs in exists at /usr/lib/build/expanddeps line 200. [ 9s] unsupported url for 'insserv':
This is the result of executing (as root):
build foo.spec
Can someone help, or should I file a bug report?
Thanks,
Cor
Cor,
I note you say without OBS, but you don't mention osc. osc is the standard "build" manager for local builds. I admit I use osc to pull down packages, then "osc build openSUSE_12.3" to do a local build. That does still need a Internet connection, but most of the work takes place on my machine and I can make specfile / patch changes locally until the build works, then do a osc commit to push my changes back when I'm done.
I don't have an opinion about if build foo.spec should work or not, but there was a long and contentious thread in factory about building without obs/osc.
I think the end result was that opensuse makes no statement of support for building packages without "osc".
"osc build --offline" may be a tool you want to investigate. It should build a package in a chroot environment similar to how the OBS does it.
Greg
I know everything about osc build and use it more often than simply build without osc, but there are cases I want something else. The --offline option is not giving me what I am looking for. For me one of the points of build is that I can build against the zypp repos I have set up, which includes also packages not on build.opensuse.org. Also, the man page of build does refer to the way I use it. And on the wiki it is also named as alternative (http://en.opensuse.org/openSUSE:Build_Service_private_instance - first alternative). So I expect build foo.spec to work. The documentation says so. Cor -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org