Subject: pkg/21752: pkgsrc/mail/pine doesn't compile
To: None <>
From: None <>
List: netbsd-bugs
Date: 06/01/2003 15:32:12
>Number:         21752
>Category:       pkg
>Synopsis:       pkgsrc/mail/pine doesn't compile
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 01 15:33:00 UTC 2003
>Originator:     Wojciech Puchar
>Release:        -current about 2 weeks old
NetBSD 1.6T NetBSD 1.6T (local) #5: Sun May 25 12:22:01 CEST 2003 i386
make like to make -lpico and fails
then it likes to make /usr/pkg/libcc-client and fails too
cd /usr/src/pkgsrc/mail/pine

Use that patch instead of patch-ac

--- pine/makefile.neb.orig      2002-09-10 23:39:23.000000000 +0200
+++ pine/makefile.neb   2003-06-01 16:50:59.000000000 +0200
@@ -47,9 +47,11 @@
 MAKE=        make
 OPTIMIZE=    # -O
 PROFILE=     # -pg
-CCLIENTDIR=  ../c-client
+CCLIENTINC=  ${CCLIENTDIR}/include/c-client
 PICODIR=     ../pico
 # Only need to uncomment next two lines if you run make from this directory
@@ -60,14 +62,13 @@
 LDAPOFILES=   addrbook.o adrbkcmd.o args.o bldaddr.o init.o \
              mailview.o other.o pine.o strings.o takeaddr.o
-STDLIBS=     -ltermlib
-LOCLIBS=     $(PICODIR)/libpico.a $(CCLIENTDIR)/c-client.a
-             `cat $(CCLIENTDIR)/LDFLAGS`
+STDLIBS=     -ltermlib -lssl -lcrypto -lcrypt
+LOCLIBS=     -lpico -lc-client
-            $(STDCFLAGS)
+            $(STDCFLAGS) -I${CCLIENTINC}
 OFILES=        addrbook.o adrbkcmd.o adrbklib.o args.o bldaddr.o context.o filter.o \
        folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
@@ -79,20 +80,20 @@
        $(PICODIR)/headers.h $(PICODIR)/estruct.h \
        $(PICODIR)/edef.h $(PICODIR)/efunc.h \
        $(PICODIR)/pico.h $(PICODIR)/os.h \
-       $(CCLIENTDIR)/mail.h $(CCLIENTDIR)/osdep.h \
-       $(CCLIENTDIR)/rfc822.h $(CCLIENTDIR)/misc.h
+       $(CCLIENTINC)/mail.h $(CCLIENTINC)/osdep.h \
+       $(CCLIENTINC)/rfc822.h $(CCLIENTINC)/misc.h
 all:   pine rpload rpdump
-pine:  $(OFILES) $(LOCLIBS)
+pine:  $(OFILES)
        echo "char datestamp[]="\"`date`\"";" > date.c
        echo "char hoststamp[]="\"`hostname`\"";" >> date.c
        $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(OFILES) date.c $(LIBS)
-rpload:        rpload.o $(CCLIENTDIR)/c-client.a
+rpload:        rpload.o 
        $(CC) $(LDFLAGS) $(CFLAGS) -o rpload rpload.o $(LIBS)
-rpdump:        rpdump.o $(CCLIENTDIR)/c-client.a
+rpdump:        rpdump.o 
        $(CC) $(LDFLAGS) $(CFLAGS) -o rpdump rpdump.o $(LIBS)
 pine-use:      pine-use.c
@@ -112,8 +113,8 @@
 $(OFILES):                                             $(HFILES)
 addrbook.o adrbkcmd.o adrbklib.o bldaddr.o takeaddr.o: adrbklib.h
-context.o:                                             $(CCLIENTDIR)/misc.h
-send.o:                                                        $(CCLIENTDIR)/smtp.h
+context.o:                                             $(CCLIENTINC)/misc.h
+send.o:                                                        $(CCLIENTINC)/smtp.h
 #$(LDAPOFILES):                                                $(LDAPLIBS)
 helptext.c:    pine.hlp