https://bugzilla.redhat.com/show_bug.cgi?id=2068556
Bug ID: 2068556
Summary: Allow installing envsubst binary without unnecessary
dependencies
Product: Fedora
Version: rawhide
Status: NEW
Component: gettext
Assignee: suanand(a)redhat.com
Reporter: hhorak(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: dueno(a)redhat.com, i18n-bugs(a)lists.fedoraproject.org,
jjanco(a)redhat.com, nphilipp(a)redhat.com,
petersen(a)redhat.com, praiskup(a)redhat.com,
suanand(a)redhat.com
Target Milestone: ---
Classification: Fedora
Description of problem:
TL;DR: this is a request to allow install envsubst binary without other
unnecessary stuff from the gettext package.
Background:
The tool envsubst seems to be quite handy when working with configuration files
in environments with a minimal footprint, like container images.
Containers are typically configured via environment variables, which are then
put into files. We therefore often use envsubst to evaluate some variables in
the config files.
However, when installing entire gettext for having envsubst binary available,
it pulls in additional 7MB.
This is similar to what is being done when building small containers
(installing into a directory):
$> mkdir rootfs-with-gettext rootfs-without-gettext
$> PACKAGES="bash"
$> dnf -y --releasever 35 --setopt install_weak_deps=false --nodocs
--installroot $(pwd)/rootfs-without-gettext --disablerepo='*'
--enablerepo=fedora install $PACKAGES
$> PACKAGES="bash gettext"
$> dnf -y --releasever 35 --setopt install_weak_deps=false --nodocs
--installroot $(pwd)/rootfs-with-gettext --disablerepo='*' --enablerepo=fedora
install $PACKAGES
$> rm -rf rootfs-without-gettext/var/cache/dnf/*
$> rm -rf rootfs-with-gettext/var/cache/dnf/*
$> du -d 0 -h rootfs-without-gettext
25M rootfs-without-gettext
$> du -d 0 -h rootfs-with-gettext
38M rootfs-with-gettext
Re-implementing the envsubst does not seem to be necessary, as it might likely
work without additional stuff from the gettext package.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2068556