[opensuse-buildservice] syntax to create _link to specific revsions

For short: How do I incrementally _link to each revision of a given package? The obvious way with 'osc log ; osc linkpac -r NUM' does not work for me. The first attempt fails with 'revision not found', but according to osc log r144 is the latest: pbs linkpac -f -r 131 -C copy openSUSE.org:GNOME:Factory gobject-introspection home:olh gobject-introspection Revision '131' does not exist Perhaps PMBS or osc can not talk to remotes? Then I tried it in OBS, which does not work either: obs setlinkrev -r 131 Server returned an error: HTTP Error 400: conflict in file gobject-introspection.spec conflict in file gobject-introspection.spec obs setlinkrev -r 130 set revision to 0a89b97678cca77c5cb6ed8b26628d65 for package gobject-introspection obs up -e Expanding to rev 8fe7b258738f5d078d312bc32263b5b5 A g-ir-dep-tool.patch A gi-find-deps.sh A gobject-introspection-1.44.0.tar.xz A gobject-introspection-rpmlintrc A gobject-introspection-typelib.template A gobject-introspection.changes A gobject-introspection.spec A gobjectintrospection.attr D _link At revision 8fe7b258738f5d078d312bc32263b5b5. But: r130 is certainly not package version 1.44. I wonder what 'osc log' output and 'osc linkpac|setlink' is supposed to represent. 8fe7b258738f5d078d312bc32263b5b5 does not appear in any 'osc log' output. Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Montag, 27. April 2015, 13:08:42 wrote Olaf Hering:
For short: ... obs setlinkrev -r 130 set revision to 0a89b97678cca77c5cb6ed8b26628d65 for package gobject-introspection obs up -e Expanding to rev 8fe7b258738f5d078d312bc32263b5b5 A g-ir-dep-tool.patch A gi-find-deps.sh A gobject-introspection-1.44.0.tar.xz A gobject-introspection-rpmlintrc A gobject-introspection-typelib.template A gobject-introspection.changes A gobject-introspection.spec A gobjectintrospection.attr D _link At revision 8fe7b258738f5d078d312bc32263b5b5.
But: r130 is certainly not package version 1.44.
# eosc cat GNOME:Factory gobject-introspection _link -r 130 <link project="openSUSE:Factory" package="gobject-introspection" baserev="14bea72317bfaf03b04aa662e87a6be5"> <patches> <branch/> </patches> </link> The revision 130 contains an unversioned link to openSUSE:Factory. But current factory got already the version 1.44 What you can do is running eosc buildhistory GNOME:Factory gobject-introspection openSUSE_Factory x86_64 You find for example this line: 2013-09-19 19:50:21 CET c2f381f828a02bd37b82c34edf905bd8 1.37.6-131.19 130 Take the md5sum and use this one as -r paramater. This is the revision of the merged sources from that point of time of revision 130. You will get package version 1.37.6 this way. -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Mon, Apr 27, Adrian Schröter wrote:
On Montag, 27. April 2015, 13:08:42 wrote Olaf Hering:
For short: ... obs setlinkrev -r 130 set revision to 0a89b97678cca77c5cb6ed8b26628d65 for package gobject-introspection obs up -e Expanding to rev 8fe7b258738f5d078d312bc32263b5b5 A g-ir-dep-tool.patch A gi-find-deps.sh A gobject-introspection-1.44.0.tar.xz A gobject-introspection-rpmlintrc A gobject-introspection-typelib.template A gobject-introspection.changes A gobject-introspection.spec A gobjectintrospection.attr D _link At revision 8fe7b258738f5d078d312bc32263b5b5.
But: r130 is certainly not package version 1.44.
# eosc cat GNOME:Factory gobject-introspection _link -r 130 <link project="openSUSE:Factory" package="gobject-introspection" baserev="14bea72317bfaf03b04aa662e87a6be5"> <patches> <branch/> </patches> </link>
The revision 130 contains an unversioned link to openSUSE:Factory. But current factory got already the version 1.44
What you can do is running
eosc buildhistory GNOME:Factory gobject-introspection openSUSE_Factory x86_64
You find for example this line:
2013-09-19 19:50:21 CET c2f381f828a02bd37b82c34edf905bd8 1.37.6-131.19 130
Take the md5sum and use this one as -r paramater. This is the revision of the merged sources from that point of time of revision 130. You will get package version 1.37.6 this way.
What is the hash in osc log, and where can it be used? Looks like the buildhistory output is some source hash which is also placed into the rpm package like "obs://api/prj/repo/arch/hash-pkg". Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Olaf Hering