please avoid dpkg_late_eval in debian/rules

Patrick Franz deltaone at debian.org
Tue Aug 20 22:21:24 BST 2024


Hej Nicolas,

Am Donnerstag, 1. August 2024, 16:54:29 CEST schrieb 
nicolas.boulenguez at free.fr:
> Hello.
> 
> Just in case it helps while you are updating several packages, a more
> intrusive suggestion is attached, mostly replacing the shell loop with
> a Make loop. Compared to the current debian/rules in (for example)
> kitinerary,
> 
> + everything is visible in the log, especially the value of the
> substitution variable
> 
> + the build stops on first error (errors in shell lines before the
> last semi-colon do not interrupt Make)
> 
> + running override_dh_makeshlibs twice in a row will not add the
> substitution variable again and again.  This may be convenient when
> trying again an interrupted build for example.
> 
> + debian/rules -n override_dh_makeshlibs     allows one to check that
> all versions are correctly computed
> 
> +? \s* is removed from the regex removing abi[0-9]\+ (it seems
> unnecessary, but you may want to restore it if I am issing something)
> 
> I hope that you will be able to reuse some of these ideas.

It seems to work with both KDE PIM 5 and KDE PIM 6 packages. Thanks a 
lot for your patch.
I'll incorporate it into all the packages and monitor the situation in 
case something goes wrong.


-- 
Med vänliga hälsningar

Patrick Franz





More information about the pkg-kde-talk mailing list