Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glibc: re-enable programs, remove those we don't want #1686

Merged
merged 1 commit into from
Jun 14, 2017
Merged

glibc: re-enable programs, remove those we don't want #1686

merged 1 commit into from
Jun 14, 2017

Conversation

MilhouseVH
Copy link
Contributor

This restores ldd, getent and locale after they were dropped by #1616, as they're kinda useful...

I've used a simple nested loop, for simplicity. I could have used something more fancy such as:

  findignore=
  for gib in $GLIBC_INCLUDE_BIN; do
    findignore+=" -not -name ${gib}"
  done
  find $INSTALL/usr/bin -type f ${findignore} -delete

but from a scalability point of view I didn't want to get into a situation where we might be calling find with a large number of -not foo arguments (even if that is unlikely) and maybe hit some sort of limit.

So, simple is best.

The combined uncompressed size of these 3 binaries is: 55KB (RPi/RPi2) and 69KB (Generic)

@lrusak lrusak merged commit 9fdb1b0 into LibreELEC:master Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants