All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/gensio: new package
@ 2020-01-21  1:40 James Hilliard
  2020-01-21  1:40 ` [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1 James Hilliard
  2020-01-24 22:34 ` [Buildroot] [PATCH 1/2] package/gensio: new package Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2020-01-21  1:40 UTC (permalink / raw)
  To: buildroot

A library to abstract stream I/O like serial port, TCP, telnet, UDP,
SSL, IPMI SOL, etc.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/gensio/Config.in   |  8 ++++++++
 package/gensio/gensio.hash |  6 ++++++
 package/gensio/gensio.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 41 insertions(+)
 create mode 100644 package/gensio/Config.in
 create mode 100644 package/gensio/gensio.hash
 create mode 100644 package/gensio/gensio.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index a1eb052652..07fd0e0055 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1132,6 +1132,7 @@ F:	configs/pine64_defconfig
 F:	configs/pine64_sopine_defconfig
 
 N:	James Hilliard <james.hilliard1@gmail.com>
+F:	package/gensio/
 F:	package/lua-std-debug/
 F:	package/lua-std-normalize/
 F:	package/pipewire/
diff --git a/package/Config.in b/package/Config.in
index 4c94914680..e932d46ef8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1992,6 +1992,7 @@ menu "Networking applications"
 	source "package/fping/Config.in"
 	source "package/freeswitch/Config.in"
 	source "package/freeswitch-mod-bcg729/Config.in"
+	source "package/gensio/Config.in"
 	source "package/gerbera/Config.in"
 	source "package/gesftpserver/Config.in"
 	source "package/glorytun/Config.in"
diff --git a/package/gensio/Config.in b/package/gensio/Config.in
new file mode 100644
index 0000000000..b3931033d2
--- /dev/null
+++ b/package/gensio/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GENSIO
+	bool "gensio"
+	depends on BR2_USE_MMU # fork()
+	help
+	  A library to abstract stream I/O like serial port, TCP, telnet, UDP,
+	  SSL, IPMI SOL, etc.
+
+	  https://github.com/cminyard/gensio
diff --git a/package/gensio/gensio.hash b/package/gensio/gensio.hash
new file mode 100644
index 0000000000..a4de99627c
--- /dev/null
+++ b/package/gensio/gensio.hash
@@ -0,0 +1,6 @@
+# From https://sourceforge.net/projects/ser2net/files/ser2net/
+md5 34e1d41fff06fe7d3b98887fff6c2e90  gensio-1.3.3.tar.gz
+sha1 50f3901378cab229594cfab4dafe4b6846957524  gensio-1.3.3.tar.gz
+# Locally computed:
+sha256 26f94b4fb8d689fc381c5fa7aa04db84b97785016c00e2bad8803d1bc668aa9b  gensio-1.3.3.tar.gz
+sha256 501f3108e6c03e5a0a5585ebaaa369171aead5319cd0a7a4dc1f66211c1f09f1  COPYING
diff --git a/package/gensio/gensio.mk b/package/gensio/gensio.mk
new file mode 100644
index 0000000000..5c8e893d42
--- /dev/null
+++ b/package/gensio/gensio.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# gensio
+#
+################################################################################
+
+GENSIO_VERSION = 1.3.3
+GENSIO_SOURCE = gensio-$(GENSIO_VERSION).tar.gz
+GENSIO_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
+GENSIO_LICENSE = GPL-2.0+
+GENSIO_LICENSE_FILES = COPYING
+GENSIO_INSTALL_STAGING = YES
+
+GENSIO_CONF_OPTS += \
+	--without-openipmi \
+	--without-swig \
+	--without-python
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+GENSIO_CONF_OPTS += --with-pthreads
+else
+GENSIO_CONF_OPTS += --without-pthreads
+endif
+
+$(eval $(autotools-package))
-- 
2.20.1

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

* [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1
  2020-01-21  1:40 [Buildroot] [PATCH 1/2] package/gensio: new package James Hilliard
@ 2020-01-21  1:40 ` James Hilliard
  2020-01-27 17:04   ` Peter Korsgaard
  2020-01-24 22:34 ` [Buildroot] [PATCH 1/2] package/gensio: new package Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: James Hilliard @ 2020-01-21  1:40 UTC (permalink / raw)
  To: buildroot

Added new ser2net dependencies gensio and libyaml.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/ser2net/Config.in    | 2 ++
 package/ser2net/ser2net.hash | 6 +++---
 package/ser2net/ser2net.mk   | 3 ++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/package/ser2net/Config.in b/package/ser2net/Config.in
index cb4d69f741..3d110b70f2 100644
--- a/package/ser2net/Config.in
+++ b/package/ser2net/Config.in
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_SER2NET
 	bool "ser2net"
 	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_GENSIO
+	select BR2_PACKAGE_LIBYAML
 	help
 	  Ser2net provides a way for a user to connect from a network
 	  connection to a serial port.
diff --git a/package/ser2net/ser2net.hash b/package/ser2net/ser2net.hash
index c736c726ac..5bd927d7d1 100644
--- a/package/ser2net/ser2net.hash
+++ b/package/ser2net/ser2net.hash
@@ -1,6 +1,6 @@
 # From https://sourceforge.net/projects/ser2net/files/ser2net/
-md5 e10e7c8c97e5bade5e85ce6e89bdf1f4  ser2net-3.5.tar.gz
-sha1 0ad0affd37ef544c23f42a3f46d09e969d0d9116  ser2net-3.5.tar.gz
+md5 44a69f573677d9f2bde87b3611db5817  ser2net-4.1.1.tar.gz
+sha1 502e11c3bee429de6550db459d83c9a0991cfc5c  ser2net-4.1.1.tar.gz
 # Locally computed:
-sha256 ba9e1d60a89fd7ed075553b4a2074352902203f7fbd9b65b15048c05f0e3f3be  ser2net-3.5.tar.gz
+sha256 ad6c8fb34d01be177570323899d840a44c8774399d594595393708162fc61e22  ser2net-4.1.1.tar.gz
 sha256 501f3108e6c03e5a0a5585ebaaa369171aead5319cd0a7a4dc1f66211c1f09f1  COPYING
diff --git a/package/ser2net/ser2net.mk b/package/ser2net/ser2net.mk
index 5ab5c4d2ae..2ea68ccc43 100644
--- a/package/ser2net/ser2net.mk
+++ b/package/ser2net/ser2net.mk
@@ -4,10 +4,11 @@
 #
 ################################################################################
 
-SER2NET_VERSION = 3.5
+SER2NET_VERSION = 4.1.1
 SER2NET_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
 SER2NET_LICENSE = GPL-2.0+
 SER2NET_LICENSE_FILES = COPYING
+SER2NET_DEPENDENCIES = gensio libyaml
 
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
 SER2NET_CONF_OPTS += --with-pthreads
-- 
2.20.1

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

* [Buildroot] [PATCH 1/2] package/gensio: new package
  2020-01-21  1:40 [Buildroot] [PATCH 1/2] package/gensio: new package James Hilliard
  2020-01-21  1:40 ` [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1 James Hilliard
@ 2020-01-24 22:34 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-01-24 22:34 UTC (permalink / raw)
  To: buildroot

>>>>> "James" == James Hilliard <james.hilliard1@gmail.com> writes:

 > A library to abstract stream I/O like serial port, TCP, telnet, UDP,
 > SSL, IPMI SOL, etc.

 > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

Please run check-package before submitting:

package/gensio/Config.in:5: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/gensio/gensio.mk:8: remove default value of _SOURCE variable (http://nightly.buildroot.org/#generic-package-reference)

 > ---
 >  DEVELOPERS                 |  1 +
 >  package/Config.in          |  1 +
 >  package/gensio/Config.in   |  8 ++++++++
 >  package/gensio/gensio.hash |  6 ++++++
 >  package/gensio/gensio.mk   | 25 +++++++++++++++++++++++++
 >  5 files changed, 41 insertions(+)
 >  create mode 100644 package/gensio/Config.in
 >  create mode 100644 package/gensio/gensio.hash
 >  create mode 100644 package/gensio/gensio.mk

 > diff --git a/DEVELOPERS b/DEVELOPERS
 > index a1eb052652..07fd0e0055 100644
 > --- a/DEVELOPERS
 > +++ b/DEVELOPERS
 > @@ -1132,6 +1132,7 @@ F:	configs/pine64_defconfig
 >  F:	configs/pine64_sopine_defconfig
 
 >  N:	James Hilliard <james.hilliard1@gmail.com>
 > +F:	package/gensio/
 >  F:	package/lua-std-debug/
 >  F:	package/lua-std-normalize/
 >  F:	package/pipewire/
 > diff --git a/package/Config.in b/package/Config.in
 > index 4c94914680..e932d46ef8 100644
 > --- a/package/Config.in
 > +++ b/package/Config.in
 > @@ -1992,6 +1992,7 @@ menu "Networking applications"
 >  	source "package/fping/Config.in"
 >  	source "package/freeswitch/Config.in"
 >  	source "package/freeswitch-mod-bcg729/Config.in"
 > +	source "package/gensio/Config.in"

gensio is (primarily) a library, so it should go under libraries ->
Networking.

 > +################################################################################
 > +#
 > +# gensio
 > +#
 > +################################################################################
 > +
 > +GENSIO_VERSION = 1.3.3
 > +GENSIO_SOURCE = gensio-$(GENSIO_VERSION).tar.gz
 > +GENSIO_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
 > +GENSIO_LICENSE = GPL-2.0+
 > +GENSIO_LICENSE_FILES = COPYING

Only the utilities are GPL-2.0+, the library is LGPL-2.1+, so it should
be:

GENSIO_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (tools)
GENSIO_LICENSE_FILES = COPYING.LIB COPYING

And the hash for COPYING.LIB should be added as well.

 > +GENSIO_INSTALL_STAGING = YES
 > +
 > +GENSIO_CONF_OPTS += \
 > +	--without-openipmi \
 > +	--without-swig \
 > +	--without-python

You will also need to do something about openssl. The configure script
seems quite broken though as there isn't really any way to explicitly
disable openssl support:

checking for openssl/ssl.h in /usr/local/ssl... no
checking for openssl/ssl.h in /usr/lib/ssl... no
checking for openssl/ssl.h in /usr/ssl... no
checking for openssl/ssl.h in /usr/pkg... no
checking for openssl/ssl.h in /usr/local... no
checking for openssl/ssl.h in /usr... yes
checking whether compiling and linking against OpenSSL works... no

..

>>> gensio 1.3.3 Building
PATH="/home/peko/source/buildroot/output-ser2net/host/bin:/home/peko/source/buildroot/output-ser2net/host/sbin:/home/peko/bin:/home/peko/.local/bin:/home/peko/bin:/home/peko/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"  /usr/bin/make -j5  -C /home/peko/source/buildroot/output-ser2net/build/gensio-1.3.3/
/usr/bin/make  all-recursive
Making all in lib
  CC       gensio.lo
  CC       gensio_osops.lo
  CC       gensio_net.lo
  CC       gensio_udp.lo
  CC       gensio_stdio.lo
arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
make[4]: *** [Makefile:509: gensio.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
make[4]: *** [Makefile:509: gensio_net.lo] Error 1
make[4]: *** [Makefile:509: gensio_udp.lo] Error 1
arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
make[4]: *** [Makefile:509: gensio_osops.lo] Error 1
arm-linux-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include'
make[4]: *** [Makefile:509: gensio_stdio.lo] Error 1
make[3]: *** [Makefile:424: all-recursive] Error 1
make[2]: *** [Makefile:356: all] Error 2

So that is no good :/

Care to fix these issues and resend?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1
  2020-01-21  1:40 ` [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1 James Hilliard
@ 2020-01-27 17:04   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2020-01-27 17:04 UTC (permalink / raw)
  To: buildroot

>>>>> "James" == James Hilliard <james.hilliard1@gmail.com> writes:

 > Added new ser2net dependencies gensio and libyaml.
 > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

Committed after extending the commit message a bit, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-01-27 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  1:40 [Buildroot] [PATCH 1/2] package/gensio: new package James Hilliard
2020-01-21  1:40 ` [Buildroot] [PATCH 2/2] package/ser2net: bump to version 4.1.1 James Hilliard
2020-01-27 17:04   ` Peter Korsgaard
2020-01-24 22:34 ` [Buildroot] [PATCH 1/2] package/gensio: new package Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.