Bug#1030034: libretro-nestopia FTCBFS: does not pass cross tools to make

Helmut Grohne helmut at subdivi.de
Mon Jan 30 11:48:18 GMT 2023


Source: libretro-nestopia
Version: 1.52.0+20221230.gitdd78611-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libretro-nestopia fails to cross build from source, because it does not
pass cross tools to make. The easiest way of doing so - using
dh_auto_build - makes libretro-nestopia cross buildable. I'm applaying a
patch for your convenience.

Helmut
-------------- next part --------------
diff --minimal -Nru libretro-nestopia-1.52.0+20221230.gitdd78611/debian/changelog libretro-nestopia-1.52.0+20221230.gitdd78611/debian/changelog
--- libretro-nestopia-1.52.0+20221230.gitdd78611/debian/changelog	2023-01-07 18:06:04.000000000 +0100
+++ libretro-nestopia-1.52.0+20221230.gitdd78611/debian/changelog	2023-01-30 12:44:22.000000000 +0100
@@ -1,3 +1,10 @@
+libretro-nestopia (1.52.0+20221230.gitdd78611-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 30 Jan 2023 12:44:22 +0100
+
 libretro-nestopia (1.52.0+20221230.gitdd78611-1) unstable; urgency=medium
 
   * Initial release. (Closes: #1028131)
diff --minimal -Nru libretro-nestopia-1.52.0+20221230.gitdd78611/debian/rules libretro-nestopia-1.52.0+20221230.gitdd78611/debian/rules
--- libretro-nestopia-1.52.0+20221230.gitdd78611/debian/rules	2023-01-07 18:06:04.000000000 +0100
+++ libretro-nestopia-1.52.0+20221230.gitdd78611/debian/rules	2023-01-30 12:44:22.000000000 +0100
@@ -5,17 +5,8 @@
 export DPKG_EXPORT_BUILDFLAGS=1
 include /usr/share/dpkg/buildflags.mk
 
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-else
-NUMJOBS := 1
-endif
-
 %:
-	dh $@
-
-override_dh_auto_build:
-	make -C libretro -j$(NUMJOBS)
+	dh $@ -Dlibretro
 
 override_dh_auto_install:
 	make -C libretro install DESTDIR=$(CURDIR)/debian/tmp libdir=/usr/lib/$(DEB_HOST_MULTIARCH)


More information about the Pkg-games-devel mailing list