From a4bed860d5c796f60a1120e5af5f2ae464f066ea Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 8 Nov 2023 16:20:09 +0300 Subject: [PATCH] import osbuild-composer-88.1-1.el9_3 --- .gitignore | 2 +- .osbuild-composer.metadata | 2 +- ...01-test-remove-package-version-check.patch | 51 +++++++++++++++++++ SPECS/osbuild-composer.spec | 12 ++++- 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 SOURCES/0001-test-remove-package-version-check.patch diff --git a/.gitignore b/.gitignore index a13eeba..4505ade 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/osbuild-composer-88.tar.gz +SOURCES/osbuild-composer-88.1.tar.gz diff --git a/.osbuild-composer.metadata b/.osbuild-composer.metadata index d221ecb..6b5d7a8 100644 --- a/.osbuild-composer.metadata +++ b/.osbuild-composer.metadata @@ -1 +1 @@ -9566fbe6bba91c7b3aba1a57c900aa6c00f77397 SOURCES/osbuild-composer-88.tar.gz +6f828e8be7795f958ba9a20642e68a0f7d2a5646 SOURCES/osbuild-composer-88.1.tar.gz diff --git a/SOURCES/0001-test-remove-package-version-check.patch b/SOURCES/0001-test-remove-package-version-check.patch new file mode 100644 index 0000000..9a1ecd7 --- /dev/null +++ b/SOURCES/0001-test-remove-package-version-check.patch @@ -0,0 +1,51 @@ +From 21f96abd61be2d10ea9543d137eb51f7ae6c769f Mon Sep 17 00:00:00 2001 +From: Achilleas Koutsou +Date: Wed, 20 Sep 2023 14:30:36 +0200 +Subject: [PATCH] test: remove package version check + +Package version parsing fails on minor releases (88.1). +--- + internal/client/blueprints_test.go | 19 ------------------- + 1 file changed, 19 deletions(-) + +diff --git a/internal/client/blueprints_test.go b/internal/client/blueprints_test.go +index 8cfa9a7be..c1c89d36e 100644 +--- a/internal/client/blueprints_test.go ++++ b/internal/client/blueprints_test.go +@@ -12,10 +12,7 @@ package client + + import ( + "encoding/json" +- "fmt" +- "os/exec" + "sort" +- "strconv" + "strings" + "testing" + +@@ -1110,22 +1107,6 @@ func TestBlueprintFreezeGlobsV0(t *testing.T) { + t.Skip() + } + +- // works with osbuild-composer v83 and later +- rpm_q := exec.Command("rpm", "-q", "--qf", "%{version}", "osbuild-composer") +- out, err := rpm_q.CombinedOutput() +- if err != nil { +- assert.Fail(t, fmt.Sprintf("Error during rpm -q: %s", err)) +- } +- +- rpm_version, err := strconv.Atoi(string(out)) +- if err != nil { +- assert.Fail(t, "Error during str-int conversion", err) +- } +- +- if rpm_version < 83 { +- t.Skip() +- } +- + bp := `{ + "name": "test-freeze-blueprint-glob-v0", + "description": "TestBlueprintFreezeGlobsV0", +-- +2.42.0 + diff --git a/SPECS/osbuild-composer.spec b/SPECS/osbuild-composer.spec index 7daa7fc..167c71c 100644 --- a/SPECS/osbuild-composer.spec +++ b/SPECS/osbuild-composer.spec @@ -9,7 +9,7 @@ %global goipath github.com/osbuild/osbuild-composer -Version: 88 +Version: 88.1 %gometa @@ -33,6 +33,10 @@ License: Apache-2.0 URL: %{gourl} Source0: %{gosource} +# Patch generated from the upstream rhel-9.3.0 branch: +# git clone https://github.com/osbuild/osbuild-composer.git --branch rhel-9.3.0 +# git format-patch v88.1.. +Patch1: 0001-test-remove-package-version-check.patch # MSVSphere patches Patch1001: 0001-Added-MSVSphere-support.patch @@ -429,10 +433,14 @@ Integration tests to be run on a pristine-dedicated system to test the osbuild-c %endif %changelog -* Tue Oct 10 2023 Sergey Cherevko - 88-1.inferit +* Tue Oct 10 2023 Sergey Cherevko - 88.1-1.inferit - MSVSphere 9.2 and 9.3 support - Rebuilt for MSVSphere 9.3 +* Wed Sep 20 2023 Achilleas Koutsou - 88.1-1 +- New upstream release +- test: remove package version check + * Thu Aug 24 2023 imagebuilder-bot - 88-1 - New upstream release