rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
384 stars 235 forks source link

Install packages using --no-docs #1389

Closed xsuchy closed 2 months ago

xsuchy commented 5 months ago

We can make the buildroot (and bootstrap chroot) smaller by calling DNF with --no-docs. Documentation should not be used for anything in runtime. And I do not recall any package breaking this rule. IMHO it should not harm anyone.

Conan-Kudo commented 4 months ago

It is mainly a problem if you are using the mock chroot interactively (ie. mock --shell). Otherwise, it's probably fine.

xsuchy commented 2 months ago

Closing as not a good idea. See the linked PR for counter examples.

praiskup commented 2 months ago

Anyway, thank you very much for this experiment!

xsuchy commented 2 months ago

Here is a link mailing list archive with more examples https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TFEDXFQIXK6MCOXMTXIH74AAJ7YULLEX/