Skip to contentSkip to conversation

ca-certificates busybox incompatibility

DISCUSSION [email protected] 2 participants 2 messages Apr 23, 2021

lore
Share & tools
lore
#0 lore raw

The meta/recipes-support/ca-certificates/update-ca-certificates-support-Toybox.patch file replaces the use of mktemp -t with mktemp --tmpdir which is incompatible with BusyBox's mktemp.

It seems to be to create compatibility with toybox - however toybox's help online doesn't mention --tmpdir, only -t as used before the patch.

We've just created a bbappend to remove the patch but it seems like something other people must have been coming across... it shows up like this when we're using deb packages:

Setting up ca-certificates (20210119-r0) ...
mktemp: unrecognized option '--tmpdir'
BusyBox v1.33.0 () multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]
dpkg: error processing package ca-certificates (--configure):

Has anyone else seen this issue? -t does seem to be deprecated in coreutils but it is at least present in busybox and toybox.

Seems to me this patch could just be removed, and not cause any issues?

Cheers

Will

#1 lore raw
Quoted 17 lines · Will Stott

The meta/recipes-support/ca-certificates/update-ca-certificates-support-Toybox.patch file replaces the use of mktemp -t with mktemp --tmpdir which is incompatible with BusyBox's mktemp.

It seems to be to create compatibility with toybox - however toybox's help online doesn't mention --tmpdir, only -t as used before the patch.

We've just created a bbappend to remove the patch but it seems like something other people must have been coming across... it shows up like this when we're using deb packages:

Setting up ca-certificates (20210119-r0) ...
mktemp: unrecognized option '--tmpdir'
BusyBox v1.33.0 () multi-call binary.

Quoted 8 lines

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]
dpkg: error processing package ca-certificates (--configure):

Has anyone else seen this issue? -t does seem to be deprecated in coreutils but it is at least present in busybox and toybox.

Seems to me this patch could just be removed, and not cause any issues?

Sounds like it probably could/should be. Has someone asked upstream busybox about this? Would be useful to understand their direction here...

If they'd take a patch to use --tmpdir that would solve some of the issues.

Cheers,

Richard