Control: tags 1066216 + patch
Control: tags 1066216 + pending

Dear maintainer,

I've prepared an NMU for hfsutils (versioned as 3.2.6-15.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Cheers

-- 
Sebastian Ramacher
diff -Nru hfsutils-3.2.6/debian/changelog hfsutils-3.2.6/debian/changelog
--- hfsutils-3.2.6/debian/changelog	2021-01-23 15:23:26.000000000 +0100
+++ hfsutils-3.2.6/debian/changelog	2024-04-14 12:39:50.000000000 +0200
@@ -1,3 +1,10 @@
+hfsutils (3.2.6-15.1) unstable; urgency=medium
+
+  [ Benjamin Drung ]
+  * Explicitly import string.h (Closes: #1066216, LP: #2060708)
+
+ -- Sebastian Ramacher <sramac...@debian.org>  Sun, 14 Apr 2024 12:39:50 +0200
+
 hfsutils (3.2.6-15) unstable; urgency=medium
 
   * Set myself as maintainer in debian/control (Closes: #677770)
diff -Nru hfsutils-3.2.6/debian/patches/Explicitly-include-string.h.patch hfsutils-3.2.6/debian/patches/Explicitly-include-string.h.patch
--- hfsutils-3.2.6/debian/patches/Explicitly-include-string.h.patch	1970-01-01 01:00:00.000000000 +0100
+++ hfsutils-3.2.6/debian/patches/Explicitly-include-string.h.patch	2024-04-14 12:38:09.000000000 +0200
@@ -0,0 +1,37 @@
+From: Benjamin Drung <benjamin.dr...@canonical.com>
+Date: Tue, 9 Apr 2024 18:21:33 +0200
+Subject: Explicitly include string.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+> gcc -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Ilibhfs -I/usr/include/tcl -I/usr/include/tk -DHAVE_CONFIG_H -DUSE_INTERP_RESULT -c -o hpwd.o hpwd.c
+> hpwd.c: In function ‘hpwd_main’:
+> hpwd.c:55:7: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
+> 55 | if (strcmp(ent->cwd, ":") == 0)
+> | ^~~~~~
+> hpwd.c:32:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
+> 31 | # include "hpwd.h"
+> +++ |+#include <string.h>
+> 32 |
+> cc1: some warnings being treated as errors
+> make[1]: *** [<builtin>: hpwd.o] Error 1
+
+Closes: #1066216
+LP: #2060708
+---
+ hpwd.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/hpwd.c b/hpwd.c
+index cd3b100..84c34cf 100644
+--- a/hpwd.c
++++ b/hpwd.c
+@@ -24,6 +24,7 @@
+ # endif
+ 
+ # include <stdio.h>
++# include <string.h>
+ 
+ # include "hfs.h"
+ # include "hcwd.h"
diff -Nru hfsutils-3.2.6/debian/patches/series hfsutils-3.2.6/debian/patches/series
--- hfsutils-3.2.6/debian/patches/series	2021-01-23 15:23:26.000000000 +0100
+++ hfsutils-3.2.6/debian/patches/series	2024-04-14 12:38:09.000000000 +0200
@@ -2,3 +2,4 @@
 0002-Fix-FTBFS-with-gcc-3.4.patch
 0003-Add-support-for-files-larger-than-2GB.patch
 0004-Add-DUSE_INTERP_RESULT-to-DEFINES-in-Makefile.in.patch
+Explicitly-include-string.h.patch

Reply via email to