Skip to content

debian: revert dsc and source format changes - #70

Open
bluca wants to merge 2 commits into
openSUSE:masterfrom
bluca:deb
Open

bluca wants to merge 2 commits into
openSUSE:masterfrom
bluca:deb

Conversation

@bluca

@bluca bluca commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

dsc files are the output of a debian package build, not the input, and needlessly duplicate debian/control, which has to be then kept manually in sync. It has been many years since OBS supports a more native and modern approach to building debian packages. Also source format 1.0 is long since deprecated, and it's likely dpkg will break it at some point.
Reverting these changes and using the following _service file solves the build issues:

<services>
	<service name="tar_scm" mode="manual">
		<param name="exclude">.travis.yml</param>
		<param name="exclude">build-compare.changes</param>
		<param name="exclude">build-compare.spec</param>
		<param name="exclude">tests</param>
		<param name="extract">build-compare.changes</param>
		<param name="extract">build-compare.spec</param>
		<param name="extract-rename">debian/changelog:debian.changelog</param>
		<param name="extract-rename">debian/control:debian.control</param>
		<param name="filename">build-compare</param>
		<param name="scm">git</param>
		<param name="url">https://github.com/openSUSE/build-compare.git</param>
		<param name="versionformat">%ci.%h</param>
	</service>
	<service name="recompress" mode="manual">
		<param name="compression">gz</param>
		<param name="file">*.tar</param>
	</service>
	<service name="set_version" mode="manual"/>
	<!-- For Debian builds -->
	<service name="extract_file" mode="buildtime">
		<param name="archive">build-compare-*.tar.gz</param>
		<param name="files">build-compare-*/*</param>
		<param name="outfilename">/usr/src/packages/SOURCES/</param>
	</service>
</services>

bluca added 2 commits June 22, 2026 11:16
@olafhering

Copy link
Copy Markdown
Collaborator

The current state of the _service file is now in git. Please rebase, and adjust it as required.

See also https://build.opensuse.org/requests/1358085 why extract_file can not be used.

@bluca

bluca commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Unfortunately I don't think this can be done without extract_file, given it's a build-time-only package is there any chance to add it to ring0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants