Bug 171253

Summary: print/ghostscript9 default options only work on i386 and amd64
Product: Ports & Packages Reporter: Jason W. Bacon <jwb>
Component: Individual Port(s)Assignee: Document Engineering Group (Nobody) <doceng>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jason W. Bacon freebsd_committer freebsd_triage 2012-09-02 15:00:23 UTC
===>   ghostscript9-9.05_5 depends on executable: gmake - found
===>   ghostscript9-9.05_5 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   ghostscript9-9.05_5 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   ghostscript9-9.05_5 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   ghostscript9-9.05_5 depends on shared library: expat - found
===>   ghostscript9-9.05_5 depends on shared library: idn - found
===>   ghostscript9-9.05_5 depends on shared library: jbig2dec - found
===>   ghostscript9-9.05_5 depends on shared library: jpeg - found
===>   ghostscript9-9.05_5 depends on shared library: png15 - found
===>   ghostscript9-9.05_5 depends on shared library: tiff - found
===>   ghostscript9-9.05_5 depends on shared library: cupsimage.2 - found
===>   ghostscript9-9.05_5 depends on shared library: vga.1 - not found
===>    Verifying install for vga.1 in /usr/ports/graphics/svgalib
===>  svgalib-1.4.3_6 is only for i386 amd64, while you are running powerpc.
*** [install] Error code 1

Stop in /usr/ports/graphics/svgalib.
*** [lib-depends] Error code 1

Stop in /usr/ports/print/ghostscript9.
*** [build] Error code 1

Stop in /usr/ports/print/ghostscript9.

Fix: 

Workaround:

make config
disable SVGAlib options

Fix:

SVGAlib options should only be ON by default on i386 and amd64.
How-To-Repeat: Attempt to build ghostscript9 with default options on something other than i386 or amd64.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-02 15:00:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->doceng

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Hiroki Sato freebsd_committer freebsd_triage 2012-09-04 06:15:57 UTC
State Changed
From-To: open->closed

Fixed.  Thanks for the report.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-09-04 06:21:53 UTC
Author: hrs
Date: Tue Sep  4 05:21:38 2012
New Revision: 303635
URL: http://svn.freebsd.org/changeset/ports/303635

Log:
  Fix build on !i386 && !amd64.
  
  PR:	ports/171253

Modified:
  head/print/ghostscript8/Makefile
  head/print/ghostscript8/Makefile.drivers
  head/print/ghostscript9/Makefile
  head/print/ghostscript9/Makefile.drivers

Modified: head/print/ghostscript8/Makefile
==============================================================================
--- head/print/ghostscript8/Makefile	Tue Sep  4 03:05:23 2012	(r303634)
+++ head/print/ghostscript8/Makefile	Tue Sep  4 05:21:38 2012	(r303635)
@@ -90,8 +90,8 @@ MLINKS=		gslp.1 gsbj.1 \
 CIDFONTDIR=	${DATADIR}/${PORTVERSION}/Resource
 EXCLUDE_DIRS=	jbig2dec jpeg expat jasper libpng tiff zlib
 
-.include "Makefile.drivers"
 .include <bsd.port.pre.mk>
+.include "Makefile.drivers"
 .include "${FILESDIR}/Makefile.drivers_post"
 
 .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}

Modified: head/print/ghostscript8/Makefile.drivers
==============================================================================
--- head/print/ghostscript8/Makefile.drivers	Tue Sep  4 03:05:23 2012	(r303634)
+++ head/print/ghostscript8/Makefile.drivers	Tue Sep  4 05:21:38 2012	(r303635)
@@ -13,9 +13,11 @@ OPTIONS_X11= \
 	GS_x11rg16x \
 	GS_x11rg32x
 
+.if ${ARCH:Mamd64} || ${ARCH:Mi386}
 OPTIONS_SVGALIB= \
 	GS_lvga256 \
 	GS_vgalib
+.endif
 
 OPTIONS_ICONV= \
 	GS_oprp \

Modified: head/print/ghostscript9/Makefile
==============================================================================
--- head/print/ghostscript9/Makefile	Tue Sep  4 03:05:23 2012	(r303634)
+++ head/print/ghostscript9/Makefile	Tue Sep  4 05:21:38 2012	(r303635)
@@ -95,8 +95,8 @@ MLINKS=		gslp.1 gsbj.1 \
 
 EXCLUDE_DIRS=	freetype jbig2dec jpeg expat jasper libpng tiff zlib
 
-.include "Makefile.drivers"
 .include <bsd.port.pre.mk>
+.include "Makefile.drivers"
 .include "${FILESDIR}/Makefile.drivers_post"
 
 .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}

Modified: head/print/ghostscript9/Makefile.drivers
==============================================================================
--- head/print/ghostscript9/Makefile.drivers	Tue Sep  4 03:05:23 2012	(r303634)
+++ head/print/ghostscript9/Makefile.drivers	Tue Sep  4 05:21:38 2012	(r303635)
@@ -13,9 +13,11 @@ OPTIONS_X11= \
 	GS_x11rg16x \
 	GS_x11rg32x
 
+.if ${ARCH:Mamd64} || ${ARCH:Mi386}
 OPTIONS_SVGALIB= \
 	GS_lvga256 \
 	GS_vgalib
+.endif
 
 OPTIONS_ICONV= \
 	GS_oprp \
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"