-
Notifications
You must be signed in to change notification settings - Fork 1.2k
doc: Prebundle docs on RHEL & CentOS #22693
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
doc: Prebundle docs on RHEL & CentOS #22693
Conversation
27b7c65 to
5a641eb
Compare
|
@martinpitt any hints as to how this works so we can build the docs with AsciiDoctor for RHEL and CentOS Stream without having to rely on asciidoc-py? |
martinpitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
5a641eb to
469be64
Compare
|
Stream likely fails due to error: Bad exit status from /var/tmp/rpm-tmp.zbhJ8p (%build)
Macro expanded in comment on line 31: %{centos} explicitly
Bad exit status from /var/tmp/rpm-tmp.zbhJ8p (%build)
RPM build errors: |
martinpitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I included the solution to the failed CentOS builds in a thread.
469be64 to
3b442d4
Compare
martinpitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost!
3b442d4 to
3674ecf
Compare
|
/packit build |
90647fd to
7f38fce
Compare
|
@Venefilyn I took the liberty to update this PR. I fixed the installation in the spec file, and also took care of the missing manpages. Now |
7f38fce to
7a17a65
Compare
|
jajaja. Fixed, and took the opportunity to clean lintian a bit. |
7a17a65 to
b284b98
Compare
With this we can get rid of asciidoc-py dependency altogether and instead rely on the docs being prebundled before installation. Include the built guide and manpages into the release tarball for that. Fixes cockpit-project#22670 https://issues.redhat.com/browse/COCKPIT-1370 Signed-off-by: Freya Gustavsson <[email protected]> Co-Authored-By: Martin Pitt <[email protected]>
These don't apply any more with the move from docbook to asciidoc. Fixes three "unused-override" lintian infos.
b284b98 to
fd1911e
Compare
|
Updated the commit message to include refs to the upstream issue and Jira ticket. |
martinpitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Venefilyn ! LGTM now. As I meddled with this PR, can you please cross-check and land if you are happy?
| %define manbundledir %{_builddir}/%{name}-%{version}/doc/output/man | ||
| install -D -p -m 644 %{manbundledir}/cockpit.1 %{buildroot}%{_mandir}/man1/cockpit.1 | ||
| install -D -p -m 644 %{manbundledir}/cockpit-bridge.1 %{buildroot}%{_mandir}/man1/cockpit-bridge.1 | ||
| install -D -p -m 644 %{manbundledir}/cockpit-desktop.1 %{buildroot}%{_mandir}/man1/cockpit-desktop.1 | ||
| install -D -p -m 644 %{manbundledir}/cockpit.conf.5 %{buildroot}%{_mandir}/man5/cockpit.conf.5 | ||
| install -D -p -m 644 %{manbundledir}/cockpit-ws.8 %{buildroot}%{_mandir}/man8/cockpit-ws.8 | ||
| install -D -p -m 644 %{manbundledir}/cockpit-tls.8 %{buildroot}%{_mandir}/man8/cockpit-tls.8 | ||
| install -D -p -m 644 %{manbundledir}/pam_ssh_add.8 %{buildroot}%{_mandir}/man8/pam_ssh_add.8 | ||
| %endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for us to iterate over files and install? Or install all files somehow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Venefilyn done in #22747
Venefilyn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
With this we can get rid of asciidoc-py dependency altogether and
instead rely on the docs being prebundled before installation.
Fixes #22670
https://issues.redhat.com/browse/COCKPIT-1370
Signed-off-by: Freya Gustavsson [email protected]