Skip to contentSkip to conversation

package/sredird: bump version to 2.2.2, add hash

PATCH New Bernd Kuhls 2 participants 4 messages Jan 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/sredird: bump version to 2.2.2, add hash

While Debian still uses version 2.2.1 the bump to 2.2.2 was committed to
FreeBSD ports back in 2005:
https://www.freshports.org/commit.php?category=comms&port=sredird&files=yes&message_id=200512291935.jBTJZfff072190 at repoman.freebsd.org

FreeBSD ports lists the new upstream URL as no. 12:
https://www.freshports.org/comms/sredird/
and http://freecode.com/projects/sredird also links to it.

---
 package/sredird/Config.in    | 2 ++
 package/sredird/sredird.hash | 2 ++
 package/sredird/sredird.mk   | 5 ++---
 3 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 package/sredird/sredird.hash
package/sredird/Config.in +2 -0
index 463269a..d8c5ef9 100644
@@ -4,3 +4,5 @@ config BR2_PACKAGE_SREDIRD
 	  Sredird is a serial port redirector that is compliant with
 	  the RFC 2217 "Telnet Com Port Control Option" protocol. This
 	  protocol lets you share a serial port through the network.
+
+	  http://freecode.com/projects/sredird
package/sredird/sredird.hash new file +2 -0
new file mode 100644
index 0000000..63a419f
@@ -0,0 +1,2 @@
+# Locally computed
+sha256	640c47dcd84b3b90640165a38eb336a675fdab06c14c09cae2f4a604cae560d3	sredird-2.2.2.tar.gz
package/sredird/sredird.mk +2 -3
index ebd7122..b564f1a 100644
@@ -4,9 +4,8 @@
 #
 ################################################################################
 
-SREDIRD_VERSION = 2.2.1-1.1
-SREDIRD_SOURCE = sredird_$(SREDIRD_VERSION).tar.gz
-SREDIRD_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/s/sredird
+SREDIRD_VERSION = 2.2.2
+SREDIRD_SITE = http://www.ibiblio.org/pub/Linux/system/serial
 SREDIRD_LICENSE = GPLv2+
 SREDIRD_LICENSE_FILES = COPYING
 
Signature · 1 line
2.7.0
#1 lore raw

PATCH 2/2 package/sredird: fix musl build

Fixes
http://autobuild.buildroot.net/results/4bc/4bc77733d235ba12f70432be4ead921666f5121d/

---
 package/sredird/0001-termio.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/sredird/0001-termio.patch
package/sredird/0001-termio.patch new file +20 -0
new file mode 100644
index 0000000..7c7c67f
@@ -0,0 +1,20 @@
+Fix musl build
+
+Patch was inspired by
+http://svnweb.freebsd.org/ports/head/comms/sredird/files/patch-sredird.c?revision=363168&view=markup
+http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/sysutils/sredird/patches/patch-aa
+https://github.com/bitrig/bitrig-ports/blob/master/comms/sredird/patches/patch-sredird_c
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+diff -uNr sredird-2.2.2.org/sredird.c sredird-2.2.2/sredird.c
+--- sredird-2.2.2.org/sredird.c	2005-08-12 16:10:46.000000000 +0200
++++ sredird-2.2.2/sredird.c	2016-01-31 18:53:08.000000000 +0100
+@@ -110,7 +110,6 @@
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <termios.h>
+-#include <termio.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <netinet/ip.h>
Signature · 1 line
2.7.0
#2 lore raw

PATCH 2/2 package/sredird: fix musl build

Bernd,

package/sredird/0001-termio.patch line 2

Quoted 8 lines · Bernd Kuhls
package/sredird/0001-termio.patch new file +2 -0
new file mode 100644
index 0000000..7c7c67f
@@ -0,0 +1,20 @@
+Fix musl build
+

I've applied, but I still believe that this is a very poor patch description. Rather than saying it fixes musl, it should explain what the build failure is, how it is fixed, and that consequently it fixes musl.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 package/sredird: bump version to 2.2.2, add hash

In reply to Bernd Kuhls

Dear Bernd Kuhls,

Quoted 8 lines · Bernd Kuhls

While Debian still uses version 2.2.1 the bump to 2.2.2 was committed to
FreeBSD ports back in 2005:
https://www.freshports.org/commit.php?category=comms&port=sredird&files=yes&message_id=200512291935.jBTJZfff072190 at repoman.freebsd.org

FreeBSD ports lists the new upstream URL as no. 12:
https://www.freshports.org/comms/sredird/
and http://freecode.com/projects/sredird also links to it.

Quoted 7 lines
---
 package/sredird/Config.in    | 2 ++
 package/sredird/sredird.hash | 2 ++
 package/sredird/sredird.mk   | 5 ++---
 3 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 package/sredird/sredird.hash

Both applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com