Subject: pkg/4944: patch for tiff on pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Jones <cjones@pmax.math.montana.edu>
List: netbsd-bugs
Date: 02/05/1998 17:42:03
>Number: 4944
>Category: pkg
>Synopsis: patch for tiff on pmax
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 5 16:50:01 1998
>Last-Modified:
>Originator: Chris Jones
>Organization:
-------------------------------------------------------------------------------
Chris Jones cjones@rupert.honors.montana.edu
Mad scientist in training...
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>Release: <NetBSD-current source date>yesterday
>Environment:
System: NetBSD pmax.math.montana.edu 1.3 NetBSD 1.3 (PMAX) #0: Wed Jan 28 15:23:19 MST 1998 root@pmax.math.montana.edu:/usr/src/sys/arch/pmax/compile/PMAX pmax
/usr/share/mk/bsd.port.mk:# $NetBSD: bsd.port.mk,v 1.43 1998/02/02 08:11:49 hubertf Exp $
/usr/share/mk/bsd.port.subdir.mk:# $NetBSD: bsd.port.subdir.mk,v 1.7 1998/01/30 14:33:48 agc Exp $
/usr/share/mk/bsd.own.mk:# $NetBSD: bsd.own.mk,v 1.58 1998/01/15 09:37:25 agc Exp $
>Description:
The tiff package doesn't appear to create its shared library correctly.
>How-To-Repeat:
>Fix:
This is an ugly hack. I installed it as patch-ad.
*** libtiff/Makefile.in.orig Thu Feb 5 15:32:19 1998
--- libtiff/Makefile.in Thu Feb 5 15:38:09 1998
***************
*** 197,204 ****
@rm -f libtiff_pic.a
@${AR} cq libtiff_pic.a `lorder ${OBJS} | tsort -q`
${RANLIB} libtiff_pic.a
! if [ `uname -m` != "alpha" ]; then ${LD} -x -Bshareable -Bforcearchive -o libtiff.@DSOSUF@ libtiff_pic.a ; fi
if [ `uname -m` = "alpha" ]; then ${LD} -x -Bshareable -o libtiff.@DSOSUF@ libtiff_pic.a ; fi
rm -f libtiff_pic.a
touch $@
# linux ELF shared lib rule
--- 197,205 ----
@rm -f libtiff_pic.a
@${AR} cq libtiff_pic.a `lorder ${OBJS} | tsort -q`
${RANLIB} libtiff_pic.a
! if [ `uname -m` != "alpha" -a `uname -m` != "pmax" ]; then ${LD} -x -Bshareable -Bforcearchive -o libtiff.@DSOSUF@ libtiff_pic.a ; fi
if [ `uname -m` = "alpha" ]; then ${LD} -x -Bshareable -o libtiff.@DSOSUF@ libtiff_pic.a ; fi
+ if [ `uname -m` = "pmax" ]; then ${LD} -x -shared -o libtiff.@DSOSUF@ -soname libtiff.so.${DIST_MAJOR} --whole-archive libtiff_pic.a --no-whole-archive ; fi
rm -f libtiff_pic.a
touch $@
# linux ELF shared lib rule
>Audit-Trail:
>Unformatted: