Package: base-files
Version: 12.2
Tags: patch

`base-files` depends on `awk` although it does not need it.

`awk` was previously needed during the creation of the md5 hash of /etc/motd. Since Debian 7 wheezy (2016) that scripts is no longer used (in fact it has been renamed to `current-md5sums-obsolete`).

The two attached patches (also available at <https://salsa.debian.org/gioele/base-files/-/commits/remove-obsolete-md5-awk>) take care of removing the obsolete script and the `Pre-Depend`.

Regards,

--
Gioele Barabucci <gio...@svario.it>
From 7b9d25ee79939e4c22a82b24cd42c4671fb843f0 Mon Sep 17 00:00:00 2001
From: Gioele Barabucci <gio...@svario.it>
Date: Mon, 14 Mar 2022 18:20:46 +0100
Subject: [PATCH 1/2] debian/current-md5sum-obsolete: Remove unused script

The script `current-md5sum-obsolete` is no longer needed (nor functional)
since Debian 7 wheezy (2016).
---
 debian/current-md5sums-obsolete | 3 ---
 1 file changed, 3 deletions(-)
 delete mode 100755 debian/current-md5sums-obsolete

diff --git a/debian/current-md5sums-obsolete b/debian/current-md5sums-obsolete
deleted file mode 100755
index 5236dc4..0000000
--- a/debian/current-md5sums-obsolete
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | awk 'NR > 2' | md5sum
-sed -e "s&#OSNAME#&GNU/Hurd&"  etc/motd | awk 'NR > 2' | md5sum
-- 
2.34.1

From a21d86b40dc3bb89eca3b62b396845b423065081 Mon Sep 17 00:00:00 2001
From: Gioele Barabucci <gio...@svario.it>
Date: Mon, 14 Mar 2022 18:22:57 +0100
Subject: [PATCH 2/2] debian/control: Remove Pre-Depends on awk

The script `current-md5sums-obsolete` (now removed) was the only
thing that required `awk`.
---
 debian/control | 1 -
 1 file changed, 1 deletion(-)

diff --git a/debian/control b/debian/control
index 960c5d4..f761926 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,6 @@ Build-Depends: debhelper-compat (= 13)
 Package: base-files
 Provides: base
 Architecture: any
-Pre-Depends: awk
 Depends: ${misc:Depends}
 Essential: yes
 Priority: required
-- 
2.34.1

Reply via email to