[Debian-med-packaging] Bug#958091: wtdbg2: Baseline violation on amd64/i386 and FTBFS everywhere else

Adrian Bunk bunk at debian.org
Sat Apr 18 12:44:54 BST 2020


Source: wtdbg2
Version: 2.5-1
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/package.php?p=wtdbg2

...
gcc: error: unrecognized command line option ‘-mpopcnt’
gcc: error: unrecognized command line option ‘-msse4.2’
make[1]: *** [Makefile:27: kbm2] Error 1


Fix attached.
-------------- next part --------------
Description: Don't build with -mpopcnt -msse4.2
 This is a baseline violation on amd64 and i386,
 and causes FTBFS on all other release architectures.
Author: Adrian Bunk <bunk at debian.org>

--- wtdbg2-2.5.orig/Makefile
+++ wtdbg2-2.5/Makefile
@@ -11,9 +11,9 @@ TIMESTAMP=$(shell date)
 endif
 
 ifeq (1, ${DEBUG})
-CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O0 -DDEBUG=1 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -msse4.2
+CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O0 -DDEBUG=1 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 else
-CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -msse4.2
+CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 endif
 
 GLIBS=-lm -lrt -lpthread -lz $(LDFLAGS)


More information about the Debian-med-packaging mailing list