pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41232: imap-uw doesn't honor PREFER_NATIVE properly



>Number:         41232
>Category:       pkg
>Synopsis:       imap-uw doesn't honor PREFER_NATIVE properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 16 16:35:00 +0000 2009
>Originator:     Mirko Thiesen
>Release:        5.0_RC4
>Organization:
Max Planck Institute for Biological Cybernetics
>Environment:
NetBSD AGBU-WebMail 5.0_RC4 NetBSD 5.0_RC4 (AGBU-WebMail) #0: Wed Apr 15 
01:51:41 CEST 2009  
root%BattleCat.kyb.local@localhost:/usr/obj/sys/arch/amd64/compile/AGBU-WebMail 
amd64

>Description:
PkgSrc's version of mail/imap-uw (checked out via CVS on April 16th) bails out 
during compiling of osdep.c:

In file included from osdep.c:263:
/usr/include/openssl/x509v3.h:493: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/usr/include/openssl/x509v3.h:493: error: expected ')' before '*' token

Output during the early stages of the compiling process confirms that indeed 
the in-tree version of OpenSSL gets included:

cd c-client;make neb EXTRACFLAGS='-O2 -I/usr/pkg/include' 
EXTRALDFLAGS='-L/usr/pkg/lib -Wl,-R/usr/pkg/lib' EXTRADRIVERS='mbox' 
EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix IP=6 
SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/openssl/certs 
SSLKEYS=/etc/openssl/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib 
PAMLDFLAGS=-lpam SSLDIR=/usr/pkg SSLCERTS=/usr/pkg/etc/openssl/certs 
SSLKEYS=/usr/pkg/etc/openssl/private CREATEPROTO=unixproto

A quick look at work/imap-2007e/Makefile reveals the reason: Even though 
PREFER_NATIVE is set to NO in /etc/mk.conf, the neb defines the following:

SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib 
SSLCERTS=/etc/openssl/certs SSLKEYS=/etc/openssl/private
>How-To-Repeat:
cd /usr/pkgsrc/mail/imap-uw && make update
>Fix:
Change the contents of the neb section in the main Makefile depending on 
PREFER_NATIVE in /etc/mk.conf ... I simply edited the Makefile by hand & 
imap-uw would compile without any problems afterwards.



Home | Main Index | Thread Index | Old Index