Package: devscripts
Version: 2.23.5
Severity: wishlist

Dear devscripts maintainers,

nowadays it is common to have, say, "debhelper-compat (= X), dh-lua" as the first entries in Build-Depends to signal which build system is used.

wrap-and-sort , however, does not treat these first entries any differently than other entries, so they often end up somewhere in the middle of the sorted dependency list.

To reproduce this issue:

$ d=$(mktemp -d); cd $d; mkdir debian
$ printf "Build-Depends:\n debhelper-compat (= 13),\n dh-lua,\n bats,\n desktop-file-utils,\n zip,\n" > debian/control
$ cp debian/control debian/control.orig

$ wrap-and-sort -sat
$ diff -u debian/control{.orig,}
--- debian/control.orig
+++ debian/control
@@ -1,6 +1,6 @@
 Build-Depends:
- debhelper-compat (= 13),
- dh-lua,
  bats,
+ debhelper-compat (= 13),
  desktop-file-utils,
+ dh-lua,
  zip,

Could wrap-and-sort treat the packages related to the build system (debhelper, debhelper-compat, dh-*, cdbs) in a special way and always place them as the first entries in Build-Depends?

Regards,

--
Gioele Barabucci

Reply via email to