Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/linknx: add license file
@ 2019-04-20 20:42 Fabrice Fontaine
  2019-04-20 20:42 ` [Buildroot] [PATCH 2/3] package/linknx: bump to version 0.0.1.37 Fabrice Fontaine
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-04-20 20:42 UTC (permalink / raw)
  To: buildroot

LICENSE has been added in version 0.0.1.32 with
https://github.com/linknx/linknx/commit/74671aa27931be40662c0266441c7470dc11d595

So add it to LINKNX_LICENSE_FILES as well as its hash

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/linknx/linknx.hash | 1 +
 package/linknx/linknx.mk   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/package/linknx/linknx.hash b/package/linknx/linknx.hash
index 40e26766e2..312e43bfd3 100644
--- a/package/linknx/linknx.hash
+++ b/package/linknx/linknx.hash
@@ -1,2 +1,3 @@
 # Locally computed:
 sha256 635b8fbd3477fd7d85a95955b93f327cd5a389db80dc18cdae04de19a3a8a972  linknx-0.0.1.33.tar.gz
+sha256 c03cea027b4b40e4402fabd08557736727ec3d5bc54ad64ab6472de432198cad  LICENSE
diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
index dfabef550e..5801eb5f87 100644
--- a/package/linknx/linknx.mk
+++ b/package/linknx/linknx.mk
@@ -7,6 +7,7 @@
 LINKNX_VERSION = 0.0.1.33
 LINKNX_SITE = $(call github,linknx,linknx,$(LINKNX_VERSION))
 LINKNX_LICENSE = GPL-2.0+
+LINKNX_LICENSE_FILES = LICENSE
 LINKNX_INSTALL_STAGING = YES
 LINKNX_CONF_OPTS = \
 	--without-log4cpp \
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/3] package/linknx: bump to version 0.0.1.37
  2019-04-20 20:42 [Buildroot] [PATCH 1/3] package/linknx: add license file Fabrice Fontaine
@ 2019-04-20 20:42 ` Fabrice Fontaine
  2019-04-20 20:42 ` [Buildroot] [PATCH 3/3] package/linknx: add optional log4cpp dependency Fabrice Fontaine
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-04-20 20:42 UTC (permalink / raw)
  To: buildroot

- Remove patch, not needed since:
  https://github.com/linknx/linknx/commit/6166831eff645f21a7fd22ec3f7855f36005b8d9
- Needs iconv.h since version 0.0.1.34 and
  https://github.com/linknx/linknx/commit/2cc3a93dcf2703b3b418e0a99975f556354fb1b1
- Add a patch to fix link with libiconv
- Disable cppunit (autodetect by default), added with:
  https://github.com/linknx/linknx/commit/ee2efcde549dda82fdabde4af6d08871689cbb61

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0001-Link-with-libiconv-if-needed.patch   | 30 +++++++++++++
 ...c-suncalc.cpp-fix-build-with-gcc-6.x.patch | 42 -------------------
 package/linknx/Config.in                      |  1 +
 package/linknx/linknx.hash                    |  2 +-
 package/linknx/linknx.mk                      |  8 +++-
 5 files changed, 38 insertions(+), 45 deletions(-)
 create mode 100644 package/linknx/0001-Link-with-libiconv-if-needed.patch
 delete mode 100644 package/linknx/0001-src-suncalc.cpp-fix-build-with-gcc-6.x.patch

diff --git a/package/linknx/0001-Link-with-libiconv-if-needed.patch b/package/linknx/0001-Link-with-libiconv-if-needed.patch
new file mode 100644
index 0000000000..81b1fb7927
--- /dev/null
+++ b/package/linknx/0001-Link-with-libiconv-if-needed.patch
@@ -0,0 +1,30 @@
+From 87373f6c2b48619bb11e566e5eb16ea49d47beb7 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 19 Apr 2019 17:07:10 +0200
+Subject: [PATCH] Link with libiconv if needed
+
+Commit 2cc3a93dcf2703b3b418e0a99975f556354fb1b1 added an include to
+iconv which can be provided by libiconv so search and link for it if
+needed
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/linknx/linknx/pull/41]
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 22f242c..779fd6f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -15,6 +15,7 @@ AC_CHECK_HEADER(argp.h,,[AC_MSG_ERROR([argp_parse not found])])
+ AC_SEARCH_LIBS(argp_parse,argp,,[AC_MSG_ERROR([argp_parse not found])])
+ 
+ # Checks for libraries.
++AC_SEARCH_LIBS(libiconv_open,iconv)
+ LIBCURL_CHECK_CONFIG([yes], [7.14.0])
+ 
+ # Checks for header files.
+-- 
+2.20.1
+
diff --git a/package/linknx/0001-src-suncalc.cpp-fix-build-with-gcc-6.x.patch b/package/linknx/0001-src-suncalc.cpp-fix-build-with-gcc-6.x.patch
deleted file mode 100644
index d204a02269..0000000000
--- a/package/linknx/0001-src-suncalc.cpp-fix-build-with-gcc-6.x.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From ff52cf04c6fa8b3352544447abf429bfa6000dc8 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-Date: Sat, 20 Aug 2016 12:13:04 +0200
-Subject: [PATCH] src/suncalc.cpp: fix build with gcc 6.x
-
-src/suncalc.cpp currently includes <math.h>, but this causes a build
-failure with gcc 6.x, and <cmath> should be used instead. The build
-failure is:
-
-/home/test/autobuild/run/instance-0/output/host/usr/arc-buildroot-linux-uclibc/include/c++/6.1.1/cmath:101:37: error: '__is_integer' was not declared in this scope
-     typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
-                                     ^~~~~~~~~~~~
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- src/suncalc.cpp | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/suncalc.cpp b/src/suncalc.cpp
-index ea2366a..b553f96 100644
---- a/src/suncalc.cpp
-+++ b/src/suncalc.cpp
-@@ -22,6 +22,8 @@
-     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
- 
-+#include <cmath>
-+
- #include "suncalc.h"
- #include "services.h"
- 
-@@ -44,7 +46,6 @@ Released to the public domain by Paul Schlyter, December 1992
- 
- 
- #include <stdio.h>
--#include <math.h>
- #include <time.h>
- #include <stdlib.h>
- #include <getopt.h>
--- 
-2.7.4
-
diff --git a/package/linknx/Config.in b/package/linknx/Config.in
index 97fdaff9ce..3b62ce2f95 100644
--- a/package/linknx/Config.in
+++ b/package/linknx/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LINKNX
 	select BR2_PACKAGE_LIBPTHSEM
 	select BR2_PACKAGE_ARGP_STANDALONE \
 	       if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	help
 	  Linknx is an automation platform providing high level
 	  functionalities to EIB/KNX installation.
diff --git a/package/linknx/linknx.hash b/package/linknx/linknx.hash
index 312e43bfd3..79113e6e70 100644
--- a/package/linknx/linknx.hash
+++ b/package/linknx/linknx.hash
@@ -1,3 +1,3 @@
 # Locally computed:
-sha256 635b8fbd3477fd7d85a95955b93f327cd5a389db80dc18cdae04de19a3a8a972  linknx-0.0.1.33.tar.gz
+sha256 3c3aaf8c409538153b15f5fb975a4485e58c4820cfea289a3f20777ba69782ab  linknx-0.0.1.37.tar.gz
 sha256 c03cea027b4b40e4402fabd08557736727ec3d5bc54ad64ab6472de432198cad  LICENSE
diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
index 5801eb5f87..e593feda36 100644
--- a/package/linknx/linknx.mk
+++ b/package/linknx/linknx.mk
@@ -4,19 +4,23 @@
 #
 ################################################################################
 
-LINKNX_VERSION = 0.0.1.33
+LINKNX_VERSION = 0.0.1.37
 LINKNX_SITE = $(call github,linknx,linknx,$(LINKNX_VERSION))
 LINKNX_LICENSE = GPL-2.0+
 LINKNX_LICENSE_FILES = LICENSE
 LINKNX_INSTALL_STAGING = YES
+# We're patching configure.ac
+LINKNX_AUTORECONF = YES
 LINKNX_CONF_OPTS = \
+	--without-cppunit \
 	--without-log4cpp \
 	--without-pth-test \
 	--with-pth=$(STAGING_DIR)/usr \
 	--disable-smtp
 
 LINKNX_DEPENDENCIES = libpthsem \
-	$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone)
+	$(if $(BR2_PACKAGE_ARGP_STANDALONE),argp-standalone) \
+	$(if $(BR2_PACKAGE_LIBICONV),libiconv)
 
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 LINKNX_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 3/3] package/linknx: add optional log4cpp dependency
  2019-04-20 20:42 [Buildroot] [PATCH 1/3] package/linknx: add license file Fabrice Fontaine
  2019-04-20 20:42 ` [Buildroot] [PATCH 2/3] package/linknx: bump to version 0.0.1.37 Fabrice Fontaine
@ 2019-04-20 20:42 ` Fabrice Fontaine
  2019-04-21 10:16 ` [Buildroot] [PATCH 1/3] package/linknx: add license file Thomas Petazzoni
  2019-04-26 12:39 ` Peter Korsgaard
  3 siblings, 0 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-04-20 20:42 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/linknx/linknx.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
index e593feda36..15d4b5a109 100644
--- a/package/linknx/linknx.mk
+++ b/package/linknx/linknx.mk
@@ -13,7 +13,6 @@ LINKNX_INSTALL_STAGING = YES
 LINKNX_AUTORECONF = YES
 LINKNX_CONF_OPTS = \
 	--without-cppunit \
-	--without-log4cpp \
 	--without-pth-test \
 	--with-pth=$(STAGING_DIR)/usr \
 	--disable-smtp
@@ -29,6 +28,13 @@ else
 LINKNX_CONF_OPTS += --without-libcurl
 endif
 
+ifeq ($(BR2_PACKAGE_LOG4CPP),y)
+LINKNX_CONF_OPTS += --with-log4cpp
+LINKNX_DEPENDENCIES += host-pkgconf log4cpp
+else
+LINKNX_CONF_OPTS += --without-log4cpp
+endif
+
 ifeq ($(BR2_PACKAGE_LUA),y)
 LINKNX_CONF_OPTS += --with-lua
 LINKNX_DEPENDENCIES += lua
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/3] package/linknx: add license file
  2019-04-20 20:42 [Buildroot] [PATCH 1/3] package/linknx: add license file Fabrice Fontaine
  2019-04-20 20:42 ` [Buildroot] [PATCH 2/3] package/linknx: bump to version 0.0.1.37 Fabrice Fontaine
  2019-04-20 20:42 ` [Buildroot] [PATCH 3/3] package/linknx: add optional log4cpp dependency Fabrice Fontaine
@ 2019-04-21 10:16 ` Thomas Petazzoni
  2019-04-26 12:39 ` Peter Korsgaard
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2019-04-21 10:16 UTC (permalink / raw)
  To: buildroot

On Sat, 20 Apr 2019 22:42:50 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> LICENSE has been added in version 0.0.1.32 with
> https://github.com/linknx/linknx/commit/74671aa27931be40662c0266441c7470dc11d595
> 
> So add it to LINKNX_LICENSE_FILES as well as its hash
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/linknx/linknx.hash | 1 +
>  package/linknx/linknx.mk   | 1 +
>  2 files changed, 2 insertions(+)

Series applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/3] package/linknx: add license file
  2019-04-20 20:42 [Buildroot] [PATCH 1/3] package/linknx: add license file Fabrice Fontaine
                   ` (2 preceding siblings ...)
  2019-04-21 10:16 ` [Buildroot] [PATCH 1/3] package/linknx: add license file Thomas Petazzoni
@ 2019-04-26 12:39 ` Peter Korsgaard
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-04-26 12:39 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > LICENSE has been added in version 0.0.1.32 with
 > https://github.com/linknx/linknx/commit/74671aa27931be40662c0266441c7470dc11d595

 > So add it to LINKNX_LICENSE_FILES as well as its hash

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2019.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-26 12:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-20 20:42 [Buildroot] [PATCH 1/3] package/linknx: add license file Fabrice Fontaine
2019-04-20 20:42 ` [Buildroot] [PATCH 2/3] package/linknx: bump to version 0.0.1.37 Fabrice Fontaine
2019-04-20 20:42 ` [Buildroot] [PATCH 3/3] package/linknx: add optional log4cpp dependency Fabrice Fontaine
2019-04-21 10:16 ` [Buildroot] [PATCH 1/3] package/linknx: add license file Thomas Petazzoni
2019-04-26 12:39 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox