openzwave: new package
PATCH 1/1 openzwave: new package
Free software library that interfaces with selected Z-Wave PC controllers, allowing anyone to create applications that manipulate and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol
--- package/0001-fix-wcsdup.patch | 11 +++++++++++ package/Config.in | 1 + package/openzwave/Config.in | 18 ++++++++++++++++++ package/openzwave/openzwave.mk | 43 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 package/0001-fix-wcsdup.patch create mode 100644 package/openzwave/Config.in create mode 100644 package/openzwave/openzwave.mk
package/0001-fix-wcsdup.patch new file +11 -0
@@ -0,0 +1,11 @@ +diff -Naurp openzwave-v1.4/cpp/hidapi/linux/hid.c openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c +--- openzwave-v1.4/cpp/hidapi/linux/hid.c 2016-04-22 15:17:56.753232758 +0200 ++++ openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c 2016-04-22 15:18:11.161482711 +0200 +@@ -21,6 +21,7 @@ + http://github.com/signal11/hidapi . + ********************************************************/ + ++#define _GNU_SOURCE + /* C */ + #include <stdio.h> + #include <string.h>
package/Config.in +1 -0
@@ -1171,6 +1171,7 @@ menu "Networking" source "package/omniorb/Config.in" source "package/openldap/Config.in" source "package/openpgm/Config.in" + source "package/openzwave/Config.in" source "package/ortp/Config.in" source "package/qdecoder/Config.in" source "package/qpid-proton/Config.in"
package/openzwave/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_OPENZWAVE + bool "openzwave" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HAS_UDEV + depends on BR2_USE_WCHAR + help + Free software library that interfaces with selected Z-Wave PC + controllers, allowing anyone to create applications that manipulate + and respond to devices on a Z-Wave network, without requiring + in-depth knowledge of the Z-Wave protocol + + http://www.openzwave.net + +comment "openzwave needs udev and a toolchain w/ C++, threads, wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_PACKAGE_HAS_UDEV || !BR2_USE_WCHAR +
package/openzwave/openzwave.mk new file +43 -0
43 lines not on this page · raw message
Signature · 15 lines
1.9.1 _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
PATCH 1/1 openzwave: new package
Hello Fabrice,
First of all, thanks for your contribution!
Quoted 6 lines · fabrice.fontaine at orange.com
Free software library that interfaces with selected Z-Wave PC controllers, allowing anyone to create applications that manipulate and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol
Signed-off-by Fabrice Fontaine <[email protected]>
Your e-mail carries the following footer:
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
According to this, the contents of your e-mail are confidential, which is a bit annoying for things that are meant to be contributed to a public open-source project.
package/0001-fix-wcsdup.patch line 3
Quoted 9 lines
package/0001-fix-wcsdup.patch new file +3
-0@@ -0,0 +1,11 @@ +diff -Naurp openzwave-v1.4/cpp/hidapi/linux/hid.c openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c +--- openzwave-v1.4/cpp/hidapi/linux/hid.c 2016-04-22 15:17:56.753232758 +0200 ++++ openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c 2016-04-22 15:18:11.161482711 +0200
All patches should have a description + Signed-off-by. Also, since OpenZwave is on Github:
- We want to have a Git formatted patch.
- Please submit this patch upstream.
Quoted 14 lines
package/openzwave/Config.in new file +8
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_OPENZWAVE + bool "openzwave" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HAS_UDEV + depends on BR2_USE_WCHAR + help + Free software library that interfaces with selected Z-Wave PC
package/openzwave/Config.in line 18
Quoted 10 lines
package/openzwave/Config.in new file +10
-0+ controllers, allowing anyone to create applications that manipulate + and respond to devices on a Z-Wave network, without requiring + in-depth knowledge of the Z-Wave protocol + + http://www.openzwave.net + +comment "openzwave needs udev and a toolchain w/ C++, threads, wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_PACKAGE_HAS_UDEV || !BR2_USE_WCHAR +
Unneeded empty new line at the end of file.
Quoted 6 lines
package/openzwave/openzwave.mk new file +0
-0
package/openzwave/openzwave.mk line 8
Quoted 8 lines
package/openzwave/openzwave.mk new file +8
-0@@ -0,0 +1,43 @@ +################################################################################ +# +# openzwave +# +################################################################################ + +OPENZWAVE_VERSION = v1.4 +OPENZWAVE_SITE = $(call github,OpenZWave,open-zwave,$(OPENZWAVE_VERSION))
Since the source code is fetched from Github, please add a hash file to your package submission.
package/openzwave/openzwave.mk line 12
Quoted 4 lines
package/openzwave/openzwave.mk new file +4
-0+ +# The OpenZWave Library is distributed under the LGPL Version 3 license. +# The Example Programs and some support files are distributed under +# different licenses.
I generally like comments, but in this particular case, the comment does nothing but repeat what the <pkg>_LICENSE variable says, so I find the comment a bit useless.
package/openzwave/openzwave.mk line 15
Quoted 3 lines
package/openzwave/openzwave.mk new file +3
-0+OPENZWAVE_LICENSE = LGPLv3+, GPLv3 (examples), Apache-2.0 (sh2ju.sh) +OPENZWAVE_LICENSE_FILES = license/license.txt license/lgpl.txt \ + license/gpl.txt license/Apache-License-2.0.txt
I haven't checked the licenses. Arnout, can you fossilify this package to see what are the correct licenses?
package/openzwave/openzwave.mk line 21
Quoted 5 lines
package/openzwave/openzwave.mk new file +5
-0+OPENZWAVE_DEPENDENCIES = host-pkgconf udev +OPENZWAVE_INSTALL_STAGING = YES + +define OPENZWAVE_BUILD_CMDS + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)
Please add $(TARGET_MAKE_ENV) in the environment:
$(TARGET_MAKE_ENV) $(MAKE) ...
This mainly ensures that the PATH contains $(HOST_DIR)/usr/bin.
package/openzwave/openzwave.mk line 28
Quoted 5 lines
package/openzwave/openzwave.mk new file +5
-0+# Set pkgconfigdir to /usr/lib/pkgconfig to install libopenzwave.pc in the +# correct directory otherwise openzwave will call +# "pkg-config --variable pc_path pkg-config" which returns an incorrect value +define OPENZWAVE_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D) \
Ditto TARGET_MAKE_ENV.
package/openzwave/openzwave.mk line 41
Quoted 13 lines
package/openzwave/openzwave.mk new file +13
-0+ PREFIX=/usr DESTDIR=$(STAGING_DIR) \ + pkgconfigdir=/usr/lib/pkgconfig \ + install +endef + +# Apply the same trick on pkgconfigdir even if libopenzwave.pc is not useful in +# release directory +define OPENZWAVE_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) \ + PREFIX=/usr DESTDIR=$(TARGET_DIR) \ + pkgconfigdir=/usr/lib/pkgconfig \ + install +endef
Other than that, it generally looks good. This pkgconfigdir trick is not nice, but it's probably the easiest solution indeed.
Could you rework your patch to take into account those comments, and send an updated version?
Please note that when sending new version, it should be indicated in the title [PATCH v3], and a changelog should be added in the patch, after the "---" marking the end of the commit log. This allows the reviewers to more easily keep track of what has been changed/fixed between revisions.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
A message that is not in the archive (sent off-list or not yet received): 4485_1461568414_571DC39E_4485_77_1_EEB3FED4859B6C488DDDEC4B2D3DE92B0FC5BBD4@OPEXCLILM23.corporate.adroot.infra.ftgroup
PATCH 1/1 openzwave: new package
Hello,
Quoted 1 line · fabrice.fontaine at orange.com
I will fix all the issues and send a new patch by the end of the day.
Great, thanks!
Quoted 4 lines
Concerning the email address, my contribution has been validated internally by Orange but I can use my personal email address to send the new patch if needed because I can't remove the footer added by the mail server.
I am not sure how much strict we (the Buildroot community) want to be regarding such confidentiality footers. After all, it only says "may contain confidential or privileged information", which means that it may also contain public information. I'm not sure what other open-source projects are doing? Apparently at
http://lists.infradead.org/pipermail/linux-mtd/2013-December/050573.html,
the Linux MTD maintainer rejected a patch due to a confidentiality footer.
Peter, Arnout, Yann, what's your position on this?
(http://www.economist.com/node/18529895 is an interesting article on the matter, probably useful to share with the relevant folks in Orange :-))
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 openzwave: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 10 lines
I am not sure how much strict we (the Buildroot community) want to be regarding such confidentiality footers. After all, it only says "may contain confidential or privileged information", which means that it may also contain public information. I'm not sure what other open-source projects are doing? Apparently at
http://lists.infradead.org/pipermail/linux-mtd/2013-December/050573.html,
the Linux MTD maintainer rejected a patch due to a confidentiality footer.Peter, Arnout, Yann, what's your position on this?
IANAL, but personally I find the disclaimers ugly/noisy to look at but not bad enough to reject patches for it.
Quoted 3 lines
(http://www.economist.com/node/18529895 is an interesting article on the matter, probably useful to share with the relevant folks in Orange :-))
Yeah, indeed.
Signature · 2 lines
Venlig hilsen, Peter Korsgaard
PATCH 1/1 openzwave: new package
In reply to Thomas PetazzoniDear all,
I sent a new patch with the changes requested by Thomas as well as the changes requested by Julien on Joris's patch.
Best Regards,
Fabrice
-----Message d'origine-----
De?: FONTAINE Fabrice IMT/OLPS
Envoy??: lundi 25 avril 2016 09:14
??: 'Thomas Petazzoni'
Cc?: buildroot at buildroot.org; Yann E. MORIN; Arnout Vandecappelle Objet?: RE: [Buildroot] [PATCH 1/1] openzwave: new package
Hello Thomas,
Thanks a lot for your review.
I will fix all the issues and send a new patch by the end of the day.
Concerning the email address, my contribution has been validated internally by Orange but I can use my personal email address to send the new patch if needed because I can't remove the footer added by the mail server.
Best Regards,
Fabrice
-----Message d'origine-----
De?: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com]
Envoy??: samedi 23 avril 2016 00:40
??: FONTAINE Fabrice IMT/OLPS
Cc?: buildroot at buildroot.org; Yann E. MORIN; Arnout Vandecappelle Objet?: Re: [Buildroot] [PATCH 1/1] openzwave: new package
Hello Fabrice,
First of all, thanks for your contribution!
Quoted 6 lines · fabrice.fontaine at orange.com
Free software library that interfaces with selected Z-Wave PC controllers, allowing anyone to create applications that manipulate and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol
Signed-off-by Fabrice Fontaine <[email protected]>
Your e-mail carries the following footer:
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
According to this, the contents of your e-mail are confidential, which is a bit annoying for things that are meant to be contributed to a public open-source project.
package/0001-fix-wcsdup.patch line 3
Quoted 9 lines
(quoted diff) +0
-0
b/package/0001-fix-wcsdup.patchnew file mode 100644 index 0000000..f0807dfpackage/0001-fix-wcsdup.patch new file +3
-0@@ -0,0 +1,11 @@ +diff -Naurp openzwave-v1.4/cpp/hidapi/linux/hid.c openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c +--- openzwave-v1.4/cpp/hidapi/linux/hid.c 2016-04-22 15:17:56.753232758 +0200 ++++ openzwave-v1.4-wcsdup/cpp/hidapi/linux/hid.c 2016-04-22 15:18:11.161482711 +0200
All patches should have a description + Signed-off-by. Also, since OpenZwave is on Github:
- We want to have a Git formatted patch.
- Please submit this patch upstream.
Quoted 13 lines
package/openzwave/Config.in new file +8
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_OPENZWAVE + bool "openzwave" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HAS_UDEV + depends on BR2_USE_WCHAR + help + Free software library that interfaces with selected Z-Wave PC
package/openzwave/Config.in line 18
Quoted 10 lines
package/openzwave/Config.in new file +10
-0+ controllers, allowing anyone to create applications that manipulate + and respond to devices on a Z-Wave network, without requiring + in-depth knowledge of the Z-Wave protocol + + http://www.openzwave.net + +comment "openzwave needs udev and a toolchain w/ C++, threads, wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_PACKAGE_HAS_UDEV || !BR2_USE_WCHAR +
Unneeded empty new line at the end of file.
Quoted 7 lines
(quoted diff) +0
-0
b/package/openzwave/openzwave.mknew file mode 100644 index 0000000..e6a4bd6package/openzwave/openzwave.mk new file +1
-0@@ -0,0 +1,43 @@ +#####################################################################
package/openzwave/openzwave.mk line 11
Quoted 10 lines
package/openzwave/openzwave.mk new file +10
-0+########### +# +# openzwave +# +##################################################################### +########### + +OPENZWAVE_VERSION = v1.4 +OPENZWAVE_SITE = $(call +github,OpenZWave,open-zwave,$(OPENZWAVE_VERSION))
Since the source code is fetched from Github, please add a hash file to your package submission.
package/openzwave/openzwave.mk
Quoted 4 lines
package/openzwave/openzwave.mk new file +4
-0+ +# The OpenZWave Library is distributed under the LGPL Version 3 license. +# The Example Programs and some support files are distributed under # +different licenses.
I generally like comments, but in this particular case, the comment does nothing but repeat what the <pkg>_LICENSE variable says, so I find the comment a bit useless.
package/openzwave/openzwave.mk line 15
Quoted 3 lines
package/openzwave/openzwave.mk new file +3
-0+OPENZWAVE_LICENSE = LGPLv3+, GPLv3 (examples), Apache-2.0 (sh2ju.sh) +OPENZWAVE_LICENSE_FILES = license/license.txt license/lgpl.txt \ + license/gpl.txt license/Apache-License-2.0.txt
I haven't checked the licenses. Arnout, can you fossilify this package to see what are the correct licenses?
package/openzwave/openzwave.mk line 21
Quoted 5 lines
package/openzwave/openzwave.mk new file +5
-0+OPENZWAVE_DEPENDENCIES = host-pkgconf udev OPENZWAVE_INSTALL_STAGING += YES + +define OPENZWAVE_BUILD_CMDS + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)
Please add $(TARGET_MAKE_ENV) in the environment:
$(TARGET_MAKE_ENV) $(MAKE) ...
This mainly ensures that the PATH contains $(HOST_DIR)/usr/bin.
package/openzwave/openzwave.mk line 28
Quoted 5 lines
package/openzwave/openzwave.mk new file +5
-0+# Set pkgconfigdir to /usr/lib/pkgconfig to install libopenzwave.pc +in the # correct directory otherwise openzwave will call # +"pkg-config --variable pc_path pkg-config" which returns an incorrect +value define OPENZWAVE_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D) \
Ditto TARGET_MAKE_ENV.
package/openzwave/openzwave.mk line 41
Quoted 12 lines
package/openzwave/openzwave.mk new file +12
-0+ PREFIX=/usr DESTDIR=$(STAGING_DIR) \ + pkgconfigdir=/usr/lib/pkgconfig \ + install +endef + +# Apply the same trick on pkgconfigdir even if libopenzwave.pc is not +useful in # release directory define OPENZWAVE_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) \ + PREFIX=/usr DESTDIR=$(TARGET_DIR) \ + pkgconfigdir=/usr/lib/pkgconfig \ + install +endef
Other than that, it generally looks good. This pkgconfigdir trick is not nice, but it's probably the easiest solution indeed.
Could you rework your patch to take into account those comments, and send an updated version?
Please note that when sending new version, it should be indicated in the title [PATCH v3], and a changelog should be added in the patch, after the "---" marking the end of the commit log. This allows the reviewers to more easily keep track of what has been changed/fixed between revisions.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering http://free-electrons.com
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.