Skip to contentSkip to conversation

audit 2.5.1 released

DISCUSSION Manuel Scunthorpe 2 participants 2 messages Apr 28, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

The build fails in Arch Linux openrc when configure has the option     --enable-systemd=no
It seems to work and build the package but fails at the end, I think it is a makefile error. I wanted to build the package with static libs rather than use the precompiled Arch version.I tried the standard 2.4.4 version in ABS then modified it slightly to build the latest 2.5.1 version, they both gave the same result.For 2.5.1 I used this command as the checksums were different to 2.4.4 and the modified PKGBUILD which I attached to this message along with the log files, although they stop just before the sed error.

$ makepkg -L --skipinteg
The end of the build finishes like this:make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/steve/build/a3udit/src/audit-2.5.1'
make[1]: Leaving directory '/home/steve/build/a3udit/src/audit-2.5.1'
sed: can't read usr/lib/systemd/system/auditd.service: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

I did build the 2.4.4 version successfully earlier by setting --enable-systemd=yes but I don't know if that would break anything or simply create an unused .service file.There is a problem with this build config option though.

#2 lore raw
Quoted 15 lines · Manuel Scunthorpe

The build fails in Arch Linux openrc when configure has the option --enable-systemd=no It seems to work and build the package but fails at the end, I think it is a makefile error. I wanted to build the package with static libs rather than use the precompiled Arch version.I tried the standard 2.4.4 version in ABS then modified it slightly to build the latest 2.5.1 version, they both gave the same result.For 2.5.1 I used this command as the checksums were different to 2.4.4 and the modified PKGBUILD which I attached to this message along with the log files, although they stop just before the sed error. $ makepkg -L --skipinteg
The end of the build finishes like this:make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/steve/build/a3udit/src/audit-2.5.1' make[1]: Leaving directory '/home/steve/build/a3udit/src/audit-2.5.1'
sed: can't read usr/lib/systemd/system/auditd.service: No such file or directory ==> ERROR: A failure occurred in package().

Quoted 1 line
    Aborting...

The PKGBUILD script can't make up its mind on systemd. In the configure it says no, but then it tries to sed a systemd file. :-)

make[1]: Leaving directory '/home/steve/build/a3udit/src/audit-2.5.1'
sed: can't read usr/lib/systemd/system/auditd.service: No such file or directory
==> ERROR:(B A failure occurred in package().(B
 Aborting...(B

If you don't want systemd, then remove the usr/lib/systemd/system/auditd.service file from the sed command as well as the chmod of that file. Instead, you probably need to do something with etc/rc.d/init.d/audit.service.

Also, if you do not need to send audit events to a zos server, then you can also add --disable-zos-remote which removes a dependency on openldap-devel which seems unaccounted for in your dependencies but is in your buildroot. That will also require deleting lines with zos-remote in the PKGBUILD.

-Steve