Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 1998 02:19:32 -0400 (EDT)
From:      adrian@ubergeeks.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8153: patch for libpng port
Message-ID:  <199810050619.CAA09283@Frisket.cstone.net>

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

>Number:         8153
>Category:       ports
>Synopsis:       the current libpng port doesn't build under 2.2-stable.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct  4 23:20:00 PDT 1998
>Last-Modified:
>Originator:     Adrian Filipi-Martin
>Organization:
Ubergeeks Consulting
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

	

>Description:

	If the PORTOBJFORMAT variable is not defined the makefiles for
	libpng die with syntax errors due to missing opperands to ==.

	One solution is to test that PORTOBJFORMAT is defined before
	testing its value.

>How-To-Repeat:

	cd /usr/graphigs/png; make

>Fix:
	
	Apply the following patch to patch-aa.  An alternative
	would be to set PORTOBJFORMAT to some value if it is not
	defined at the top instead of testing for it being deinfed
	multiply.

--- patch-aa.orig	Wed Sep 16 20:51:27 1998
+++ patch-aa	Mon Oct  5 02:08:08 1998
@@ -48,7 +48,7 @@
 + # read libpng.txt or png.h to see why PNGMAJ is 2.  You should not
 + # have to change it.
 + PNGMAJ = 2
-+ .if (${PORTOBJFORMAT} == "elf")
++ .if defined(PORTOBJFORMAT) && (${PORTOBJFORMAT} == "elf")
 + PNGVER = $(PNGMAJ)
 + .else
 + PNGMIN = 1
@@ -74,7 +74,7 @@
   	$(RANLIB) $@
   
 + libpng.so.${PNGVER}: $(OBJS:S/o$/so/g)
-+ .if (${PORTOBJFORMAT} == "elf")
++ .if defined(PORTOBJFORMAT) && (${PORTOBJFORMAT} == "elf")
 + 	${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(OBJS:S/o$/so/g) -lz -lm
 + .else
 + 	${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz -lm
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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