[Slowroll] Building and signing KMPs
Hi there, I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec. This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...: [ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024. Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll? TIA, cheers. l8er manfred
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected
Note this failure originates due missing $SOURCE_DATE_EPOCH: [ 32s] WARNING could not set SOURCE_DATE_EPOCH, ensure mtime is in $TOPDIR/SOURCES/_scmsync.obsinfo or BUILD_CHANGELOG_TIMESTAMP is set in /.buildenv [ 32s] WARNING could not set SOURCE_DATE_EPOCH, ensure BUILD_RELEASE is set in /.buildenv [ 32s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected
[ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing
And in the end it caused the build failure. I have no idea why (not much experienced in packaging). Kind regards, Petr
[ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
TIA, cheers.
l8er manfred
Copying Bernhard as the owner of Slowroll and Robert as the owner of the slowroll/longterm kernel. Do you know if building/signing of KMPs is supported in Slowroll? On Wed, 27 Mar 2024, 10:21:23 +0100, Manfred Hollstein wrote:
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
TIA, cheers.
l8er manfred
On 28/03/2024 10.47, Manfred Hollstein wrote:
Copying Bernhard as the owner of Slowroll and Robert as the owner of the slowroll/longterm kernel.
Do you know if building/signing of KMPs is supported in Slowroll?
On Wed, 27 Mar 2024, 10:21:23 +0100, Manfred Hollstein wrote:
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
I think this was fallout from the recent work of Jan Zerebecki towards reproducible-builds with %source_date_epoch_from_changelog . I now applied the macro from Factory that only set it for projects under openSUSE: Please re-try the kmp build. Ciao Bernhard M.
Hi Bernhard, On Fri, 29 Mar 2024, 04:05:08 +0100, Bernhard M. Wiedemann wrote:
On 28/03/2024 10.47, Manfred Hollstein wrote:
Copying Bernhard as the owner of Slowroll and Robert as the owner of the slowroll/longterm kernel.
Do you know if building/signing of KMPs is supported in Slowroll?
On Wed, 27 Mar 2024, 10:21:23 +0100, Manfred Hollstein wrote:
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
I think this was fallout from the recent work of Jan Zerebecki towards reproducible-builds with %source_date_epoch_from_changelog . I now applied the macro from Factory that only set it for projects under openSUSE:
Please re-try the kmp build.
Now it fails even earlier: + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/broadcom-wl.spec [ 20s] error: line 62: Unknown tag: "home:manf" == "openSUSE:" 1 Line 62 in broadcom-wl.spec looks like this: %if %{defined kernel_module_package_buildreqs} BuildRequires: %{kernel_module_package_buildreqs} %endif This works for all other targets.
Ciao Bernhard M.
Cheers. l8er manfred
On 29. 03. 24, 9:47, Manfred Hollstein wrote:
Hi Bernhard,
On Fri, 29 Mar 2024, 04:05:08 +0100, Bernhard M. Wiedemann wrote:
On 28/03/2024 10.47, Manfred Hollstein wrote:
Copying Bernhard as the owner of Slowroll and Robert as the owner of the slowroll/longterm kernel.
Do you know if building/signing of KMPs is supported in Slowroll?
On Wed, 27 Mar 2024, 10:21:23 +0100, Manfred Hollstein wrote:
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
I think this was fallout from the recent work of Jan Zerebecki towards reproducible-builds with %source_date_epoch_from_changelog . I now applied the macro from Factory that only set it for projects under openSUSE:
Please re-try the kmp build.
Now it fails even earlier:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/broadcom-wl.spec [ 20s] error: line 62: Unknown tag: "home:manf" == "openSUSE:" 1
Line 62 in broadcom-wl.spec looks like this:
%if %{defined kernel_module_package_buildreqs} BuildRequires: %{kernel_module_package_buildreqs} %endif
This works for all other targets.
Hmm, @Bernhard, should that: %source_date_epoch_from_changelog Y be %source_date_epoch_from_changelog 1 ? -- js suse labs
There was a syntax error in the prjconf of openSUSE:Slowroll:Base and that caused similar OBS trouble in another place. It is fixed now. Adrian triggered a "deep check" for the other project to get good. On 03/04/2024 08.43, Jiri Slaby wrote:
On 29. 03. 24, 9:47, Manfred Hollstein wrote:
Hi Bernhard,
On Fri, 29 Mar 2024, 04:05:08 +0100, Bernhard M. Wiedemann wrote:
On 28/03/2024 10.47, Manfred Hollstein wrote:
Copying Bernhard as the owner of Slowroll and Robert as the owner of the slowroll/longterm kernel.
Do you know if building/signing of KMPs is supported in Slowroll?
On Wed, 27 Mar 2024, 10:21:23 +0100, Manfred Hollstein wrote:
Hi there,
I build the old broadcom-wl kmp for a variety of OS/kernel combinations. With Slowroll however it fails when the built rpms will be signed using a generated pesign.spec.
This is from https://build.opensuse.org/public/build/home:manfred-h:KMPs/openSUSE_Slowrol...:
[ 33s] /etc/profile.d/suse-buildsystem.sh: line 53: test: : integer expression expected [ 33s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/pesign-repackage.spec [ 33s] error: source_date_epoch_from_changelog set but %changelog is missing [ 33s] [ 33s] RPM build errors: [ 33s] source_date_epoch_from_changelog set but %changelog is missing [ 33s] ### VM INTERACTION START ### [ 34s] [ 28.473717][ T1] sysrq: Power Off [ 34s] [ 28.474748][ T8] reboot: Power down [ 34s] ### VM INTERACTION END ### [ 34s] [ 34s] i02-ch1d failed "build pesign-repackage.spec" at Wed Mar 27 08:11:09 UTC 2024.
Perhaps Bernhard is reading this, is there anything special building a kmp for Slowroll?
I think this was fallout from the recent work of Jan Zerebecki towards reproducible-builds with %source_date_epoch_from_changelog . I now applied the macro from Factory that only set it for projects under openSUSE:
Please re-try the kmp build.
Now it fails even earlier:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:manfred-h:KMPs/openSUSE_Slowroll/9aa3d5cf0236303bea6b29ee2b8befdc-broadcom-wl' /home/abuild/rpmbuild/SOURCES/broadcom-wl.spec [ 20s] error: line 62: Unknown tag: "home:manf" == "openSUSE:" 1
Line 62 in broadcom-wl.spec looks like this:
%if %{defined kernel_module_package_buildreqs} BuildRequires: %{kernel_module_package_buildreqs} %endif
This works for all other targets.
Hmm, @Bernhard, should that: %source_date_epoch_from_changelog Y be %source_date_epoch_from_changelog 1 ?
Hi Bernhard, On Wed, 03 Apr 2024, 11:40:41 +0200, Bernhard M. Wiedemann wrote:
There was a syntax error in the prjconf of openSUSE:Slowroll:Base and that caused similar OBS trouble in another place. It is fixed now.
Adrian triggered a "deep check" for the other project to get good.
thanks for looking into it. There is still something fishy... While the following command osc buildinfo home:manfred-h:KMPs broadcom-wl openSUSE_Slowroll x86_64 doesn't show any traces of kernel-syms-rt, the UI at https://build.opensuse.org/package/show/home:manfred-h:KMPs/broadcom-wl says "unresolvable: nothing provides kernel-syms-rt"! Looking at the .spec file however clearly shows that it should *not* be required: %if 0%{?sle_version} >= 150400 BuildRequires: kernel-syms-rt %endif Any idea? TIA, cheers. l8er manfred
On Apr 03 2024, Manfred Hollstein wrote:
thanks for looking into it. There is still something fishy... While the following command
osc buildinfo home:manfred-h:KMPs broadcom-wl openSUSE_Slowroll x86_64
doesn't show any traces of kernel-syms-rt, the UI at
https://build.opensuse.org/package/show/home:manfred-h:KMPs/broadcom-wl
says "unresolvable: nothing provides kernel-syms-rt"! Looking at the .spec file however clearly shows that it should *not* be required:
You can force re-evaluation of dependencies by disabling build for a moment. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Hi Andreas, On Wed, 03 Apr 2024, 13:00:45 +0200, Andreas Schwab wrote:
On Apr 03 2024, Manfred Hollstein wrote:
thanks for looking into it. There is still something fishy... While the following command
osc buildinfo home:manfred-h:KMPs broadcom-wl openSUSE_Slowroll x86_64
doesn't show any traces of kernel-syms-rt, the UI at
https://build.opensuse.org/package/show/home:manfred-h:KMPs/broadcom-wl
says "unresolvable: nothing provides kernel-syms-rt"! Looking at the .spec file however clearly shows that it should *not* be required:
You can force re-evaluation of dependencies by disabling build for a moment.
thanks a lot for that hint! I never heard about it, but this goes into my list of notes ;) Cheers. l8er manfred
participants (5)
-
Andreas Schwab
-
Bernhard M. Wiedemann
-
Jiri Slaby
-
Manfred Hollstein
-
Petr Vorel