On Thursday, April 28, 2016 02:45:55 AM Manuel Scunthorpe wrote:
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...
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
[1m[31m==> ERROR:(B[m[1m A failure occurred in package().(B[m
[1m Aborting...(B[m
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