[Pkg-cyrus-sasl2-commits] r599 - in /cyrus-sasl-2.1/trunk/debian: ./ patches/ sample/

roberto at users.alioth.debian.org roberto at users.alioth.debian.org
Thu Aug 26 20:16:47 UTC 2010


Author: roberto
Date: Thu Aug 26 20:16:39 2010
New Revision: 599

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=599
Log:
Merge in changes from the package-consolidate branch

Added:
    cyrus-sasl-2.1/trunk/debian/cyrus-sasl2-heimdal-dbg.postrm
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/cyrus-sasl2-heimdal-dbg.postrm
    cyrus-sasl-2.1/trunk/debian/cyrus-sasl2-heimdal-dbg.preinst
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/cyrus-sasl2-heimdal-dbg.preinst
    cyrus-sasl-2.1/trunk/debian/libsasl2-modules-gssapi-heimdal.dirs
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/libsasl2-modules-gssapi-heimdal.dirs
    cyrus-sasl-2.1/trunk/debian/libsasl2-modules-gssapi-heimdal.install
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/libsasl2-modules-gssapi-heimdal.install
    cyrus-sasl-2.1/trunk/debian/libsasl2-modules-gssapi-heimdal.lintian-overrides
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/libsasl2-modules-gssapi-heimdal.lintian-overrides
    cyrus-sasl-2.1/trunk/debian/patches/0024_allow_detection_of_heimdal.dpatch
      - copied unchanged from r598, cyrus-sasl-2.1/branches/package-consolidate/debian/patches/0024_allow_detection_of_heimdal.dpatch
Removed:
    cyrus-sasl-2.1/trunk/debian/README.Debian-NMU
Modified:
    cyrus-sasl-2.1/trunk/debian/changelog
    cyrus-sasl-2.1/trunk/debian/control
    cyrus-sasl-2.1/trunk/debian/patches/00list
    cyrus-sasl-2.1/trunk/debian/rules
    cyrus-sasl-2.1/trunk/debian/sample/Makefile

Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=599&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Thu Aug 26 20:16:39 2010
@@ -1,8 +1,12 @@
-cyrus-sasl2 (2.1.23.dfsg1-6) UNRELEASED; urgency=low
-
-  * NOT RELEASED YET
-
- -- Roberto C. Sanchez <roberto at connexer.com>  Tue, 03 Aug 2010 15:29:09 -0400
+cyrus-sasl2 (2.1.23.dfsg1-6) unstable; urgency=low
+
+  * Acknowlge NMU (thanks to Ben Hutchings)
+  * Merge cyrus-sasl2 and cyrus-sasl2-heimdal source packages (Closes: #568358)
+    + Build against new heimdal-multidev (Closes: #591147)
+  * Properly detect presence of Heimdal (Closes: #590912); thanks tremendously
+    to Russ Allbery for the patch
+
+ -- Roberto C. Sanchez <roberto at connexer.com>  Thu, 19 Aug 2010 20:45:57 -0400
 
 cyrus-sasl2 (2.1.23.dfsg1-5.1) unstable; urgency=low
 

Modified: cyrus-sasl-2.1/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/control?rev=599&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/control (original)
+++ cyrus-sasl-2.1/trunk/debian/control Thu Aug 26 20:16:39 2010
@@ -4,7 +4,7 @@
 Maintainer: Debian Cyrus SASL Team <pkg-cyrus-sasl2-debian-devel at lists.alioth.debian.org>
 Uploaders: Fabian Fagerholm <fabbe at debian.org>, Roberto C. Sanchez <roberto at connexer.com>
 Standards-Version: 3.8.3
-Build-Depends: debhelper (>= 5.0.0), dpatch, autotools-dev, automake1.9, autoconf, libtool, libdb4.8-dev, libpam0g-dev (>= 0.76-22), libssl-dev (>= 0.9.7e-3), libmysqlclient-dev | libmysqlclient15-dev (>= 5.0.20), libopie-dev (>= 2.32-10), libpq-dev (>= 8.1.3-4), libkrb5-dev, libsqlite0-dev (>= 2.8.16), libldap2-dev (>= 2.1.30-8), chrpath, groff-base, debconf (>= 0.5) | debconf-2.0, po-debconf, docbook-to-man
+Build-Depends: debhelper (>= 5.0.0), dpatch, autotools-dev, automake1.9, autoconf, libtool, libdb4.8-dev, libpam0g-dev (>= 0.76-22), libssl-dev (>= 0.9.7e-3), libmysqlclient-dev | libmysqlclient15-dev (>= 5.0.20), libopie-dev (>= 2.32-10), libpq-dev (>= 8.1.3-4), heimdal-multidev, krb5-multidev, libsqlite0-dev (>= 2.8.16), libldap2-dev (>= 2.1.30-8), chrpath, groff-base, debconf (>= 0.5) | debconf-2.0, po-debconf, docbook-to-man
 Build-Conflicts: heimdal-dev
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/
@@ -125,6 +125,18 @@
  This package includes development files for compiling programs with SASL
  support. It is needed for development purposes only.
 
+Package: libsasl2-modules-gssapi-heimdal
+Architecture: any
+Priority: extra
+Depends: libsasl2-modules (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libsasl2-modules-gssapi-mit
+Description: Pluggable Authentication Modules for SASL (GSSAPI)
+ This is the Cyrus SASL API implementation, version 2.1. See package
+ libsasl2-2 and RFC 2222 for more information.
+ .
+ This package provides the GSSAPI plugin, compiled with the Heimdal
+ Kerberos 5 library.
+
 Package: cyrus-sasl2-dbg
 Section: debug
 Architecture: any
@@ -138,3 +150,18 @@
  The debugging symbols can be useful when investigating crashes in the SASL
  library or tools. You may be asked to install this package if you encounter
  such a crash.
+
+Package: cyrus-sasl2-heimdal-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: cyrus-sasl2-dbg (= ${binary:Version}), libsasl2-modules-gssapi-heimdal (= ${binary:Version}), ${misc:Depends}
+Description: Debugging symbols for Cyrus SASL
+ This is the Cyrus SASL API implementation, version 2. See package
+ libsasl2-2 and RFC 2222 for more information.
+ .
+ This package contains the debugging symbols for the Cyrus SASL Heimdal
+ GSSAPI modules package (libsasl2-modules-gssapi-heimdal). The debugging
+ symbols can be useful when investigating crashes in the SASL library or
+ tools. You may be asked to install this package if you encounter such a
+ crash.

Modified: cyrus-sasl-2.1/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/patches/00list?rev=599&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/patches/00list (original)
+++ cyrus-sasl-2.1/trunk/debian/patches/00list Thu Aug 26 20:16:39 2010
@@ -20,3 +20,4 @@
 0019_ldap_deprecated
 0021_no_mutex_changes_after_init
 0022_gcc4.4_preprocessor_syntax
+0024_allow_detection_of_heimdal

Modified: cyrus-sasl-2.1/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/rules?rev=599&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/rules (original)
+++ cyrus-sasl-2.1/trunk/debian/rules Thu Aug 26 20:16:39 2010
@@ -60,6 +60,40 @@
 	CONFIGURE_GSSAPI=--disable-gssapi
 endif
 
+CONFIGURE_COMMON_OPTIONS=--host=$(DEB_HOST_GNU_TYPE) \
+	--build=$(DEB_BUILD_GNU_TYPE) \
+	--prefix=/usr \
+	--mandir=\$${prefix}/share/man \
+	--infodir=\$${prefix}/share/info \
+	--enable-static \
+	--enable-shared \
+	--enable-alwaystrue \
+	--enable-checkapop \
+	--enable-cram \
+	--enable-digest \
+	--enable-otp \
+	--disable-srp \
+	--disable-srp-setpass \
+	--disable-krb4 \
+	$(CONFIGURE_GSSAPI) \
+	--enable-gss_mutexes \
+	--enable-auth-sasldb \
+	--enable-plain \
+	--enable-anon \
+	--enable-login \
+	--enable-ntlm \
+	--disable-passdss \
+	$(CONFIGURE_SQL) \
+	$(CONFIGURE_LDAPDB) \
+	--disable-macos-framework \
+	--with-pam \
+	--with-saslauthd=/var/run/saslauthd \
+	$(CONFIGURE_LDAP) \
+	--with-pgsql=/usr/include/postgresql \
+	--with-configdir=/etc/sasl:/usr/lib/sasl2 \
+	--sysconfdir=/etc \
+	--with-devrandom=/dev/urandom
+
 # Prepare shared library version numbers.
 version=`ls src/.libs/lib*.so.* | \
 	awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
@@ -67,7 +101,10 @@
 	awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
 # Some convenience variables
-export TMPPKG := $(CURDIR)/debian/tmp
+export TMPBUILD_MIT := $(CURDIR)/build-mit
+export TMPBUILD_HEIMDAL := $(CURDIR)/build-heimdal
+export TMPPKG_MIT := $(CURDIR)/debian/tmp-mit
+export TMPPKG_HEIMDAL := $(CURDIR)/debian/tmp-heimdal
 
 AUTOFILES=acinclude.m4 aclocal.m4 config/config.sub config/config.guess \
 		  config/ltmain.sh config/libtool.m4
@@ -122,6 +159,9 @@
 	# Remove generated man pages
 	-rm -f sasl-sample-client.8 sasl-sample-server.8
 
+	# Remove build directories
+	rm -rf $(TMPBUILD_MIT) $(TMPBUILD_HEIMDAL) $(TMPPKG_MIT) $(TMPPKG_HEIMDAL)
+
 	dh_clean 
 
 ###
@@ -135,48 +175,32 @@
 	touch configure
 	$(AUTOTOOLS)
 	(cd saslauthd && $(AUTOTOOLS) && cd ..)
-	LDFLAGS="$(LDFLAGS) -Wl,-z,defs" CFLAGS="$(CFLAGS)" ./configure \
-	       --host=$(DEB_HOST_GNU_TYPE) \
-	       --build=$(DEB_BUILD_GNU_TYPE) \
-	       --prefix=/usr \
-	       --mandir=\$${prefix}/share/man \
-	       --infodir=\$${prefix}/share/info \
-	       --enable-static \
-	       --enable-shared \
-	       --enable-alwaystrue \
-	       --enable-checkapop \
-	       --enable-cram \
-	       --enable-digest \
-	       --enable-otp \
-	       --disable-srp \
-	       --disable-srp-setpass \
-	       --disable-krb4 \
-	       $(CONFIGURE_GSSAPI) \
-	       --enable-gss_mutexes \
-	       --enable-auth-sasldb \
-	       --enable-plain \
-	       --enable-anon \
-	       --enable-login \
-	       --enable-ntlm \
-	       --disable-passdss \
-	       $(CONFIGURE_SQL) \
-	       $(CONFIGURE_LDAPDB) \
-	       --disable-macos-framework \
-	       --with-pam \
-	       --with-saslauthd=/var/run/saslauthd \
-	       $(CONFIGURE_LDAP) \
-	       --with-pgsql=/usr/include/postgresql \
-	       --with-configdir=/etc/sasl:/usr/lib/sasl2 \
-	       --sysconfdir=/etc \
-	       --with-devrandom=/dev/urandom
-	       
+	mkdir $(TMPBUILD_MIT)
+	cd $(TMPBUILD_MIT) && \
+	LDFLAGS="$(LDFLAGS) -L/usr/lib/mit-krb5 -Wl,-z,defs" \
+	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I/usr/include/mit-krb5" \
+	../configure $(CONFIGURE_COMMON_OPTIONS) --with-gss_impl=mit
+	# Cope with the way that ./configure creates symlinks
+	cp $(CURDIR)/sasldb/* $(TMPBUILD_MIT)/sasldb/
+	cp $(CURDIR)/plugins/* $(TMPBUILD_MIT)/plugins/
+	cp $(CURDIR)/lib/* $(TMPBUILD_MIT)/lib/
+	mkdir $(TMPBUILD_HEIMDAL)
+	cd $(TMPBUILD_HEIMDAL) && \
+	LDFLAGS="$(LDFLAGS) -L/usr/lib/heimdal -Wl,-z,defs" \
+	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I/usr/include/heimdal" \
+	../configure $(CONFIGURE_COMMON_OPTIONS) --with-gss_impl=heimdal
+	# Cope with the way that ./configure creates symlinks
+	cp $(CURDIR)/sasldb/* $(TMPBUILD_HEIMDAL)/sasldb/
+	cp $(CURDIR)/plugins/* $(TMPBUILD_HEIMDAL)/plugins/
+	cp $(CURDIR)/lib/* $(TMPBUILD_HEIMDAL)/lib/
+
 	# Prepare to build sample-{client,server}
 	cp -f $(CURDIR)/debian/sample/config.h $(CURDIR)/sample/config.h
 
 	# Record the build-time settings for later reference
 	echo 'To build this package, configure was called as follows:' \
 		> debian/README.configure-options
-	grep with\ options config.status | sed -e \
+	grep with\ options $(TMPBUILD_MIT)/config.status | sed -e \
 		's/^.*options \\"/configure /;s/\\"$///' \
 		>> debian/README.configure-options
 
@@ -191,12 +215,13 @@
 	# Certain symlinks get created too late, resulting in a
 	# build failure. We work around this by running make twice,
 	# ignoring the first failure.
-	-$(MAKE)
-	# Here we run make again (this comment makes build log more readable)
-	$(MAKE)
+	-(cd $(TMPBUILD_MIT); $(MAKE);)
+	(cd $(TMPBUILD_MIT); $(MAKE);)
+	-(cd $(TMPBUILD_HEIMDAL); $(MAKE);)
+	(cd $(TMPBUILD_HEIMDAL); $(MAKE);)
 
 	# Build sample-{client,server}
-	make -f $(CURDIR)/debian/sample/Makefile -C $(CURDIR)/sample T=$(CURDIR)
+	$(MAKE) -f $(CURDIR)/debian/sample/Makefile -C $(CURDIR)/sample T=$(TMPBUILD_MIT)
 
 	touch build-arch-stamp
 
@@ -221,40 +246,41 @@
 	dh_testroot
 	dh_clean -k 
 
-	$(MAKE) install DESTDIR=$(TMPPKG)
+	(cd $(TMPBUILD_MIT); $(MAKE) install DESTDIR=$(TMPPKG_MIT))
+	(cd $(TMPBUILD_HEIMDAL); $(MAKE) install DESTDIR=$(TMPPKG_HEIMDAL))
 
 	# Alter the default location and names of files to fit Debian
 	# policy and better integrate with the Debian system.
-	mv $(TMPPKG)/usr/sbin/pluginviewer $(TMPPKG)/usr/sbin/saslpluginviewer
-	mv $(TMPPKG)/usr/share/man/man8/pluginviewer.8 \
-		$(TMPPKG)/usr/share/man/man8/saslpluginviewer.8
+	mv $(TMPPKG_MIT)/usr/sbin/pluginviewer $(TMPPKG_MIT)/usr/sbin/saslpluginviewer
+	mv $(TMPPKG_MIT)/usr/share/man/man8/pluginviewer.8 \
+		$(TMPPKG_MIT)/usr/share/man/man8/saslpluginviewer.8
 	install -m 644 saslauthd/saslauthd.mdoc \
-		$(TMPPKG)/usr/share/man/man8/saslauthd.8
+		$(TMPPKG_MIT)/usr/share/man/man8/saslauthd.8
 	install -m 644 $(CURDIR)/debian/testsaslauthd.8 \
-		$(TMPPKG)/usr/share/man/man8/testsaslauthd.8
-	mv $(TMPPKG)/usr/sbin/dbconverter-2 $(TMPPKG)/usr/sbin/sasldbconverter2
+		$(TMPPKG_MIT)/usr/share/man/man8/testsaslauthd.8
+	mv $(TMPPKG_MIT)/usr/sbin/dbconverter-2 $(TMPPKG_MIT)/usr/sbin/sasldbconverter2
 	install -m 644 utils/sasldbconverter2.8 \
-		$(TMPPKG)/usr/share/man/man8/sasldbconverter2.8
+		$(TMPPKG_MIT)/usr/share/man/man8/sasldbconverter2.8
 
 	# Install sample-{client,server} with Debianized names
 	install -m 755 -D $(CURDIR)/sample/sample-client \
-		$(TMPPKG)/usr/bin/sasl-sample-client
+		$(TMPPKG_MIT)/usr/bin/sasl-sample-client
 	install -m 755 -D $(CURDIR)/sample/sample-server \
-		$(TMPPKG)/usr/sbin/sasl-sample-server
+		$(TMPPKG_MIT)/usr/sbin/sasl-sample-server
 
 	# Alter the rpath of certain binaries and shared libraries.
-	chrpath -d $(TMPPKG)/usr/sbin/sasldblistusers2 \
-		$(TMPPKG)/usr/sbin/saslpasswd2
-	chrpath -d $(TMPPKG)/usr/lib/sasl2/libsql.so.2.0.23
+	chrpath -d $(TMPPKG_MIT)/usr/sbin/sasldblistusers2 \
+		$(TMPPKG_MIT)/usr/sbin/saslpasswd2
+	chrpath -d $(TMPPKG_MIT)/usr/lib/sasl2/libsql.so.2.0.23
 
 	# Install the sasl-sample-client and -server man pages.
 	dh_installman -psasl2-bin sasl-sample-client.8 sasl-sample-server.8
 
 	# Install saslfinger
 	install -m 644 -D $(CURDIR)/debian/saslfinger/saslfinger.1 \
-		$(TMPPKG)/usr/share/man/man1/saslfinger.1
+		$(TMPPKG_MIT)/usr/share/man/man1/saslfinger.1
 	install -m 755 -D $(CURDIR)/debian/saslfinger/saslfinger \
-		$(TMPPKG)/usr/bin/saslfinger
+		$(TMPPKG_MIT)/usr/bin/saslfinger
 
 ###
 # Build architecture-dependent files.
@@ -273,11 +299,15 @@
 		debian/libsasl2-modules/usr/share/lintian/overrides/libsasl2-modules
 	cp debian/libsasl2-modules-otp.lintian-overrides \
 		debian/libsasl2-modules-otp/usr/share/lintian/overrides/libsasl2-modules-otp
-	dh_install -s --autodest --list-missing --sourcedir=$(TMPPKG)
+	cp debian/libsasl2-modules-gssapi-heimdal.lintian-overrides \
+		debian/libsasl2-modules-gssapi-heimdal/usr/share/lintian/overrides/libsasl2-modules-gssapi-heimdal
+	dh_install -s --autodest --list-missing --sourcedir=$(TMPPKG_MIT) -psasl2-bin -plibsasl2-2 -plibsasl2-modules -plibsasl2-modules-ldap -plibsasl2-modules-otp -plibsasl2-modules-sql -plibsasl2-modules-gssapi-mit -plibsasl2-dev -Nlibsasl2-modules-gssapi-heimdal
+	dh_install -s --autodest --list-missing --sourcedir=$(TMPPKG_HEIMDAL) -plibsasl2-modules-gssapi-heimdal -Nsasl2-bin -Nlibsasl2-2 -Nlibsasl2-modules -Nlibsasl2-modules-ldap -Nlibsasl2-modules-otp -Nlibsasl2-modules-sql -Nlibsasl2-modules-gssapi-mit -Nlibsasl2-dev
 	dh_installinit --name=saslauthd start 20 2 3 4 5 . stop 20 1 .
 	dh_installman -s
 	dh_link -s
-	dh_strip -s --dbg-package=cyrus-sasl2-dbg
+	dh_strip -s -psasl2-bin -plibsasl2-2 -plibsasl2-modules -plibsasl2-modules-ldap -plibsasl2-modules-otp -plibsasl2-modules-sql -plibsasl2-modules-gssapi-mit -plibsasl2-dev -Nlibsasl2-modules-gssapi-heimdal --dbg-package=cyrus-sasl2-dbg
+	dh_strip -s -plibsasl2-modules-gssapi-heimdal -Nsasl2-bin -Nlibsasl2-2 -Nlibsasl2-modules -Nlibsasl2-modules-ldap -Nlibsasl2-modules-otp -Nlibsasl2-modules-sql -Nlibsasl2-modules-gssapi-mit -Nlibsasl2-dev --dbg-package=cyrus-sasl2-heimdal-dbg
 	dh_compress -s
 	dh_fixperms -s
 	dh_makeshlibs -s -X/usr/lib/sasl2
@@ -308,8 +338,8 @@
 ###
 test: build-arch build-indep
 	dh_testdir
-	cd saslauthd && make testsaslauthd
-	cd utils && make testsuite
+	cd $(TMPBUILD_MIT)/saslauthd && $(MAKE) testsaslauthd
+	cd $(TMPBUILD_MIT)/utils && $(MAKE) testsuite
 
 ###
 # Assemble the binary packages.

Modified: cyrus-sasl-2.1/trunk/debian/sample/Makefile
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sample/Makefile?rev=599&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sample/Makefile (original)
+++ cyrus-sasl-2.1/trunk/debian/sample/Makefile Thu Aug 26 20:16:39 2010
@@ -1,12 +1,13 @@
 #!/usr/bin/make -f
 
-INCDIR=$(T)/include
+INCDIR1=$(T)/../include
+INCDIR2=$(T)/include
 LIBDIR=$(T)/lib/.libs
 
 all: sample-server sample-client
 
 sample-server: sample-server.c
-	gcc -g -o sample-server sample-server.c -I. -I$(INCDIR) -L$(LIBDIR) -lsasl2
+	gcc -g -o sample-server sample-server.c -I. -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2
 
 sample-client: sample-client.c
-	gcc -g -o sample-client sample-client.c -I. -I$(INCDIR) -L$(LIBDIR) -lsasl2
+	gcc -g -o sample-client sample-client.c -I. -I$(INCDIR1) -I$(INCDIR2) -L$(LIBDIR) -lsasl2




More information about the Pkg-cyrus-sasl2-commits mailing list