[opensuse-buildservice] local packages do not override global packages
The package ocaml-findlib in devel:languages:ocaml has a BuildRequires: "camlp4". In the same project ocaml-camlp4-devel (from package ocaml) provides "campl4". But this provides is not used, instead the package 'camlp4' from the main openSUSE_12.1 project is used: devel:languages:ocaml/ocaml-findlib $ obs r -v openSUSE_12.1 i586 unresolvable: nothing provides ocaml = 3.12.0-11.1.2 needed by camlp4 nothing provides ocaml(Arg) = 877340141c0babb58b3aaef2f5b70fc9 needed by camlp4 openSUSE_12.1 x86_64 unresolvable: nothing provides ocaml = 3.12.0-11.1.2 needed by camlp4 nothing provides ocaml(Arg) = 877340141c0babb58b3aaef2f5b70fc9 needed by camlp4 Is this a bug in the dependency solver? I reported it via bugzilla, but got no reply up to now: https://bugzilla.novell.com/show_bug.cgi?id=781120 Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, Nov 12, 2012 at 03:36:16PM +0100, Olaf Hering wrote:
The package ocaml-findlib in devel:languages:ocaml has a BuildRequires: "camlp4". In the same project ocaml-camlp4-devel (from package ocaml) provides "campl4".
But this provides is not used, instead the package 'camlp4' from the main openSUSE_12.1 project is used:
devel:languages:ocaml/ocaml-findlib $ obs r -v openSUSE_12.1 i586 unresolvable: nothing provides ocaml = 3.12.0-11.1.2 needed by camlp4 nothing provides ocaml(Arg) = 877340141c0babb58b3aaef2f5b70fc9 needed by camlp4 openSUSE_12.1 x86_64 unresolvable: nothing provides ocaml = 3.12.0-11.1.2 needed by camlp4 nothing provides ocaml(Arg) = 877340141c0babb58b3aaef2f5b70fc9 needed by camlp4
Is this a bug in the dependency solver?
No bug, BuildRequires select the real package name if available. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Having 'su-wrapper = true true' in ~/.oscrc causes osc chroot to fail, it tries to execute "sudo 'true true' chroot ...". osc build does not have such bug. Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Nov 13, Olaf Hering wrote:
Having 'su-wrapper = true true' in ~/.oscrc causes osc chroot to fail, it tries to execute "sudo 'true true' chroot ...". osc build does not have such bug.
Doing it like this fixes it for me: --- commandline.py +++ /usr/lib64/python2.6/site-packages/osc/commandline.py @@ -5235,7 +5235,7 @@ Please submit there instead, or use --no else: cmd = [sucmd, 'chroot', buildroot, 'su', '-', user] if suargs: - cmd.insert(1, suargs) + cmd[1:1] = suargs.split() print 'running: %s' % ' '.join(cmd) os.execvp(sucmd, cmd) Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Ping?? On Tue, Nov 13, Olaf Hering wrote:
On Tue, Nov 13, Olaf Hering wrote:
Having 'su-wrapper = true true' in ~/.oscrc causes osc chroot to fail, it tries to execute "sudo 'true true' chroot ...". osc build does not have such bug.
Doing it like this fixes it for me:
--- commandline.py +++ /usr/lib64/python2.6/site-packages/osc/commandline.py @@ -5235,7 +5235,7 @@ Please submit there instead, or use --no else: cmd = [sucmd, 'chroot', buildroot, 'su', '-', user] if suargs: - cmd.insert(1, suargs) + cmd[1:1] = suargs.split() print 'running: %s' % ' '.join(cmd) os.execvp(sucmd, cmd)
Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, On 2012-11-13 21:18:50 +0100, Olaf Hering wrote:
On Tue, Nov 13, Olaf Hering wrote:
Having 'su-wrapper = true true' in ~/.oscrc causes osc chroot to fail, it tries to execute "sudo 'true true' chroot ...". osc build does not have such bug.
Doing it like this fixes it for me:
I just committed your fix. Thanks!
--- commandline.py +++ /usr/lib64/python2.6/site-packages/osc/commandline.py @@ -5235,7 +5235,7 @@ Please submit there instead, or use --no else: cmd = [sucmd, 'chroot', buildroot, 'su', '-', user] if suargs: - cmd.insert(1, suargs) + cmd[1:1] = suargs.split() print 'running: %s' % ' '.join(cmd) os.execvp(sucmd, cmd)
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Marcus Hüwe
-
Michael Schroeder
-
Olaf Hering