Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: deb-pkg: add comment about future removal of KDEB_COMPRESS

'man dpkg-deb' describes as follows:

DPKG_DEB_COMPRESSOR_TYPE
Sets the compressor type to use (since dpkg 1.21.10).

The -Z option overrides this value.

When commit 1a7f0a34ea7d ("builddeb: allow selection of .deb compressor")
was applied, dpkg-deb did not support this environment variable.

Later, dpkg commit c10aeffc6d71 ("dpkg-deb: Add support for
DPKG_DEB_COMPRESSOR_TYPE/LEVEL") introduced support for
DPKG_DEB_COMPRESSOR_TYPE, which provides the same functionality as
KDEB_COMPRESS.

KDEB_COMPRESS is still useful for users of older dpkg versions, but I
would like to remove this redundant functionality in the future.

This commit adds comments to notify users of the planned removal and to
encourage migration to DPKG_DEB_COMPRESSOR_TYPE where possible.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+7 -3
+3 -3
lib/Kconfig.debug
··· 335 335 Compress the debug information using zlib. Requires GCC 5.0+ or Clang 336 336 5.0+, binutils 2.26+, and zlib. 337 337 338 - Users of dpkg-deb via scripts/package/builddeb may find an increase in 338 + Users of dpkg-deb via debian/rules may find an increase in 339 339 size of their debug .deb packages with this config set, due to the 340 340 debug info being compressed with zlib, then the object files being 341 341 recompressed with a different compression scheme. But this is still 342 - preferable to setting $KDEB_COMPRESS to "none" which would be even 343 - larger. 342 + preferable to setting KDEB_COMPRESS or DPKG_DEB_COMPRESSOR_TYPE to 343 + "none" which would be even larger. 344 344 345 345 config DEBUG_INFO_COMPRESSED_ZSTD 346 346 bool "Compress debugging information with zstd"
+4
scripts/package/debian/rules
··· 41 41 # which package is being processed in the build log. 42 42 DH_OPTIONS = -p$(package) 43 43 44 + # Note: future removal of KDEB_COMPRESS 45 + # dpkg-deb >= 1.21.10 supports the DPKG_DEB_COMPRESSOR_TYPE environment 46 + # variable, which provides the same functionality as KDEB_COMPRESS. The 47 + # KDEB_COMPRESS variable will be removed in the future. 44 48 define binary 45 49 $(Q)dh_testdir $(DH_OPTIONS) 46 50 $(Q)dh_testroot $(DH_OPTIONS)