[opensuse-kernel] Compiling Kernel:Stable kernel-default on OBS -- "version mismatch" with just-built kernel-source ?
I'm building a Kernel:stable instance -- as closely as possible, a project clone of the Kernel:stable repo -- that I can patch, etc locally in my home: instance. It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg, https://build.opensuse.org/project/show/home:pgnd:Kernel:stable ; its parent kernel-source build fine. But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK. The build log shows the fail as a 'Kernel release mismatch', https://build.opensuse.org/package/live_build_log/home:pgnd:Kernel:stable/ke... ... [ 58s] ++ make -s kernelrelease ARCH=x86 --output-sync -j8 [ 60s] + krel=5.0.8-21.g7bd8353-default [ 60s] + '[' 5.0.8-21.g7bd8353-default '!=' 5.0.9-21.g7bd8353-default ']' [ 60s] + echo 'Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default' [ 60s] Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default [ 60s] + exit 1 [ 60s] error: Bad exit status from /var/tmp/rpm-tmp.kow8W6 (%prep) ... At the time of the fail, kernel-source _had_ built successfully; packages _were_ available as v5.0.9x, https://build.opensuse.org/package/binaries/home:pgnd:Kernel:stable/kernel-s... As I understand it, kernel-default is simply derived from my obs instance's kernel-source, https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-... <link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" /> To rebuild the entire project, I exec osc wipebinaries home:pgnd:Kernel:stable osc rebuildpac --all home:pgnd:Kernel:stable I thought that's sufficient to clean + rebuild all from scratch ... but it simply re-failed. Other than from a build remnant _oustide_ my OBS build root, I can't see where the "mismatched" v5.0.*8* is originating. What do I need to do to eliminate/avoid this FAIL, & ensure that my kernel-default builds are in-sync with, and using, the parent kernel-source sources? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 4/22/19 12:59 PM, PGNet Dev wrote:
I'm building a Kernel:stable instance -- as closely as possible, a project clone of the Kernel:stable repo -- that I can patch, etc locally in my home: instance.
I think you're probably missing the bit that keeps the release numbers in lockstep. Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" /> Where project is your own project. -Jeff
It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg,
https://build.opensuse.org/project/show/home:pgnd:Kernel:stable
; its parent kernel-source build fine.
But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK.
The build log shows the fail as a 'Kernel release mismatch',
https://build.opensuse.org/package/live_build_log/home:pgnd:Kernel:stable/ke...
... [ 58s] ++ make -s kernelrelease ARCH=x86 --output-sync -j8 [ 60s] + krel=5.0.8-21.g7bd8353-default [ 60s] + '[' 5.0.8-21.g7bd8353-default '!=' 5.0.9-21.g7bd8353-default ']' [ 60s] + echo 'Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default' [ 60s] Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default [ 60s] + exit 1 [ 60s] error: Bad exit status from /var/tmp/rpm-tmp.kow8W6 (%prep) ...
At the time of the fail, kernel-source _had_ built successfully; packages _were_ available as v5.0.9x,
https://build.opensuse.org/package/binaries/home:pgnd:Kernel:stable/kernel-s...
As I understand it, kernel-default is simply derived from my obs instance's kernel-source,
https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-...
<link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" />
To rebuild the entire project, I exec
osc wipebinaries home:pgnd:Kernel:stable osc rebuildpac --all home:pgnd:Kernel:stable
I thought that's sufficient to clean + rebuild all from scratch ... but it simply re-failed.
Other than from a build remnant _oustide_ my OBS build root, I can't see where the "mismatched" v5.0.*8* is originating.
What do I need to do to eliminate/avoid this FAIL, & ensure that my kernel-default builds are in-sync with, and using, the parent kernel-source sources?
-- Jeff Mahoney SUSE Labs
Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" />
Where project is your own project.
Sorry, I'm unfortunately missing your point.
From my OP, below, I'd verified that I _do_ have,
https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-...
<link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" />
Isn't that already exactly what you're suggesting it should look like? On 4/22/19 1:50 PM, Jeff Mahoney wrote:
On 4/22/19 12:59 PM, PGNet Dev wrote:
I'm building a Kernel:stable instance -- as closely as possible, a project clone of the Kernel:stable repo -- that I can patch, etc locally in my home: instance.
I think you're probably missing the bit that keeps the release numbers in lockstep.
Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" />
Where project is your own project.
-Jeff
It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg,
https://build.opensuse.org/project/show/home:pgnd:Kernel:stable
; its parent kernel-source build fine.
But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK.
The build log shows the fail as a 'Kernel release mismatch',
https://build.opensuse.org/package/live_build_log/home:pgnd:Kernel:stable/ke...
... [ 58s] ++ make -s kernelrelease ARCH=x86 --output-sync -j8 [ 60s] + krel=5.0.8-21.g7bd8353-default [ 60s] + '[' 5.0.8-21.g7bd8353-default '!=' 5.0.9-21.g7bd8353-default ']' [ 60s] + echo 'Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default' [ 60s] Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default [ 60s] + exit 1 [ 60s] error: Bad exit status from /var/tmp/rpm-tmp.kow8W6 (%prep) ...
At the time of the fail, kernel-source _had_ built successfully; packages _were_ available as v5.0.9x,
https://build.opensuse.org/package/binaries/home:pgnd:Kernel:stable/kernel-s...
As I understand it, kernel-default is simply derived from my obs instance's kernel-source,
https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-...
<link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" />
To rebuild the entire project, I exec
osc wipebinaries home:pgnd:Kernel:stable osc rebuildpac --all home:pgnd:Kernel:stable
I thought that's sufficient to clean + rebuild all from scratch ... but it simply re-failed.
Other than from a build remnant _oustide_ my OBS build root, I can't see where the "mismatched" v5.0.*8* is originating.
What do I need to do to eliminate/avoid this FAIL, & ensure that my kernel-default builds are in-sync with, and using, the parent kernel-source sources?
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 4/22/19 5:15 PM, PGNet Dev wrote:
Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" />
Where project is your own project.
Sorry, I'm unfortunately missing your point.
From my OP, below, I'd verified that I _do_ have,
https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-...
<link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" />
Isn't that already exactly what you're suggesting it should look like?
Yep. Apologies. I'm not sure what's up, then. -Jeff
On 4/22/19 1:50 PM, Jeff Mahoney wrote:
On 4/22/19 12:59 PM, PGNet Dev wrote:
I'm building a Kernel:stable instance -- as closely as possible, a project clone of the Kernel:stable repo -- that I can patch, etc locally in my home: instance.
I think you're probably missing the bit that keeps the release numbers in lockstep.
Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" />
Where project is your own project.
-Jeff
It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg,
https://build.opensuse.org/project/show/home:pgnd:Kernel:stable
; its parent kernel-source build fine.
But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK.
The build log shows the fail as a 'Kernel release mismatch',
https://build.opensuse.org/package/live_build_log/home:pgnd:Kernel:stable/ke...
... [ 58s] ++ make -s kernelrelease ARCH=x86 --output-sync -j8 [ 60s] + krel=5.0.8-21.g7bd8353-default [ 60s] + '[' 5.0.8-21.g7bd8353-default '!=' 5.0.9-21.g7bd8353-default ']' [ 60s] + echo 'Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default' [ 60s] Kernel release mismatch: 5.0.8-21.g7bd8353-default != 5.0.9-21.g7bd8353-default [ 60s] + exit 1 [ 60s] error: Bad exit status from /var/tmp/rpm-tmp.kow8W6 (%prep) ...
At the time of the fail, kernel-source _had_ built successfully; packages _were_ available as v5.0.9x,
https://build.opensuse.org/package/binaries/home:pgnd:Kernel:stable/kernel-s...
As I understand it, kernel-default is simply derived from my obs instance's kernel-source,
https://build.opensuse.org/package/view_file/home:pgnd:Kernel:stable/kernel-...
<link project="home:pgnd:Kernel:stable" package="kernel-source" cicount="copy" />
To rebuild the entire project, I exec
osc wipebinaries home:pgnd:Kernel:stable osc rebuildpac --all home:pgnd:Kernel:stable
I thought that's sufficient to clean + rebuild all from scratch ... but it simply re-failed.
Other than from a build remnant _oustide_ my OBS build root, I can't see where the "mismatched" v5.0.*8* is originating.
What do I need to do to eliminate/avoid this FAIL, & ensure that my kernel-default builds are in-sync with, and using, the parent kernel-source sources?
-- Jeff Mahoney SUSE Labs
On Apr 22 2019, PGNet Dev <pgnet.dev@gmail.com> wrote:
It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg,
https://build.opensuse.org/project/show/home:pgnd:Kernel:stable
; its parent kernel-source build fine.
But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK.
Your kernel-source package contains a local series.conf file, shadowing the same file from the linked package. Thus whenever Kernel:stable updates to a new version, your local series.conf file will be out of date, missing the patches that brings the kernel sources up to the current version. If you convert the source link to a branch, your local changes would be merged automatically. Andreas. -- 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." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 4/22/19 3:09 PM, Andreas Schwab wrote:
On Apr 22 2019, PGNet Dev <pgnet.dev@gmail.com> wrote:
It's been generally well behaved. Intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg,
https://build.opensuse.org/project/show/home:pgnd:Kernel:stable
; its parent kernel-source build fine.
But, intermittently -- like, now -- I get a 'failed' build, only of the dependent kernel-default pkg; its parent kernel-source builds OK.
Your kernel-source package contains a local series.conf file, shadowing the same file from the linked package. Thus whenever Kernel:stable updates to a new version, your local series.conf file will be out of date, missing the patches that brings the kernel sources up to the current version.
Bingo. Hadn't thought to re-check the manual edits; I mistakenly assumed they'd merge. Updating the series.conf seems to do the trick. Thx!
If you convert the source link to a branch, your local changes would be merged automatically.
Yep. I'll likely create a local branch of an unmodified local project. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 23. 04. 19, 0:43, PGNet Dev wrote:
Bingo. Hadn't thought to re-check the manual edits; I mistakenly assumed they'd merge.
Updating the series.conf seems to do the trick.
Put your own series.conf into patches.addon.tar.bz2. They will merge then. regards, -- js suse labs -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 4/22/19 9:40 PM, Jiri Slaby wrote:
On 23. 04. 19, 0:43, PGNet Dev wrote:
Bingo. Hadn't thought to re-check the manual edits; I mistakenly assumed they'd merge.
Updating the series.conf seems to do the trick.
Put your own series.conf into patches.addon.tar.bz2. They will merge then.
That'd certainly be simpler/cleaner. I removed the 'full', edited series.conf (which was working) and instead added 'my' series.conf patches.addon/ patches.addon/xen-pvh-uefi.patch patches.addon/series.conf where cat patches.addon/series.conf patches.addon/xen-pvh-uefi.patch tar'd it up as, patches.addon.tar.bz2 and UL'd it; e.g., https://build.opensuse.org/package/show/home:pgnd:Kernel:stable:xen-uefi-fix... The build does NOT seem to pick up / apply the patch ; at least there's no current trace of the "xen-pvh-uefi.patch" in the logfile, https://build.opensuse.org/build/home:pgnd:Kernel:stable:xen-uefi-fix/openSU... -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 4/22/19 10:15 PM, Jiri Slaby wrote:
On 23. 04. 19, 7:14, PGNet Dev wrote:
patches.addon/series.conf
Sorry, my bad. Remove the .conf suffix.
ugh. I should've looked 1st in kernel-source > apply-patches ! as soon as back-home's back up, I'll put it in place. thx -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On Apr 22 2019, Jeff Mahoney <jeffm@suse.com> wrote:
Your _link file for the kernel-default (and other derivatives, if any) should look like: <link project="Kernel:stable" package="kernel-source" cicount="copy" />
Where project is your own project.
Note that you can leave out the project attribute which defaults to the originating project. Andreas. -- 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." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Jeff Mahoney
-
Jiri Slaby
-
PGNet Dev