Bug 1995915
| Summary: | don't use pre-generated documentation when building NetworkManager package | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Thomas Haller <thaller> |
| Component: | NetworkManager | Assignee: | Thomas Haller <thaller> |
| Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.5 | CC: | bgalvani, ferferna, fge, fpokryvk, lrintel, rkhan, sukulkar, till, vbenes |
| Target Milestone: | beta | Keywords: | Reopened, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | NetworkManager-1.39.3-1.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-08 10:07:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2052721 | ||
| Bug Blocks: | |||
| Deadline: | 2021-12-20 | ||
|
Description
Thomas Haller
2021-08-20 07:14:16 UTC
We are pre-generating documentation to avoid multilib conflicts: http://pkgs.devel.redhat.com/cgit/rpms/NetworkManager/commit/?id=829341cbed6f7e59887e2e721edd8adf53350611 In other packages, like nm-applet, we also had multilib conflicts and they were fixed in the latest versions of build tools (gtk-doc and xslt). So, I think it would be worth to try to switch back to generating the documentation during build and see if there are still issues. In this way we can ensure that the documentation is always up-to-date, and less maintenance effort is required. This rpm spec related issue does not require bug tracking. Just use existing rebase bug to change the SPEC file, no QE or errata effort required for this issue. this issue was not fixed. we ship RPMs, thus, the way we build our RPM (or problems with that) are subject to a rhbz. Even if the issue had only a very remote practical application for RHEL (which it has not), then we still track our tasks (also) a rhbz. Just closing the bug is wrong. scratch build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42456262 dist-git patch: <<<<< From a1acb0c779c0b1f37bf504af198dc81bc2c837d3 Mon Sep 17 00:00:00 2001 From: Thomas Haller <thaller> Date: Tue, 18 Jan 2022 10:17:12 +0100 Subject: [PATCH 1/1] generate docs during build instead of using pre-generated (rh #1995915) Resolves: #1995915 --- 9999-fix-pregen-doc.patch | 44 --------------------------------------- NetworkManager.spec | 14 +++++-------- 2 files changed, 5 insertions(+), 53 deletions(-) delete mode 100644 9999-fix-pregen-doc.patch diff --git a/9999-fix-pregen-doc.patch b/9999-fix-pregen-doc.patch deleted file mode 100644 index 4d3bca9fe257..000000000000 --- a/9999-fix-pregen-doc.patch +++ /dev/null @@ -1,44 +0,0 @@ -From e1f76a6472f68c52b90679d9fe679a2b1a93b78b Mon Sep 17 00:00:00 2001 -From: Thomas Haller <thaller> -Date: Tue, 27 Aug 2019 15:47:32 +0200 -Subject: [PATCH] patch documentation with the proper default values - -We don't regenerate the documentation for RHEL builds, but -the docs from the tarball are generated with a certain set -of defaults. - -Patch the man pages with the proper values. ---- - docs/api/html/NetworkManager.conf.html | 2 +- - man/NetworkManager.conf.5 | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/docs/api/html/NetworkManager.conf.html b/docs/api/html/NetworkManager.conf.html -index 765ff10ad2..2ea978c0d5 100644 ---- a/docs/api/html/NetworkManager.conf.html -+++ b/docs/api/html/NetworkManager.conf.html -@@ -658,7 +658,7 @@ unmanaged-devices=mac:00:22:68:1c:59:b1;mac:00:1E:65:30:D1:C4;interface-name:eth - are "<code class="literal">syslog</code>" and "<code class="literal">journal</code>". - When NetworkManager is started with "<code class="literal">--debug</code>" - in addition all messages will be printed to stderr. -- If unspecified, the default is "<code class="literal">syslog</code>". -+ If unspecified, the default is "<code class="literal">journal</code>". - </p></td> - </tr> - <tr> -diff --git a/man/NetworkManager.conf.5 b/man/NetworkManager.conf.5 -index fc32393e09..f135e3a9c3 100644 ---- a/man/NetworkManager.conf.5 -+++ b/man/NetworkManager.conf.5 -@@ -664,7 +664,7 @@ INFO\&. - .PP - \fIbackend\fR - .RS 4 --The logging backend\&. Supported values are "syslog" and "journal"\&. When NetworkManager is started with "\-\-debug" in addition all messages will be printed to stderr\&. If unspecified, the default is "syslog"\&. -+The logging backend\&. Supported values are "syslog" and "journal"\&. When NetworkManager is started with "\-\-debug" in addition all messages will be printed to stderr\&. If unspecified, the default is "journal"\&. - .RE - .PP - \fIaudit\fR --- -2.31.1 - diff --git a/NetworkManager.spec b/NetworkManager.spec index afd4c340d505..0a5046909203 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -7,7 +7,7 @@ %global epoch_version 1 %global rpm_version 1.36.0 %global real_version 1.35.4 -%global release_version 0.4 +%global release_version 0.5 %global snapshot %{nil} %global git_sha %{nil} @@ -60,8 +60,7 @@ %bcond_without ppp %bcond_without nmtui %bcond_without nm_cloud_setup -# on RHEL we don't regenerate the documentation -%bcond_with regen_docs +%bcond_without regen_docs %if %{bcond_default_debug} %bcond_without debug %else @@ -195,12 +194,6 @@ Patch2: 0002-firewall-Default-to-iptables-backend-to-preserve-behavior.patch # Bugfixes that are only relevant until next rebase of the package. #Patch1000: 1000-some.patch -# The pregenerated docs contain default values and paths that depend -# on the configure options when creating the source tarball. -# As last step, patch the documentation with the proper defaults -# for RHEL. -Patch9999: 9999-fix-pregen-doc.patch - Requires(post): systemd %if 0%{?fedora} || 0%{?rhel} > 7 Requires(post): systemd-udev @@ -1169,6 +1162,9 @@ fi %changelog +* Tue Jan 18 2022 Thomas Haller <thaller> - 1:1.36.0-0.5 +- generate docs during build instead of using pre-generated (rh #1995915) + * Wed Jan 12 2022 Wen Liang <wenliang> - 1:1.36.0-0.4 - Upgrade to 1.35.4 release (development) - ipv4ll: fix assert on external LL address removal (rh #2028404) -- 2.34.1 <<<<< so, there is the potential that this causes multilib issues. But I don't think we will find out, without doing it. And then, the fix for multilib issues might not be to use pre-generate docs, but to fix the actual problems (e.g. where docs are not generated reproducible). I propose to do this, ASAP. The dist-git patch LGTM. There were multilib issues in the past caused by gtkdoc generating different HTMLs on different architectures, but AFAIK those problems have been solved. I updated ITM. There is no MR, beyond comment 7. there is a problem. See https://rpmdiff.engineering.redhat.com/run/528515/3/ Back to NEW (but keep on errata. We must fix this, because the current/latest RHEL build no longer pre-generates the docs) (In reply to Thomas Haller from comment #14) > there is a problem. See https://rpmdiff.engineering.redhat.com/run/528515/3/ > > Back to NEW (but keep on errata. We must fix this, because the > current/latest RHEL build no longer pre-generates the docs) the problem is: NetworkManager-libnm-devel: File /usr/share/gtk-doc/html/libnm/libnm-nm-wifi-p2p-peer.html got added to aarch64 i686 File /usr/share/gtk-doc/html/libnm/NMWifiP2PPeer.html got removed from aarch64 i686 (In reply to Thomas Haller from comment #15) > (In reply to Thomas Haller from comment #14) > > there is a problem. See https://rpmdiff.engineering.redhat.com/run/528515/3/ > > > > Back to NEW (but keep on errata. We must fix this, because the > > current/latest RHEL build no longer pre-generates the docs) > > the problem is: > > NetworkManager-libnm-devel: > File /usr/share/gtk-doc/html/libnm/libnm-nm-wifi-p2p-peer.html got added > to aarch64 i686 > File /usr/share/gtk-doc/html/libnm/NMWifiP2PPeer.html got removed from > aarch64 i686 this is a gtk-doc issue (bug 2052721). change reverted: https://src.osci.redhat.com/rpms/NetworkManager/c/5d41d396f622c0c44f2f42e64444f4c0004a8fd8?branch=rhel-8.6.0 Postponing to rhel-8.7. fail verification for "1.39.2-2" due to https://rpmdiff.engineering.redhat.com/run/536092/17/ this is already fixed upstream by https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/f1f8ae5a833cd22f59b2f5b880367af484cd9594, the next update on rhel-8.7 will fix this, and we can move to ON_QA again. Back to POST. now it seems good: https://rpmdiff.engineering.redhat.com/run/536996/3/ Back to ON_QA. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (NetworkManager bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:7680 |