* [Buildroot] [PATCH] libphidget: needs dynamic library support
@ 2014-09-02 0:16 Gustavo Zacarias
2014-09-02 7:38 ` Peter Korsgaard
2014-09-02 16:32 ` Jonathan Ben Avraham
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2014-09-02 0:16 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/932/9322c930a545bb500b5193a84b26895a03a6b7f7/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/libphidget/Config.in | 4 +++-
package/phidgetwebservice/Config.in | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/libphidget/Config.in b/package/libphidget/Config.in
index 9f3e4bf..18a3207 100644
--- a/package/libphidget/Config.in
+++ b/package/libphidget/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_LIBPHIDGET
bool "libphidget"
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ depends on !BR2_PREFER_STATIC_LIB
select BR2_PACKAGE_LIBUSB
help
The libphidget library provides an API for controlling Phidgets
@@ -20,5 +21,6 @@ config BR2_PACKAGE_LIBPHIDGET
http://phidgets.com/
-comment "libphidget needs a toolchain w/ threads"
+comment "libphidget needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_PREFER_STATIC_LIB
diff --git a/package/phidgetwebservice/Config.in b/package/phidgetwebservice/Config.in
index 7bb6f33..b85166e 100644
--- a/package/phidgetwebservice/Config.in
+++ b/package/phidgetwebservice/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_PHIDGETWEBSERVICE
bool "phidgetwebservice"
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb, libphidget
+ depends on !BR2_PREFER_STATIC_LIB # libphidget
select BR2_PACKAGE_LIBPHIDGET
help
phidgetwebservice (the Phidget WebService) provides an HTTP
@@ -15,5 +16,6 @@ config BR2_PACKAGE_PHIDGETWEBSERVICE
http://phidgets.com/
-comment "phidgetwebservice needs a toolchain w/ threads"
+comment "phidgetwebservice needs a toolchain w/ threads, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_PREFER_STATIC_LIB
--
1.8.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH] libphidget: needs dynamic library support
2014-09-02 0:16 [Buildroot] [PATCH] libphidget: needs dynamic library support Gustavo Zacarias
@ 2014-09-02 7:38 ` Peter Korsgaard
2014-09-02 16:32 ` Jonathan Ben Avraham
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2014-09-02 7:38 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
> Fixes:
> http://autobuild.buildroot.net/results/932/9322c930a545bb500b5193a84b26895a03a6b7f7/
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] libphidget: needs dynamic library support
2014-09-02 0:16 [Buildroot] [PATCH] libphidget: needs dynamic library support Gustavo Zacarias
2014-09-02 7:38 ` Peter Korsgaard
@ 2014-09-02 16:32 ` Jonathan Ben Avraham
2014-09-02 16:51 ` Gustavo Zacarias
1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Ben Avraham @ 2014-09-02 16:32 UTC (permalink / raw)
To: buildroot
Hi Gustavo,
Thanks for the fix.
What should I have known or tested to find this myself at the time that I
added the package?
- yba
On Mon, 1 Sep 2014, Gustavo Zacarias wrote:
> Date: Mon, 1 Sep 2014 21:16:51 -0300
> From: Gustavo Zacarias <gustavo@zacarias.com.ar>
> To: buildroot at busybox.net
> Subject: [Buildroot] [PATCH] libphidget: needs dynamic library support
>
> Fixes:
> http://autobuild.buildroot.net/results/932/9322c930a545bb500b5193a84b26895a03a6b7f7/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/libphidget/Config.in | 4 +++-
> package/phidgetwebservice/Config.in | 4 +++-
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/package/libphidget/Config.in b/package/libphidget/Config.in
> index 9f3e4bf..18a3207 100644
> --- a/package/libphidget/Config.in
> +++ b/package/libphidget/Config.in
> @@ -1,6 +1,7 @@
> config BR2_PACKAGE_LIBPHIDGET
> bool "libphidget"
> depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
> + depends on !BR2_PREFER_STATIC_LIB
> select BR2_PACKAGE_LIBUSB
> help
> The libphidget library provides an API for controlling Phidgets
> @@ -20,5 +21,6 @@ config BR2_PACKAGE_LIBPHIDGET
>
> http://phidgets.com/
>
> -comment "libphidget needs a toolchain w/ threads"
> +comment "libphidget needs a toolchain w/ threads, dynamic library"
> depends on !BR2_TOOLCHAIN_HAS_THREADS
> + depends on BR2_PREFER_STATIC_LIB
> diff --git a/package/phidgetwebservice/Config.in b/package/phidgetwebservice/Config.in
> index 7bb6f33..b85166e 100644
> --- a/package/phidgetwebservice/Config.in
> +++ b/package/phidgetwebservice/Config.in
> @@ -1,6 +1,7 @@
> config BR2_PACKAGE_PHIDGETWEBSERVICE
> bool "phidgetwebservice"
> depends on BR2_TOOLCHAIN_HAS_THREADS # libusb, libphidget
> + depends on !BR2_PREFER_STATIC_LIB # libphidget
> select BR2_PACKAGE_LIBPHIDGET
> help
> phidgetwebservice (the Phidget WebService) provides an HTTP
> @@ -15,5 +16,6 @@ config BR2_PACKAGE_PHIDGETWEBSERVICE
>
> http://phidgets.com/
>
> -comment "phidgetwebservice needs a toolchain w/ threads"
> +comment "phidgetwebservice needs a toolchain w/ threads, dynamic library"
> depends on !BR2_TOOLCHAIN_HAS_THREADS
> + depends on BR2_PREFER_STATIC_LIB
>
--
9590 8E58 D30D 1660 C349 673D B205 4FC4 B8F5 B7F9 ~. .~ Tk Open Systems
=}-------- Jonathan Ben-Avraham ("yba") ----------ooO--U--Ooo------------{=
mailto:yba at tkos.co.il tel:+972.52.486.3386 http://tkos.co.il skype:benavrhm
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [PATCH] libphidget: needs dynamic library support
2014-09-02 16:32 ` Jonathan Ben Avraham
@ 2014-09-02 16:51 ` Gustavo Zacarias
0 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2014-09-02 16:51 UTC (permalink / raw)
To: buildroot
On 09/02/2014 01:32 PM, Jonathan Ben Avraham wrote:
> Hi Gustavo,
> Thanks for the fix.
> What should I have known or tested to find this myself at the time that
> I added the package?
>
> - yba
Hi Jonathan.
Usually when i add a new package i have a couple of prebuilt external
toolchains to test against with just the basic toolchain options:
* Lowest possible version of linux headers for latest git buildroot, to
find minimal requirements (rarely needed).
* Static & Dynamic
* Uclibc barebones (no rpc/wchar/lfs/ipv6)
* C++ and not.
There's no bulletproof formula to get all the options right, rather a
set of hints to look at.
For example extensive use of mbstowcs/mblen/wctomb functions in the
source usually indicates it needs wchar support (unless it's conditional).
Non-conditional usage of in6* / IN6* for IPv6.
RPC functions (pmap_* xdr_*) for RPC.
Mandatory usage of dlopen, creation of shared libraries (plugins) or
linking to libdl is usually a good hint that static-only isn't an option.
And so on.
In the end the autobuilders were doing their job, there are many
combinations that can slip under the radar: missing X syscall in some
architecture, some assembly optimization that doesn't consider
architecture variants which needs disabling and so on (example: can't
handle ARM thumb-only mode).
Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-02 16:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 0:16 [Buildroot] [PATCH] libphidget: needs dynamic library support Gustavo Zacarias
2014-09-02 7:38 ` Peter Korsgaard
2014-09-02 16:32 ` Jonathan Ben Avraham
2014-09-02 16:51 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox