I wanted to do this in the NMU I'm preparing (with the diff I attached) but the build hangs here:
make tests/alloc_port tests/wait_for_slapd_exit tests/wait_for_slapd_start make[3]: Entering directory '/build/libuser-0.62~dfsg' gcc -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/alloc_port.o tests/alloc_port.c /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -fPIE -pie -Wl,-z,relro -Wl,-z,now -o tests/alloc_port tests/alloc_port.o libtool: link: gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tests/alloc_port tests/alloc_port.o gcc -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_exit.o tests/wait_for_slapd_exit.c /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -fPIE -pie -Wl,-z,relro -Wl,-z,now -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o libtool: link: gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o gcc -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_start.o tests/wait_for_slapd_start.c /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -fPIE -pie -Wl,-z,relro -Wl,-z,now -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o libtool: link: gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o make[3]: Leaving directory '/build/libuser-0.62~dfsg' make check-TESTS make[3]: Entering directory '/build/libuser-0.62~dfsg' make[4]: Entering directory '/build/libuser-0.62~dfsg' PASS: tests/config_test.sh SKIP: tests/fs_test PASS: tests/files_test PASS: tests/pwhash_test PASS: tests/utils_test ^C -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
diff --git a/debian/control b/debian/control index bd1383e..6bfff09 100644 --- a/debian/control +++ b/debian/control @@ -12,8 +12,10 @@ Build-Depends: dh-python, groff, libglib2.0-dev, + libldap-dev, libpam0g-dev, libpopt-dev, + libsasl2-dev, linuxdoc-tools, pkg-config, python-all-dev, diff --git a/debian/patches/0001-build-fix-not-a-proper-format-string.patch b/debian/patches/0001-build-fix-not-a-proper-format-string.patch index 0c1e3f1..c098be5 100644 --- a/debian/patches/0001-build-fix-not-a-proper-format-string.patch +++ b/debian/patches/0001-build-fix-not-a-proper-format-string.patch @@ -19,3 +19,14 @@ Fix "format not a string literal and no format arguments" error lu_error_free(&err); } return ret; +--- a/modules/ldap.c ++++ b/modules/ldap.c +@@ -672,7 +672,7 @@ + (&value, attr, val, &error); + if (ok == FALSE) { + g_assert(error != NULL); +- g_warning(lu_strerror(error)); ++ g_warning("%s", lu_strerror(error)); + lu_error_free(&error); + } else { + lu_ent_add_current(ent, attr, diff --git a/debian/rules b/debian/rules index 2d0efa9..f33c441 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,10 @@ export DEB_BUILD_OPTIONS=hardening=+all dh $@ --with python2,autoreconf --parallel override_dh_auto_configure: - dh_auto_configure -- --program-transform-name="s/lid/libuser-lid/" + dh_auto_configure -- \ + --program-transform-name="s/lid/libuser-lid/" \ + --with-ldap \ + --with-sasl \ override_dh_auto_install: dh_auto_install
signature.asc
Description: PGP signature