Page MenuHomeFreeBSD

Add /bin/sh and /bin/csh to native-xtools target. This speeds up test builds of ports-mgmt/pkg from 550s to 350s
ClosedPublic

Authored by sbruno on Nov 11 2014, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 10 2026, 9:55 AM
Unknown Object (File)
May 10 2026, 9:55 AM
Unknown Object (File)
May 6 2026, 1:15 PM
Unknown Object (File)
May 6 2026, 12:56 PM
Unknown Object (File)
May 6 2026, 12:56 PM
Unknown Object (File)
May 6 2026, 9:40 AM
Unknown Object (File)
May 6 2026, 9:40 AM
Unknown Object (File)
May 5 2026, 7:03 PM
Subscribers
None

Details

Reviewers
bapt
imp
bdrewery
Summary

add static bin/sh and bin/csh

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

sbruno retitled this revision from to Add /bin/sh and /bin/csh to native-xtools target. This speeds up test builds of ports-mgmt/pkg from 550s to 350s.
sbruno updated this object.
sbruno edited the test plan for this revision. (Show Details)
sbruno added reviewers: imp, bapt, bdrewery.
bdrewery edited edge metadata.

Somehow it needs to be documented that using pkg(8) in a native-xtools-built chroot/jail must set ABI_FILE=/usr/bin/file (example) to avoid it reading /bin/sh.

This revision is now accepted and ready to land.Nov 11 2014, 9:58 PM
In D1146#6, @imp wrote:

Why csh too?

That appears to be the default shell for root. I made the assumption that sh and csh should be converted to static amd64 binaries to ensure that I "catch them all" POKEMON style.

sbruno edited edge metadata.

Add /sbin/md5 and friends to the list of binaries. These are called frequently during the builds
and emulating the math of the sums is expensive.

Updating D1146: Add /bin/sh and /bin/csh to native-xtools target. This speeds up test builds

of ports-mgmt/pkg from 550s to 350s

Forgot to add a mkdir for /sbin

Updating D1146: Add /bin/sh and /bin/csh to native-xtools target. This speeds up test builds

of ports-mgmt/pkg from 550s to 350s

imp edited edge metadata.

I'm good with these. Still don't think /bin/csh is used, since that's just an interactive shell for root, but it's inclusion is small enough to not be a big deal...

Committed at svn r274490.