ports/113279: [maintainer update] devel/mcpp: adding a patch-file
Kiyoshi Matsui
kmatsui at t3.rim.or.jp
Sun Jun 3 09:10:04 UTC 2007
>Number: 113279
>Category: ports
>Synopsis: [maintainer update] devel/mcpp: adding a patch-file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 03 09:10:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Kiyoshi Matsui
>Release: FreeBSD 6.2-RELEASE on i386 only
>Organization:
none
>Environment:
none
>Description:
My port devel/mcpp (mcpp-2.6.4) was reported to fail to be built on amd64.
This failure derives from the wrong definition of __UCHAR_MAX in _limits.h
for amd64. Also _limits.h for alpha, ia64 and sparc64 have the same wrong
definitions, while that for i386, arm and powerpc have right definitions.
See: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/113256
For the time being, until those bugs of system headers are fixed, mcpp source
needs a patch on those architectures.
>How-To-Repeat:
>Fix:
Place this text as ports/devel/mcpp/files/patch-src-system.H.
I copy and paste the file here, since attaching file does not work somehow.
TABs are lost in this. Please en-tab in the first two tag-lines.
--- src/system.H.orig Wed May 2 21:37:29 2007
+++ src/system.H Sun Jun 3 16:51:33 2007
@@ -49,7 +49,16 @@
/* Some system has a wrong definition of UCHAR_MAX. See cpp-test.html#5.1.3 */
#if UCHARMAX < -255
+#if __FreeBSD__
+/*
+ * This is a temporary patch for FreeBSD on amd64, alpha, ia64 and sparc64.
+ * limits.h of these systems wrongly define UCHAR_MAX as 255U.
+ */
+#undef UCHARMAX
+#define UCHARMAX 255
+#else
#error "The definition of UCHARMAX (possibly UCHAR_MAX too) is wrong. Define it as signed int value as 255, not as unsigned value as 255U."
+#endif
#endif
/*
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list