please avoid dpkg_late_eval in debian/rules

nicolas.boulenguez at free.fr nicolas.boulenguez at free.fr
Thu Aug 1 15:54:29 BST 2024


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20240801/a96fa93e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelib_no_dpkg_late_eval.diff
Type: text/x-diff
Size: 1575 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20240801/a96fa93e/attachment.diff>


More information about the pkg-kde-talk mailing list