[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#488194: xfs: NMU patch for version 1:1.0.8-1.1



Package: xfs
Version: 1:1.0.8-1.1
Tags:    patch

Here is the patch used in my NMU.

diff -u xfs-1.0.8/debian/changelog xfs-1.0.8/debian/changelog
--- xfs-1.0.8/debian/changelog
+++ xfs-1.0.8/debian/changelog
@@ -1,3 +1,14 @@
+xfs (1:1.0.8-1.1) unstable; urgency=low
+
+  * Non-maintainer upload to fix RC bug.
+  * Run xfs process as user nobody by default (Closes: #50859).  Patch
+    from Petter Reinholdtsen.
+  * Build with -DUSE_SYSLOG to get the syslog option to work, to avoid
+    log rotation issue when xfs is running as a non-privileged
+    user (Closes: 481758).  Patch from Sven Joachim.
+
+ -- Petter Reinholdtsen <pere@debian.org>  Thu, 26 Jun 2008 22:45:42 +0200
+
 xfs (1:1.0.8-1) unstable; urgency=low
 
   * New upstream release.
diff -u xfs-1.0.8/debian/rules xfs-1.0.8/debian/rules
--- xfs-1.0.8/debian/rules
+++ xfs-1.0.8/debian/rules
@@ -22,6 +22,7 @@
 	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 @@
 	../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
diff -u xfs-1.0.8/debian/xfs.init xfs-1.0.8/debian/xfs.init
--- xfs-1.0.8/debian/xfs.init
+++ xfs-1.0.8/debian/xfs.init
@@ -92,7 +92,7 @@
   start)
     set_up_socket_dir
     echo -n "Starting X font server: xfs"
-    start-stop-daemon --start --quiet $SSD_START_ARGS -- -daemon \
+    start-stop-daemon --start --quiet $SSD_START_ARGS -- -daemon -user nobody -droppriv \
       || echo -n " already running"
     echo "."
   ;;

Happy hacking,
-- 
Petter Reinholdtsen



Reply to: