From 81c12defcf36bb9696339dc9a596aba6f0f0c11d Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 25 Feb 2020 15:00:11 -0700 Subject: [PATCH] mingw patch appears to be applied in new upstream version --- ...0001-gzip-port-better-to-mingw-again.patch | 28 ------------- .../0001-gzip-port-better-to-mingw.patch | 41 ------------------- debian/patches/series | 2 - 3 files changed, 71 deletions(-) delete mode 100644 debian/patches/0001-gzip-port-better-to-mingw-again.patch delete mode 100644 debian/patches/0001-gzip-port-better-to-mingw.patch diff --git a/debian/patches/0001-gzip-port-better-to-mingw-again.patch b/debian/patches/0001-gzip-port-better-to-mingw-again.patch deleted file mode 100644 index b0526ed..0000000 --- a/debian/patches/0001-gzip-port-better-to-mingw-again.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 1252d056feaf71e7488cbaa5a78b3d45cd77f877 Mon Sep 17 00:00:00 2001 -From: Paul Eggert -Date: Sat, 4 Aug 2018 00:37:43 -0700 -Subject: [PATCH] gzip: port better to mingw again - -Problem reported by Bdale Garbee (Bug#32305#8). -* gzip.c (do_chown): Use HAVE_FCHOWN || HAVE_CHOWN, -which is configured, instead of DO_CHOWN, which is not. ---- - gzip.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gzip.c b/gzip.c -index 02d5364..b26dd14 100644 ---- a/gzip.c -+++ b/gzip.c -@@ -1923,7 +1923,7 @@ local int check_ofname() - the file and NAME its name. Change it to user UID and to group GID. - If UID or GID is -1, though, do not change the corresponding user - or group. */ --#ifdef NO_CHOWN -+#if ! (HAVE_FCHOWN || HAVE_CHOWN) - /* The types uid_t and gid_t do not exist on mingw, so don't assume them. */ - # define do_chown(fd, name, uid, gid) ((void) 0) - #else --- -2.18.0 - diff --git a/debian/patches/0001-gzip-port-better-to-mingw.patch b/debian/patches/0001-gzip-port-better-to-mingw.patch deleted file mode 100644 index e9e0c36..0000000 --- a/debian/patches/0001-gzip-port-better-to-mingw.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 222dc8c90f31f7027d0aa7a18206f5c56006f780 Mon Sep 17 00:00:00 2001 -From: Paul Eggert -Date: Sun, 29 Jul 2018 11:27:32 -0700 -Subject: [PATCH] gzip: port better to mingw - -Problem reported by Bdale Garbee for Debian -* gzip.c (do_chown): Don't assume uid_t and gid_t. ---- - gzip.c | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/gzip.c b/gzip.c -index 429e554..a023d81 100644 ---- a/gzip.c -+++ b/gzip.c -@@ -1914,17 +1914,20 @@ local int check_ofname() - the file and NAME its name. Change it to user UID and to group GID. - If UID or GID is -1, though, do not change the corresponding user - or group. */ -+#ifdef NO_CHOWN -+/* The types uid_t and gid_t do not exist on mingw, so don't assume them. */ -+# define do_chown(fd, name, uid, gid) ((void) 0) -+#else - static void - do_chown (int fd, char const *name, uid_t uid, gid_t gid) - { --#ifndef NO_CHOWN - # if HAVE_FCHOWN - ignore_value (fchown (fd, uid, gid)); - # else - ignore_value (chown (name, uid, gid)); - # endif --#endif - } -+#endif - - /* ======================================================================== - * Copy modes, times, ownership from input file to output file. --- -2.18.0 - diff --git a/debian/patches/series b/debian/patches/series index 1df7993..b0439a1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,8 +1,6 @@ sigpipe.diff gzip_reproducible_build.diff zgrep-syntax-error.diff -0001-gzip-port-better-to-mingw.patch -0001-gzip-port-better-to-mingw-again.patch gnulib-4af4a4a71827c0bc5.patch disable-broken-Wabi.patch disable-Werror.patch -- 2.30.2