* update lsof to 4.99.3-2

This commit is contained in:
Alexander Baldeck 2024-04-09 19:29:12 +02:00
parent 7f00f712b4
commit 9775fadfd7
2 changed files with 25 additions and 4 deletions

View File

@ -8,8 +8,8 @@
# Contributor: Hendrik Meyer <archlinux@t4cc0.re>
pkgname=lsof
pkgver=4.99.0
pkgrel=1
pkgver=4.99.3
pkgrel=2
pkgdesc='Lists open files for running Unix processes'
url='https://github.com/lsof-org/lsof'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -21,8 +21,18 @@ depends=(
makedepends=(
groff
)
source=(https://github.com/lsof-org/lsof/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('6fe3039f1167fb3023a7f358dda2b4ea6eace1e50a97d0168af494217581eef73cc1742f544d2fb9f85ded8370c86e63d48104da899396de7b3007997a201825')
source=(https://github.com/lsof-org/lsof/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz
reproducible-builds.patch)
sha256sums=('86428a8881b0d1147a52058e853c775b83d794f0da685d549b2bfd07063ed1cd'
'fdc62c85a7ace604aec5248d0543e6789c0042bc8be1ae0717561e088c85eb08')
b2sums=('f2f298d8fe3f03b192984a31bd6b368e08c3ae5b8776625df413b94a0db59258e8aadb8ab4b94b9a3a54803fab463c1b920b524ee0ff512c8cda4b88e89b4c50'
'f42255d02b1b56692e1b28a282b9490901882a0c4b3991ae39e8fcfc62a4eb8183db370b26e67e700334d1141dcc3e725d9ee8a1981f9108c992c88fd4089732')
prepare() {
cd ${pkgname}-${pkgver}
# https://github.com/lsof-org/lsof/issues/310
patch -Np1 -i ../reproducible-builds.patch
}
build() {
cd ${pkgname}-${pkgver}

View File

@ -0,0 +1,11 @@
--- a/src/usage.c
+++ b/src/usage.c
@@ -903,8 +903,6 @@ void usage(struct lsof_context *ctx, /* context */
(void)fprintf(stderr, " compiler: %s\n", cp);
if ((cp = isnullstr(LSOF_CCV)))
(void)fprintf(stderr, " compiler version: %s\n", cp);
- if ((cp = isnullstr(LSOF_CCFLAGS)))
- (void)fprintf(stderr, " compiler flags: %s\n", cp);
if ((cp = isnullstr(LSOF_LDFLAGS)))
(void)fprintf(stderr, " loader flags: %s\n", cp);
if ((cp = isnullstr(LSOF_SYSINFO)))