From: Herton R. Krzesinski <[email protected]>

redhat: ship all the changelog from source git into kernel-doc

Bugzilla: INTERNAL
Upstream Status: RHEL only

In the previous change, the rpm changelog will be trimmed due size
for each rpm binary on each minor release bump. However, someone may
still want to see the full changelog since the start of a given stream,
thus provide it in the src.rpm and through kernel-doc.

Signed-off-by: Herton R. Krzesinski <[email protected]>

diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -699,6 +699,8 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source 
dist-configs-check
                kernel-local \
                dracut-virt.conf \
                $(SOURCES)/
+       @cat $$(ls -1 $(SPECPACKAGE_NAME).changelog-* | sort -t '.' -k 3 -n -r) 
\
+               | xz > $(SOURCES)/kernel.changelog.xz
        @if [ "$(RELEASED_KERNEL)" -ne 0 ]; then \
                cp keys/redhatsecureboot{301,501,ca5,ca1}.cer $(SOURCES)/; \
                cp keys/secureboot_{ppc,s390}.cer $(SOURCES)/; \
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -799,7 +799,7 @@ BuildRequires: tpm2-tools
 Source0: linux-%{tarfile_release}.tar.xz
 
 Source1: Makefile.rhelver
-
+Source2: kernel.changelog.xz
 
 # Name of the packaged file containing signing key
 %ifarch ppc64le
@@ -2918,6 +2918,7 @@ 
docdir=$RPM_BUILD_ROOT%{_datadir}/doc/kernel-doc-%{specversion}-%{pkgrelease}
 # copy the source over
 mkdir -p $docdir
 tar -h -f - --exclude=man --exclude='.*' -c Documentation | tar xf - -C $docdir
+cp %{SOURCE2} $docdir/
 
 # with_doc
 %endif

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2838
--
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to