Control: block -1 by 763766 Hi,
On Mon, 23 Jun 2014 17:07:13 +0300 Peter Pentchev <r...@ringlet.net> wrote: > As promised, here's the second patch that adds build profile annotations to > the krb5 debian/control file. It also removes the -N... options in the rules > file, thus making the changes a lot smaller. the syntax for the Build-Profiles field was changed during the bootstrap sprint in paris [1,2]. Attached patch is updated to reflect those changes. As the patch requires debhelper to understand the new syntax, this bug is blocked by that bug in debhelper. cheers, josch [1] https://wiki.debian.org/Sprints/2014/BootstrapSprint [2] https://wiki.debian.org/BuildProfileSpec
diff -Nru krb5-1.13~alpha1+dfsg/debian/changelog krb5-1.13~alpha1+dfsg/debian/changelog --- krb5-1.13~alpha1+dfsg/debian/changelog 2014-09-12 00:02:46.000000000 +0200 +++ krb5-1.13~alpha1+dfsg/debian/changelog 2014-10-07 11:43:37.000000000 +0200 @@ -1,3 +1,15 @@ +krb5 (1.13~alpha1+dfsg-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * In stage 1, remove the libldap2-dev build dependency. While building, + check the DEB_BUILD_PROFILES variable for "stage1" and, if found, disable + the LDAP functionality and skip the LDAP-related parts of the build and + installation. Add build profile annotations to debian/control. + Based on patch by Peter Pentchev + Closes: #752409 + + -- Johannes Schauer <j.scha...@email.de> Tue, 07 Oct 2014 11:41:41 +0200 + krb5 (1.13~alpha1+dfsg-1) experimental; urgency=low [ Jelmer Vernooij ] diff -Nru krb5-1.13~alpha1+dfsg/debian/control krb5-1.13~alpha1+dfsg/debian/control --- krb5-1.13~alpha1+dfsg/debian/control 2014-09-12 00:02:46.000000000 +0200 +++ krb5-1.13~alpha1+dfsg/debian/control 2014-10-07 11:44:14.000000000 +0200 @@ -1,9 +1,9 @@ Source: krb5 Section: net Priority: standard -Build-Depends: debhelper (>= 8.1.3), byacc | bison, +Build-Depends: debhelper (>= 9.FIXME), dpkg-dev (>= 1.17.14), byacc | bison, comerr-dev, docbook-to-man, doxygen, - libkeyutils-dev [linux-any], libldap2-dev, + libkeyutils-dev [linux-any], libldap2-dev <!stage1>, libncurses5-dev, libssl-dev, ss-dev, libverto-dev (>= 0.2.4), pkg-config build-depends-indep: python-cheetah, python-lxml, python-sphinx, doxygen-latex @@ -56,6 +56,7 @@ Package: krb5-kdc-ldap Architecture: any Priority: extra +Build-Profiles: <!stage1> Depends: ${misc:Depends}, ${shlibs:Depends}, krb5-kdc (= ${binary:Version}) Description: MIT Kerberos key server (KDC) LDAP plugin Kerberos is a system for authenticating users and services on a network. diff -Nru krb5-1.13~alpha1+dfsg/debian/rules krb5-1.13~alpha1+dfsg/debian/rules --- krb5-1.13~alpha1+dfsg/debian/rules 2014-09-12 00:02:46.000000000 +0200 +++ krb5-1.13~alpha1+dfsg/debian/rules 2014-10-07 11:41:32.000000000 +0200 @@ -51,6 +51,16 @@ LIB_PACKAGES = libkrb5-3 libgssapi-krb5-2 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libgssrpc4 \ libkrb5support0 libk5crypto3 libkrad0 +ifneq (,$(filter stage1,$(DEB_BUILD_PROFILES))) +KRB5_SKIP_LDAP= 1 +endif + +ifeq (,$(KRB5_SKIP_LDAP)) +CONFIGURE_LDAP= --with-ldap +else +CONFIGURE_LDAP= --without-ldap +endif + # We touch each configure and Autoconf-related file so that we do not attempt # to use Autoconf. The cache is used by the Embdebian project for cross # compiles. @@ -66,7 +76,7 @@ cd build && $(FLAGS) ../src/configure \ --prefix=/usr --localstatedir=/etc --mandir=/usr/share/man \ --with-system-et --with-system-ss --disable-rpath \ - --enable-shared --with-ldap --without-tcl \ + --enable-shared $(CONFIGURE_LDAP) --without-tcl \ --with-system-verto \ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ --sysconfdir=/etc \ @@ -114,11 +124,15 @@ cd build && $(MAKE) install DESTDIR=`pwd`/../debian/tmp install -d $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/krb5 $(CURDIR)/debian/tmp/etc/insserv/overrides +ifeq (,$(KRB5_SKIP_LDAP)) install -m644 debian/krb5-kdc-ldap.insserv-override debian/tmp/etc/insserv/overrides/krb5-kdc - install -m644 $(CURDIR)/debian/README.mech.d $(CURDIR)/debian/libgssapi-krb5-2/etc/gss/mech.d/README mv $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libkdb_ldap* \ $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/krb5/ rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/krb5/libkdb_ldap*.so +else + rm -f $(CURDIR)/debian/tmp/usr/share/man/man8/kdb5_ldap_util.8 +endif + install -m644 $(CURDIR)/debian/README.mech.d $(CURDIR)/debian/libgssapi-krb5-2/etc/gss/mech.d/README mv $(CURDIR)/debian/tmp/usr/bin/krb5-config \ $(CURDIR)/debian/tmp/usr/bin/krb5-config.mit mv $(CURDIR)/debian/tmp/usr/share/man/man1/krb5-config.1 \