~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 2

[PATCH builds.sr.ht] images/archlinux: skip compression of AUR packages in install()

Details
Message ID
<50e501dd23faaa61414e7d88bdeb6a9d@dille.cc>
DKIM signature
missing
Download raw message
All AUR packages installed in the install() step are first built
by makepkg, which by defaults compresses them after building them.

This patch explicitly skips the compression step by temporarily
setting the extension of newly built packages to .pkg.tar.

The extension is only changed temporarily, and this patch has no
effect on any makepkg run by the user in its build script after
the install() step ends.
---
  images/archlinux/functions | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/archlinux/functions b/images/archlinux/functions
index b1657cb..6cae71e 100644
--- a/images/archlinux/functions
+++ b/images/archlinux/functions
@@ -16,7 +16,7 @@ boot() {
  install() {
         port=$1
         shift 1
-       guest_ssh -p $port build@localhost EDITOR=true yay \
+       guest_ssh -p $port build@localhost EDITOR=true PKGEXT=.pkg.tar 
yay \
                 --needed --noconfirm --noprovides -Syu "$@"
  }

--
2.22.0
Details
Message ID
<BX5182V2RQGG.25HSRKP88NDZ6@koishi>
In-Reply-To
<50e501dd23faaa61414e7d88bdeb6a9d@dille.cc> (view parent)
DKIM signature
missing
Download raw message
This patch is broken, did you prepare it with git send-email?

https://git-send-email.io

[PATCH builds.sr.ht] images/archlinux: skip compression of AUR packages

Details
Message ID
<20190922111235.1725-1-delthas@dille.cc>
In-Reply-To
<BX5182V2RQGG.25HSRKP88NDZ6@koishi> (view parent)
DKIM signature
missing
Download raw message
Patch: +1 -1
All AUR packages installed in the install() step are first built
by makepkg, which by defaults compresses them after building them.

This patch explicitly skips the compression step by temporarily
setting the extension of newly built packages to .pkg.tar.

The extension is only changed temporarily, and this patch has no
effect on any makepkg run by the user in its build script after
the install() step ends.
---
 images/archlinux/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/archlinux/functions b/images/archlinux/functions
index b1657cb..6cae71e 100644
--- a/images/archlinux/functions
+++ b/images/archlinux/functions
@@ -16,7 +16,7 @@ boot() {
install() {
	port=$1
	shift 1
	guest_ssh -p $port build@localhost EDITOR=true yay \
	guest_ssh -p $port build@localhost EDITOR=true PKGEXT=.pkg.tar yay \
		--needed --noconfirm --noprovides -Syu "$@"
}

-- 
2.21.0

Re: [PATCH builds.sr.ht] images/archlinux: skip compression of AUR packages

Details
Message ID
<BX9JZEWIPE8U.293G9B61XGIO9@homura>
In-Reply-To
<20190922111235.1725-1-delthas@dille.cc> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/builds.sr.ht
   fc9a192..e6d7370  master -> master
 * [new tag]         0.47.8 -> 0.47.8
Review patch Export thread (mbox)