import yggdrasil-worker-package-manager-0.2.2-2.el9

i9c-beta changed/i9c-beta/yggdrasil-worker-package-manager-0.2.2-2.el9
MSVSphere Packaging Team 5 months ago
commit 6dc75b486c
Signed by: sys_gitsync
GPG Key ID: B2B0B9F29E528FE8

1
.gitignore vendored

@ -0,0 +1 @@
SOURCES/yggdrasil-worker-package-manager-0.2.2.tar.xz

@ -0,0 +1 @@
8a3caef5716c6571d51ff6a478c76717862af943 SOURCES/yggdrasil-worker-package-manager-0.2.2.tar.xz

@ -0,0 +1,53 @@
From 8c19d5ac3d5731750c935e1e23e9f4add49bff48 Mon Sep 17 00:00:00 2001
From: Link Dupont <link@sub-pop.net>
Date: Tue, 24 Oct 2023 20:45:45 -0400
Subject: [PATCH] refactor: downgrade yggdrasil version to 0.4.1
'latest' contains additional changes to the worker package that aren't
released in a tagged version yet.
---
go.mod | 2 +-
go.sum | 4 ++--
main.go | 1 -
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/go.mod b/go.mod
index 683d9d2..95a3e2a 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ require (
git.sr.ht/~spc/go-log v0.0.0-20210611184941-ce2f05edb627
github.com/google/uuid v1.3.1
github.com/peterbourgon/ff/v3 v3.1.0
- github.com/redhatinsights/yggdrasil v0.0.0-20231011123719-5130298ed3ac
+ github.com/redhatinsights/yggdrasil v0.0.0-20230918163727-97cd578cc7c6
github.com/sgreben/flagvar v1.10.1
github.com/zcalusic/sysinfo v1.0.2
)
diff --git a/go.sum b/go.sum
index 6420143..5b3b778 100644
--- a/go.sum
+++ b/go.sum
@@ -13,8 +13,8 @@ github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhEC
github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/peterbourgon/ff/v3 v3.1.0 h1:5JAeDK5j/zhKFjyHEZQXwXBoDijERaos10RE+xamOsY=
github.com/peterbourgon/ff/v3 v3.1.0/go.mod h1:XNJLY8EIl6MjMVjBS4F0+G0LYoAqs0DTa4rmHHukKDE=
-github.com/redhatinsights/yggdrasil v0.0.0-20231011123719-5130298ed3ac h1:rqRkjhJWxnNmmxCjxal5PrGuHtp93OCZn1PHPdQMCDQ=
-github.com/redhatinsights/yggdrasil v0.0.0-20231011123719-5130298ed3ac/go.mod h1:Rwya3pQvxCNI/2bjNQ9N6cHTMd2YKrRCJ2sENRawoBg=
+github.com/redhatinsights/yggdrasil v0.0.0-20230918163727-97cd578cc7c6 h1:YLX/bTYS5/BwZt7vw8vIAr3vqM8tioJr3vajhSlCpzg=
+github.com/redhatinsights/yggdrasil v0.0.0-20230918163727-97cd578cc7c6/go.mod h1:Rwya3pQvxCNI/2bjNQ9N6cHTMd2YKrRCJ2sENRawoBg=
github.com/sgreben/flagvar v1.10.1 h1:ukN3zqVj9T9U7CiKG6owmejxswJYMbAg9Mxkhi1B4tw=
github.com/sgreben/flagvar v1.10.1/go.mod h1:AxDmbFDIxZ4dHj2zg8LxuJn5CSwSS28iY/Wy56e+nhI=
github.com/zcalusic/sysinfo v1.0.2 h1:nwTTo2a+WQ0NXwo0BGRojOJvJ/5XKvQih+2RrtWqfxc=
diff --git a/main.go b/main.go
index 719f304..280e7ce 100644
--- a/main.go
+++ b/main.go
@@ -84,7 +84,6 @@ func main() {
"package_manager",
false,
map[string]string{"version": Version},
- nil,
dataRx,
nil,
)

@ -0,0 +1,78 @@
%bcond_without check
# https://github.com/redhatinsights/yggdrasil-worker-package-manager
%global goipath github.com/redhatinsights/yggdrasil-worker-package-manager
Version: 0.2.2
%global tag %{version}
%gometa -f
%global common_description %{expand:
yggdrasil-worker-package-manager is a simple package manager yggd worker. It
knows how to install and remove packages, add, remove, enable and disable
repositories, and does rudimentary detection of the host it is running on to
guess the package manager to use. It only installs packages that match one of
the provided allow-pattern regular expressions.}
%global golicenses LICENSE
%global godocs README.md
Name: yggdrasil-worker-package-manager
Release: 2%{?dist}
Summary: Package manager worker for yggdrasil
License: GPL-3.0-only
URL: %{gourl}
Source: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch100: 8c19d5ac3d5731750c935e1e23e9f4add49bff48.patch
BuildRequires: systemd-rpm-macros
BuildRequires: meson
BuildRequires: pkgconfig(dbus-1)
%description %{common_description}
%prep
%goprep %{?rhel:-k}
%autopatch -p1 %{?rhel:-M 99}
%if %{undefined rhel}
%generate_buildrequires
%go_generate_buildrequires
%endif
%build
%undefine _auto_set_build_flags
export %gomodulesmode
%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"}
%meson "-Dgobuildflags=[%(echo %{expand:%gocompilerflags} | sed -e s/"^"/"'"/ -e s/" "/"', '"/g -e s/"$"/"'"/), '-tags', '"rpm_crashtraceback\ ${BUILDTAGS:-}"', '-a', '-v', '-x']" -Dgoldflags='%{?currentgoldflags} -B 0x%(head -c20 /dev/urandom|od -An -tx1|tr -d " \n") -compressdwarf=false -linkmode=external -extldflags "%{build_ldflags} %{?__golang_extldflags}"'
%meson_build
%install
%meson_install
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%if %{defined rhel}
%license vendor/modules.txt
%endif
%doc README.md
%{_libexecdir}/*
%config(noreplace) %{_sysconfdir}/%{name}
%{_datadir}/dbus-1/system-services/*
%changelog
* Mon Oct 07 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.2.2-2
- Rebuilt for MSVSphere 9.5 beta
* Tue Jul 9 2024 Link Dupont <link@redhat.com> - 0.2.2-2
- Drop generation of automatic Go source package
* Mon Jul 8 2024 Link Dupont <link@redhat.com> - 0.2.2-1
- Initial package (RHEL-29802)
Loading…
Cancel
Save