Skip to contentSkip to conversation

package/gesftpserver: bump version to latest stable

PATCH New Yann E. MORIN 2 participants 2 messages Mar 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gesftpserver: bump version to latest stable

By default, gesftpserver wants to treat al warnings as errors, but there is an actual warning in the release, so we quiesce that by not treating warnings as errors.

We also backport a patch from upstream, to fix the ordering of some fields when sending file attributes.

---
Result of test-pkg -a (with the reason):

                br-arm-basic [ 4/43]: SKIPPED   (no wchar)
       br-arm-cortex-m4-full [ 7/43]: SKIPPED   (no MMU)
        br-arm-full-nothread [ 9/43]: SKIPPED   (no thread)
           br-m68k-5208-full [13/43]: SKIPPED   (no MMU)
   br-powerpc-603e-basic-cpp [22/43]: SKIPPED   (no wchar)
43 builds, 5 skipped, 0 build failed, 0 legal-info failed
---
 ...r-of-v3-attributes-according-to-draft-iet.patch | 30 ++++++++++++++++++++++
 package/gesftpserver/gesftpserver.hash             |  3 ++-
 package/gesftpserver/gesftpserver.mk               |  6 ++++-
 3 files changed, 37 insertions(+), 2 deletions(-)
 create mode 100644 package/gesftpserver/0001-Change-order-of-v3-attributes-according-to-draft-iet.patch
package/gesftpserver/0001-Change-order-of-v3-attributes-according-to-draft-iet.patch new file +30 -0
new file mode 100644
index 0000000000..3697d0e525
@@ -0,0 +1,30 @@
+From 4b5c7eb63894bd2b1fedeb2a8e9bd16bf3c8c555 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bernd=20Holzm=C3=BCller?=
+ <[email protected]>
+Date: Mon, 11 Feb 2019 23:57:01 +0100
+Subject: [PATCH] Change order of v3-attributes according to
+ draft-ietf-secsh-filexfer-00/02
+
+[yann.morin.1998 at free.fr: backport from upstream]
+Signed-off-by: "Yann E. MORIN" <[email protected]>
+---
+ v3.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/v3.c b/v3.c
+index 57cc31e..1fd86ad 100644
+--- a/v3.c
++++ b/v3.c
+@@ -121,8 +121,8 @@ static void v3_sendattrs(struct sftpjob *job, const struct sftpattr *attrs) {
+       fatal("sending out-of-range mtime");
+     if(a != attrs->atime.seconds)
+       fatal("sending out-of-range mtime");
+-    sftp_send_uint32(job->worker, m);
+     sftp_send_uint32(job->worker, a);
++    sftp_send_uint32(job->worker, m);
+   }
+   /* Note that we just discard unknown bits rather than reporting errors. */
+ }
+-- 
+2.14.1
+
package/gesftpserver/gesftpserver.hash +2 -1
index 1a8a5f3492..790cbe97c2 100644
@@ -1,2 +1,3 @@
 # Locally calculated
-sha256 8ac1938d0f62a05799b2aeab489d6ce098c3fe53280a9b66c0957b1fdcbcbab9  sftpserver-0.2.2.tar.gz
+sha256  4963b85787de3485085a5356c671c58b8b33125f528ff1b2fe8b534ed8a0c1bd  sftpserver-1.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/gesftpserver/gesftpserver.mk +5 -1
index 58c6270a09..ff7ce768ae 100644
@@ -4,11 +4,15 @@
 #
 ################################################################################
 
-GESFTPSERVER_VERSION = 0.2.2
+GESFTPSERVER_VERSION = 1
 GESFTPSERVER_SOURCE = sftpserver-$(GESFTPSERVER_VERSION).tar.gz
 GESFTPSERVER_SITE = http://www.greenend.org.uk/rjk/sftpserver
 GESFTPSERVER_LICENSE = GPL-2.0+
 GESFTPSERVER_LICENSE_FILES = COPYING
+
+# "Missing prototype" warning treated as error
+GESFTPSERVER_CONF_OPTS = --disable-warnings-as-errors
+
 # forgets to link against pthread when cross compiling
 GESFTPSERVER_CONF_ENV = LIBS=-lpthread
 
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 package/gesftpserver: bump version to latest stable

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

By default, gesftpserver wants to treat al warnings as errors, but there is an actual warning in the release, so we quiesce that by not treating warnings as errors.

We also backport a patch from upstream, to fix the ordering of some fields when sending file attributes.

Quoted 8 lines

---
Result of test-pkg -a (with the reason):

                br-arm-basic [ 4/43]: SKIPPED   (no wchar)
       br-arm-cortex-m4-full [ 7/43]: SKIPPED   (no MMU)
        br-arm-full-nothread [ 9/43]: SKIPPED   (no thread)
           br-m68k-5208-full [13/43]: SKIPPED   (no MMU)
   br-powerpc-603e-basic-cpp [22/43]: SKIPPED   (no wchar)

43 builds, 5 skipped, 0 build failed, 0 legal-info failed

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard