* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
@ 2012-09-21 10:45 Arnout Vandecappelle
2012-09-21 11:03 ` Gustavo Zacarias
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Arnout Vandecappelle @ 2012-09-21 10:45 UTC (permalink / raw)
To: buildroot
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
How was this never caught by the autobuilders? Do they happen to
build host-pkg-config most of the time? If so, maybe we should make
the randpackageconfig select a smaller number of packages to increase
the chance of finding this kind of issue...
package/unionfs/unionfs.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/unionfs/unionfs.mk b/package/unionfs/unionfs.mk
index e2ffd72..eb8109e 100644
--- a/package/unionfs/unionfs.mk
+++ b/package/unionfs/unionfs.mk
@@ -7,7 +7,7 @@
UNIONFS_VERSION = 0.26
UNIONFS_SITE = http://podgorny.cz/unionfs-fuse/releases
UNIONFS_SOURCE = unionfs-fuse-$(UNIONFS_VERSION).tar.xz
-UNIONFS_DEPENDENCIES = libfuse
+UNIONFS_DEPENDENCIES = libfuse host-pkg-config
UNIONFS_LICENSE = BSD-3c
UNIONFS_LICENSE_FILES = LICENSE
--
tg: (669d07b..) t/unionfs-host-pkg-config (depends on: master)
^ permalink raw reply related [flat|nested] 18+ messages in thread* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 10:45 [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config Arnout Vandecappelle
@ 2012-09-21 11:03 ` Gustavo Zacarias
2012-09-21 11:14 ` Arnout Vandecappelle
2012-09-21 12:03 ` Thomas Petazzoni
2012-09-21 12:02 ` Thomas Petazzoni
2012-09-21 14:11 ` Peter Korsgaard
2 siblings, 2 replies; 18+ messages in thread
From: Gustavo Zacarias @ 2012-09-21 11:03 UTC (permalink / raw)
To: buildroot
On 09/21/12 07:45, Arnout Vandecappelle (Essensium/Mind) wrote:
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> How was this never caught by the autobuilders? Do they happen to
> build host-pkg-config most of the time? If so, maybe we should make
> the randpackageconfig select a smaller number of packages to increase
> the chance of finding this kind of issue...
Because it uses any pkg-config around, it doesn't honour PKG_CONFIG nor
check for it as a dependency.
Makefile:CPPFLAGS += $(shell pkg-config --cflags fuse)
Makefile:LIB = $(shell pkg-config --libs fuse)
As long as there's one on PATH it'll just work.
Regards.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:03 ` Gustavo Zacarias
@ 2012-09-21 11:14 ` Arnout Vandecappelle
2012-09-21 11:15 ` Gustavo Zacarias
2012-09-21 11:21 ` Gustavo Zacarias
2012-09-21 12:03 ` Thomas Petazzoni
1 sibling, 2 replies; 18+ messages in thread
From: Arnout Vandecappelle @ 2012-09-21 11:14 UTC (permalink / raw)
To: buildroot
On 09/21/12 13:03, Gustavo Zacarias wrote:
> On 09/21/12 07:45, Arnout Vandecappelle (Essensium/Mind) wrote:
>
>> Signed-off-by: Arnout Vandecappelle (Essensium/Mind)<arnout@mind.be>
> Acked-by: Gustavo Zacarias<gustavo@zacarias.com.ar>
>
>> How was this never caught by the autobuilders? Do they happen to
>> build host-pkg-config most of the time? If so, maybe we should make
>> the randpackageconfig select a smaller number of packages to increase
>> the chance of finding this kind of issue...
>
> Because it uses any pkg-config around, it doesn't honour PKG_CONFIG nor
> check for it as a dependency.
>
> Makefile:CPPFLAGS += $(shell pkg-config --cflags fuse)
> Makefile:LIB = $(shell pkg-config --libs fuse)
>
> As long as there's one on PATH it'll just work.
No, unless libfuse-dev is installed on the autobuilders. /usr/bin/pkg-config
doesn't look in $(STAGING_DIR)...
Regards,
Arnout
--
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
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:14 ` Arnout Vandecappelle
@ 2012-09-21 11:15 ` Gustavo Zacarias
2012-09-21 11:21 ` Gustavo Zacarias
1 sibling, 0 replies; 18+ messages in thread
From: Gustavo Zacarias @ 2012-09-21 11:15 UTC (permalink / raw)
To: buildroot
On 09/21/12 08:14, Arnout Vandecappelle wrote:
> No, unless libfuse-dev is installed on the autobuilders.
> /usr/bin/pkg-config
> doesn't look in $(STAGING_DIR)...
I'm on gentoo so -dev doesn't exist in my world, it's builtin :)
Regards.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:14 ` Arnout Vandecappelle
2012-09-21 11:15 ` Gustavo Zacarias
@ 2012-09-21 11:21 ` Gustavo Zacarias
2012-09-21 11:23 ` Arnout Vandecappelle
1 sibling, 1 reply; 18+ messages in thread
From: Gustavo Zacarias @ 2012-09-21 11:21 UTC (permalink / raw)
To: buildroot
On 09/21/12 08:14, Arnout Vandecappelle wrote:
>> Makefile:CPPFLAGS += $(shell pkg-config --cflags fuse)
>> Makefile:LIB = $(shell pkg-config --libs fuse)
>>
>> As long as there's one on PATH it'll just work.
>
> No, unless libfuse-dev is installed on the autobuilders.
> /usr/bin/pkg-config
> doesn't look in $(STAGING_DIR)...
Also on that Makefile expression the result will fail with an error
message passing by (missing pkg-config or fuse.pc) but won't make make
(sic) bailout, try it...
Regards.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:21 ` Gustavo Zacarias
@ 2012-09-21 11:23 ` Arnout Vandecappelle
2012-09-21 11:37 ` Gustavo Zacarias
0 siblings, 1 reply; 18+ messages in thread
From: Arnout Vandecappelle @ 2012-09-21 11:23 UTC (permalink / raw)
To: buildroot
On 09/21/12 13:21, Gustavo Zacarias wrote:
> On 09/21/12 08:14, Arnout Vandecappelle wrote:
>
>>> Makefile:CPPFLAGS += $(shell pkg-config --cflags fuse)
>>> Makefile:LIB = $(shell pkg-config --libs fuse)
>>>
>>> As long as there's one on PATH it'll just work.
>>
>> No, unless libfuse-dev is installed on the autobuilders.
>> /usr/bin/pkg-config
>> doesn't look in $(STAGING_DIR)...
>
> Also on that Makefile expression the result will fail with an error
> message passing by (missing pkg-config or fuse.pc) but won't make make
> (sic) bailout, try it...
But the final link will fail because of undefined fuse_xxx symbols,
because there is no -lfuse added by pkg-config.
Regards,
Arnout
--
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
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:23 ` Arnout Vandecappelle
@ 2012-09-21 11:37 ` Gustavo Zacarias
2012-09-21 12:11 ` Arnout Vandecappelle
0 siblings, 1 reply; 18+ messages in thread
From: Gustavo Zacarias @ 2012-09-21 11:37 UTC (permalink / raw)
To: buildroot
On 09/21/12 08:23, Arnout Vandecappelle wrote:
> But the final link will fail because of undefined fuse_xxx symbols,
> because there is no -lfuse added by pkg-config.
Yes, that's why i Acked your patch, it IS a problem.
It's just not the problem stated in the commit msg about the
autobuilders not detecting it (host-pkg-config almost always present,
that changes nothing as long as there's a pkg-config around) :)
Regards.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:37 ` Gustavo Zacarias
@ 2012-09-21 12:11 ` Arnout Vandecappelle
2012-09-21 12:27 ` Gustavo Zacarias
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Arnout Vandecappelle @ 2012-09-21 12:11 UTC (permalink / raw)
To: buildroot
On 09/21/12 13:37, Gustavo Zacarias wrote:
> host-pkg-config almost always present
Maybe we should make that _always_ present, and add host-pkg-config to
the toolchain build... It is more or less part of the toolchain, and it
doesn't hurt to build it if it's not needed.
Regards,
Arnout
--
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
^ permalink raw reply [flat|nested] 18+ messages in thread* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 12:11 ` Arnout Vandecappelle
@ 2012-09-21 12:27 ` Gustavo Zacarias
2012-09-21 14:20 ` Peter Korsgaard
2012-09-21 18:51 ` Thomas Petazzoni
2 siblings, 0 replies; 18+ messages in thread
From: Gustavo Zacarias @ 2012-09-21 12:27 UTC (permalink / raw)
To: buildroot
On 09/21/12 09:11, Arnout Vandecappelle wrote:
>> host-pkg-config almost always present
>
> Maybe we should make that _always_ present, and add host-pkg-config to
> the toolchain build... It is more or less part of the toolchain, and it
> doesn't hurt to build it if it's not needed.
Possible, host variant doesn't use anything that we don't have around
and it's pretty straightforward.
Also adding a helper script for new packages would be neat, at least to
check for the usual suspects, with some magic grepping of the unpacked
tarballs.
Regards.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 12:11 ` Arnout Vandecappelle
2012-09-21 12:27 ` Gustavo Zacarias
@ 2012-09-21 14:20 ` Peter Korsgaard
2012-09-21 14:26 ` Gustavo Zacarias
2012-09-21 18:51 ` Thomas Petazzoni
2 siblings, 1 reply; 18+ messages in thread
From: Peter Korsgaard @ 2012-09-21 14:20 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
Arnout> On 09/21/12 13:37, Gustavo Zacarias wrote:
>> host-pkg-config almost always present
Arnout> Maybe we should make that _always_ present, and add
Arnout> host-pkg-config to the toolchain build... It is more or less
Arnout> part of the toolchain, and it doesn't hurt to build it if it's
Arnout> not needed.
That's an option, but it's fairly slow to build (mainly because of the
embedded glib), so people might not like it (especially if using an
external toolchain). Perhaps it would be better to move to pkgconf
instead then (I think Gentoo uses it)?
https://github.com/pkgconf/pkgconf
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 12:11 ` Arnout Vandecappelle
2012-09-21 12:27 ` Gustavo Zacarias
2012-09-21 14:20 ` Peter Korsgaard
@ 2012-09-21 18:51 ` Thomas Petazzoni
2 siblings, 0 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2012-09-21 18:51 UTC (permalink / raw)
To: buildroot
Dear Arnout Vandecappelle,
On Fri, 21 Sep 2012 14:11:42 +0200, Arnout Vandecappelle wrote:
> Maybe we should make that _always_ present, and add host-pkg-config to
> the toolchain build... It is more or less part of the toolchain, and it
> doesn't hurt to build it if it's not needed.
host-pkg-config depends on host-automake, which depends on
host-autoconf and host-libtool, themselves needing host-m4.
Are we going to become OpenEmebdded, and rebuild the entire host
distribution before building anything useful for the target?
Sorry, but the fact that when building a Busybox system, Buildroot
builds Busybox and nothing else is a very good property of Buildroot.
Let's keep it this way, thanks :-)
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 11:03 ` Gustavo Zacarias
2012-09-21 11:14 ` Arnout Vandecappelle
@ 2012-09-21 12:03 ` Thomas Petazzoni
1 sibling, 0 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2012-09-21 12:03 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Fri, 21 Sep 2012 08:03:05 -0300, Gustavo Zacarias wrote:
> Because it uses any pkg-config around, it doesn't honour PKG_CONFIG nor
> check for it as a dependency.
My autobuild stuff runs inside a chroot that does not have pkg-config
installed. The chroot in question has the strict minimal number of
dependencies that Buildroot requires on the host system.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 10:45 [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config Arnout Vandecappelle
2012-09-21 11:03 ` Gustavo Zacarias
@ 2012-09-21 12:02 ` Thomas Petazzoni
2012-09-21 14:11 ` Peter Korsgaard
2 siblings, 0 replies; 18+ messages in thread
From: Thomas Petazzoni @ 2012-09-21 12:02 UTC (permalink / raw)
To: buildroot
Dear Arnout Vandecappelle (Essensium/Mind),
On Fri, 21 Sep 2012 12:45:56 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> How was this never caught by the autobuilders? Do they happen to
> build host-pkg-config most of the time? If so, maybe we should make
> the randpackageconfig select a smaller number of packages to increase
> the chance of finding this kind of issue...
We can configure the probability for each given package to be selected
in randpackageconfig, and my autobuilder script itself make this value
a random value between (IIRC) 2 and 35%. So depending on the build,
each package has between 2% and 35% of chances of being selected. And I
certainly see builds with very few packages selected. So I'm also
surprised it wasn't found until now.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 10:45 [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config Arnout Vandecappelle
2012-09-21 11:03 ` Gustavo Zacarias
2012-09-21 12:02 ` Thomas Petazzoni
@ 2012-09-21 14:11 ` Peter Korsgaard
2012-09-21 18:52 ` Thomas Petazzoni
2 siblings, 1 reply; 18+ messages in thread
From: Peter Korsgaard @ 2012-09-21 14:11 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:
Arnout> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Arnout> ---
Arnout> How was this never caught by the autobuilders? Do they happen to
Arnout> build host-pkg-config most of the time? If so, maybe we should make
Arnout> the randpackageconfig select a smaller number of packages to increase
Arnout> the chance of finding this kind of issue...
Committed, thanks.
Lots of stuff indeed pulls in host-pkgconfig, and as 'u' is pretty late
in the alphabet the chance is quite high that it is already available:
ls package | cat -n | grep unionfs
520 unionfs
ls package | wc -l
559
We do have KCONFIG_PROBABILITY (see 3435c1afb583) that I sometimes play
with, but you need both low and high probability builds as they catch
different issues.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 14:11 ` Peter Korsgaard
@ 2012-09-21 18:52 ` Thomas Petazzoni
2012-09-22 19:46 ` Peter Korsgaard
0 siblings, 1 reply; 18+ messages in thread
From: Thomas Petazzoni @ 2012-09-21 18:52 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Fri, 21 Sep 2012 16:11:12 +0200, Peter Korsgaard wrote:
> Lots of stuff indeed pulls in host-pkgconfig, and as 'u' is pretty late
> in the alphabet the chance is quite high that it is already available:
Can we somehow fight this alphabet thing and make things even more
random? Something that would shuffle the make targets or something, but
I don't know if it is possible.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config
2012-09-21 18:52 ` Thomas Petazzoni
@ 2012-09-22 19:46 ` Peter Korsgaard
0 siblings, 0 replies; 18+ messages in thread
From: Peter Korsgaard @ 2012-09-22 19:46 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Dear Peter Korsgaard,
Thomas> On Fri, 21 Sep 2012 16:11:12 +0200, Peter Korsgaard wrote:
>> Lots of stuff indeed pulls in host-pkgconfig, and as 'u' is pretty late
>> in the alphabet the chance is quite high that it is already available:
Thomas> Can we somehow fight this alphabet thing and make things even more
Thomas> random? Something that would shuffle the make targets or something, but
Thomas> I don't know if it is possible.
I don't know of any easy/clean way, but it could probably be done by
some $(wildcard) / $(shell unsort ..) stuff instead of include
package/*/*.mk, but it won't be pretty.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2012-09-22 19:46 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 10:45 [Buildroot] [PATCH] unionfs: add missing dependency on host-pkg-config Arnout Vandecappelle
2012-09-21 11:03 ` Gustavo Zacarias
2012-09-21 11:14 ` Arnout Vandecappelle
2012-09-21 11:15 ` Gustavo Zacarias
2012-09-21 11:21 ` Gustavo Zacarias
2012-09-21 11:23 ` Arnout Vandecappelle
2012-09-21 11:37 ` Gustavo Zacarias
2012-09-21 12:11 ` Arnout Vandecappelle
2012-09-21 12:27 ` Gustavo Zacarias
2012-09-21 14:20 ` Peter Korsgaard
2012-09-21 14:26 ` Gustavo Zacarias
2012-09-21 14:30 ` Lionel Orry
2012-09-21 18:51 ` Thomas Petazzoni
2012-09-21 12:03 ` Thomas Petazzoni
2012-09-21 12:02 ` Thomas Petazzoni
2012-09-21 14:11 ` Peter Korsgaard
2012-09-21 18:52 ` Thomas Petazzoni
2012-09-22 19:46 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox