Date: Tue, 20 Jun 2006 20:33:16 -0300 From: "Alejandro Pulver" <alepulver@FreeBSD.org> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/99233: [UPDATE] x11-toolkits/paragui: fix on !i386 Message-ID: <1150846396.31067@phobos.mars.bsd> Resent-Message-ID: <200606202340.k5KNeAMM008606@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 99233 >Category: ports >Synopsis: [UPDATE] x11-toolkits/paragui: fix 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 Jun 20 23:40:09 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Alejandro Pulver >Release: FreeBSD 6.1-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD 6.1-RELEASE-p1 #0: Sat Jun 10 18:38:50 ART 2006 root@phobos.mars.bsd:/usr/obj/usr/src/sys/GENERIC >Description: This simple patch fixes the building of this application in non-i386 architectures. The problem is that it was using a 32-bit variable to hold a memory address, which fails in 64-bit machines. I have replaced the 32-bit data type with "ptrdiff_t". >How-To-Repeat: >Fix: --- paragui.diff begins here --- Index: paragui/Makefile =================================================================== RCS file: /home/pcvs/ports/x11-toolkits/paragui/Makefile,v retrieving revision 1.36 diff -u -r1.36 Makefile --- paragui/Makefile 19 Jun 2006 20:06:59 -0000 1.36 +++ paragui/Makefile 20 Jun 2006 23:30:29 -0000 @@ -32,10 +32,6 @@ .include <bsd.port.pre.mk> -.if ${ARCH} != "i386" -BROKEN= does not build on ${ARCH} -.endif - post-extract: @${RM} -f ${WRKSRC}/src/physfs/platform.c Index: paragui/files/patch-include__pgtimerobject.h =================================================================== RCS file: paragui/files/patch-include__pgtimerobject.h diff -N paragui/files/patch-include__pgtimerobject.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ paragui/files/patch-include__pgtimerobject.h 20 Jun 2006 23:30:29 -0000 @@ -0,0 +1,11 @@ +--- ./include/pgtimerobject.h.orig Sat Jan 4 18:13:38 2003 ++++ ./include/pgtimerobject.h Tue Jun 20 19:37:34 2006 +@@ -32,7 +32,7 @@ + #include "paragui.h" + #include <map> + +-typedef Uint32 PG_TimerID; ++typedef ptrdiff_t PG_TimerID; + + /** + @author Alexander Pipelka --- paragui.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1150846396.31067>