ports/117535: [PATCH] devel/darcs: port is broken for RELENG_7
Matthieu GUEGAN
matt.guegan at free.fr
Fri Oct 26 14:20:02 UTC 2007
>Number: 117535
>Category: ports
>Synopsis: [PATCH] devel/darcs: port is broken for RELENG_7
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 26 14:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Matthieu GUEGAN
>Release: FreeBSD 7.0-BETA1 i386
>Organization:
>Environment:
FreeBSD 7.0-BETA1 #0: Tue Oct 23 11:56:06 CEST 2007
>Description:
Since the addition of _SC_PHYS_PAGES [1] into HEAD and RELENG_7, the ifdef condition into rts.c become true but FreeBSD don't have _SC_AVPHYS_PAGES.
Here is the mini-patch to avoid the broken status
Ref
[1] http://www.freebsd.org/cgi/cvsweb.cgi/src/include/unistd.h.diff?r1=1.79;r2=1.80
>How-To-Repeat:
Try to compile devel/darcs with ghc and FreeBSD 7 as vs@ pointed out.
>Fix:
--- darcs-1.0.9.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/darcs.orig/files/patch-rtc.c /usr/ports/devel/darcs/files/patch-rtc.c
--- /usr/ports/devel/darcs.orig/files/patch-rtc.c 1970-01-01 01:00:00.000000000 +0100
+++ /usr/ports/devel/darcs/files/patch-rtc.c 2007-10-26 09:32:52.000000000 +0200
@@ -0,0 +1,11 @@
+--- rts.c.orig 2007-10-26 09:32:02.000000000 +0200
++++ rts.c 2007-10-26 09:28:14.000000000 +0200
+@@ -6,7 +6,7 @@
+ void defaultsHook (void) {
+ RtsFlags.GcFlags.maxStkSize = 8*1000002 / sizeof(W_); /* 8M */
+
+-#ifdef _SC_PHYS_PAGES
++#if defined(_SC_PHYS_PAGES) && defined(_SC_AVPHYS_PAGES)
+ /* Try to set reasonable values for when to start compacting the heap to
+ avoid massive swapping. */
+ {
--- darcs-1.0.9.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list