From f4783d4c882c8368e0cd96dadbbb51484f4295a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sun, 12 Jun 2022 18:34:56 +0200 Subject: [PATCH] main/postmarketos-mkinitfs: provide only a virtual package (MR 3228) Fixes 02dfe83c4bb048f770e62a07830cb492e441cf3e The previous `provides="mkinifs=3.6.0"` was a requirement because alpine's kernels had a minimum dependency in `mkinitfs>=3.6.0` to make sure that support for compressed modules existed. That requirement is no longer in place[1], since the dependency is now on the `initramfs-generator` virtual package. Also, since `initramfs-generator` is a virtual package and not a real package, versioning it might mess up APK. The documentation explictly states that virtual packages are those with unversioned provides and a provider_priority. So to avoid having problems in the future, let's strictly stick to it. [1] https://gitlab.alpinelinux.org/alpine/aports/-/commit/4fac61c826cac81af72e095b645098900d3094a1 --- main/postmarketos-mkinitfs/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/postmarketos-mkinitfs/APKBUILD b/main/postmarketos-mkinitfs/APKBUILD index d7ff1b513..23dc5d841 100644 --- a/main/postmarketos-mkinitfs/APKBUILD +++ b/main/postmarketos-mkinitfs/APKBUILD @@ -2,7 +2,7 @@ # Co-Maintainer: Clayton Craft pkgname=postmarketos-mkinitfs pkgver=1.4.1 -pkgrel=7 +pkgrel=8 pkgdesc="Tool to generate initramfs images for postmarketOS" url="https://postmarketos.org" depends=" @@ -35,7 +35,7 @@ install="$pkgname.post-upgrade" arch="all" license="GPL-2.0-or-later" provider_priority=999 # higher priority than Alpine's mkinitfs -provides="mkinitfs=3.6.1 initramfs-generator=3.6.1" +provides="initramfs-generator" export GOPATH="$srcdir" export CGO_ENABLED=0