gnu: ncftp: Build reproducibly.
* gnu/packages/patches/ncftp-reproducible.patch: New file. * gnu/local.mk (dist_patch_DATA): Add patch. * gnu/packages/ftp.scm (ncftp): Add patch.
parent
41cf573f0a
commit
ce6d8ca443
|
@ -1519,6 +1519,7 @@ dist_patch_DATA = \
|
||||||
%D%/packages/patches/m4-gnulib-libio.patch \
|
%D%/packages/patches/m4-gnulib-libio.patch \
|
||||||
%D%/packages/patches/nautilus-add-libportal-gtk3.patch \
|
%D%/packages/patches/nautilus-add-libportal-gtk3.patch \
|
||||||
%D%/packages/patches/ncompress-fix-softlinks.patch \
|
%D%/packages/patches/ncompress-fix-softlinks.patch \
|
||||||
|
%D%/packages/patches/ncftp-reproducible.patch \
|
||||||
%D%/packages/patches/netcdf-date-time.patch \
|
%D%/packages/patches/netcdf-date-time.patch \
|
||||||
%D%/packages/patches/netpbm-CVE-2017-2586.patch \
|
%D%/packages/patches/netpbm-CVE-2017-2586.patch \
|
||||||
%D%/packages/patches/netpbm-CVE-2017-2587.patch \
|
%D%/packages/patches/netpbm-CVE-2017-2587.patch \
|
||||||
|
|
|
@ -103,6 +103,9 @@ reliability in mind.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z"))
|
"1389657cwgw5a3kljnqmhvfh4vr2gcr71dwz1mlhf22xq23hc82z"))
|
||||||
|
(patches
|
||||||
|
(search-patches
|
||||||
|
"ncftp-reproducible.patch"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
Author: Reiner Herrmann <reiner@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
|
||||||
|
|
Reference in New Issue