Subject: pkg/33921: devel/zlib install /usr/local
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 07/05/2006 12:15:00
>Number:         33921
>Category:       pkg
>Synopsis:       devel/zlib install /usr/local
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 05 12:15:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


zlib is installed in /usr/local !!!

===> Extracting for zlib-1.2.3
===> Installing for zlib-1.2.3
=> Generating pre-install file lists
=> Creating installation directories
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o  zutil.
o inflate.o infback.o inftrees.o inffast.o 
cp zlib.h zconf.h /usr/local/include
chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
cp libz.a /usr/local/lib
cd /usr/local/lib; chmod 755 libz.a
cd /usr/local/lib; if test -f libz.so.1.2.3; then  rm -f libz.so libz.so.1;  ln -s l
ibz.so.1.2.3 libz.so;  ln -s libz.so.1.2.3 libz.so.1;  (ldconfig || true)  >/dev/nul
l 2>&1;  fi
cp zlib.3 /usr/local/share/man/man3
chmod 644 /usr/local/share/man/man3/zlib.3
=> Automatic manual page handling
=> Generating post-install file lists
===> Installing dependencies for zlib-1.2.3
=> Required installed package libtool-base>=1.5.22nb3: libtool-base-1.5.22nb3 found
pkg_create: can't stat `/usr/pkg/include/zconf.h'
pkg_create: can't stat `/usr/pkg/include/zlib.h'
pkg_create: can't stat `/usr/pkg/lib/libz.la'
pkg_create: can't stat `/usr/pkg/man/man3/zlib.3'
=> Registering installation for zlib-1.2.3
pkg_admin: zlib-1.2.3: File `/usr/pkg/include/zconf.h' is in +CONTENTS but not on fi
lesystem!
pkg_admin: zlib-1.2.3: File `/usr/pkg/include/zlib.h' is in +CONTENTS but not on fil
esystem!
pkg_admin: zlib-1.2.3: File `/usr/pkg/lib/libz.la' is in +CONTENTS but not on filesy
stem!
pkg_admin: zlib-1.2.3: File `/usr/pkg/man/man3/zlib.3' is in +CONTENTS but not on fi
lesystem!
=> Checking for missing run-time search paths in zlib-1.2.3
=> Checking for work-directory references in zlib-1.2.3
=> Checking file-check results for zlib-1.2.3
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/include/zconf.h
ERROR:         /usr/pkg/include/zlib.h
ERROR:         /usr/pkg/lib/libz.la
ERROR:         /usr/pkg/man/man3/zlib.3
*** Error code 1



>How-To-Repeat:


bmake install


>Fix:


when just doing bmake
[root@u2 1058] grep prefix Makefile
#    make install prefix=$HOME
prefix =/usr/pkg
exec_prefix =${prefix}
libdir =${exec_prefix}/lib
includedir =${prefix}/include
mandir =${prefix}/share/man
        -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
[root@u2 1059] 


But after bmake install

[root@u2 1059] grep prefix Makefile
#    make install prefix=$HOME
prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
mandir = ${prefix}/share/man
        -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
[root@u2 1060] 

?????