* [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains
@ 2012-03-30 10:35 Gustavo Zacarias
2012-03-30 11:50 ` Peter Korsgaard
2012-03-30 12:52 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2012-03-30 10:35 UTC (permalink / raw)
To: buildroot
The utmpx defines for when the target systems lacks utmpx is incomplete,
resulting in a build failure, so fix it.
This can be triggered by a uClibc toolchain that lacks UTMPX in the
configuration, or an older (<= 0.9.31) uClibc which lacks the
functionality.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/sudo/sudo-1.8.4p4-utmpx.patch | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
create mode 100644 package/sudo/sudo-1.8.4p4-utmpx.patch
diff --git a/package/sudo/sudo-1.8.4p4-utmpx.patch b/package/sudo/sudo-1.8.4p4-utmpx.patch
new file mode 100644
index 0000000..4e97406
--- /dev/null
+++ b/package/sudo/sudo-1.8.4p4-utmpx.patch
@@ -0,0 +1,19 @@
+Fix incomplete setutxent/endutxent defines for when there's no utmpx
+Upstream bug #551
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura sudo-1.8.4p4.orig/src/utmp.c sudo-1.8.4p4/src/utmp.c
+--- sudo-1.8.4p4.orig/src/utmp.c 2012-03-30 07:10:38.381706315 -0300
++++ sudo-1.8.4p4/src/utmp.c 2012-03-30 07:10:52.605802501 -0300
+@@ -63,8 +63,8 @@
+ #if !defined(HAVE_GETUTXID) && defined(HAVE_GETUTID)
+ # define getutxline(u) getutline(u)
+ # define pututxline(u) pututline(u)
+-# define setutxent setutent(u)
+-# define endutxent endutent(u)
++# define setutxent(u) setutent(u)
++# define endutxent(u) endutent(u)
+ #endif /* !HAVE_GETUTXID && HAVE_GETUTID */
+
+ #ifdef HAVE_GETUTXID
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains
2012-03-30 10:35 [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains Gustavo Zacarias
@ 2012-03-30 11:50 ` Peter Korsgaard
2012-03-30 11:56 ` Gustavo Zacarias
2012-03-30 12:52 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2012-03-30 11:50 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> The utmpx defines for when the target systems lacks utmpx is incomplete,
Gustavo> resulting in a build failure, so fix it.
Gustavo> This can be triggered by a uClibc toolchain that lacks UTMPX in the
Gustavo> configuration, or an older (<= 0.9.31) uClibc which lacks the
Gustavo> functionality.
Committed, thanks.
Don't forget to send it upsteam as well.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains
2012-03-30 10:35 [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains Gustavo Zacarias
2012-03-30 11:50 ` Peter Korsgaard
@ 2012-03-30 12:52 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-03-30 12:52 UTC (permalink / raw)
To: buildroot
Le Fri, 30 Mar 2012 07:35:53 -0300,
Gustavo Zacarias <gustavo@zacarias.com.ar> a ?crit :
> The utmpx defines for when the target systems lacks utmpx is incomplete,
> resulting in a build failure, so fix it.
> This can be triggered by a uClibc toolchain that lacks UTMPX in the
> configuration, or an older (<= 0.9.31) uClibc which lacks the
> functionality.
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Thanks for having fixed this!
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] 4+ messages in thread
end of thread, other threads:[~2012-03-30 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 10:35 [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains Gustavo Zacarias
2012-03-30 11:50 ` Peter Korsgaard
2012-03-30 11:56 ` Gustavo Zacarias
2012-03-30 12:52 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox