Control: tags -1 + patch

On Wed, 26 Jul 2023 at 22:25:39 +0200, Lucas Nussbaum wrote:
> > cd debian/nbsdgames/usr/games; mmv '*' 'nb#1'
> > realloc(): invalid pointer
> > Aborted

This is really a mmv bug (#1042020) but it's easy to avoid for this
specific package by not using mmv. Please see attached, also available
as <https://salsa.debian.org/games-team/nbsdgames/-/merge_requests/1>.

    smcv
>From f44e5eb348d45bfc9c3d280d1526d748d3260751 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@debian.org>
Date: Thu, 27 Jul 2023 10:22:07 +0100
Subject: [PATCH] d/rules: Don't use mmv

mmv currently crashes whenever it acts on 9 or more files (#1042020)
and we don't really need it here.

Closes: #1042260
---
 debian/control | 1 -
 debian/rules   | 8 ++++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index b58f73b..8761d58 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,6 @@ Maintainer: Debian Games Team <pkg-games-de...@lists.alioth.debian.org>
 Uploaders: Gürkan Myczko <t...@debian.org>
 Build-Depends: debhelper-compat (= 13),
  libncurses-dev,
- mmv
 Standards-Version: 4.6.1
 Vcs-Git: https://salsa.debian.org/games-team/nbsdgames.git
 Vcs-Browser: https://salsa.debian.org/games-team/nbsdgames
diff --git a/debian/rules b/debian/rules
index a0de42a..d3d9eca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,5 +30,9 @@ override_dh_auto_test:
 #execute_after_dh_fixperms:
 override_dh_fixperms:
 	dh_fixperms
-	cd debian/nbsdgames/usr/games; mmv '*' 'nb#1'
-	cd debian/nbsdgames/usr/share/man/man6; mmv '*' 'nb#1'
+	set -e; cd debian/nbsdgames/usr/games; for x in *; do \
+		mv "$$x" "nb$$x"; \
+	done
+	set -e; cd debian/nbsdgames/usr/share/man/man6; for x in *; do \
+		mv "$$x" "nb$$x"; \
+	done
-- 
2.40.1

Reply via email to