Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 8233  / 3 Years ago, tue, june 15, 2021, 11:00:24

I just updated to dpkg 1.17 and it now defaults to compressing data.tar with xz instead of gzip. That creates a problem when I'm remastering CD's for older versions of ubuntu.



Is there a way to tell dpkg-buildpackage to create data.tar.gz instead of xz? I tried -Zgzip without success.






Related manpages:



dpkg-buildpackage




-z, -Z



Passed unchanged to dpkg-source. See its manual page.




dpkg-source




-Zcompression, --compression=compression



Specify the compression to use for created files (tarballs and diffs).
Note that this option will not cause existing tarballs to be
recompressed, it only affects new files. Supported values are: gzip,
bzip2, lzma and xz. gzip is the default. xz is only supported since
dpkg-dev 1.15.5.



More From » dpkg

 Answers
2

I had the same problem while using newly build packages on an older server (hardy) which I couldn't update. The dpkg-source isn't responsible for creating a .deb package. It is only used to create the source package.



In fact dpkg-deb creates the packages witch is normally called by dh_builddeb in debian/rules. You can add change this command to dh_builddeb -- -Zgzip or call dpkg-deb -Zgzip directly.



If the command dh_builddeb isn't listed explicitly in the debian/rules file
you can add the following lines to make it work:



override_dh_builddeb:
dh_builddeb -- -Zgzip


Note that before the dh_builddeb option there is only one tab, not multiple spaces as this is a Makefile.


[#27809] Wednesday, June 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;