Skip to contentSkip to conversation

New: Only selected coreutils binaries are installed

Buildroot bugzilla at busybox.net 1 participant 4 messages May 2, 2019 – May 6, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=11816

Bug ID: 11816
Summary: Only selected coreutils binaries are installed
Product: buildroot
Version: 2019.02.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: pmorici at dev295.com
CC: buildroot at uclibc.org
Target Milestone: ---

Selecting the coreutils package doesn't install all the core utils and there is no way to select which ones to install.

It looks like only the binaries listed in the variable, COREUTILS_BIN_PROGS are installed into the target.

This came up because I need the coreutils version of base64 since the busybox version doesn't have the -w flag and there doesn't appear to be any elegant way of including that w/o editing the coreutils .mk file.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 11816] Only selected coreutils binaries are installed

https://bugs.busybox.net/show_bug.cgi?id=11816

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Peter Korsgaard <[email protected]> --- Can you be more specific? It works here for me:

make coreutils && ls -lah target/usr/bin/base64
..
lrwxrwxrwx 1 peko peko 9 May 2 09:16 target/usr/bin/base64 -> coreutils

find target -name base64
target/usr/bin/base64

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 11816] Only selected coreutils binaries are installed

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11816

--- Comment #2 from Pete Morici <[email protected]> ---
Upon closer inspection it seems what is happening is that when both busybox base64 and coreutils are selected they get installed to different paths. /bin is ahead of /usr/bin in PATH and so the busybox version takes precedent. Adding base64 to COREUTILS_BIN_PROGS causes the coreutils version to be installed in /bin instead of /usr/bin.

output/target/usr/bin/base64 -> coreutils
output/target/bin/base64 -> busybox

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 11816] Only selected coreutils binaries are installed

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=11816

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Peter Korsgaard <[email protected]> ---
Ahh yes. In general, your best bet is to enable BR2_ROOTFS_MERGED_USR to get rid of this class of issues.

With that said, I have pushed a commit adding base64 to _BIN_PROGS. I will also cherry pick it for the next 2019.02.x update.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.