If you would like to test this unreleased fix, it should be possible on Arch Linux using the following patch against the 22.4.2-2 PKGBUILD. I think you'll need to build this with makepkg --skipchecksums, since this pulls directly from the tip of main.
prepare() {
- cd $pkgname-$pkgver
+ cd $pkgname
# we use /usr/lib
patch -Np1 -i ../$pkgname-22.1-lib_dir.patch
}
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
python -m build --wheel --no-isolation
}
check() {
- cd $pkgname-$pkgver
+ cd $pkgname
pytest -vv
}
@@ -56,7 +56,7 @@ package() {
local _file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- cd $pkgname-$pkgver
+ cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
# NOTE: due to limitations with PEP517, files are installed to site-packages,
# not to the correct global locations (e.g. /etc and /usr), so we remove them
```
Showfom
If you would like to test this unreleased fix, it should be possible on Arch Linux using the following patch against the 22.4.2-2 PKGBUILD. I think you'll need to build this with makepkg --skipchecksums, since this pulls directly from the tip of main.
``` community- any/PKGBUILD b/repos/ community- any/PKGBUILD community- any/PKGBUILD community- any/PKGBUILD cloud/cloud. cfg.d/05_ logging. cfg $pkgver. tar.gz: :https:/ /github. com/canonical/ cloud-init/ archive/ refs/tags/ $pkgver. tar.gz $pkgver} ::git+https:/ /github. com/canonical/ cloud-init. git 22.1-lib_ dir.patch ('b7d4629205ef2 b184786908a3f92 2d635c811fed8f4 68649b1a892e93f bcbd54bc9eb366a 49ceefb33acd32d e1fc8d1a9a34c57 7c3b9d77825deb5 f24e4fe18e' ('9208053502f64 1da760dc3983838 a7eddaad83ce18a 8edd0f34437e3df 0407a0370fcf4
'4e03bd647ca9 e1bc3d9c507824d 43e4013a20d5bbc b7215755b427d0c 7ded9ee48dbfb9f aaae703ab2d519a ee7c48a40277603 c8f874347b574b7 ac2b1e1a9fd' )
diff --git a/repos/
index 0c4dd72..eac1ae5 100644
--- a/repos/
+++ b/repos/
@@ -28,7 +28,7 @@ backup=(
etc/
)
source=(
- $pkgname-
+ ${pkgname-
$pkgname-
)
sha512sums=
@@ -37,18 +37,18 @@ b2sums=
prepare() { 22.1-lib_ dir.patch
- cd $pkgname-$pkgver
+ cd $pkgname
# we use /usr/lib
patch -Np1 -i ../$pkgname-
}
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
python -m build --wheel --no-isolation
}
check() {
- cd $pkgname-$pkgver
+ cd $pkgname
pytest -vv
}
@@ -56,7 +56,7 @@ package() { $(python -c "import site; print(site. getsitepackages ()[0])" )
local _file
local site_packages=
- cd $pkgname-$pkgver
+ cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
# NOTE: due to limitations with PEP517, files are installed to site-packages,
# not to the correct global locations (e.g. /etc and /usr), so we remove them
```