ports/154592: x11-toolskits/efltk - Fix compilation error on i386

Tommy Scheunemann net at arrishq.net
Tue Feb 8 15:50:09 UTC 2011


>Number:         154592
>Category:       ports
>Synopsis:       x11-toolskits/efltk - Fix compilation error on i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 08 15:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Tommy Scheunemann
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD achill.arrishq.local 8.1-RELEASE FreeBSD 8.1-RELEASE #2: Sat Jul 24 20:30:30 CEST 2010 root at achill.arrishq.local:/usr/obj/usr/src/sys/ACHILL i386

>Description:
The port x11-toolkits/efltk is marked as broken due of a compilation error. This patch should fix the problem.

>How-To-Repeat:

>Fix:
--- efltk_patch begins here ---
diff -ruN efltk_orig/Makefile efltk/Makefile
--- efltk_orig/Makefile	2011-01-22 11:17:22.000000000 +0100
+++ efltk/Makefile	2011-02-08 16:29:52.000000000 +0100
@@ -40,8 +40,4 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 800501
-BROKEN=		does not build
-.endif
-
 .include <bsd.port.post.mk>
diff -ruN efltk_orig/files/patch-src-filename_list.cpp efltk/files/patch-src-filename_list.cpp
--- efltk_orig/files/patch-src-filename_list.cpp	1970-01-01 01:00:00.000000000 +0100
+++ efltk/files/patch-src-filename_list.cpp	2010-11-14 06:43:53.000000000 +0100
@@ -0,0 +1,11 @@
+--- src/core/filename_list.cpp	2010-11-12 00:31:17.000000000 +0100
++++ src/core/filename_list.cpp	2009-04-22 13:51:38.000000000 +0200
+@@ -59,7 +59,7 @@
+     // The vast majority of Unix systems want the sort function to have this
+     // prototype, most likely so that it can be passed to qsort without any
+     // changes:
+-    return scandir(dir, list, 0, (int(*)(const void*,const void*))sort);
++    return scandir(dir, list, 0, (int(*)(const dirent **, const dirent **))sort);
+ #else
+     // This version is when we define our own scandir (WIN32 and perhaps
+     // some Unix systems) and apparently on Irix:
--- efltk_patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list