Skip to contentSkip to conversation

11/18: busybox: Backport patches to support removal of __NR_clock_gettime

oe-commits Pierre-Jean Texier 3 participants 4 messages Feb 15, 2020 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hello All,

Le 15/02/2020 à 11:28, [email protected] a écrit :

Quoted 7 lines

busybox: Backport patches to support removal of __NR_clock_gettime

This helps compiling with musl on 32bit arches now that musl has switched to 64bit time_t

Quoted 7 lines
---
  ...all-wrappers-around-clock_gettime-closes-.patch | 120 +++++++++++++++++++++
  ...-date-Use-64-prefix-syscall-if-we-have-to.patch |  53 +++++++++
  ...-time-Use-64-prefix-syscall-if-we-have-to.patch |  43 ++++++++
  ...runsv-Use-64-prefix-syscall-if-we-have-to.patch |  46 ++++++++
  meta/recipes-core/busybox/busybox_1.31.1.bb        |   4 +
  5 files changed, 266 insertions(+)

this commit causes the following build issue :

ERROR: busybox-1.31.1-r0 do_patch: Command Error: 'quilt --quiltrc
/home/runner/work/kas-files/kas-files/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/busybox/1.31.1-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch
patching file Makefile.flags
patching file coreutils/date.c
Hunk #2 FAILED at 270.
1 out of 2 hunks FAILED -- rejects in file coreutils/date.c
patching file libbb/time.c
patching file runit/runsv.c
Patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/runner/work/kas-files/kas-files/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/busybox/1.31.1-r0/temp/log.do_patch.62122
ERROR: Task (/home/runner/work/kas-files/kas-files/poky/meta/recipes-core/busybox/busybox_1.31.1.bb:do_patch) failed with exit code '1'

Tested on top of poky master (commit 7f2af8bd795ace46828952a7812f0bbdf26529a [1])

[1] - https://github.com/texierp/kas-files/runs/447729194

Thanks !

Regards

Signature · 3 lines
Pierre-Jean Texier
Embedded Linux Engineer
https://koncepto.io
#3 lore raw

Isn't it caused by some other layer prepending some busybox patch causing this? Can you check with bitbake -e?

I'm not seeing this one in my builds (and I was just refreshing some of our webOS OSE patches to apply cleanly on 1.31.1)

Regards,

Quoted 62 lines · Pierre-Jean Texier via Openembedded-commits

Hello All,

Quoted 9 lines · Le 15/02/2020 à 11:28, [email protected] a écrit :

busybox: Backport patches to support removal of __NR_clock_gettime

This helps compiling with musl on 32bit arches now that musl has switched to 64bit time_t

---
  ...all-wrappers-around-clock_gettime-closes-.patch | 120

+++++++++++++++++++++

Quoted 5 lines
  ...-date-Use-64-prefix-syscall-if-we-have-to.patch |  53 +++++++++
  ...-time-Use-64-prefix-syscall-if-we-have-to.patch |  43 ++++++++
  ...runsv-Use-64-prefix-syscall-if-we-have-to.patch |  46 ++++++++
  meta/recipes-core/busybox/busybox_1.31.1.bb        |   4 +
  5 files changed, 266 insertions(+)

this commit causes the following build issue :

ERROR: busybox-1.31.1-r0 do_patch: Command Error: 'quilt --quiltrc
/home/runner/work/kas-files/kas-files/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/busybox/1.31.1-r0/recipe-sysroot-native/etc/quiltrc

push' exited with 0 Output:
Applying patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch patching file Makefile.flags
patching file coreutils/date.c
Hunk #2 FAILED at 270.
1 out of 2 hunks FAILED -- rejects in file coreutils/date.c patching file libbb/time.c
patching file runit/runsv.c
Patch 0001-Remove-syscall-wrappers-around-clock_gettime-closes-.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in:

/home/runner/work/kas-files/kas-files/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/busybox/1.31.1-r0/temp/log.do_patch.62122
ERROR: Task

(/home/runner/work/kas-files/kas-files/poky/meta/recipes-core/busybox/busybox_1.31.1.bb:do_patch)

failed with exit code '1'

Tested on top of poky master (commit
7f2af8bd795ace46828952a7812f0bbdf26529a [1])

[1] - https://github.com/texierp/kas-files/runs/447729194

Thanks !

Regards
--
Pierre-Jean Texier
Embedded Linux Engineer
https://koncepto.io
--
_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits

#4 lore raw

Martin,

Le 15/02/2020 à 17:38, Martin Jansa a écrit :

Quoted 5 lines

Isn't it caused by some other layer prepending some busybox patch causing this? Can you check with bitbake -e?

I'm not seeing this one in my builds (and I was just refreshing some of our webOS OSE patches to apply cleanly on 1.31.1)

You're indeed right :(, after a quick check, it seems the build failure comes from the meta-riscv.

Thanks, and sorry for the noise.

Regards,

Signature · 3 lines
Pierre-Jean Texier
Embedded Linux Engineer
https://koncepto.io
#5 lore raw
Quoted 7 lines · Pierre-Jean Texier

Martin,

Quoted 3 lines · Martin Jansa

Isn't it caused by some other layer prepending some busybox patch causing this? Can you check with bitbake -e?

Quoted 8 lines
Quoted 2 lines

I'm not seeing this one in my builds (and I was just refreshing some of our webOS OSE patches to apply cleanly on 1.31.1)

You're indeed right :(, after a quick check, it seems the build failure comes from the meta-riscv.

Thanks, and sorry for the noise.

some of these patches were in meta-riscv which is fixed now.

Quoted 5 lines

Regards,
--
Pierre-Jean Texier
Embedded Linux Engineer
https://koncepto.io