-
Notifications
You must be signed in to change notification settings - Fork 232
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
do not install documentation files in buildroot #1462
Conversation
I'm neutral (or maybe a slight -1) to this, because "runtime" != "buildtime" (we should have a policy first), and it breaks me as the |
We have the policy: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_documentation
|
I mean that the build time of Foo can (in theory) depend on docs from BuildRequires: Bar (dunno, some build time or installation decisions need to be done?). We should directly say in policy that documentation files are not installed at package build time, so the build-time scripting should not depend on others' docs files. |
During buildtime of FOO when it install the build dependency BAR then it is runtime for BAR. |
From the docs again to illustrate my point:
When we package the software (my interpretation is that we mean Foo here, not the whole Fedora package set), we must make sure that the software (Foo) works even if the corresponding %doc files are not installed (note the somewhat unfortunate or intentional?
Yes, and the Bar as the software is OK as well (as the SW works fine). Just the build-time of Foo (which is OK as well) might newly get affected. |
Some Python packages build documentation and they use documentation of other Python packages to generate proper links. Fox example:
|
This is probably going to be a problem, since this filters out all docdir files and package builds can and do chain on doc files when building documentation. |
I am using Mock to test RPM installation. Not installing documentation would possibly result in different experience then regular users have. |
The example from @hroncok is good enough for me to scratch this idea. I am going to close this PR. |
Bigger picture I think we should be moving RPM builds into proper podman/Kube containers, not where mock is a custom container runtime and buildroot construction tool itself. And if we do that as noted by people elsewhere it raises the obvious problem that the default |
Fixes: #1389