Bug#481758: xfs: Please build with syslog support
Package: xfs
Version: 1:1.0.6-1
Severity: wishlist
Tags: patch
Following the recent discussion in #50859, I hereby request that xfs
should be compiled with syslog support. This is achieved by #defining
USE_SYSLOG, you probably want to do add -DUSE_SYSLOG to CFLAGS or
CPPFLAGS. Here is a patch for the latter:
--8<---------------cut here---------------start------------->8---
diff --git a/debian/rules b/debian/rules
index 750f5ed..ab2c6b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,7 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
+CPPFLAGS = -DUSE_SYSLOG
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -42,7 +43,8 @@ build-stamp:
../configure --prefix=/usr --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--sysconfdir=/etc $(confflags) \
- CFLAGS="$(CFLAGS)"
+ CFLAGS="$(CFLAGS)" \
+ CPPFLAGS="$(CPPFLAGS)"
cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
touch build-stamp
--8<---------------cut here---------------end--------------->8---
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24.6
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xfs depends on:
ii libc6 2.7-11 GNU C Library: Shared libraries
ii libfs6 2:1.0.0-5 X11 Font Services library
ii libxfont1 1:1.3.2-1 X11 font rasterisation library
xfs recommends no packages.
-- no debconf information
Reply to: