• please avoid dpkg_late_eval in debian/rules

    From nicolas.boulenguez@free.fr@21:1/5 to All on Wed Jul 31 07:10:01 2024
    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)))

    %:
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
    <p>Hello.</p>
    <p>Several KDE packages expand the dpkg_late_eval macro defined in<br />/usr/share/dpkg/*.mk.</p>
    <p>https://codesearch.debian.net/search?q=dpkg_late_eval+file%3Adebian%2Frules&amp;page=5&amp;perpkg=1</p>
    <p>This macro was intended for private use only, has never been<br />documented, and may soon be removed. &nbsp;Please consider the following<br />changes or a variant.</p>
    <p>Thanks.</p>
  • From =?ISO-8859-1?Q?Aur=E9lien?= COUDERC@21:1/5 to All on Wed Jul 31 13:20:01 2024
    Hi,

    [moving to our discussions list]

    Le mercredi 31 juillet 2024, 07:02:40 CEST nicolas.boulenguez@free.fr 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)