* [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used
@ 2015-07-21 15:36 Thomas Petazzoni
2015-07-21 16:45 ` Yann E. MORIN
2015-07-21 21:17 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-21 15:36 UTC (permalink / raw)
To: buildroot
The code in fs/common.mk properly triggers the build of host-mkpasswd
when at least one package specifies a <pkg>_USERS variable. However,
when no selected package specifies a <pkg>_USERS variable but the user
uses a custom users table through BR2_ROOTFS_USERS_TABLES, then we
forget to build host-mkpasswd, leading to build failures if you don't
have mkpasswd installed in your machine.
This commit fixes that by taking into account both the package users
table and the custom users table when deciding to depend or not on
host-mkpasswd.
Reported-by: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
Cc: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
fs/common.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/common.mk b/fs/common.mk
index 4387d06..ad1bcf3 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -41,7 +41,7 @@ define ROOTFS_TARGET_INTERNAL
# extra deps
ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs \
- $$(if $$(PACKAGES_USERS),host-mkpasswd)
+ $$(if $$(PACKAGES_USERS)$$(ROOTFS_USERS_TABLES),host-mkpasswd)
ifeq ($$(BR2_TARGET_ROOTFS_$(2)_GZIP),y)
ROOTFS_$(2)_COMPRESS_EXT = .gz
--
2.4.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used
2015-07-21 15:36 [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used Thomas Petazzoni
@ 2015-07-21 16:45 ` Yann E. MORIN
2015-07-21 21:17 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2015-07-21 16:45 UTC (permalink / raw)
To: buildroot
Thomas, All,
On 2015-07-21 17:36 +0200, Thomas Petazzoni spake thusly:
> The code in fs/common.mk properly triggers the build of host-mkpasswd
> when at least one package specifies a <pkg>_USERS variable. However,
> when no selected package specifies a <pkg>_USERS variable but the user
> uses a custom users table through BR2_ROOTFS_USERS_TABLES, then we
> forget to build host-mkpasswd, leading to build failures if you don't
> have mkpasswd installed in your machine.
>
> This commit fixes that by taking into account both the package users
> table and the custom users table when deciding to depend or not on
> host-mkpasswd.
>
> Reported-by: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
> Cc: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> fs/common.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/common.mk b/fs/common.mk
> index 4387d06..ad1bcf3 100644
> --- a/fs/common.mk
> +++ b/fs/common.mk
> @@ -41,7 +41,7 @@ define ROOTFS_TARGET_INTERNAL
>
> # extra deps
> ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs \
> - $$(if $$(PACKAGES_USERS),host-mkpasswd)
> + $$(if $$(PACKAGES_USERS)$$(ROOTFS_USERS_TABLES),host-mkpasswd)
>
> ifeq ($$(BR2_TARGET_ROOTFS_$(2)_GZIP),y)
> ROOTFS_$(2)_COMPRESS_EXT = .gz
> --
> 2.4.6
>
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used
2015-07-21 15:36 [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used Thomas Petazzoni
2015-07-21 16:45 ` Yann E. MORIN
@ 2015-07-21 21:17 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-21 21:17 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 21 Jul 2015 17:36:07 +0200, Thomas Petazzoni wrote:
> The code in fs/common.mk properly triggers the build of host-mkpasswd
> when at least one package specifies a <pkg>_USERS variable. However,
> when no selected package specifies a <pkg>_USERS variable but the user
> uses a custom users table through BR2_ROOTFS_USERS_TABLES, then we
> forget to build host-mkpasswd, leading to build failures if you don't
> have mkpasswd installed in your machine.
>
> This commit fixes that by taking into account both the package users
> table and the custom users table when deciding to depend or not on
> host-mkpasswd.
>
> Reported-by: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
> Cc: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> fs/common.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-21 21:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 15:36 [Buildroot] [PATCH] fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used Thomas Petazzoni
2015-07-21 16:45 ` Yann E. MORIN
2015-07-21 21:17 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox