psmisc: Update to 23.2 (#1445)

This commit is contained in:
Peter Budai
2018-10-09 07:44:25 +03:00
committed by Алексей
parent 933add875f
commit bb78fec59c
2 changed files with 10 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=psmisc
pkgver=22.21
pkgrel=2
pkgver=23.2
pkgrel=1
pkgdesc="Miscellaneous procfs tools"
arch=('i686' 'x86_64')
url="https://psmisc.sourceforge.io/"
@@ -10,28 +10,27 @@ license=('GPL')
groups=('sys-utils')
depends=('msys2-runtime' 'gcc-libs' 'ncurses' 'libiconv' 'libintl')
makedepends=('gcc' 'ncurses-devel' 'libiconv-devel' 'gettext-devel')
source=(https://downloads.sourceforge.net/psmisc/${pkgname}-${pkgver}.tar.gz
'psmisc-fuser.patch')
sha256sums=('97323cad619210845b696d7d722c383852b2acb5c49b5b0852c4f29c77a8145a'
'dc3966a1fb41863602d687a9e13fdd01708ad4c6fc905711380b7265b571d992')
source=(${pkgname}-${pkgver}.tar.gz::https://gitlab.com/psmisc/psmisc/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)
sha256sums=('03533fc0c19c16073d2ebbcbb2ad4e1d870467aa1b91663f57c4a1437ff78e9f')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/psmisc-fuser.patch
autoreconf -fi
cd ${pkgname}-v${pkgver}
echo ${pkgver} > .tarball-version
./autogen.sh
}
build() {
cd ${pkgname}-${pkgver}
cd ${pkgname}-v${pkgver}
./configure \
--prefix=/usr \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-harden-flags \
CPPFLAGS="${CPPFLAGS} -I/usr/include/ncursesw"
make
}
package() {
cd ${pkgname}-${pkgver}
cd ${pkgname}-v${pkgver}
make DESTDIR=${pkgdir} install
}

View File

@@ -1,11 +0,0 @@
--- a/src/fuser.c
+++ b/src/fuser.c
@@ -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);
}