[arch-commits] Commit in ncftp/trunk (PKGBUILD ncftp-reproducible.patch)

Jelle van der Waa jelle at gemini.archlinux.org
Tue Jul 13 12:23:50 UTC 2021


    Date: Tuesday, July 13, 2021 @ 12:23:49
  Author: jelle
Revision: 419674

Make package reproducible by not compiling uname into the binary

Added:
  ncftp/trunk/ncftp-reproducible.patch
Modified:
  ncftp/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   14 +++++++++++---
 ncftp-reproducible.patch |   29 +++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-13 12:08:08 UTC (rev 419673)
+++ PKGBUILD	2021-07-13 12:23:49 UTC (rev 419674)
@@ -5,7 +5,7 @@
 
 pkgname=ncftp
 pkgver=3.2.6
-pkgrel=3
+pkgrel=4
 pkgdesc="A set of free application programs implementing FTP"
 url="https://www.ncftp.com/"
 arch=('x86_64')
@@ -12,9 +12,17 @@
 license=('custom')
 depends=('ncurses')
 makedepends=('inetutils')
-source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.xz")
-md5sums=('42d0f896d69a4d603ec097546444245f')
+source=("ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.xz"
+        ncftp-reproducible.patch)
+md5sums=('42d0f896d69a4d603ec097546444245f'
+         'bf51aa93c785d366e19ccce78820da5a')
 
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # Make ncftp reproducible by not compiling in the kernel version
+  patch -Np1 -i "${srcdir}/ncftp-reproducible.patch"
+}
+
 build() {
   cd "${pkgname}-${pkgver}"
 

Added: ncftp-reproducible.patch
===================================================================
--- ncftp-reproducible.patch	                        (rev 0)
+++ ncftp-reproducible.patch	2021-07-13 12:23:49 UTC (rev 419674)
@@ -0,0 +1,30 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Date: 2016-07-01 16:00:02 UTC
+Bug-Debian: https://bugs.debian.org/829249
+
+	make ncftp build reproducible.
+
+diff --git a/ncftp/main.c b/ncftp/main.c
+index a7fccac..b27a94e 100644
+--- a/ncftp/main.c
++++ b/ncftp/main.c
+@@ -62,7 +62,7 @@ static void
+ Usage(void)
+ {
+ 	FILE *fp;
+-#ifdef UNAME
++#if 0
+ 	char s[80];
+ #endif
+ 
+@@ -76,7 +76,7 @@ Usage(void)
+   -F     Dump a sample $HOME/.ncftp/firewall prefs file to stdout and exit.\n");
+ 
+ 	(void) fprintf(fp, "\nProgram version:  %s\nLibrary version:  %s\n", gVersion + 5, gLibNcFTPVersion + 5);
+-#ifdef UNAME
++#if 0
+ 	AbbrevStr(s, UNAME, 60, 1);
+ 	(void) fprintf(fp, "Build system:     %s\n", s);
+ #endif
+
+




More information about the arch-commits mailing list