Package: coreutils
Version: 9.5-1
Severity: wishlist
tags -1 patch

Hi!  Coreutils supports building with --with-packager flags that make
tools output Debian-specific version numbers.

The attached patch to debian/rules adds the following parameters to the
./configure invocation:

    --with-packager=Debian
    --with-packager-version=$(DEB_VERSION)

which should turn the command-line tool --versions output into:

jas@kaka:~/src/coreutils/src$ LANG=C ./id --version
id (GNU coreutils) 9.5
Packaged by Debian (9.5-1)
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Arnold Robbins and David MacKenzie.
jas@kaka:~/src/coreutils/src$ 

/Simon
--- rules.orig	2025-01-27 09:10:24.472485199 +0100
+++ rules	2025-01-27 09:10:29.192485181 +0100
@@ -19,7 +19,8 @@
 d=debian/coreutils
 
 override_dh_auto_configure:
-	dh_auto_configure -- --enable-install-program=arch --with-openssl=auto-gpl-compat
+	dh_auto_configure -- --enable-install-program=arch --with-openssl=auto-gpl-compat \
+		--with-packager=Debian --with-packager-version=$(DEB_VERSION)
 
 %:
 	dh $@ --with autoreconf

Attachment: signature.asc
Description: PGP signature

Reply via email to