Package: openmsx-catapult
Version: 0.7.2-2
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

Hi,

your package FTBFS on GNU/kFreeBSD. Logs are available at the usual
place[1].

 1. 
https://buildd.debian.org/status/package.php?suite=unstable&p=openmsx-catapult

Please note that the build system really should fail earlier, in the
“build” target. Please also note that it would be nice to update
config.{guess,sub} using autotools-dev's at build time, before
configuring. Especially since yours date back to 2004.

Please find attached a tiny patch to fix the FTBFS on GNU/kFreeBSD.

Thanks for considering.

Mraw,
KiBi.
diff -u openmsx-catapult-0.7.2/build/detectsys.sh openmsx-catapult-0.7.2/build/detectsys.sh
--- openmsx-catapult-0.7.2/build/detectsys.sh
+++ openmsx-catapult-0.7.2/build/detectsys.sh
@@ -67,7 +67,7 @@
 		;;
 esac
 case "$GUESSED_OS" in
-	*linux*)
+	*linux*|*k*bsd*)
 		CATAPULT_TARGET_OS=linux;;
 	*darwin*)
 		CATAPULT_TARGET_OS=darwin;;
only in patch2:
unchanged:
--- openmsx-catapult-0.7.2.orig/src/MiscControlPage.cpp
+++ openmsx-catapult-0.7.2/src/MiscControlPage.cpp
@@ -131,7 +131,7 @@
 	wxString current;
 	int pos;
 
-#ifndef __BSD__
+#if !defined(__BSD__) && !defined(__GLIBC__)
 	wxJoystick joy(wxJOYSTICK1);
 	wxString temp;
 #endif
@@ -149,7 +149,7 @@
 		box[i]->Append(wxT("keyjoystick1"));
 		box[i]->Append(wxT("keyjoystick2"));
 
-#ifndef __BSD__
+#if !defined(__BSD__) && !defined(__GLIBC__)
 		for (int j=1;j<=joy.GetNumberJoysticks();j++) {
 			temp.sprintf(wxT("joystick%d"),j);
 			box[i]->Append(temp);

Reply via email to