Subject: pkg/4604: binary jpeg package can't be removed cleanly
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 11/29/1997 14:45:28
>Number:         4604
>Category:       pkg
>Synopsis:       binary JPEG package can't be removed cleanly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 29 05:50:02 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.owl.de/~tron/
>Release:        971121
>Environment:
System: NetBSD lyssa 1.3_ALPHA NetBSD 1.3_ALPHA (LYSSA) #1: Sat Nov 22 14:01:52 MET 1997 tron@lyssa:/src/src/sys/arch/i386/compile/LYSSA i386


>Description:
A binary version of NetBSD's jpeg package can't be removed cleany because
"libjpeg.a" is modified by "ranlib" during installation so that the MD5
checksum doesn't match anymore.

>How-To-Repeat:
cd /usr/pkgsrc/graphics/jpeg
make
make install
make package
pkg_delete jpeg-6a
pkg_add ./jpeg-6a.tgz
pkg_delete jpeg-6a

>Fix:
*** pkgsrc/graphics/jpeg/pkg/PLIST.orig	Thu Nov  6 15:16:05 1997
--- pkgsrc/graphics/jpeg/pkg/PLIST	Sat Nov 29 14:17:07 1997
*************** include/jconfig.h
*** 13,19 ****
  include/jpeglib.h
  include/jmorecfg.h
  include/jerror.h
  lib/libjpeg.so.7.0
  @exec /sbin/ldconfig -m %B
- lib/libjpeg.a
- @exec ranlib %D/%F
--- 13,18 ----
  include/jpeglib.h
  include/jmorecfg.h
  include/jerror.h
+ lib/libjpeg.a
  lib/libjpeg.so.7.0
  @exec /sbin/ldconfig -m %B

>Audit-Trail:
>Unformatted: