Source: vsftpd
Version: 3.0.3-12
Severity: important
Tags: ftbfs, patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hello,

vsftpd fails to install due to usage of a ps -C in vsftpd.init, which
does not exist for GNU/Hurd. The attached patch,
debian_vsftpd.init.patch, fixes this problem. The patch uses pidof
instead of ps; therefore an added build dependency of sysvinit-utils is
needed. That patch is also attached as debian_control.patch.

Due to the non-installability of vsftpd.init the build dependencies of
pycurl-7.43.0.6-4 fails, making that package no buildable.

Thanks!
--- a/debian/control	2019-03-06 07:52:35.000000000 +0100
+++ b/debian/control	2020-11-23 17:48:25.000000000 +0100
@@ -7,7 +7,8 @@
  libcap2-dev [linux-any],
  libpam0g-dev,
  libssl-dev,
- libwrap0-dev
+ libwrap0-dev,
+ sysvinit-utils
 Standards-Version: 4.3.0
 Homepage: http://vsftpd.beasts.org/
 
--- a/debian/vsftpd.init	2019-03-06 07:51:33.000000000 +0100
+++ b/debian/vsftpd.init	2020-11-23 12:23:30.000000000 +0100
@@ -51,7 +51,7 @@
 		while [ ${n} -le 5 ]
 		do 
 			_PID="$(if [ -e /var/run/vsftpd/vsftpd.pid ]; then cat /var/run/vsftpd/vsftpd.pid; fi)"
-			if ps -C vsftpd | grep -qs "${_PID}"
+			if `pidof vsftpd | tr '' '\n' | grep -oqs "${_PID}"`
 			then
 				break
 			fi
@@ -59,7 +59,7 @@
 			n=$(( $n + 1 ))
 		done
 
-		if ! ps -C vsftpd | grep -qs "${_PID}"
+		if `! pidof vsftpd | tr '' '\n' | grep -oqs "${_PID}"`
 		then
 			log_warning_msg "vsftpd failed - probably invalid config."
 			exit 1

Reply via email to