
On Tue, Nov 01, 2011 at 10:24:53AM +0100, Jiri Slaby wrote:
On 10/17/2011 07:30 PM, Greg KH wrote:
Hi Adrian,
We talked at brainshare about the "correct" way to link packages in Tumbleweed, and unfortunatly, I forgot one of the steps as I can't get it to work now.
Here's what I remember:
- look up the xsrcmd5 from the "root" package. For example, in the X11:xfce midori package I would do something like: osc api /source/X11:xfce/midori | grep linkinfo | pick out xsrcmd5
(where 'pick out' is a regex)
- then run 'osc setlinkrev' with that md5 in the Tumbleweed repo.
It's that last step that I can't seem to get correct, what is the exact command for it? I tried something like:
$ osc setlinkrev -r bc383278250a5673d3799c2b31c9e6ef openSUSE:Tumbleweed filesystem setting revision to bc383278250a5673d3799c2b31c9e6ef for package filesystem Server returned an error: HTTP Error 400: Base System/filesystem/bc383278250a5673d3799c2b31c9e6ef not in repository. Either not existing or misconfigured server setting for '$nosharedtrees' setting in BSConfig.pm Base:System/filesystem/bc383278250a5673d3799c2b31c9e6ef: not in repository. Either not existing or misconfigured server setting for '$nosharedtrees' setting in BSConfig.pm
Any hints would be appreciated.
Hi, I tried that right now, and it works for me: $ osc linkpac -f multimedia:libs libmatroska home:jirislaby:tumbleweed Sending meta data... Done. Creating _link... Done. $ osc api /source/multimedia:libs/libmatroska/ | \
sed -n 's@^.*linkinfo.*xsrcmd5="\([0-9a-f]*\)".*$@\1@ p' 7023adeac24e3401730a9731b340aac3 $ osc setlinkrev -r 7023adeac24e3401730a9731b340aac3 home:jirislaby:tumbleweed libmatroska setting revision to 7023adeac24e3401730a9731b340aac3 for package libmatroska
Could you retry? (I tried midori too...)
Ok, the problem I was having is that 'osc setlinkrev' does not work when you do not have the package in the repo in the first place. So I "fake" it out, buy doing a 'osc linkpac' first, to copy the package into the repo, then set it to the correct version by doing a 'osc setlinkrev' and all seems good. Thanks for the sed script there, that works much better than my mess of 'cut' and 'grep' commands I was using to hand-pick out the field value. I'll run this on openSUSE:Tumbleweed:Testing, and if all looks good, redo the links in openSUSE:Tumbleweed (I see you did this already for the kernel-firmware package), and then we should be good to go for puting more packages into Tumbleweed now. thanks again, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org