diff options
author | asami <asami@FreeBSD.org> | 2000-09-29 08:21:49 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-09-29 08:21:49 +0800 |
commit | de971d2019740755e9dc9526b453aeb3aa26ab23 (patch) | |
tree | dd665a83fd1af2f3433ef9976b40e95e96080d89 /x11/XFree86-4-libraries | |
parent | 6c4c27287aa1e206bb94528ce2b581eafec1e5dc (diff) | |
download | freebsd-ports-gnome-de971d2019740755e9dc9526b453aeb3aa26ab23.tar.gz freebsd-ports-gnome-de971d2019740755e9dc9526b453aeb3aa26ab23.tar.zst freebsd-ports-gnome-de971d2019740755e9dc9526b453aeb3aa26ab23.zip |
FreeBSD specific hack -- prefer OSREL from the environment over what
uname(3) says. This is necessary for cross-version chroot builds.
Requested by: PW
Submitted by: maintainer
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r-- | x11/XFree86-4-libraries/files/patch-t01 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-t01 b/x11/XFree86-4-libraries/files/patch-t01 new file mode 100644 index 000000000000..274f3a7c95d6 --- /dev/null +++ b/x11/XFree86-4-libraries/files/patch-t01 @@ -0,0 +1,22 @@ +--- config/imake/imake.c~ Thu Jun 15 04:36:17 2000 ++++ config/imake/imake.c Thu Sep 28 13:58:02 2000 +@@ -1184,6 +1184,19 @@ + if (uname(&name) < 0) + LogFatal("Cannot invoke uname", ""); + ++# ifdef __FreeBSD__ ++ /* Hack for FreeBSD ports "Cross Version" compiling system. */ ++ { ++ char *e; ++ if ((e = getenv("OSREL")) != NULL && ++ strlen(name.sysname) + strlen(e) + 1 < SYS_NMLN) { ++ strcpy(name.release, e); ++ strcpy(name.version, name.sysname); ++ strcat(name.version, " "); ++ strcat(name.version, e); ++ } ++ } ++# endif + # ifdef DEFAULT_OS_NAME + parse_utsname(&name, DEFAULT_OS_NAME, buf, + "Bad DEFAULT_OS_NAME syntax %s"); |