Subject: pkg/29604: obsolete USE_SASL2 is broken
To: None <,,>
From: Lloyd Parkes <>
List: pkgsrc-bugs
Date: 03/05/2005 22:48:00
>Number:         29604
>Category:       pkg
>Synopsis:       USE_SASL2 adds sasl to PKG_DEFAULT_OPTIONS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 05 22:48:00 +0000 2005
>Originator:     Lloyd Parkes
>Release:        NetBSD 2.0
Must Have Coffee
System: NetBSD 2.0 NetBSD 2.0 (GENERIC) #6: Mon Dec 13 23:12:09 NZDT 2004 i386
Architecture: i386
Machine: i386

If you have USE_SASL2 defined in mk.conf, then pkgsrc tries to compile
in sasl instead of sasl2. If you set PKG_DEFAULT_OPTIONS to contain
sasl2 as well as defining USE_SASL2, then PKG_OPTIONS ends up
containing sasl2 and sasl which is all bad. Stuff won't build and it
isn't clear how to make 'sasl' go away.

The problem is that lines 63-65 of pkgsrc/mk/defaults/ are:

.if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])

The last token on the middle line should be sasl2.


Put USE_SASL2=YES in /etc/mk/conf


Change lines 63-65 on pkgsrc/mk/default/ to read

.if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])

i.e. change the sasl to sasl2.