Re: please avoid dpkg_late_eval in debian/rules

Aurélien COUDERC <[email protected]>
Newsgroups gmane.linux.debian.kde.talk,gmane.linux.debian.devel.dpkg.general
Message-ID <2950926.e9J7NaK4W3@grummly>
Hi,

[moving to our discussions list]

Le mercredi 31 juillet 2024, 07:02:40 CEST [email protected] a écrit :
> 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)))
> 
>   %:

Thanks Nicolas.

@Patrick I can see this only in the PIM stack for what I have cloned on my machine.

Maybe you could address that in a future PIM upload ?


Best,
--
Aurélien



-- 
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-kde-talk
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.