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

Bug#894314: [PATCH] audit: Please add support for a pkg.audit.noldap build-profile



Package: audit
Version: 1:2.8.2-1
Severity: wishlist
X-Debbugs-CC: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64

Hello,

we are in the process of bootstrapping a Debian port for the
riscv64 architecture (https://wiki.debian.org/RISC-V). The
audit package is part of the build-dependency chain for the
essential package set, so we need to build it to be able to
complete the bootstrap process.

Unfortunately audit is involved in a circular set of
build-dependencies: audit build-depends on openldap, openldap
build-depends on cyrus-sasl, cyrus-sasl build-depends on pam and
pam build-depends on audit, which is where the cat chases its
tail :-).

To break this circular dependency in a proper way, it is necessary
to add a build-profile (https://wiki.debian.org/BuildProfileSpec)
to audit which allows building the package without support for
openldap.  AIUI, the only binary package built from the audit
source that actually needs openldap is audispd-plugins, in
particular the zos-remote plugin.  Attached is a patch that adds
support for a pkg.audit.noldap build-profile that does two things
when enabled:

  - disable the build-dependency on libldap2-dev
  - disable building the audispd-plugins binary package

It would be great if you could upload a version of audit with
this patch included to unstable soon as we depend on it for
continuing with our bootstrapping efforts.

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.
diff -Nur audit-2.8.2.orig/debian/control audit-2.8.2.new/debian/control
--- audit-2.8.2.orig/debian/control
+++ audit-2.8.2.new/debian/control
@@ -10,7 +10,7 @@
 # audit sources embed their own patched version of libev
 #               libev-dev,
                libkrb5-dev,
-               libldap2-dev,
+               libldap2-dev <!pkg.audit.noldap>,
                libprelude-dev,
                libwrap0-dev,
                python-all-dev:any (>= 2.6.6-3~) <!nopython>,
@@ -138,6 +138,7 @@
 Section: admin
 Architecture: linux-any
 Depends: auditd, ${misc:Depends}, ${shlibs:Depends}
+Build-Profiles: <!pkg.audit.noldap>
 Description: Plugins for the audit event dispatcher
  The audispd-plugins package provides plugins for the real-time
  interface to the audit system, audispd. These plugins can do things
diff -Nur audit-2.8.2.orig/debian/rules audit-2.8.2.new/debian/rules
--- audit-2.8.2.orig/debian/rules	2017-12-18 08:13:02.000000000 +0000
+++ audit-2.8.2.new/debian/rules	2018-03-28 17:38:29.354936110 +0000
@@ -30,6 +30,10 @@
   EXTRA_ARCH_TABLE := --with-hppa
 endif
 
+ifneq ($(filter pkg.audit.noldap,$(DEB_BUILD_PROFILES)),)
+  CONFIGURE_FLAGS += --disable-zos-remote
+endif
+
 %:
 	dh $@ --builddirectory=debian/build --buildsystem=autoconf $(DH_ADDONS)
 

Reply to: