package: add libpthsem
PATCH v2 1/1 package: add libpthsem
--- package/Config.in | 1 + package/libpthsem/Config.in | 9 ++++++ ...bpthsem-2.0.8-fix-build-on-linux-3.x-host.patch | 28 +++++++++++++++++ package/libpthsem/libpthsem.mk | 33 ++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 package/libpthsem/Config.in create mode 100644 package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch create mode 100644 package/libpthsem/libpthsem.mk
package/Config.in +1 -0
@@ -496,6 +496,7 @@ source "package/gsl/Config.in" source "package/libglib2/Config.in" source "package/libical/Config.in" source "package/libnspr/Config.in" +source "package/libpthsem/Config.in" source "package/libsigc/Config.in" source "package/libtpl/Config.in" source "package/liburcu/Config.in"
package/libpthsem/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBPTHSEM + bool "libpthsem" + select BR2_PACKAGE_ARGP_STANDALONE + help + GNU pth is a user mode multi threading library. pthsem is an extend + version, with support for semaphores added. + + http://www.auto.tuwien.ac.at/~mkoegler/pth/ +
package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 2d0450bfa3fb7003098da1a7fe24c3ae140912dc Mon Sep 17 00:00:00 2001 +From: Gregory Hermant <[email protected]> +Date: Mon, 22 Oct 2012 15:11:53 +0200 +Subject: [PATCH] pthsem build on Linux 3.x host + + +Signed-off-by: Michael Markstaller <[email protected]> +Signed-off-by: Gregory Hermant <[email protected]> +--- + acinclude.m4 | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/acinclude.m4 b/acinclude.m4 +index 03b42de..fea9bc8 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -892,6 +892,8 @@ case $PLATFORM in + case "x`uname -r`" in + changequote(, )dnl + x2.[23456789]* ) ;; ++changequote(, )dnl ++ x3.* ) ;; + changequote([, ]) + * ) braindead=yes ;; + esac +-- +1.7.9.5 +
package/libpthsem/libpthsem.mk new file +33 -0
@@ -0,0 +1,33 @@ +############################################################# +# +# libpthsem +# +############################################################# + +LIBPTHSEM_VERSION = 2.0.8 +LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz +LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth/ +LIBPTHSEM_LICENSE = LGPLv2.1+ +LIBPTHSEM_LICENSE_FILES = COPYING +LIBPTHSEM_AUTORECONF = YES +LIBPTHSEM_INSTALL_STAGING = YES +LIBPTHSEM_DEPENDENCIES = argp-standalone + +define LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP + $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config + $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config +endef + +LIBPTHSEM_POST_INSTALL_STAGING_HOOKS += LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP + +define LIBPTHSEM_REMOVE_CONFIG_SCRIPTS + $(RM) -f $(TARGET_DIR)/usr/bin/pthsem-config +endef + +ifneq ($(BR2_HAVE_DEVFILES),y) +LIBPTHSEM_POST_INSTALL_TARGET_HOOKS += LIBPTHSEM_REMOVE_CONFIG_SCRIPTS +endif + + +$(eval $(autotools-package)) +
Signature · 1 line
1.7.9.5
PATCH v2 1/1 package: add bcusdk
--- package/Config.in | 1 + package/bcusdk/Config.in | 11 +++++++++++ package/bcusdk/bcusdk.mk | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package/bcusdk/Config.in create mode 100644 package/bcusdk/bcusdk.mk
package/Config.in +1 -0
@@ -555,6 +555,7 @@ source "package/argus/Config.in" source "package/arptables/Config.in" source "package/avahi/Config.in" source "package/axel/Config.in" +source "package/bcusdk/Config.in" source "package/bluez_utils/Config.in" source "package/boa/Config.in" source "package/bind/Config.in"
package/bcusdk/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_BCUSDK + bool "bcusdk" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_LIBPTHSEM + help + A free development environment for BCU1 and BCU2 + + http://www.auto.tuwien.ac.at/~mkoegler/eib/ + +comment "bcusdk requires a toolchain with C++ " + depends on !BR2_INSTALL_LIBSTDCPP
package/bcusdk/bcusdk.mk new file +20 -0
@@ -0,0 +1,20 @@ +############################################################# +# +# bcusck +# +############################################################# + +BCUSDK_VERSION = 0.0.5 +BCUSDK_SOURCE = bcusdk_$(BCUSDK_VERSION).tar.gz +BCUSDK_SITE = http://www.auto.tuwien.ac.at/~mkoegler/eib/ +BCUSDK_LICENSE = GPLv2+ +BCUSDK_LICENSE_FILES = COPYING +BCUSDK_INSTALL_STAGING = YES +BCUSDK_CONF_OPT = --enable-onlyeibd --enable-ft12 --enable-pei16 \ + --enable-eibnetip --enable-eibnetipserver \ + --enable-eibnetiptunnel --without-pth-test \ + --with-pth=$(STAGING_DIR)/usr + +BCUSDK_DEPENDENCIES = libpthsem + +$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH v2 1/1 package: add bcusdk
BTW, we usually give such patches the title
bcusdk: new package
Quoted 1 line · Gregory Hermant
Signed-off-by Gregory Hermant<[email protected]>
[snip]
package/bcusdk/Config.in line 4
Quoted 10 lines
package/bcusdk/Config.in new file +4
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_BCUSDK + bool "bcusdk" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_LIBPTHSEM
... and the architecture dependencies of libpthsem...
package/bcusdk/Config.in line 6
Quoted 2 lines
package/bcusdk/Config.in new file +2
-0+ help + A free development environment for BCU1 and BCU2
It would be nice if there was a description of what BCU is.
Otherwise, it looks good!
Regards,
Arnout
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 1/1 package: add bcusdk
Le 08/11/2012 09:34, Arnout Vandecappelle a ?crit :
Quoted 4 lines
Quoted 4 lines
package/bcusdk/Config.in new file +0
-1--- /dev/null
Quoted 8 lines
package/bcusdk/Config.in line 4
Quoted 6 lines
+++ b/package/bcusdk/Config.in
package/bcusdk/Config.in new file +4
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_BCUSDK + bool "bcusdk" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_LIBPTHSEM... and the architecture dependencies of libpthsem...
Could you please enlighten me on this point ?
BR,
gregory
CALAO SYSTEMS <http://www.calao-systems.com/>
*CALAO SYSTEMS*
Le Magist?re II
334, rue des Vingt Toises
38950 Saint Martin le Vinoux
France
Phone : *+33 (0)4 76 56 38 05*
Fax : *+33 (0)4 76 56 38 06*
Cette communication (y compris les pi?ces jointes) est r?serv?e ? l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privil?gi?es, confidentielles, exempt?es de divulgation selon la loi ou prot?g?es par les droits d'auteur. Si vous n'?tes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autoris?e et peut ?tre ill?gale. Tout message ?lectronique est susceptible d'alt?ration et son int?grit? ne peut ?tre assur?e. CALAO SYSTEMS d?cline toute responsabilit? au titre de ce message s'il a ?t? modifi? ou falsifi?. Si vous n'?tes pas destinataire de ce message, merci de le d?truire imm?diatement et d'avertir l'exp?diteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed. CALAO SYSTEMS shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you.
PATCH v2 1/1 package: add bcusdk
Quoted 4 lines · Gr?gory Hermant
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
+ select
BR2_PACKAGE_LIBPTHSEM... and the architecture dependencies of libpthsem...
Could you please enlighten me on this point ?
As I wrote in the review of libpthsem, pth doesn't work on a number
of the architectures we support. Since libpthsem is a fork of pth, it's likely that it doesn't work in libpthsem either. Therefore, it is likely that libpthsem requires some
depends on !BR2_microblaze && !BR2_...
which have to be inherited by the packages that select libpthsem.
(Thomas Petazzoni reported that pth doesn't work on arm-glibc, for
instance...).
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v2 1/1 package: add linknx
In reply to Gregory Hermant--- package/Config.in | 1 + package/linknx/Config.in | 8 ++++++++ package/linknx/linknx.mk | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 package/linknx/Config.in create mode 100644 package/linknx/linknx.mk
package/Config.in +1 -0
@@ -590,6 +590,7 @@ source "package/iptables/Config.in" source "package/iw/Config.in" source "package/kismet/Config.in" source "package/lighttpd/Config.in" +source "package/linknx/Config.in" source "package/links/Config.in" source "package/linphone/Config.in" source "package/lrzsz/Config.in"
package/linknx/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LINKNX + bool "linknx" + select BR2_PACKAGE_LIBPTHSEM + help + Linknx is an automation platform providing high level functionalities + to EIB/KNX installation. + + http://linknx.sourceforge.net/
package/linknx/linknx.mk new file +18 -0
@@ -0,0 +1,18 @@ +############################################################# +# +# linknx +# +############################################################# + +LINKNX_VERSION = 0.0.1.30 +LINKNX_SOURCE = linknx-${LINKNX_VERSION}.tar.gz +LINKNX_SITE = http://downloads.sourceforge.net/project/linknx/linknx/linknx-${LINKNX_VERSION} +LINKNX_LICENSE = GPLv2+ +LINKNX_LICENSE_FILES = COPYING +LINKNX_INSTALL_STAGING = YES +LINKNX_CONF_OPT = --without-lua --without-log4cpp --without-pth-test \ + --with-pth=$(STAGING_DIR)/usr + +LINKNX_DEPENDENCIES = libpthsem + +$(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH v2 1/1 package: add libpthsem
In reply to Gregory Hermantpackage/libpthsem/Config.in line 6
Quoted 7 lines · Gregory Hermant
Signed-off-by Gregory Hermant<[email protected]>package/libpthsem/Config.in new file +6
-0+config BR2_PACKAGE_LIBPTHSEM + bool "libpthsem" + select BR2_PACKAGE_ARGP_STANDALONE + help + GNU pth is a user mode multi threading library. pthsem is an extend + version, with support for semaphores added.
If it is similar to pth, then it will probably not work on half our
architectures...
Quoted 2 lines
package/libpthsem/Config.in new file +2
-0+ + http://www.auto.tuwien.ac.at/~mkoegler/pth/
[snip]
Quoted 14 lines
package/libpthsem/libpthsem.mk new file +8
-0@@ -0,0 +1,33 @@ +############################################################# +# +# libpthsem +# +############################################################# + +LIBPTHSEM_VERSION = 2.0.8 +LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz
package/libpthsem/libpthsem.mk line 18
Quoted 10 lines
package/libpthsem/libpthsem.mk new file +10
-0+LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth/ +LIBPTHSEM_LICENSE = LGPLv2.1+ +LIBPTHSEM_LICENSE_FILES = COPYING +LIBPTHSEM_AUTORECONF = YES +LIBPTHSEM_INSTALL_STAGING = YES +LIBPTHSEM_DEPENDENCIES = argp-standalone + +define LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP + $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config + $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config
The \' quotes are redundant here, no? And isn't one $(SED) enough if you
leave out the ^ in the beginning? Then prefix=.* will match both of them.
package/libpthsem/libpthsem.mk line 25
Quoted 7 lines
package/libpthsem/libpthsem.mk new file +7
-0+endef + +LIBPTHSEM_POST_INSTALL_STAGING_HOOKS += LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP + +define LIBPTHSEM_REMOVE_CONFIG_SCRIPTS + $(RM) -f $(TARGET_DIR)/usr/bin/pthsem-config +endef
Good idea, I guess there are plenty of packages that should have this as well...
Regards,
Arnout
Quoted 8 lines
package/libpthsem/libpthsem.mk new file +8
-0+ +ifneq ($(BR2_HAVE_DEVFILES),y) +LIBPTHSEM_POST_INSTALL_TARGET_HOOKS += LIBPTHSEM_REMOVE_CONFIG_SCRIPTS +endif + + +$(eval $(autotools-package)) +
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F