~mirabilos/klibc/master

  • Committer: Ben Hutchings
  • Date: 2023-07-27 21:42:25 UTC
  • Revision ID: git-v1:d16525038612be94cf2573c02eac8c7f76321f62
Tags: klibc-2.0.13
[klibc] Install command links as appropriate

We build gzip to support being called as "gunzip" or "zcat", and
similarly we build halt to support being called as "poweroff" or
"reboot".  In the build directory, we create the aliases as links
to the same binary.

When installing, however, we pass all the names for the same binary to
the "install" command, creating multiple copies of it in the install
directory.

To fix this:

- Define an install_links command that creates links as specified in
  an install-links-y variable.
- Invoke install_links after installing binaries.
- In usr/gzip/Kbuild and usr/utils/Kbuild, specify the links in
  install-links-y instead of install-y.

Reported-by: Benjamin Drung <benjamin.drung@canonical.com>
References: https://bugs.launchpad.net/ubuntu/+source/klibc/+bug/2028571
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Filename Latest Rev Last Changed Committer Comment Size
..
contrib 951 19 years ago H. Peter Anvin Merge with terminus.zytor.com:/home/hpa/klibc/offi Diff
klcc 971 19 years ago H. Peter Anvin Merge with git+ssh://hera.kernel.org/pub/scm/libs/ Diff
scripts 971 19 years ago H. Peter Anvin Merge with git+ssh://hera.kernel.org/pub/scm/libs/ Diff
usr 971 19 years ago H. Peter Anvin Merge with git+ssh://hera.kernel.org/pub/scm/libs/ Diff
.gitignore 1544 16 years ago H. Peter Anvin klibc: Update .gitignore files Bring the .gitigno 288 bytes Diff Download File
defconfig 2103 5 years ago Ben Hutchings [klibc] arm: Enable CONFIG_ARM_EABI by default Si 211 bytes Diff Download File
File git-rm-for-kernel.sh 1600 14 years ago H. Peter Anvin [klibc] Replace cg-rm-for-kernel.sh with git-rm-fo 362 bytes Diff Download File
Kbuild 1210 18 years ago H. Peter Anvin [klibc] Reorganize the standalone klibc tree to ma 418 bytes Diff Download File
klibc.spec.in 2205 2 years ago Ben Hutchings [klibc] Work around ELF loader bugs when executabl 3.9 KB Diff Download File
Makefile 2170 4 years ago Ben Hutchings [klibc] Move linker option probing to Kbuild.klibc 5.1 KB Diff Download File
README 2097 5 years ago Ben Hutchings [klibc] README: Point the mailing list URL back to 811 bytes Diff Download File