Source: syslog-ng
Version: 3.3.5-1
Severity: serious
Justification: Fails to build from source on non-linux architectures

syslog-ng fails to build from source on non-linux architectures, due to
the systemd symlinks under /etc/systemd being in
debian/syslog-ng-core.conffiles. These symlinks are only installed on
Linux, however:

ifeq (linux,$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS))
        install -d 
debian/syslog-ng-core/etc/systemd/system/multi-user.target.wants
        ln -sf /lib/systemd/system/syslog-ng.service \
               debian/syslog-ng-core/etc/systemd/system/syslog.service
        ln -sf /lib/systemd/system/syslog-ng.service \
               debian/syslog-ng-core/etc/systemd/system/multi-user.target.wants/
        cp -r debian/tmp/lib debian/syslog-ng-core/
endif

This should be changed to run unconditionally, on all architectures, and
instead of copying debian/tmp/lib to the syslog-ng-core package, install
the service file ourselves, not relying on the upstream build system to
do it (since it will only do that on linux, when systemd is enabled).

I'll submit a patch later to do just this.

Sadly, the FTBFS is my fault, the above code is mine. Should've realized
that we need to install the files in .conffiles, or things will
break. Next time, I'll test my changes on kFreeBSD & Hurd aswell.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages syslog-ng depends on:
ii  syslog-ng-core         3.3.5-1
ii  syslog-ng-mod-json     3.3.5-1
ii  syslog-ng-mod-mongodb  3.3.5-1
ii  syslog-ng-mod-sql      3.3.5-1

syslog-ng recommends no packages.

syslog-ng suggests no packages.

-- no debconf information

-- 
|8]




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to