kpcyrd pushed to branch main at Arch Linux / Packaging / Packages / lsof


Commits:
35506d90 by kpcyrd at 2024-03-13T13:07:32+01:00
upgpkg: 4.99.3-2 - remove embedded kernel version for reproducible builds

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + reproducible-builds.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = lsof
        pkgdesc = Lists open files for running Unix processes
        pkgver = 4.99.3
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/lsof-org/lsof
        arch = x86_64
        license = custom
@@ -9,7 +9,10 @@ pkgbase = lsof
        depends = glibc
        depends = libtirpc
        source = 
https://github.com/lsof-org/lsof/releases/download/4.99.3/lsof-4.99.3.tar.gz
+       source = reproducible-builds.patch
        sha256sums = 
86428a8881b0d1147a52058e853c775b83d794f0da685d549b2bfd07063ed1cd
+       sha256sums = 
fdc62c85a7ace604aec5248d0543e6789c0042bc8be1ae0717561e088c85eb08
        b2sums = 
f2f298d8fe3f03b192984a31bd6b368e08c3ae5b8776625df413b94a0db59258e8aadb8ab4b94b9a3a54803fab463c1b920b524ee0ff512c8cda4b88e89b4c50
+       b2sums = 
f42255d02b1b56692e1b28a282b9490901882a0c4b3991ae39e8fcfc62a4eb8183db370b26e67e700334d1141dcc3e725d9ee8a1981f9108c992c88fd4089732
 
 pkgname = lsof


=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@
 
 pkgname=lsof
 pkgver=4.99.3
-pkgrel=1
+pkgrel=2
 pkgdesc='Lists open files for running Unix processes'
 url='https://github.com/lsof-org/lsof'
 arch=('x86_64')
@@ -20,9 +20,18 @@ depends=(
 makedepends=(
   groff
 )
-source=(https://github.com/lsof-org/lsof/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('86428a8881b0d1147a52058e853c775b83d794f0da685d549b2bfd07063ed1cd')
-b2sums=('f2f298d8fe3f03b192984a31bd6b368e08c3ae5b8776625df413b94a0db59258e8aadb8ab4b94b9a3a54803fab463c1b920b524ee0ff512c8cda4b88e89b4c50')
+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}


=====================================
reproducible-builds.patch
=====================================
@@ -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)))



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lsof/-/commit/35506d90bce7d875cae6046e3add31f90c0171e4

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/lsof/-/commit/35506d90bce7d875cae6046e3add31f90c0171e4
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to