Opened 12 years ago

Last modified 12 years ago

#1322 closed defect

[PATCH] FTBFS on Debian GNU/kfreebsd — at Version 2

Reported by: Vincent Cheng Owned by:
Priority: Nice to Have Milestone: Alpha 12
Component: Build & Packages Keywords: patch
Cc: Patch:

Description (last modified by fcxSanya)

On Debian GNU/kfreebsd, 0 A.D. fails to build from source while building premake (Debian buildd logs can be found at [1]), because premake doesn't recognize Debian GNU/kFreeBSD as a valid BSD platform [2], and thinks we're running a build in a Windows environment instead. The following patch fixes this:

--- a/build/premake/premake4/src/host/premake.h
+++ b/build/premake/premake4/src/host/premake.h
@@ -15,7 +15,7 @@
 #if defined(__linux__)
 #define PLATFORM_LINUX    (1)
 #define PLATFORM_STRING   "linux"
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
 #define PLATFORM_BSD      (1)
 #define PLATFORM_STRING   "bsd"
 #elif defined(__APPLE__) && defined(__MACH__)

Change History (3)

by Vincent Cheng, 12 years ago

Attachment: fix-kfreebsd-ftbfs.patch added

comment:1 by Vincent Cheng, 12 years ago

Sorry about the mess above, I didn't know Trac would butcher my patch like that. Remind me never to post patches in-line again. :/

comment:2 by fcxSanya, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.