Skip to contentSkip to conversation

libserial: bump to version 0.6rc3

PATCH New Fabrice Fontaine 2 participants 2 messages Jun 3, 2018 – Jun 4, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libserial: bump to version 0.6rc3

- Move site to github
- Remove first patch and use --without-python instead
- Remove second patch (patch has been merged in 2015:
https://github.com/crayzeewulf/libserial/commit/47ca0621ccd2100e4ba0d7f4e2a861d14f05f63c)
- Add new patch to disable tests
- Update license to LGPL-2.0+ and add COPYING.LESSER and LICENSE.txt:
https://github.com/crayzeewulf/libserial/commit/6f716c4d79bb31a0c21f3ee9680111c633ac4840
- Add hash for license files

---
 .../libserial/0001-Make-tests-conditional.patch    | 54 ++++++++++++++++++
 .../libserial/0001-disable-python-bindings.patch   | 26 ---------
 ...n-t-use-high-baudrates-when-not-available.patch | 65 ----------------------
 package/libserial/libserial.hash                   |  8 +--
 package/libserial/libserial.mk                     | 13 +++--
 5 files changed, 67 insertions(+), 99 deletions(-)
 create mode 100644 package/libserial/0001-Make-tests-conditional.patch
 delete mode 100644 package/libserial/0001-disable-python-bindings.patch
 delete mode 100644 package/libserial/0002-Don-t-use-high-baudrates-when-not-available.patch
package/libserial/0001-Make-tests-conditional.patch new file +54 -0
new file mode 100644
index 0000000000..35928daf7f
@@ -0,0 +1,54 @@
+From 3d1e73409d26fa22fbd6c124dc38169ebd9fb1b2 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <[email protected]>
+Date: Sun, 3 Jun 2018 11:45:27 +0200
+Subject: [PATCH] Make tests conditional
+
+test uses gtest so allow the user to disable tests to avoid adding a
+unneeded dependency
+
+[Upstream status: https://github.com/crayzeewulf/libserial/pull/105]
+
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ Makefile.am  | 6 +++++-
+ configure.ac | 5 +++++
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index b270aed..ad4ab1d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,9 +1,13 @@
+-SUBDIRS =  src test examples docs
++SUBDIRS =  src examples docs
+ 
+ if PYTHON
+ SUBDIRS += sip
+ endif
+ 
++if TESTS
++SUBDIRS += test
++endif
++
+ ACLOCAL_AMFLAGS = -I m4
+ 
+ EXTRA_DIST = doxygen.conf.in Makefile.dist libserial.spec libserial.pc
+diff --git a/configure.ac b/configure.ac
+index d2df292..47b87fb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -48,6 +48,11 @@ AC_ARG_WITH([python],
+ 	[], [with_python=yes])
+ AM_CONDITIONAL([PYTHON], [test "${with_python}" != "no"])
+ 
++AC_ARG_ENABLE([tests],
++	AS_HELP_STRING([--disable-tests], [Disable tests]),
++	[], [enable_tests=yes])
++AM_CONDITIONAL([TESTS], [test "${enable_tests}" != "no"])
++
+ AC_OUTPUT([Makefile
+ doxygen.conf
+ libserial.spec
+-- 
+2.14.1
+
package/libserial/0001-disable-python-bindings.patch deleted +0 -26
deleted file mode 100644
index 1f2f5ed7df..0000000000
@@ -1,26 +0,0 @@
-Disable build of Python bindings, which requires the sipconfig module.
-
-Signed-off-by: Simon Dawson <[email protected]>
-Signed-off-by: J??rg Krause <[email protected]>
-
-diff -purN libserial-0.6.0rc2.orig/Makefile.am libserial-0.6.0rc2/Makefile.am
---- libserial-0.6.0rc2.orig/Makefile.am	2014-06-05 18:37:25.000000000 +0200
-+++ libserial-0.6.0rc2/Makefile.am	2015-07-30 20:59:28.828429011 +0200
-@@ -1,4 +1,4 @@
--SUBDIRS=src doc examples sip
-+SUBDIRS=src doc examples
- ACLOCAL_AMFLAGS=-I m4
- 
- EXTRA_DIST = doxygen.conf.in Makefile.dist libserial.spec libserial.pc
-diff -purN libserial-0.6.0rc2.orig/Makefile.in libserial-0.6.0rc2/Makefile.in
---- libserial-0.6.0rc2.orig/Makefile.in	2014-06-05 18:40:09.000000000 +0200
-+++ libserial-0.6.0rc2/Makefile.in	2015-07-30 21:00:09.215188376 +0200
-@@ -348,7 +348,7 @@ target_alias = @target_alias@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = src doc examples sip
-+SUBDIRS = src doc examples
- ACLOCAL_AMFLAGS = -I m4
- EXTRA_DIST = doxygen.conf.in Makefile.dist libserial.spec libserial.pc
- pkgconfigdir = $(libdir)/pkgconfig
package/libserial/0002-Don-t-use-high-baudrates-when-not-available.patch deleted +0 -65

65 lines not on this page · raw message

package/libserial/libserial.hash +4 -4
index bca647ae3f..8c39880723 100644
@@ -1,5 +1,5 @@
-# From http://sourceforge.net/projects/libserial/files/libserial/0.6.0rc2/
-sha1  e09113be3ba595135e95e853003ff96feea0da63  libserial-0.6.0rc2.tar.gz
-md5  7787679b22901e4810bc53ecccdf8266  libserial-0.6.0rc2.tar.gz
 # Locally calculated
-sha256 35ee29eb1369d52ffb8658237577692f991eb508320d0abbb71c53e6494a1c23 libserial-0.6.0rc2.tar.gz
+sha256 e5b220a87d6dc588edfcf86485a07559fef3a4b8c87e49921557605614f75042 libserial-v0.6.0rc3.tar.gz
+sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
+sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 COPYING.LESSER
+sha256 afc92516ca79f4d7b78b4d1863ea76cdc05c8c7e2ddba7acb52bacc925ec650e LICENSE.txt
package/libserial/libserial.mk +9 -4
index b73d4c76cd..e58f59b138 100644
@@ -4,13 +4,18 @@
 #
 ################################################################################
 
-LIBSERIAL_VERSION = 0.6.0rc2
-LIBSERIAL_SITE = http://downloads.sourceforge.net/libserial
+LIBSERIAL_VERSION = v0.6.0rc3
+LIBSERIAL_SITE = $(call github,crayzeewulf,libserial,$(LIBSERIAL_VERSION))
 LIBSERIAL_INSTALL_STAGING = YES
-LIBSERIAL_LICENSE = GPL-2.0+
-LIBSERIAL_LICENSE_FILES = COPYING
+LIBSERIAL_LICENSE = LGPL-2.0+
+LIBSERIAL_LICENSE_FILES = COPYING COPYING.LESSER LICENSE.txt
 LIBSERIAL_DEPENDENCIES = boost
+# From git and we're patching configure.ac
+LIBSERIAL_AUTORECONF = YES
 
 LIBSERIAL_CONF_ENV = ac_cv_prog_DOCBOOK2PDF=no
+LIBSERIAL_CONF_OPTS = \
+	--disable-tests \
+	--without-python
 
 $(eval $(autotools-package))
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 libserial: bump to version 0.6rc3

Hello,

Quoted 7 lines · Fabrice Fontaine

- Move site to github
- Remove first patch and use --without-python instead
- Remove second patch (patch has been merged in 2015:
https://github.com/crayzeewulf/libserial/commit/47ca0621ccd2100e4ba0d7f4e2a861d14f05f63c)
- Add new patch to disable tests
- Update license to LGPL-2.0+ and add COPYING.LESSER and LICENSE.txt:
https://github.com/crayzeewulf/libserial/commit/6f716c4d79bb31a0c21f3ee9680111c633ac4840

There's an issue with this: the COPYING.LESSER license text contains the text of LGPL-3.0, not LGPL-2.0, which is a bit weird.

Could you check with upstream if they could fix this ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com