* [Buildroot] [PATCH] package/leafnode2: fix news user check
@ 2014-12-26 17:38 Romain Naour
2014-12-27 16:13 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2014-12-26 17:38 UTC (permalink / raw)
To: buildroot
--enable-runas-user use 'news' as default but the configure stop
if news doesn't exist on the build host.
Use 'root' while cross-compiling
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/leafnode2/leafnode2.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk
index 3bc1c68..0fc2a8d 100644
--- a/package/leafnode2/leafnode2.mk
+++ b/package/leafnode2/leafnode2.mk
@@ -14,9 +14,13 @@ LEAFNODE2_DEPENDENCIES = host-pcre pcre
LEAFNODE2_CONF_ENV = \
PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config"
+# --enable-runas-user use 'news' as default but the configure stop
+# if news doesn't exist on the build host.
+# Use 'root' while cross-compiling
LEAFNODE2_CONF_OPTS = \
--sysconfdir=/etc/leafnode2 \
- --enable-spooldir=/var/spool/news
+ --enable-spooldir=/var/spool/news \
+ --enable-runas-user=root
# Leafnode2 needs the host version of b_sortnl during
# compilation. Instead of creating a seperate host package and
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/leafnode2: fix news user check
2014-12-26 17:38 [Buildroot] [PATCH] package/leafnode2: fix news user check Romain Naour
@ 2014-12-27 16:13 ` Thomas Petazzoni
2014-12-27 20:52 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-27 16:13 UTC (permalink / raw)
To: buildroot
Dear Romain Naour,
On Fri, 26 Dec 2014 18:38:11 +0100, Romain Naour wrote:
> --enable-runas-user use 'news' as default but the configure stop
> if news doesn't exist on the build host.
> Use 'root' while cross-compiling
>
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
> package/leafnode2/leafnode2.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Applied, thanks. Here, leafnode2 does not start properly at boot time,
it asks for a fully qualified host name in /etc/hosts. It would be good
to add a default config file + init script to make leafnode2 work at
least somewhat out of the box.
Thanks!
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
* [Buildroot] [PATCH] package/leafnode2: fix news user check
2014-12-27 16:13 ` Thomas Petazzoni
@ 2014-12-27 20:52 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2014-12-27 20:52 UTC (permalink / raw)
To: buildroot
Le 27/12/2014 17:13, Thomas Petazzoni a ?crit :
> Dear Romain Naour,
>
> On Fri, 26 Dec 2014 18:38:11 +0100, Romain Naour wrote:
>> --enable-runas-user use 'news' as default but the configure stop
>> if news doesn't exist on the build host.
>> Use 'root' while cross-compiling
>>
>> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>> ---
>> package/leafnode2/leafnode2.mk | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
> Applied, thanks. Here, leafnode2 does not start properly at boot time,
> it asks for a fully qualified host name in /etc/hosts. It would be good
> to add a default config file + init script to make leafnode2 work at
> least somewhat out of the box.
>
> Thanks!
>
> Thomas
Honestly, I haven't runtime tested leadnode2.
I just checked why the build has stopped during a random build.
The configure script run the command: id -u news:
a=`$ID -u $RUNAS_USER`
if test -z "$a" ; then
as_fn_error $? "user $RUNAS_USER does not exist. Please add this user before building leafnode.
Most systems have man adduser or man useradd to tell you how to do this." "$LINENO" 5
else
...
This test is used to print a warning because it expect a native
build:
WARNING: user $RUNAS_USER cannot be used to run leafnode for security reasons.
Be sure to configure run_as_user to an unprivileged user, else leafnode will not run."
I'm adding Bernd to cc since it use leadnode2.
Best regards,
Romain
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-27 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-26 17:38 [Buildroot] [PATCH] package/leafnode2: fix news user check Romain Naour
2014-12-27 16:13 ` Thomas Petazzoni
2014-12-27 20:52 ` Romain Naour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox