
Am Dienstag, 1. November 2011, 10:24:53 schrieb Jiri Slaby:
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.
hm, just running osc setlinkrev $PROJECT $PACKAGE or inside of a checked out package is setting it to the current xsrcmd5. No need to lookup it yourself. Alternative solution would be to run osc api /source/X11:xfce/midori?expand=1 and pick srcmd5 from directory, this is the effective sourcemd5 of the merged sources. Or, maybe best way would be to use the srcmd5 of last successful build: osc api /build/X11:xfce/openSUSE_Factory/i586/midori/_history only successfull builds are in this history. this is also the merged source md5.
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...)
regards, -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org