package/nbd: fixes and bump
cover package/nbd: fixes and bump
Hello All!
This small series fixes the installation of nbd and bumps it to the latest version.
Regards,
Yann E. MORIN.
The following changes since commit 08adaacff1e1d8f63229f667110784ea24cfcd81
s6-linux-init: new package (2017-03-10 22:55:17 +0100)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to c28462eeaf3b9878658983caee9c14cfa56ccd97
package/nbd: bump version (2017-03-12 10:47:29 +0100)
----------------------------------------------------------------
Yann E. MORIN (4):
package/nbd: rename options package/nbd: fix utilities locations package/nbd: add option for the trdump utility package/nbd: bump version
Config.in.legacy | 14 ++++++++++++++ DEVELOPERS | 1 + package/nbd/Config.in | 19 ++++++++++++------- package/nbd/nbd.hash | 4 ++-- package/nbd/nbd.mk | 15 +++++++++------ 5 files changed, 38 insertions(+), 15 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/4 package/nbd: rename options
... and add myself to the DEVELOPERS for nbd.
---
Changes v1 -> v2:
- fix typoes
--- Config.in.legacy | 14 ++++++++++++++ DEVELOPERS | 1 + package/nbd/Config.in | 4 ++-- package/nbd/nbd.mk | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-)
Config.in.legacy +14 -0
@@ -145,6 +145,20 @@ endif ############################################################################### comment "Legacy options removed in 2017.05" +config BR2_NBD_CLIENT + bool "nbd client option was renamed" + select BR2_LEGACY + select BR2_PACKAGE_NBD_CLIENT + help + The nbd client option has been renamed to BR2_PACKAGE_NBD_CLIENT. + +config BR2_NBD_SERVER + bool "nbd server option was renamed" + select BR2_LEGACY + select BR2_PACKAGE_NBD_SERVER + help + The nbd server option has been renamed to BR2_PACKAGE_NBD_SERVER. + config BR2_PACKAGE_GMOCK bool "gmock merged into gtest package" select BR2_LEGACY
DEVELOPERS +1 -0
@@ -1652,6 +1652,7 @@ F: package/libseccomp/ F: package/linux-tools/ F: package/mesa3d-headers/ F: package/mke2img/ +F: package/nbd/ F: package/nut/ F: package/nvidia-driver/ F: package/omxplayer/
package/nbd/Config.in +2 -2
@@ -12,13 +12,13 @@ config BR2_PACKAGE_NBD if BR2_PACKAGE_NBD -config BR2_NBD_CLIENT +config BR2_PACKAGE_NBD_CLIENT bool "nbd client" default y help the client part of NBD. -config BR2_NBD_SERVER +config BR2_PACKAGE_NBD_SERVER bool "nbd server" help the server part of NBD.
package/nbd/nbd.mk +2 -2
@@ -18,10 +18,10 @@ ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no endif -ifneq ($(BR2_NBD_CLIENT),y) +ifneq ($(BR2_PACKAGE_NBD_CLIENT),y) NBD_TOREMOVE += nbd-client endif -ifneq ($(BR2_NBD_SERVER),y) +ifneq ($(BR2_PACKAGE_NBD_SERVER),y) NBD_TOREMOVE += nbd-server endif
Signature · 1 line
2.7.4
PATCH 2/4 package/nbd: fix utilities locations
In reply to Yann E. MORINCurrently, the code expects both the client and server to be in /usr/bin, while the client is in /usr/sbin
Fix that.
--- package/nbd/nbd.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
package/nbd/nbd.mk +3 -3
@@ -19,14 +19,14 @@ NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no endif ifneq ($(BR2_PACKAGE_NBD_CLIENT),y) -NBD_TOREMOVE += nbd-client +NBD_TOREMOVE += /usr/sbin/nbd-client endif ifneq ($(BR2_PACKAGE_NBD_SERVER),y) -NBD_TOREMOVE += nbd-server +NBD_TOREMOVE += /usr/bin/nbd-server endif define NBD_CLEANUP_AFTER_INSTALL - rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(NBD_TOREMOVE)) + rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE)) endef NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
Signature · 1 line
2.7.4
PATCH 3/4 package/nbd: add option for the trdump utility
In reply to Yann E. MORIN--- package/nbd/Config.in | 9 +++++++-- package/nbd/nbd.mk | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-)
package/nbd/Config.in +7 -2
@@ -16,12 +16,17 @@ config BR2_PACKAGE_NBD_CLIENT bool "nbd client" default y help - the client part of NBD. + The client part of NBD. config BR2_PACKAGE_NBD_SERVER bool "nbd server" help - the server part of NBD. + The server part of NBD. + +config BR2_PACKAGE_NBD_TRDUMP + bool "nbd trdump" + help + Utility to dump server logs in human-readable form. endif
package/nbd/nbd.mk +3 -0
@@ -24,6 +24,9 @@ endif ifneq ($(BR2_PACKAGE_NBD_SERVER),y) NBD_TOREMOVE += /usr/bin/nbd-server endif +ifneq ($(BR2_PACKAGE_NBD_TRDUMP),y) +NBD_TOREMOVE += /usr/bin/nbd-trdump +endif define NBD_CLEANUP_AFTER_INSTALL rm -f $(addprefix $(TARGET_DIR), $(NBD_TOREMOVE))
Signature · 1 line
2.7.4
PATCH 4/4 package/nbd: bump version
In reply to Yann E. MORINnbd uses fork and threads, so remove the comment about the dependency:
it is not inherited from glib2 anymore (it has not been for a while in fact).
The dependency on wchar is also a requirement for nbd, because configure needs wchar to test for C99.
--- package/nbd/Config.in | 6 +++--- package/nbd/nbd.hash | 4 ++-- package/nbd/nbd.mk | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
package/nbd/Config.in +3 -3
@@ -1,8 +1,8 @@ config BR2_PACKAGE_NBD bool "nbd" - depends on BR2_USE_WCHAR # glib2 - depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 - depends on BR2_USE_MMU # glib2 + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU select BR2_PACKAGE_LIBGLIB2 help NBD is a set of utilities to configure network block devices,
package/nbd/nbd.hash +2 -2
@@ -1,3 +1,3 @@ # From http://sourceforge.net/projects/nbd/files/nbd/3.13/ -md5 784be37497cc2f9a53c67c8c77d1676d nbd-3.13.tar.xz -sha1 e43674a2d2b42d20719cba3149748e8f5683e554 nbd-3.13.tar.xz +md5 f52a4ef8979d81e6c15a745236582fdf nbd-3.15.2.tar.xz +sha1 c8248dd76641a31189735407cd4d55fe63969c08 nbd-3.15.2.tar.xz
package/nbd/nbd.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -NBD_VERSION = 3.13 +NBD_VERSION = 3.15.2 NBD_SOURCE = nbd-$(NBD_VERSION).tar.xz NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION) NBD_CONF_OPTS = --enable-lfs
Signature · 1 line
2.7.4
Thomas Petazzoni
Appliedcover package/nbd: fixes and bump
In reply to Yann E. MORINHello,
Quoted 5 lines · Yann E. MORIN
Yann E. MORIN (4):
package/nbd: rename options package/nbd: fix utilities locations package/nbd: add option for the trdump utility package/nbd: bump version
Applied, thanks!
Peter: I believe we want to apply PATCH 2/4 to the LTS branch. However, it will conflict a bit because Yann did the renaming of options before the fix, but the conflicts should be trivial to resolve.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
cover package/nbd: fixes and bump
Thomas, Peter, All,
On 2017-03-12 14:29 +0100, Thomas Petazzoni spake thusly:
Quoted 7 lines · Yann E. MORIN
Quoted 5 lines
Yann E. MORIN (4):
package/nbd: rename options package/nbd: fix utilities locations package/nbd: add option for the trdump utility package/nbd: bump version
Quoted 5 lines
Applied, thanks!
Peter: I believe we want to apply PATCH 2/4 to the LTS branch. However, it will conflict a bit because Yann did the renaming of options before the fix, but the conflicts should be trivial to resolve.
Hmm... To me, both were fixes, so I did not think that the order would be important.
But now I see that I should have thought about what could be backported, and clearly only 2/4 should, so it should have been the first in the series.
I;ll try to think about this in the future. Thanks!
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
cover package/nbd: fixes and bump
In reply to Thomas PetazzoniQuoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
Quoted 5 lines · Yann E. MORIN
Yann E. MORIN (4):
package/nbd: rename options
package/nbd: fix utilities locations
package/nbd: add option for the trdump utility
package/nbd: bump version
Quoted 5 lines
Applied, thanks!
Peter: I believe we want to apply PATCH 2/4 to the LTS branch. However, it will conflict a bit because Yann did the renaming of options before the fix, but the conflicts should be trivial to resolve.
Committed patch 2 to 2017.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard