please avoid dpkg_late_eval in debian/rules

[email protected]
Newsgroups gmane.linux.debian.devel.qt-kde,gmane.linux.debian.devel.dpkg.general
Message-ID <[email protected]>
Hello.

Several KDE packages expand the dpkg_late_eval macro defined in
/usr/share/dpkg/*.mk.

https://codesearch.debian.net/search?q=dpkg_late_eval+file%3Adebian%2Frules&page=5&perpkg=1

This macro was intended for private use only, has never been
documented, and may soon be removed.  Please consider the following
changes or a variant.

Thanks.

--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all

  include /usr/share/dpkg/pkg-info.mk

-AbiVirtualPackageVersion = $(call 
dpkg_late_eval,AbiVirtualPackageVersion,echo '${DEB_VERSION_UPSTREAM}' | 
sed -e 's/\.[0-9]\+$$//')
+AbiVirtualPackageVersion = $(basename $(DEB_VERSION_UPSTREAM))
  pkgs_lib = $(filter-out %-dev %-dbg %-bin %-data,$(filter lib%,$(shell 
dh_listpackages)))

  %:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.