Package: verse Version: 0.22.8 Severity: normal Tags: patch Hi,
verse fails to cross build because: - It hardcodes gcc in the Makefile rather than using $(CC) which the cross build system could pass the host compiler - It strips the verse binary using build architecture's strip. IMHO this is not needed as we can simply let dh_strip do the job. Please consider applying the attached patch. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages verse depends on: pn dialog <none> ii libc6 2.33-7 verse recommends no packages. verse suggests no packages.
diff --git a/Makefile b/Makefile index 5f2f8b0..c9b9a1e 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ CFLAGS = -Wall -g -O2 -ansi $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) MAN_DIR = /usr/share/man/man1 +CC ?= gcc all : verse @@ -15,8 +16,7 @@ clean : distclean : clean verse : verse.c - gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DVERSE_LIB=\"$(VERSE_LIB)$(VERSE_NAME)\" -o verse verse.c - strip verse + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DVERSE_LIB=\"$(VERSE_LIB)$(VERSE_NAME)\" -o verse verse.c install : verse $(VERSE_NAME) install -m 755 -d debian/verse/$(BIN_DIR)