Skip to content
Snippets Groups Projects
Commit 2c2b56f1 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Build a multicall binary instead of multiple binaries to reduce the storage footprint

parent 2291c369
No related branches found
No related tags found
2 merge requests!17Backport rust-coreutils 0.0.12-0+apertis6 to v2022,!14Build a multicall binary instead of multiple binaries to reduce the storage footprint
rust-coreutils (0.0.12-0+apertis3) UNRELEASED; urgency=medium
* Build a multicall binary instead of multiple binaries
to reduce the storage footprint
-- Dylan Aïssi <dylan.aissi@collabora.com> Thu, 17 Feb 2022 15:34:51 +0000
rust-coreutils (0.0.12-0+apertis2) apertis; urgency=medium
* d/p/cp-Avoid-following-a-destination-symlink-with-P.patch:
......
......@@ -5,6 +5,11 @@ include /usr/share/rustc/architecture.mk
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
VERSION := $(shell dpkg-parsechangelog -S Version|sed -e "s|.*~\(.*\)-.*|\1|g")
# Build a multicall binary instead of multiple binaries
# to reduce the storage footprint in Apertis
export MULTICALL = y
%:
dh $@ --buildsystem cargo
......
# Multicall binary
usr/local/bin/coreutils /bin/
# GNU/Coreutils: Installed in /bin/
usr/local/bin/cat /bin/
usr/local/bin/chgrp /bin/
......
......@@ -12,3 +12,7 @@ usr/bin/hashsum usr/bin/sha3-384sum
usr/bin/hashsum usr/bin/sha3-512sum
usr/bin/hashsum usr/bin/shake128sum
usr/bin/hashsum usr/bin/shake256sum
# Some binaries are installed in /bin/, some others in /usr/bin/
# but the upstream makefile doesn't handle this when it creates symlinks.
# So, we need to create another symlink to make binaries in /usr/bin/ working
bin/coreutils usr/bin/coreutils
docs/*.1
usr/local/man/man1/coreutils.1.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment