From 97941e7ef38544dfc19b487af2a73a63c165c8c5 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Fri, 19 Apr 2024 15:03:39 +0200 Subject: [PATCH] build: switch to dracut-ng upstream fork The original dracut repository is no longer maintained, new initiative was started: https://github.com/dracut-ng/dracut-ng/ --- .distro/dracut.spec | 11 +++-------- .distro/source-git.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.distro/dracut.spec b/.distro/dracut.spec index 67413630..d33c19b1 100644 --- a/.distro/dracut.spec +++ b/.distro/dracut.spec @@ -17,14 +17,9 @@ Summary: Initramfs generator using udev # except util/* which is GPLv2 License: GPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-only -URL: https://github.com/dracutdevs/dracut/wiki/ +URL: https://github.com/dracut-ng/dracut-ng/wiki/ -# Currently upstream does not create releases, therefore -# source is created from commit 856e7acdb1462803c2517c8d64afb2e34c73c735 -# Reference PR: https://github.com/dracutdevs/dracut/pull/2509 -# Unpacked archive: https://github.com/pvalena/dracut-fedora/tree/v60-srpm-unpacked -Source0: dracut-%{version}.tar.xz -#Source0: https://github.com/dracutdevs/dracut/archive/refs/tags/%%{version}.tar.gz +Source0: https://github.com/dracut-ng/dracut-ng/archive/refs/tags/%{version}.tar.gz Source1: https://www.gnu.org/licenses/lgpl-2.1.txt @@ -156,7 +151,7 @@ in a squashfs image, result in a smaller initramfs size and reduce runtime memor usage. %prep -%autosetup -n %{name}-%{version} -S git_am +%autosetup -n %{name}-ng-%{version} -S git_am cp %{SOURCE1} . %build diff --git a/.distro/source-git.yaml b/.distro/source-git.yaml index 266b8089..5d62ef43 100644 --- a/.distro/source-git.yaml +++ b/.distro/source-git.yaml @@ -1,5 +1,5 @@ -upstream_project_url: git@github.com:pvalena/dracut-fedora.git -upstream_ref: 72a126415227cfcdf806c4d165d26983fe3b8b56 +upstream_project_url: git@github.com:dracut-ng/dracut-ng.git +upstream_ref: 856e7acdb1462803c2517c8d64afb2e34c73c735 downstream_package_name: dracut specfile_path: .distro/dracut.spec patch_generation_ignore_paths: @@ -18,5 +18,5 @@ files_to_sync: - exclude source-git.yaml - exclude .gitignore sources: -- path: dracut-060.tar.gz - url: https://src.fedoraproject.org/repo/pkgs/rpms/dracut/059.tar.gz/sha512/eca5b779307a86f1072201f576ebdd2187d0ae3603dfe009acb9ff6fff81f028c9b5b3d2fa70c723d138e00d40b1c0f97a8ae6cd1fcbeefc898d692c54db33e3/dracut-60.tar.gz +- path: dracut-ng-060.tar.gz + url: https://github.com/dracut-ng/dracut-ng/archive/refs/tags/060.tar.gz