[OE-core] [PATCH 1/1] busybox: Use UTMPX instead of legacy UTMP

Khem Raj raj.khem at gmail.com
Wed Sep 9 15:45:31 UTC 2015


> On Sep 9, 2015, at 6:25 AM, Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote:
> 
> On 3 September 2015 at 18:54, Khem Raj <raj.khem at gmail.com> wrote:
>> This makes busybox honor UTMPX feature if available in a libc
>> 
>> [YOCTO #8243]
>> 
>> Signed-off-by: Khem Raj <raj.khem at gmail.com>
>> ---
>> .../busybox/0001-Switch-to-POSIX-utmpx-API.patch   | 388 +++++++++++++++++++++
>> meta/recipes-core/busybox/busybox_1.23.2.bb        |   1 +
>> 2 files changed, 389 insertions(+)
>> create mode 100644 meta/recipes-core/busybox/busybox/0001-Switch-to-POSIX-utmpx-API.patch
>> 
>> diff --git a/meta/recipes-core/busybox/busybox/0001-Switch-to-POSIX-utmpx-API.patch b/meta/recipes-core/busybox/busybox/0001-Switch-to-POSIX-utmpx-API.patch
>> new file mode 100644
>> index 0000000..1d299ee
>> --- /dev/null
>> +++ b/meta/recipes-core/busybox/busybox/0001-Switch-to-POSIX-utmpx-API.patch
>> @@ -0,0 +1,388 @@
>> +From 86a7f18f211af1abda5c855d2674b0fcb53de524 Mon Sep 17 00:00:00 2001
>> +From: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
>> +Date: Thu, 2 Apr 2015 23:03:46 +0200
>> +Subject: [PATCH] *: Switch to POSIX utmpx API
>> +
>> +UTMP is SVID legacy, UTMPX is mandated by POSIX.
>> +
>> +Glibc and uClibc have identical layout of UTMP and UTMPX, both of these
>> +libc treat _PATH_UTMPX as _PATH_UTMP so from a user-perspective nothing
>> +changes except the names of the API entrypoints.
> 
> 
> Ontop of this you might also need
> http://git.busybox.net/busybox/commit/?id=7d86384b246434e72533332f7f409a7aa9efeacb
> unless you can guarantee a uClibc rebuild with utmpx support enabled
> at the same time.

in OE we are using git version (0.9.34) so this won’t be needed.

> 
> Thanks and cheers,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150909/e9bbb56c/attachment-0002.sig>


More information about the Openembedded-core mailing list