Subject: pkg/15691: qcad miss libpng, if installed from the package collection.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bernd@mycity.at>
List: netbsd-bugs
Date: 02/22/2002 00:48:18
>Number:         15691
>Category:       pkg
>Synopsis:       qcad miss libpng, if installed from the package collection.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 21 14:32:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bernd Salbrechter
>Release:        NetBSD-1.5.2
>Organization:
	private
>Environment:
    System: NetBSD schleppo 1.5_BETA NetBSD 1.5_BETA (GENERIC) #1:
        Sat Oct 21 13:59:18 MEST 2000
        fvdl@sushi:/work/trees/netbsd-1-5/sys/arch/i386/compile/GENERIC i386
    Package collection taken with the release of NetBSD-1.5.2.

>Description:
	qcad fails to start, because it misses libpng.so.1, if it
	is installed from the collection of precompiled packages.

>How-To-Repeat:
	Delete all packages qcad depends on from the system and
	install it. The packages it depends on will automaticliy
	installed including "png-1.0.11".

   Start qcad and watch for the error messgage or run ldd on it.

ldd /usr/pkg/bin/qcad:
  /usr/pkg/bin/qcad:
	 -lm.0 => /usr/lib/libm387.so.0
    ...
	 -lz.0 => /usr/lib/libz.so.0
	 -lpng.1 => /usr/pkg/lib/libpng.so.1   !! The result of my work around!!
	 -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62
    ...

pkg_info -L png:
  Information for png-1.0.11:
  Required by:
    qt2-libs-2.3.0
    qcad-1.4.7
  Files:
    /usr/pkg/include/png.h
    /usr/pkg/include/pngconf.h
    /usr/pkg/lib/libpng.a
    /usr/pkg/lib/libpng.la
    /usr/pkg/lib/libpng.so
    /usr/pkg/lib/libpng.so.2
    /usr/pkg/lib/libpng.so.2.0
    /usr/pkg/man/man3/libpng.3
    /usr/pkg/man/man3/libpngpf.3
    /usr/pkg/man/man5/png.5

  As you can see the png-1.0.11 package installes only the version
  2.0 of libpng.so and qcad-1.4.7, which depends on png-1.0.11, requires
  version 1 of linpng.so.

>Fix:
	Link the qcad to an actual version of the png package.

   Work around: "ln -s libpng.so.2.0 libpng.so.1" in /usr/pkg/lib.
     Yes I know that indicates posible incompatible interface changes
     in the library, but i found no problem when working with qcad.
     May be I do not use the part of qcad, which uses libpng.
>Release-Note:
>Audit-Trail:
>Unformatted: