package/linuxconsoletools: bump version to 1.7.0
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
This version changed the (optional) dependency from sdl and sdl-config to sdl2 and pkg-config. Therefore, the patch that provided the correct path to sdl-config has been dropped and the dependency has been changed to BR2_PACKAGE_SDL2.
Somehow, SDL2 fails to build without shared library support, but this is not explicitly depended on by SDL2, therefore a dependency to BR2_SHARED_LIBS was added to the force- feedback utility configuration option.
--- .../linuxconsoletools/0002-sdl-config.patch | 20 ------------------- package/linuxconsoletools/Config.in | 6 +++++- .../linuxconsoletools/linuxconsoletools.hash | 2 +- .../linuxconsoletools/linuxconsoletools.mk | 6 +++--- 4 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 package/linuxconsoletools/0002-sdl-config.patch
package/linuxconsoletools/0002-sdl-config.patch deleted +0 -20
@@ -1,20 +0,0 @@ -Specify sdl-config to use instead of using host sdl-config. - -Signed-off-by: Koen Martens <[email protected]> - -diff -Naur a/utils/Makefile b/utils/Makefile ---- a/utils/Makefile 2017-06-16 18:48:28.402824790 +0200 -+++ b/utils/Makefile 2017-06-16 18:48:53.898696647 +0200 -@@ -69,10 +69,10 @@ - $(CC) $(CFLAGS) $(CPPFLAGS) -funsigned-char $^ $(LDFLAGS) -lm -o $@ - - ffmvforce.o: ffmvforce.c -- $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@ `sdl-config --cflags` -+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -o $@ `${SDL_CONFIG} --cflags` - - ffmvforce: ffmvforce.o -- $(CC) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs` -+ $(CC) $^ -o $@ $(LDFLAGS) -g -lm `${SDL_CONFIG} --libs` - - axbtnmap.o: axbtnmap.c axbtnmap.h -
package/linuxconsoletools/Config.in +5 -1
@@ -28,9 +28,13 @@ config BR2_PACKAGE_LINUXCONSOLETOOLS_JOYSTICK config BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK bool "force-feedback utilities" - select BR2_PACKAGE_SDL + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_SDL2 help Build force-feedback driver utilities (fftest, ffmvforce, ffset, ffcfstress). +comment "force-feedback utilities need a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS + endif
package/linuxconsoletools/linuxconsoletools.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 e9d6b05a6c57c7eb3ec7f9f017f46b20e4b55d5a02f930eff1823a13921c5934 linuxconsoletools-1.6.1.tar.bz2 +sha256 95d112f06393806116341d593bda002c8bc44119c1538407623268fed90d8c34 linuxconsoletools-1.7.0.tar.bz2 sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/linuxconsoletools/linuxconsoletools.mk +3 -3
@@ -4,7 +4,7 @@ # ################################################################################ -LINUXCONSOLETOOLS_VERSION = 1.6.1 +LINUXCONSOLETOOLS_VERSION = 1.7.0 LINUXCONSOLETOOLS_SOURCE = linuxconsoletools-$(LINUXCONSOLETOOLS_VERSION).tar.bz2 LINUXCONSOLETOOLS_SITE = https://downloads.sourceforge.net/project/linuxconsole LINUXCONSOLETOOLS_LICENSE = GPL-2.0+
@@ -21,8 +21,8 @@ endif ifeq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK),y) LINUXCONSOLETOOLS_MAKE_OPTS += \ ENABLE_FORCEFEEDBACK=1 \ - SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config -LINUXCONSOLETOOLS_DEPENDENCIES += sdl + CFLAGS="--std=gnu99" +LINUXCONSOLETOOLS_DEPENDENCIES += sdl2 host-pkgconf endif define LINUXCONSOLETOOLS_BUILD_CMDS
Signature · 1 line
2.17.1
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
Hello Koen,
Thanks for your contribution and this new version of your patch!
Quoted 7 lines · On Sun, 17 Nov 2019 14:59:13 +0100 Koen Martens <[email protected]> wrote:
This version changed the (optional) dependency from sdl and sdl-config to sdl2 and pkg-config. Therefore, the patch that provided the correct path to sdl-config has been dropped and the dependency has been changed to
BR2_PACKAGE_SDL2.Somehow, SDL2 fails to build without shared library support, but this is not explicitly depended on by SDL2,
I don't understand why you say that, because:
config BR2_PACKAGE_SDL2
bool "sdl2"
depends on !BR2_STATIC_LIBS
Quoted 3 lines
therefore
a dependency toBR2_SHARED_LIBSwas added to the force- feedback utility configuration option.
The reason you have to do this is because a "select" is "stronger" than a "depends on", so if you "select BR2_PACKAGE_SDL2", the depends on of BR2_PACKAGE_SDL2 on !BR2_STATIC_LIBS is ignored, and that's why you have to replicate this depends on !BR2_STATIC_LIBS.
package/linuxconsoletools/linuxconsoletools.mk endif · line 24
Quoted 12 lines
package/linuxconsoletools/linuxconsoletools.mk +2
-3-LINUXCONSOLETOOLS_VERSION = 1.6.1 +LINUXCONSOLETOOLS_VERSION = 1.7.0 LINUXCONSOLETOOLS_SOURCE = linuxconsoletools-$(LINUXCONSOLETOOLS_VERSION).tar.bz2 LINUXCONSOLETOOLS_SITE = https://downloads.sourceforge.net/project/linuxconsole LINUXCONSOLETOOLS_LICENSE = GPL-2.0+@@ -21,8 +21,8 @@ endif ifeq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK),y) LINUXCONSOLETOOLS_MAKE_OPTS += \ ENABLE_FORCEFEEDBACK=1 \ - SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config -LINUXCONSOLETOOLS_DEPENDENCIES += sdl + CFLAGS="--std=gnu99"
This looks wrong because you're no longer passing TARGET_CFLAGS, so this should be:
CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
(I think the option is -std, not --std).
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
A message that is not in the archive (sent off-list or not yet received): 20191119064433.GB32125@coltrane
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
Hello Koen,
Quoted 8 lines · On Tue, 19 Nov 2019 07:44:33 +0100 Koen Martens <[email protected]> wrote:
Quoted 5 lines
I don't understand why you say that, because:
config
BR2_PACKAGE_SDL2
bool "sdl2"
depends on !BR2_STATIC_LIBSWell, it doesn't pick up that dependency is what i meant, so i need to depend on it in this package explicitly as well.
OK, I guess I was confused by the formulation. Having to replicate those "depends on" is perfectly normal in the context of Buildroot, but your commit log made it sound like there was something unusual.
Quoted 9 lines
Quoted 6 lines
This looks wrong because you're no longer passing
TARGET_CFLAGS, so this should be:CFLAGS="$(TARGET_CFLAGS) -std=gnu99"(I think the option is -std, not --std).
I'll see if I can find some time to address your comments. Might be a week or two before I find the time.
OK, then I'll guess I'll try to apply the patch and do the fixup locally. Of course, I'll notify you if I do that.
Quoted 2 lines
Meanwhile, I'm unsubscribing from the list again since it is just too much. I'll resubscribe when I have a new patch ready.
You don't have to unsubscribe each time: you can switch to nomail mode, i.e a mode where you are subscribed to the mailing list, but you do not receive all the e-mails. This allows you to send patches whenever you want, without being flooded by the admittedly significant mailing list traffic. Since we always Cc: contributors when replying to their patches, you would receive our replies even if you're in nomail mode. Just login to the mailman web interface, and you will be able to switch to nomail.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
Quoted 11 lines · Thomas Petazzoni
Hello Koen,
Quoted 6 lines · On Tue, 19 Nov 2019 07:44:33 +0100 Koen Martens <[email protected]> wrote:
Quoted 5 lines
I don't understand why you say that, because:
config
BR2_PACKAGE_SDL2
bool "sdl2"
depends on !BR2_STATIC_LIBS
Quoted 6 lines
Quoted 2 lines
Well, it doesn't pick up that dependency is what i meant, so i need to depend on it in this package explicitly as well.
OK, I guess I was confused by the formulation. Having to replicate those "depends on" is perfectly normal in the context of Buildroot, but your commit log made it sound like there was something unusual.
That is probably because I was a bit confused by the behaviour, given that
I'm not a Kconfig guru. Arnout explained it to me, and I understand it better now. I'll see about rewording the commit message.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
This looks wrong because you're no longer passing
TARGET_CFLAGS, so this should be:CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
(I think the option is -std, not --std).
I'll see if I can find some time to address your comments. Might be a week
or two before I find the time.OK, then I'll guess I'll try to apply the patch and do the fixup locally. Of course, I'll notify you if I do that.
I don't think there is any hurry, the update doesn't introduce any spectacular
new features or bugfixes, so it can wait. You're probably busy enough as it is.
I'll see if I can expedite things a bit.
Quoted 11 lines
Quoted 2 lines
Meanwhile, I'm unsubscribing from the list again since it is just too much. I'll resubscribe when I have a new patch ready.
You don't have to unsubscribe each time: you can switch to nomail mode, i.e a mode where you are subscribed to the mailing list, but you do not receive all the e-mails. This allows you to send patches whenever you want, without being flooded by the admittedly significant mailing list traffic. Since we always Cc: contributors when replying to their patches, you would receive our replies even if you're in nomail mode. Just login to the mailman web interface, and you will be able to switch to nomail.
Ah thanks, that's an excellent suggestion. I'm a bit out of practice with this
whole mailman thing.
Cheers,
Koen
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
In reply to Thomas PetazzoniQuoted 9 lines · Thomas Petazzoni
Hello Koen,
Quoted 1 line
I'll see if I can find some time to address your comments. Might be a
week
Quoted 1 line
or two before I find the time.
OK, then I'll guess I'll try to apply the patch and do the fixup locally. Of course, I'll notify you if I do that.
Managed to arrange to work from home tomorrow, which saves me 2 hours, so will look at this tomorrow
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
In reply to Koen MartensQuoted 10 lines · On Sun, 17 Nov 2019 14:59:13 +0100 Koen Martens <[email protected]> wrote:
This version changed the (optional) dependency from sdl and sdl-config to sdl2 and pkg-config. Therefore, the patch that provided the correct path to sdl-config has been dropped and the dependency has been changed to
BR2_PACKAGE_SDL2.Somehow, SDL2 fails to build without shared library support, but this is not explicitly depended on by SDL2, therefore a dependency to
BR2_SHARED_LIBSwas added to the force- feedback utility configuration option.
Quoted 4 lines
Signed-off-by Koen Martens <[email protected]>--- .../linuxconsoletools/0002-sdl-config.patch | 20 -------------------
Minor additional nit: ideally the commit log should explain why this patch is dropped.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
Quoted 12 lines · Thomas Petazzoni
Quoted 10 lines · On Sun, 17 Nov 2019 14:59:13 +0100 Koen Martens <[email protected]> wrote:
This version changed the (optional) dependency from sdl and sdl-config to sdl2 and pkg-config. Therefore, the patch that provided the correct path to sdl-config has been dropped and the dependency has been changed to
BR2_PACKAGE_SDL2.Somehow, SDL2 fails to build without shared library support, but this is not explicitly depended on by SDL2, therefore a dependency to
BR2_SHARED_LIBSwas added to the force- feedback utility configuration option.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Koen Martens <[email protected]>--- .../linuxconsoletools/0002-sdl-config.patch | 20 -------------------Minor additional nit: ideally the commit log should explain why this patch is dropped.
It does, please read the first paragraph.
Koen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20191119/cb32fa3e/attachment.asc>
PATCH v2 1/1 package/linuxconsoletools: bump version to 1.7.0
Quoted 18 lines · On Tue, 19 Nov 2019 07:42:11 +0100 Koen Martens <[email protected]> wrote:
Quoted 17 lines · Thomas Petazzoni
Quoted 14 lines · On Sun, 17 Nov 2019 14:59:13 +0100 Koen Martens <[email protected]> wrote:
This version changed the (optional) dependency from sdl and sdl-config to sdl2 and pkg-config. Therefore, the patch that provided the correct path to sdl-config has been dropped and the dependency has been changed to
BR2_PACKAGE_SDL2.Somehow, SDL2 fails to build without shared library support, but this is not explicitly depended on by SDL2, therefore a dependency to
BR2_SHARED_LIBSwas added to the force- feedback utility configuration option.Signed-off-by Koen Martens <[email protected]>--- .../linuxconsoletools/0002-sdl-config.patch | 20 -------------------
Quoted 4 lines
Quoted 2 lines
Minor additional nit: ideally the commit log should explain why this patch is dropped.
It does, please read the first paragraph.
Indeed, my bad, sorry about that.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com