Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2005 01:02:38 GMT
From:      UEMURA Tetsuya <t_uemura@macome.co.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/76385: PDFlib generates broken file on amd64.
Message-ID:  <200501180102.j0I12cBW070824@www.freebsd.org>
Resent-Message-ID: <200501180110.j0I1ARXs084484@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76385
>Category:       ports
>Synopsis:       PDFlib generates broken file on amd64.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 18 01:10:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     UEMURA Tetsuya
>Release:        5.3-BETA4
>Organization:
MACOME Corp.
>Environment:
FreeBSD uemura2.tries.gr.jp 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Tue Sep 14 21:37:30 JST 2004     uemura@uemura2.tries.gr.jp:/usr/obj/usr/src/sys/UEMURA2  amd64
>Description:
PDFlib-Lite 6.0.1 and also 5.0.4p1 have a knob `--enable-64bit' in ./configure for 64bit build though, ports' Makefile doesn't add this knob while ${ARCH} is amd64. Hence, generated PDF file using libs without `--enable-64bit' on amd64 is broken and can't be opened by Acrobat.
>How-To-Repeat:
Simply make && make install on amd64. Maybe same on other 64bit architectures, too.
>Fix:
Applying patch below against Makefile Rev. 1.38 corrects the problem.
--- Makefile.orig	Thu Jan  6 12:31:29 2005
+++ Makefile	Mon Jan 17 11:06:34 2005
@@ -25,6 +25,11 @@
 		--with-py=no \
 		--with-tcl=no
 
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CONFIGURE_ARGS+=--enable-64bit
+.endif
+
 .if defined(WITH_PERL)
 USE_PERL5=	yes
 PLIST_SUB=	PERL=""
@@ -51,4 +56,4 @@
 	${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501180102.j0I12cBW070824>