ports/62073: Fix port: cad/iverilog

Hiroki Sato hrs at FreeBSD.org
Thu Jan 29 17:10:28 UTC 2004


>Number:         62073
>Category:       ports
>Synopsis:       Fix port: cad/iverilog
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 29 09:10:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hiroki Sato
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
Tokyo University of Science
>Environment:
System: FreeBSD alph.allbsd.org  4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Mon Dec 29 10:42:23 JST 2003     hrs at alph.allbsd.org:/home/obj/home/src/sys/ALPH  i386

>Description:
	Remove the BROKEN line in the case of ${OSVERSION} <= 500000.
	The install-related error has occurred because of the lack of PRIu64
	definition in FreeBSD 4.x.  The attached patch is for adding
	several "#define"s into _pli_types.h.in and should fix the problem.

>How-To-Repeat:
	N/A

>Fix:

Index: cad/iverilog/Makefile
===================================================================
RCS file: /home/ncvs/ports/cad/iverilog/Makefile,v
retrieving revision 1.15
diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -r1.15 Makefile
--- cad/iverilog/Makefile	17 Dec 2003 16:02:50 -0000	1.15
+++ cad/iverilog/Makefile	29 Jan 2004 16:45:25 -0000
@@ -21,10 +21,4 @@
 
 MAN1=		iverilog-vpi.1 iverilog.1 vvp.1 iverilog-fpga.1
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} <= 500000
-BROKEN=		"Does not install on FreeBSD ${OSVERSION}"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: cad/iverilog/files/patch-_pli_types.h.in
===================================================================
RCS file: cad/iverilog/files/patch-_pli_types.h.in
diff -N cad/iverilog/files/patch-_pli_types.h.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ cad/iverilog/files/patch-_pli_types.h.in	29 Jan 2004 17:03:25 -0000
@@ -0,0 +1,25 @@
+--- _pli_types.h.in	Wed Nov 12 11:38:44 2003
++++ _pli_types.h.in.new	Fri Jan 30 01:44:38 2004
+@@ -45,7 +45,21 @@
+ typedef signed char    PLI_BYTE8;
+ typedef unsigned char  PLI_UBYTE8;
+ 
+-# define PLI_UINT64_FMT PRIu64
++#ifndef PRIu64
++
++#if defined(__i386__) || defined(__powerpc__)
++#define PLI_UINT64_FMT "llu"
++#endif /* defined(__i386__) || defined(__powerpc__) */
++
++#if defined(__sparc64__) || defined(__alpha__) || defined(__amd64__) || defined(__ia64__)
++#define PLI_UINT64_FMT "lu"
++#endif /* defined(__sparc64__) || defined(__alpha__) || defined(__amd64__) || defined(__ia64__) */
++
++#else /* PRIu64 defined */
++
++#define PLI_UINT64_FMT PRIu64
++
++#endif /* PRIu64 */
+ 
+ #else
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list