Skip to contentSkip to conversation

find: unrecognized: -printf

DISCUSSION Poornesh G ( India - Bangalore ) 4 participants 4 messages Oct 20, 2023

lore
Share & tools
lore
#0 lore raw

Greetings !

I am trying to add "etckeeper"  to yocto . I have written a recipe and added it in my Rootfs . But when I try to commit , I am getting the below error log:

-------------------------------------------------------------------------------------------------

root@imx6ulevk:~# etckeeper commit "First commit of my /etc directory"

find: unrecognized: -printf

BusyBox v1.31.0 (2023-10-18 07:46:50 UTC) multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

-------------------------------------------------------------------------------------------------

I tried enabling the -printf for find in busybox but I could not able to see in busybox menuconfig . Requesting your suggestions to resolve this issue.

Thanks in advance

#1 lore raw

In case busybox's "find" utility is not sufficient for you, you could disable "find" in busybox's config, and add the full version of find to your image (recipe is called findutils).

Quoted 30 lines · Poornesh G ( India - Bangalore )

Greetings !

I am trying to add "etckeeper"  to yocto . I have written a recipe and added it in my Rootfs . But when I try to commit , I am getting the below error log:

-------------------------------------------------------------------------------------------------

root@imx6ulevk:~# etckeeper commit "First commit of my /etc directory"

find: unrecognized: -printf

BusyBox v1.31.0 (2023-10-18 07:46:50 UTC) multi-call binary.

Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]

-------------------------------------------------------------------------------------------------

I tried enabling the -printf for find in busybox but I could not able to see in busybox menuconfig . Requesting your suggestions to resolve this issue.

Thanks in advance

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61426): https://lists.yoctoproject.org/g/yocto/message/61426
Mute This Topic: https://lists.yoctoproject.org/mt/102076007/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 2 lines · Gyorgy Sarvari via lists.yoctoproject.org

In case busybox's "find" utility is not sufficient for you, you could disable "find" in busybox's config, and add the full version of find to your image (recipe is called findutils).

There is no need to disable find in busybox, simply make the etckeeper recipe RDEPEND on findutils.

Ross

#3 lore raw
Quoted 6 lines · Ross Burton
Quoted 2 lines · Gyorgy Sarvari via lists.yoctoproject.org

In case busybox's "find" utility is not sufficient for you, you could disable "find" in busybox's config, and add the full version of find to your image (recipe is called findutils).

There is no need to disable find in busybox, simply make the etckeeper recipe RDEPEND on findutils.

Alternatively, make etckeeper scripts not use the find options that busybox does not support, that might make it portable too.

Quoted 13 lines

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to.
View/Reply Online (#61429): https://lists.yoctoproject.org/g/yocto/message/61429
Mute This Topic: https://lists.yoctoproject.org/mt/102076007/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6692173/1997914/1837948400/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-