Subject: pkg/20843: security/libcrack breaks on Linux
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 03/22/2003 01:29:48
>Number:         20843
>Category:       pkg
>Synopsis:       security/libcrack doesn't build on Linux
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 22 01:30:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
On two different Linux boxes, when building pkgsrc/security/libcrack:

===> Building for libcrack-2.7
( cd cracklib && make && exit $? )
/tmp/pkgsrc/security/libcrack/work.tahoma/.buildlink/bin/libtool  --mode=compile
 gcc -O2 -I/usr/include -I../cracklib -DIN_CRACKLIB  -c -o
libtool: compile: you must specify a target with `-o'
make: *** [fascist.o] Error 1
*** Error code 2

After moving patch-ab and patch-ac, it builds but post-install fails
with:

/usr/bin/libtool --mode=install install -c -o root -g root -m 444 libcrack.la /usr/lib &&  install -c -o root -g root -m 444 packer.h /usr/include/cracklib
libtool: install: `libcrack.la' is not a valid libtool archive


Then also the SRCDICTS=/usr/share/dict/words is not appropriate under
Linux unless it is installed. It should probably check
or have a DEPENDS for some other package that provides that.

(By the way, my mk/bsd.pkg.defaults.mk has a USE_CRACK definition
which I use with shadow (for Linux) and PAM.)

>How-To-Repeat:
	
>Fix:
Sorry no fix provided.
>Release-Note:
>Audit-Trail:
>Unformatted: