Subject: pkg/12361: imap-uw-2000.0.3nb1 does not build from pkgsrc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <john@sixgirls.org>
List: netbsd-bugs
Date: 03/08/2001 19:03:22
>Number:         12361
>Category:       pkg
>Synopsis:       imap-uw-2000.0.3nb1 does not build from pkgsrc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 16:04:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     John Klos
>Release:        8-March-2001
>Organization:
sixgirls.org
>Environment:
System: NetBSD erika 1.5 NetBSD 1.5 (erika-$Revision: 1.28.2.1 $) #2: Sun Feb 18 21:53:59 EST 2001 root@erika:/src/sys/arch/amiga/compile/erika amiga
Also tested with mac68k NetBSD 1.5.
>Description:
	When building imap-uw-2000.0.3nb1 from the pkgsrc tree, the make stops with:
	cd /usr/pkg/lib; for file in libc-client.a libc-client.la libc-client.so                 libc-client.so.4.1      libc-client.so.4; do                    f=`echo ${file} | /usr/bin/sed "s|libc-client|libimapuw|g"`;    [ -f ${file} ] && /bin/ln -sf ${file} ${f};             done
	*** Error code 1

	Stop.

>How-To-Repeat:
	cd /usr/pkgsrc/mail/imap-uw
	make
>Fix:
	One can edit the Makefile in the /usr/pkgsrc/mail/imap-uw directory
	and change the following, starting from line 107:

	cd ${LIB_DIR}; for file in ${CCLIENT_LIBS}; do                  \
		f=`echo $${file} | ${SED} "s|libc-client|libimapuw|g"`; \
		[ -f $${file} ] && ${LN} -sf $${file} $${f};            \
	done

	By adding an "echo" statement in front of "[ -f $${file} ]", the make
	and make install will succeed and the program will work. 
	I don't know what "[ -f $${file} ]" does.
>Release-Note:
>Audit-Trail:
>Unformatted: