tags 1091028 patch
thanks
El 22/12/24 a las 12:18, Helmut Grohne escribió:
I also ran into this failure with a twist. I also happened to do a
non-parallel build and there it succeeds. A quick workaround is adding
--no-parallel to dh_auto_build and it also gives some idea on where to
look for the cause.
Hi. I sent Marco privately a preliminary patch for this, but I should
have posted it here.
Here is a slightly improved version.
The trick is to stop caring about "cflags" file as much as possible.
(Autobuilders only build the package once).
Thanks.
commit d356c3c8678a417e5d844956d4af06c8450ed317
Author: Santiago Vila <sanv...@debian.org>
Date: Tue Dec 24 14:32:00 2024 +0100
misc-makefile-fixes
diff --git a/debian/patches/misc-makefile-fixes.patch
b/debian/patches/misc-makefile-fixes.patch
new file mode 100644
index 0000000..4e384ed
--- /dev/null
+++ b/debian/patches/misc-makefile-fixes.patch
@@ -0,0 +1,37 @@
+Description: Misc Makefile fixes
+Author: Santiago Vila <sanv...@debian.org>
+Bug-Debian: https://bugs.debian.org/1091028
+Last-Update: 2024-12-24
+
+--- tcp-wrappers-7.6.q.orig/Makefile
++++ tcp-wrappers-7.6.q/Makefile
+@@ -720,9 +720,12 @@ KIT = README miscd.c tcpd.c fromhost.c h
+
+ LIB = libwrap.a
+
+-shared/%.o: %.c
++shared/%.o: %.c shared
+ $(CC) $(CFLAGS) $(SHCFLAGS) -c $< -o $@
+
++shared:
++ mkdir -p $@
++
+ SOMAJOR = 0
+ SOMINOR = 7.6
+
+@@ -735,11 +738,12 @@ SHLINKFLAGS = -Bsymbolic-functions -shar
+ SHCFLAGS = -fpic
+ SHLIB_OBJ= $(addprefix shared/, $(LIB_OBJ))
+
+-all other: config-check tcpd tcpdmatch try-from safe_finger tcpdchk $(LIB)
++all other: tcpd tcpdmatch try-from safe_finger tcpdchk $(LIB)
+
+-# Invalidate all object files when the compiler options (CFLAGS) have changed.
++cflags:
++ touch $@
+
+-config-check cflags:
++config-check:
+ @set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
+ @set +e; echo $(CFLAGS) >cflags.new ; \
+ if cmp cflags cflags.new ; \
diff --git a/debian/patches/series b/debian/patches/series
index b71a3b3..455bcf5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -32,3 +32,4 @@ initgroups
ignore_missing_inetdconf
fix_warnings2
disable_netgroups
+misc-makefile-fixes.patch