Subject: pkg/35332: www/lighttpd Mac OS X binary package creation missing critical files
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jcp@exbiblio.com>
List: pkgsrc-bugs
Date: 12/28/2006 00:00:00
>Number:         35332
>Category:       pkg
>Synopsis:       www/lighttpd Mac OS X binary package creation missing critical files
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 28 00:00:00 +0000 2006
>Originator:     Jesse Peterson
>Release:        
>Organization:
Exbiblio
>Environment:
Darwin melville.seattle.identitext.com 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
The www/lighttpd binary package when installed on Darwin doesn't install a critical shared library required to run.  This library IS built when the package is compiled and installed, however.

When run, this is returned:

% /usr/pkg/sbin/lighttpd 
dyld: Library not loaded: /usr/pkg/lib/lighttpd/liblightcomp.dylib
  Referenced from: /usr/pkg/sbin/lighttpd
  Reason: image not found
Trace/BPT trap

When said shared library is manually copied into the system separate from the pkg_add action, lighttpd runs fine.
>How-To-Repeat:
Build a binary package of the "www/lighttpd" on Mac OS X.  Install said package on a pkgsrc system other than the build system through the pkg_add tool.

Alternatively you can build a binary package of the software, pkg_delete it, remove the /usr/pkg/lib/lighttpd/ directory, then pkg_add the package (on Darwin) and it should exhibit the behaviour.
>Fix:
I'd guess the package step should conditionally include this dylib?