obs-build icon indicating copy to clipboard operation
obs-build copied to clipboard

Passing version to DEBTRANSFORM-TAR

Open KottV opened this issue 1 year ago • 3 comments

Hi,

Is there a way to pass package version to DEBTRANSFORM-TAR tag? My package have a bunch of source provided by _service with setversion. So without DEBTRANSFORM it can't pick up a proper source. But with every service run increasing the version I have to set that manually in .dsc.

KottV avatar Oct 04 '23 22:10 KottV

I have a similar issue. Using obs_scm with set_version and debtransform only works if you have debian.tar.gz and the source tarball provided by _service.

Currently I'm packaging a library for both Qt5 and Qt6, but both packages should share a common header package. So I used the same approach as kernel-source, e.g. I have one Package with two spec files. The second package has just a link to the first one with cicount="copy".

For debian, I have two .dsc files (one named after each package) and two archives with the remaining debian files. Choosing these archives is easy, DEBTRANSFORM-FILES-TAR. But debtransform fails to find the source archive:

Too many files looking like a usable source tarball (would not know which to pick): QtPdCom1.debian.tar.gz QtPdCom1-1.3.0.14.g03aa11b.tar.bz2

Maybe extend debtransform that DEBTRANSFORM-TAR could also be a regex or wildcard?

ighvh avatar Dec 15 '23 12:12 ighvh

related: openSUSE/obs-service-set_version#29

ighvh avatar Dec 15 '23 13:12 ighvh

With openSUSE/obs-service-set_version#88 it works for me well. My .dsc file contains

DEBTRANSFORM-TAR: QtPdCom1-@[email protected]

gleichdick avatar Jan 06 '24 14:01 gleichdick