NetBSD Problem Report #19001
Received: (qmail 13624 invoked by uid 605); 10 Nov 2002 07:33:48 -0000
Message-Id: <200211100733.gAA7Xki01395@host-unknown.degler.net>
Date: Sun, 10 Nov 2002 02:33:46 -0500 (EST)
From: sdegler@degler.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: sdegler@deglernet.netbsd.org
To: gnats-bugs@gnats.netbsd.org
Cc: sdegler@degler.net
Subject: Patches for cyrus-sasl 2.1.9
X-Send-Pr-Version: 3.95
>Number: 19001
>Category: pkg
>Synopsis: Patches for cyrus-sasl2 package
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: seb
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 10 07:34:00 +0000 2002
>Closed-Date: Fri Jan 10 21:38:40 +0000 2003
>Last-Modified: Fri Jan 10 21:38:40 +0000 2003
>Originator: Stephen Degler
>Release: NetBSD 1.6H
>Organization:
Very Little, At Best
>Environment:
System: NetBSD host-unknown 1.6H NetBSD 1.6H (HOST-UNKNOWN) #1: Sun Sep 8 18:03:33 EDT 2002 sdegler@host-unknown:/vol1/NetBSD/kernels/HOST-UNKNOWN i386
Architecture: i386
Machine: i386
>Description:
I encountered problems with dynamic loading of plugins. Further
investigation uncovered the following problems:
1) Wrong version of ltconfig invoked.
2) DO_DLOPEN not properly defined due to #1 above and to problems
with autoconf macro tests within configure.in.
3) Problems with auxprop plugins not having all symbols defined.
AFAICT, most of the fixes are due to problems with the cyrus distribution
itself.
>How-To-Repeat:
build cyrus-sasl2. see it not work for any plugin mechanisms.
The sample programs will fail to run.
>Fix:
Applying these patches yields working plugins for me.
I'm certainly not an autoconf/libtool expert, so someone who feels
they know that stuff should look these over.
I'm particularly unhappy with patch-ai, because it hardcodes the
location of libtool. Perhaps if LTCONFIG_OVERRIDE behaved
differently this would not be needed?
--- Makefile 2002/10/27 23:32:36 1.2
+++ Makefile 2002/11/10 07:18:45
@@ -15,6 +15,7 @@
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
.include "../../mk/bsd.prefs.mk"
--- distinfo 2002/10/27 15:08:59 1.1.1.1
+++ distinfo 2002/11/10 07:18:45
@@ -2,7 +2,7 @@
SHA1 (cyrus-sasl-2.1.9.tar.gz) = 6e920454702796c8e6c8482b74ee19f8280bc80b
Size (cyrus-sasl-2.1.9.tar.gz) = 1274451 bytes
-SHA1 (patch-aa) = 20199f558a1a1147440a40334ea1132bf9b966fd
+SHA1 (patch-aa) = 8526f93e7f125620e7723c307611150220fdedb3
SHA1 (patch-ab) = f60a2df79744832495cb93e97ca5dfd7b1167415
SHA1 (patch-ac) = 828b3129769ee3224af31dd44fe8c9d6205c4bfa
SHA1 (patch-ad) = 1811fd87ccee6de8a151e8e684344e6f3a7a8830
@@ -10,3 +10,5 @@
SHA1 (patch-af) = 3af5330d1b3e242345ce9a7483ce6c73ed55d629
SHA1 (patch-ag) = 43f1e4417d872d189716f7831f50b3c55d5cd7e3
SHA1 (patch-ah) = 9f9121b63e28f9b07dfd9da4f7a786ff15097b58
+SHA1 (patch-ai) = 87bb0c5b5ff37bff5b60e8c58c92c9dd41e479f4
+SHA1 (patch-aj) = 49409200e6379068555a2a0427454a30b1db3a40
patches/patch-aa
--- configure.in.orig Fri Oct 11 16:56:29 2002
+++ configure.in Fri Nov 8 23:50:54 2002
@@ -86,13 +86,13 @@
dnl xxx we should add -W at some point (but that might scare people)
CFLAGS="-Wall ${CFLAGS}"
GCC_VERSION=`gcc -v 2>&1 | sed -n -e '/version/s/.*version \([[0-9]]\)\..*/\1/p'`
- if test "$GCC_VERSION" != "3"; then
- CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
- fi
-else
- CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
fi
-CMU_ADD_LIBPATH("/usr/local/lib")
+
+AC_PATH_PROG(SED, sed, no)
+if test "$SED" = "no"; then
+ AC_ERROR([sed is required to build sasl-config])
+fi
+AC_SUBST(SED)
AM_DISABLE_STATIC
@@ -649,7 +649,9 @@
# simon finishes trying to do autoconf
###############################################################################
-if test "$ac_cv_can_build_shared" = yes; then
+AC_MSG_CHECKING(ac_cv_prog_cc_can_build_shared)
+AC_MSG_RESULT($ac_cv_prog_cc_can_build_shared)
+if test "$ac_cv_prog_cc_can_build_shared" = yes; then
AC_DEFINE(DO_DLOPEN)
fi
@@ -832,6 +834,9 @@
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
AC_SUBST(LIBOBJS)
AC_SUBST(LTLIBOBJS)
+
+dnl Check for /dev/urandom
+AC_CHECK_FILE(/dev/urandom, AC_DEFINE_UNQUOTED(SASL_DEV_RANDOM, "/dev/urandom"))
AC_C_CONST
AC_C_INLINE
patches/patch-ai
--- aclocal.m4.orig Fri Oct 11 16:57:57 2002
+++ aclocal.m4 Sat Nov 9 03:45:33 2002
@@ -23,8 +23,8 @@
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
-$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
+${CONFIG_SHELL-/bin/sh} /usr/pkg/share/libtool/ltconfig --no-reexec \
+$libtool_flags --no-verify /usr/pkg/share/libtool/ltmain.sh $lt_target \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
@@ -809,7 +809,7 @@
AC_MSG_RESULT($dblib)
SASL_DB_BACKEND="db_${dblib}.lo"
-SASL_DB_BACKEND_STATIC="../sasldb/db_${dblib}.o ../sasldb/allockey.o"
+SASL_DB_BACKEND_STATIC="../sasldb/libsasldb.la"
SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
patches/patch-aj
--- plugins/Makefile.am.orig Sat Nov 9 01:21:59 2002
+++ plugins/Makefile.am Sat Nov 9 01:20:37 2002
@@ -263,7 +263,7 @@
libsasldb_la_SOURCES = sasldb.c sasldb_init.c $(common_sources)
libsasldb_la_LDFLAGS = -version-info $(sasldb_version)
libsasldb_la_DEPENDENCIES = $(COMPAT_OBJS)
-libsasldb_la_LIBADD = $(SASL_DB_LIB) $(COMPAT_OBJS)
+libsasldb_la_LIBADD = $(SASL_DB_BACKEND_STATIC) $(SASL_DB_LIB) $(COMPAT_OBJS)
# Auxprop Plugins
libmysql_la_SOURCES = mysql.c mysql_init.c $(common_sources)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->seb
Responsible-Changed-By: seb
Responsible-Changed-When: Sun Nov 10 02:13:13 PST 2002
Responsible-Changed-Why:
I'm working in this one.
From: Stoned Elipot <seb@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/19001 CVS commit: pkgsrc/security/cyrus-sasl2
Date: Fri, 15 Nov 2002 00:21:16 +0200 (EET)
Module Name: pkgsrc
Committed By: seb
Date: Thu Nov 14 22:21:15 UTC 2002
Modified Files:
pkgsrc/security/cyrus-sasl2: DEINSTALL Makefile PLIST.common
buildlink2.mk distinfo
pkgsrc/security/cyrus-sasl2/patches: patch-aa
Added Files:
pkgsrc/security/cyrus-sasl2: PLIST.post
pkgsrc/security/cyrus-sasl2/patches: patch-ai patch-aj
Removed Files:
pkgsrc/security/cyrus-sasl2/files: sasl-config.in
pkgsrc/security/cyrus-sasl2/patches: patch-ab patch-ag
Log Message:
Bump PKGREVISION:
- No need for /usr/lib/sasl2 anymore: INSTALL script removed, DEINSTALL
script tuned.
- Removed auto* tools dependencies by providing patch files for generated
configure and Makefile.in.
- Use ${PKGDIR} instead of ${.CURDIR} for PLIST_SRC files.
- `--with-rc4' does not need an argument.
- Use BUILDLINK_PREFIX.whatever instead of BUILDLINK_DIR.
- Fix GSSAPI build for non-current NetBSD, this includes patch-ag removal.
- Fix PLIST handling by providing PLIST.post (lib/sasl2 removal at deinstall
time) and fixing PLIST.common (include/sasl removal at deinstall time).
- Bump BUILDLINK_DEPENDS.cyrus-sasl in buildlink2.mk.
- Work around problem introduced by LTCONFIG_OVERRIDE and direct usage
of ac_cv_can_build_shared in configure.in as suggested by Nick Hudson.
Remove patch-ab (sasl-config is gone btw, it was not needed anyway).
This should fix plugins shared libs problem as reported -among other-
in PR pkg/19001 by Stephen Degler <sdegler at degler dot net>.
To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/security/cyrus-sasl2/DEINSTALL \
pkgsrc/security/cyrus-sasl2/PLIST.common \
pkgsrc/security/cyrus-sasl2/buildlink2.mk
cvs rdiff -r1.4 -r1.5 pkgsrc/security/cyrus-sasl2/Makefile
cvs rdiff -r0 -r1.1 pkgsrc/security/cyrus-sasl2/PLIST.post
cvs rdiff -r1.2 -r1.3 pkgsrc/security/cyrus-sasl2/distinfo
cvs rdiff -r1.1.1.1 -r0 pkgsrc/security/cyrus-sasl2/files/sasl-config.in
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/security/cyrus-sasl2/patches/patch-aa
cvs rdiff -r1.1.1.1 -r0 pkgsrc/security/cyrus-sasl2/patches/patch-ab
cvs rdiff -r1.2 -r0 pkgsrc/security/cyrus-sasl2/patches/patch-ag
cvs rdiff -r0 -r1.1 pkgsrc/security/cyrus-sasl2/patches/patch-ai \
pkgsrc/security/cyrus-sasl2/patches/patch-aj
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: seb
State-Changed-When: Thu Nov 14 14:25:24 PST 2002
State-Changed-Why:
I had committed an update for this package, please update your
pkgsrc and tell us how it goes now.
Thanks for this report!
State-Changed-From-To: feedback->closed
State-Changed-By: wiz
State-Changed-When: Fri Jan 10 13:38:34 PST 2003
State-Changed-Why:
Feedback timeout. Reply to get it re-opened.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.