-rwxr-xr-x root/root usr/bin/peekfd
-rwxr-xr-x root/root usr/bin/prtstat
-rwxr-xr-x root/root usr/bin/pstree
-drwxr-xr-x root/root usr/man/
-drwxr-xr-x root/root usr/man/man1/
--rw-r--r-- root/root usr/man/man1/fuser.1.gz
--rw-r--r-- root/root usr/man/man1/killall.1.gz
--rw-r--r-- root/root usr/man/man1/peekfd.1.gz
--rw-r--r-- root/root usr/man/man1/prtstat.1.gz
--rw-r--r-- root/root usr/man/man1/pstree.1.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/fuser.1.gz
+-rw-r--r-- root/root usr/share/man/man1/killall.1.gz
+-rw-r--r-- root/root usr/share/man/man1/peekfd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/prtstat.1.gz
+-rw-r--r-- root/root usr/share/man/man1/pstree.1.gz
name=psmisc
version=22.21
-release=1
-source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz)
+release=3
+source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz \
+ fuseropts.patch)
build() {
cd $name-$version
ac_cv_func_realloc_0_nonnull=yes
EOF
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740275
+ patch -p1 -i $SRC/fuseropts.patch
+
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--disable-nls \
- --mandir=/usr/man \
--cache-file=config.cache
make
--- /dev/null
+diff -ur a/src/fuser.c b/src/fuser.c
+--- a/src/fuser.c 2014-01-31 08:07:32.000000000 -0500
++++ b/src/fuser.c 2014-02-27 12:34:44.352910007 -0500
+@@ -1174,7 +1174,7 @@
+ usage(_("No process specification given"));
+
+ /* Check if -M flag was used and if so check mounts */
+- if (opts * OPT_ISMOUNTPOINT) {
++ if (opts & OPT_ISMOUNTPOINT) {
+ check_mountpoints(&mounts, &names_head, &names_tail);
+ }
+