Compare commits

..

2 Commits

Author SHA1 Message Date
b1c8d71604 Add Conflicts to prevent upgrades
Some checks failed
RPMs/gasket-driver/pipeline/head There was a failure building this commit
Since _kernel_ is an `installonly` package, "upgrading" actually
installs a new version instead of replacing the installed version.
Because of this, the `Requires` tag of _gasket-driver_ does not prevent
upgrading to a new version of the kernel, as the requirement will still
be satisfied by the old version.

To fully prevent upgrading to a new kernel for which there is no
_gasket-driver_ (which would prevent Frigate from starting after the
reboot), we need to add a `Conflicts` tag.  This will not allow RPM to
install a version of _kernel_ newer than the one that matches
_gasket-driver_.
2025-11-22 10:15:05 -06:00
41536e57be ci: Add generic webhook trigger
This will allow `updatecheck` to trigger builds by sending an HTTP POST
request when it finds an update for the _kernel_ package.
2025-11-22 10:08:22 -06:00
2 changed files with 18 additions and 1 deletions

16
ci/Jenkinsfile vendored
View File

@@ -1,6 +1,22 @@
pipeline {
agent none
triggers {
GenericTrigger(
causeString: 'Webhook Trigger',
genericVariables: [[
key: 'nvr',
value: '$[*].builds[*].nvr',
]],
printContributedVariables: true,
printPostContent: true,
regexpFilterExpression: 'kernel-.*',
regexpFilterText: '$nvr',
silentResponse: true,
tokenCredential: 'webhook-trigger',
)
}
stages {
stage('RPM') {
matrix {

View File

@@ -9,7 +9,7 @@
Name: gasket-driver
Version: 0.0.git%{git_revision}
Release: 2.k%{kernel_version}%{?dist}
Release: 3.k%{kernel_version}%{?dist}
Summary: The Coral Gasket Driver allows usage of the Coral EdgeTPU on Linux systems
License: GPL-2.0
@@ -20,6 +20,7 @@ Patch1: 0002-Update-gasket_page_table.c-Fix-MODULE_IMPORT_NS.patch
BuildRequires: kernel-devel
Requires: kernel-core == %{kernel_version}
Conflicts: kernel-core > %{kernel_version}
Requires(post): kmod
%description