Opened 12 years ago

Last modified 12 years ago

#1322 closed defect

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

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

Description

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) +#elif defined(FreeBSD)
defined(NetBSD) defined(OpenBSD)
defined(NetBSD) defined(OpenBSD) defined(FreeBSD_kernel)

#define PLATFORM_BSD (1) #define PLATFORM_STRING "bsd" #elif defined(APPLE) && defined(MACH)

[1] https://buildd.debian.org/status/package.php?p=0ad [2] http://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ#Q._How_do_I_detect_kfreebsd_with_preprocessor_directives_in_a_C_program.3F

Change History (1)

by Vincent Cheng, 12 years ago

Attachment: fix-kfreebsd-ftbfs.patch added
Note: See TracTickets for help on using tickets.