Am 04.09.2015 um 18:08 schrieb Alberto Gonzalez Iniesta:
> On Fri, Sep 04, 2015 at 02:29:34PM +0200, Michael Biebl wrote:
>> Hi
>>
>> Am 04.09.2015 um 13:42 schrieb Alberto Gonzalez Iniesta:
>>> I've been fighting with this for some time, but building with recent
>>> libsystemd-dev (without libsystemd-daemon-dev), makes
>>> systemd-ask-password support fail (disappear?). 
>>> Please find attached the debdiff for my work in progress. I had to patch
>>> the configure script in order to skip the check for
>>> libsystemd-daemon-dev.
>>>
>>> Any hints/help would be appreciated. I also tried with a more recent
>>> upstream version, with the same result.
>>
>> Hm, I don't understand why you need to patch configure.ac. Looking at
>> configure.ac, it has:
>>
>> PKG_CHECK_MODULES([libsystemd], [systemd libsystemd],
>>                   [],
>>                   [PKG_CHECK_MODULES([libsystemd], [libsystemd-daemon])]
>>                   )
>>
>> So, it already checks for the new libsystemd first, then falls back to
>> the old libsystmd-daemon name. I.e., all you need to do is to change the
>> Build-Depends in debian/control from libsystemd-daemon-dev to
>> libsystemd-dev, for which I attached a patch [1].
>> I did a test build with that patch applied and the resulting package had
>> a proper b-dep on libsystemd. Attached is the build log.
> 
> Hi Michael,
> 
> I had to modify configure.ac because otherwise the package build would
> fail. See attached build log with the single modification to 2.3.7-1 of
> the build dependency, built in a clean sid environment *without*
> libsystemd-daemon-dev. These lines seem quite relevant:

Well, you need to have libsystemd-dev installed.
Can you should me the output of
apt-cache policy libsystemd-dev?

Have you seen the build log I sent you? It shows a clean build with
libsystemd-dev install in an up-to-date sid chroot.


> --------------
> No package 'libsystemd-daemon' found
> configure:16532: error: Package requirements (libsystemd-daemon) were not met:
> 
> No package 'libsystemd-daemon' found
> [..]
> configure: exit 1
> dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr 
> --includedir=${prefix}/include --mandir=${prefix}/share/man 
> --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
> --disable-silent-rules --libexecdir=${prefix}/lib/openvpn 
> --disable-maintainer-mode --disable-dependency-tracking CFLAGS=-g -O2 -fPIE 
> -fstack-protector-strong -Wformat -Werror=format-security 
> CPPFLAGS=-D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong 
> -Wformat -Werror=format-security FCFLAGS=-g -O2 -fPIE 
> -fstack-protector-strong FFLAGS=-g -O2 -fPIE -fstack-protector-strong 
> GCJFLAGS=-g -O2 -fPIE -fstack-protector-strong LDFLAGS=-fPIE -pie 
> -Wl,-z,relro -Wl,-z,now OBJCFLAGS=-g -O2 -fPIE -fstack-protector-strong 
> -Wformat -Werror=format-security OBJCXXFLAGS=-g -O2 -fPIE 
> -fstack-protector-strong -Wformat -Werror=format-security 
> --enable-password-save --host=x86_64-linux-gnu --build=x86_64-linux-gnu 
> --prefix=/usr --mandir=${prefix}/share/man 
> --with-ifconfig-path=/sbin/ifconfig 
--with-route-path=/sbin/route --with-iproute-path=/sbin/ip --enable-iproute2 
--with-plugindir=${prefix}/lib/openvpn --includedir=${prefix}/include/openvpn 
--enable-pkcs11 --enable-x509-alt-username --enable-systemd returned exit code 1
> debian/rules:17: recipe for target 'override_dh_auto_configure' failed
> --------------
> 
> So I had to (horribly) hack the configure.ac file.
> 
> Anyway, the problem is that once built, the call to systemd-ask-password (or
> the request to execute systemd-tty-ask-password-agent, for that matter) fails.

Let's first figure out why the build fails for you.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to