Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] wget: Depends on libuuid
@ 2014-07-01  9:15 Alexander Potashev
  2014-07-01  9:32 ` Baruch Siach
  2014-07-01  9:35 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Potashev @ 2014-07-01  9:15 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Alexander Potashev <a.potashev@geoscan.aero>
---
 package/wget/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/wget/Config.in b/package/wget/Config.in
index 26a2019..fc7ee26 100644
--- a/package/wget/Config.in
+++ b/package/wget/Config.in
@@ -3,6 +3,8 @@ config BR2_PACKAGE_WGET
 	# fork()
 	depends on BR2_USE_MMU
 	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
 	help
 	  Network utility to retrieve files from http, https and ftp.
 
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
  2014-07-01  9:15 [Buildroot] [PATCH] wget: Depends on libuuid Alexander Potashev
@ 2014-07-01  9:32 ` Baruch Siach
  2014-07-01  9:35 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Baruch Siach @ 2014-07-01  9:32 UTC (permalink / raw)
  To: buildroot

Hi Alexander,

On Tue, Jul 01, 2014 at 01:15:29PM +0400, Alexander Potashev wrote:
> Signed-off-by: Alexander Potashev <a.potashev@geoscan.aero>
> ---
>  package/wget/Config.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/wget/Config.in b/package/wget/Config.in
> index 26a2019..fc7ee26 100644
> --- a/package/wget/Config.in
> +++ b/package/wget/Config.in
> @@ -3,6 +3,8 @@ config BR2_PACKAGE_WGET
>  	# fork()
>  	depends on BR2_USE_MMU
>  	depends on BR2_USE_WCHAR
> +	select BR2_PACKAGE_UTIL_LINUX
> +	select BR2_PACKAGE_UTIL_LINUX_LIBUUID

Care to explain why this is needed?

Also, you forgot to copy here the BR2_LARGEFILE dependency of util-linux.

baruch

>  	help
>  	  Network utility to retrieve files from http, https and ftp.

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
  2014-07-01  9:15 [Buildroot] [PATCH] wget: Depends on libuuid Alexander Potashev
  2014-07-01  9:32 ` Baruch Siach
@ 2014-07-01  9:35 ` Thomas Petazzoni
       [not found]   ` <2414587.c08SQIiSAD@aspotashev>
  2014-07-01 10:08   ` Alexander Potashev
  1 sibling, 2 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2014-07-01  9:35 UTC (permalink / raw)
  To: buildroot

Dear Alexander Potashev,

On Tue,  1 Jul 2014 13:15:29 +0400, Alexander Potashev wrote:
> Signed-off-by: Alexander Potashev <a.potashev@geoscan.aero>
> ---
>  package/wget/Config.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/wget/Config.in b/package/wget/Config.in
> index 26a2019..fc7ee26 100644
> --- a/package/wget/Config.in
> +++ b/package/wget/Config.in
> @@ -3,6 +3,8 @@ config BR2_PACKAGE_WGET
>  	# fork()
>  	depends on BR2_USE_MMU
>  	depends on BR2_USE_WCHAR
> +	select BR2_PACKAGE_UTIL_LINUX
> +	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
>  	help
>  	  Network utility to retrieve files from http, https and ftp.

I don't think libuuid is a mandatory dependency of wget, and if it was,
your patch would not be sufficient, because it does not add
'util-linux' to WGET_DEPENDENCIES.

However, it indeed seems to be a possible optional dependency of wget,
in which case what you want is the following addition in wget.mk:

ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
WGET_DEPENDENCIES += util-linux
endif

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
       [not found]   ` <2414587.c08SQIiSAD@aspotashev>
@ 2014-07-01 10:07     ` Baruch Siach
  2014-07-01 10:12       ` Alexander Potashev
  0 siblings, 1 reply; 7+ messages in thread
From: Baruch Siach @ 2014-07-01 10:07 UTC (permalink / raw)
  To: buildroot

Hi Alexander,
On Tue, Jul 01, 2014 at 01:55:35PM +0400, Alexander Potashev wrote:
> ? ?????? ?? 1 ???? 2014 11:35:49 ???????????? Thomas Petazzoni ???????:
> > However, it indeed seems to be a possible optional dependency of wget,
> > in which case what you want is the following addition in wget.mk:
> > 
> > ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
> > WGET_DEPENDENCIES += util-linux
> > endif
> 
> Looks good, although one could argue if keeping *_DEPENDENCIES up-to-date is 
> important when we also have dependency assurance in Config.in.

No. These are two different levels of dependencies. Config.in 'select' 
determines which packages are to be built. You need this for mandatory 
dependencies. The per package $(PKG)_DEPENDENCIES determines the ORDER of the 
build. $(PKG)_DEPENDENCIES should list both mandatory AND optional 
dependencies to get a reproducible result.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
  2014-07-01  9:35 ` Thomas Petazzoni
       [not found]   ` <2414587.c08SQIiSAD@aspotashev>
@ 2014-07-01 10:08   ` Alexander Potashev
  1 sibling, 0 replies; 7+ messages in thread
From: Alexander Potashev @ 2014-07-01 10:08 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

? ?????? ?? 1 ???? 2014 11:35:49 ???????????? Thomas Petazzoni ???????:
> I don't think libuuid is a mandatory dependency of wget, and if it was,
> your patch would not be sufficient, because it does not add
> 'util-linux' to WGET_DEPENDENCIES.

I was wrong: it is an optional dependency. I had a problem running wget 
because it found libuuid.so dangling somewhere in my Buildroot working copy 
but it was not installed onto the target. So it was a typical Buildroot non-
clean rebuild problem, not a bug.

Sorry for the noise.

> However, it indeed seems to be a possible optional dependency of wget,
> in which case what you want is the following addition in wget.mk:
> 
> ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
> WGET_DEPENDENCIES += util-linux
> endif

Looks good, although one could argue if keeping *_DEPENDENCIES up-to-date is 
important when we also have dependency assurance in Config.in.

-- 
Regards,
Alexander Potashev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
  2014-07-01 10:07     ` Baruch Siach
@ 2014-07-01 10:12       ` Alexander Potashev
  2014-07-01 11:29         ` Peter Korsgaard
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Potashev @ 2014-07-01 10:12 UTC (permalink / raw)
  To: buildroot

Hi Baruch,

? ?????? ?? 1 ???? 2014 13:07:27 ?? ????????:
> On Tue, Jul 01, 2014 at 01:55:35PM +0400, Alexander Potashev wrote:
> > Looks good, although one could argue if keeping *_DEPENDENCIES up-to-date
> > is important when we also have dependency assurance in Config.in.
> 
> No. These are two different levels of dependencies. Config.in 'select'
> determines which packages are to be built. You need this for mandatory
> dependencies. The per package $(PKG)_DEPENDENCIES determines the ORDER of
> the build. $(PKG)_DEPENDENCIES should list both mandatory AND optional
> dependencies to get a reproducible result.

Thanks for clarification! Now I see the change suggested by Thomas is 
important.

-- 
Regards,
Alexander Potashev

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH] wget: Depends on libuuid
  2014-07-01 10:12       ` Alexander Potashev
@ 2014-07-01 11:29         ` Peter Korsgaard
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2014-07-01 11:29 UTC (permalink / raw)
  To: buildroot

>>>>> "Alexander" == Alexander Potashev <a.potashev@geoscan.aero> writes:

 > Hi Baruch,
 > ? ?????? ?? 1 ???? 2014 13:07:27 ?? ????????:
 >> On Tue, Jul 01, 2014 at 01:55:35PM +0400, Alexander Potashev wrote:
 >> > Looks good, although one could argue if keeping *_DEPENDENCIES up-to-date
 >> > is important when we also have dependency assurance in Config.in.
 >> 
 >> No. These are two different levels of dependencies. Config.in 'select'
 >> determines which packages are to be built. You need this for mandatory
 >> dependencies. The per package $(PKG)_DEPENDENCIES determines the ORDER of
 >> the build. $(PKG)_DEPENDENCIES should list both mandatory AND optional
 >> dependencies to get a reproducible result.

 > Thanks for clarification! Now I see the change suggested by Thomas is 
 > important.

Great, I've committed a patch adding the optional libuuid
depency. Thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-01 11:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01  9:15 [Buildroot] [PATCH] wget: Depends on libuuid Alexander Potashev
2014-07-01  9:32 ` Baruch Siach
2014-07-01  9:35 ` Thomas Petazzoni
     [not found]   ` <2414587.c08SQIiSAD@aspotashev>
2014-07-01 10:07     ` Baruch Siach
2014-07-01 10:12       ` Alexander Potashev
2014-07-01 11:29         ` Peter Korsgaard
2014-07-01 10:08   ` Alexander Potashev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox