Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] qemu qemu-user-static: Provide binfmt services
@ 2022-06-06  3:37 Animeshz
  2022-06-06  3:40 ` [PR PATCH] [Updated] " Animeshz
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Animeshz @ 2022-06-06  3:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

There is a new pull request by Animeshz against master on the void-packages repository

https://github.com/Animeshz/void-packages binfmt
https://github.com/void-linux/void-packages/pull/37419

qemu qemu-user-static: Provide binfmt services
`binfmt-support` doesn't work as expected, prioritizes randomly (static & non-static binaries in case both `qemu` & `qemu-user-static` is installed), also does not add `F` flag onto the binfmts which are static (that is required to chroot without copying the binaries to chroot's `/usr/bin`). Ref: https://github.com/void-linux/void-mklive/issues/253#issuecomment-1146786352.

This adds up runit services so that one can easily create the binfmts specific to qemu using [scripts/qemu-binfmt-conf.sh](https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh) provided in the upstream qemu repository. It also prioritizes static service if symlinked to the service dir.

#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/37419.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-binfmt-37419.patch --]
[-- Type: text/x-diff, Size: 4192 bytes --]

From d4f408166b4d3ee274cdd3c291e1ece7334f69bc Mon Sep 17 00:00:00 2001
From: Animesh Sahu <animeshsahu19@yahoo.com>
Date: Mon, 6 Jun 2022 08:57:00 +0530
Subject: [PATCH] qemu qemu-user-static: Provide binfmt services

---
 .../files/qemu-user-static-binfmt/finish              |  5 +++++
 .../files/qemu-user-static-binfmt/run                 |  9 +++++++++
 srcpkgs/qemu-user-static/template                     |  5 ++++-
 srcpkgs/qemu/files/qemu-binfmt/finish                 |  5 +++++
 srcpkgs/qemu/files/qemu-binfmt/run                    | 11 +++++++++++
 srcpkgs/qemu/template                                 |  5 ++++-
 6 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
 create mode 100644 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
 create mode 100644 srcpkgs/qemu/files/qemu-binfmt/finish
 create mode 100644 srcpkgs/qemu/files/qemu-binfmt/run

diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
new file mode 100644
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
new file mode 100644
index 000000000000..98359ba22a52
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu-user-static/scripts/qemu-binfmt-conf.sh --qemu-suffix "-static" \
+    --qemu-path /usr/bin -c yes -p yes
+exec chpst -b qemu-user-static-binfmt pause
diff --git a/srcpkgs/qemu-user-static/template b/srcpkgs/qemu-user-static/template
index cca001f8835b..a11e17fd49b3 100644
--- a/srcpkgs/qemu-user-static/template
+++ b/srcpkgs/qemu-user-static/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu
 pkgname=qemu-user-static
 version=6.2.0
-revision=2
+revision=3
 wrksrc="qemu-${version}"
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
@@ -125,4 +125,7 @@ post_install() {
 	for f in ${DESTDIR}/usr/bin/*; do
 		mv ${f} ${f}-static
 	done
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
 }
diff --git a/srcpkgs/qemu/files/qemu-binfmt/finish b/srcpkgs/qemu/files/qemu-binfmt/finish
new file mode 100644
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu/files/qemu-binfmt/run b/srcpkgs/qemu/files/qemu-binfmt/run
new file mode 100644
index 000000000000..bea4119538c2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Prioritize static binaries service if present
+sv check qemu-user-static-binfmt && exit 0
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu/scripts/qemu-binfmt-conf.sh --qemu-path /usr/bin -c yes
+exec chpst -b qemu-binfmt pause
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 17655fdbdda8..9adcc3df7a62 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu-user-static
 pkgname=qemu
 version=6.2.0
-revision=2
+revision=3
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec --localstatedir=/var
  --disable-glusterfs --disable-xen --enable-docs --enable-kvm --enable-libusb --enable-pie
@@ -79,6 +79,9 @@ post_install() {
 	chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
 
 	vsv qemu-ga
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
 }
 
 qemu-ga_package() {

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
@ 2022-06-06  3:40 ` Animeshz
  2022-06-06  3:45 ` Animeshz
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Animeshz @ 2022-06-06  3:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]

There is an updated pull request by Animeshz against master on the void-packages repository

https://github.com/Animeshz/void-packages binfmt
https://github.com/void-linux/void-packages/pull/37419

qemu qemu-user-static: Provide binfmt services
`binfmt-support` doesn't work as expected, prioritizes randomly (static & non-static binaries in case both `qemu` & `qemu-user-static` is installed), also does not add `F` flag onto the binfmts which are static (that is required to chroot without copying the binaries to chroot's `/usr/bin`). Ref: https://github.com/void-linux/void-mklive/issues/253#issuecomment-1146786352.

This adds up runit services so that one can easily create the binfmts specific to qemu using [scripts/qemu-binfmt-conf.sh](https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh) provided in the upstream qemu repository. It also prioritizes static service if symlinked to the service dir.

#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/37419.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-binfmt-37419.patch --]
[-- Type: text/x-diff, Size: 4257 bytes --]

From 8753ef3508d215e6cd5e8c16c91d12dfeb4781a3 Mon Sep 17 00:00:00 2001
From: Animesh Sahu <animeshsahu19@yahoo.com>
Date: Mon, 6 Jun 2022 08:57:00 +0530
Subject: [PATCH] qemu qemu-user-static: Provide binfmt services

---
 .../files/qemu-user-static-binfmt/finish              |  5 +++++
 .../files/qemu-user-static-binfmt/run                 |  9 +++++++++
 srcpkgs/qemu-user-static/template                     |  6 +++++-
 srcpkgs/qemu/files/qemu-binfmt/finish                 |  5 +++++
 srcpkgs/qemu/files/qemu-binfmt/run                    | 11 +++++++++++
 srcpkgs/qemu/template                                 |  6 +++++-
 6 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
 create mode 100644 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
 create mode 100644 srcpkgs/qemu/files/qemu-binfmt/finish
 create mode 100644 srcpkgs/qemu/files/qemu-binfmt/run

diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
new file mode 100644
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
new file mode 100644
index 000000000000..98359ba22a52
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu-user-static/scripts/qemu-binfmt-conf.sh --qemu-suffix "-static" \
+    --qemu-path /usr/bin -c yes -p yes
+exec chpst -b qemu-user-static-binfmt pause
diff --git a/srcpkgs/qemu-user-static/template b/srcpkgs/qemu-user-static/template
index cca001f8835b..af09e4da8cfe 100644
--- a/srcpkgs/qemu-user-static/template
+++ b/srcpkgs/qemu-user-static/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu
 pkgname=qemu-user-static
 version=6.2.0
-revision=2
+revision=3
 wrksrc="qemu-${version}"
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
@@ -125,4 +125,8 @@ post_install() {
 	for f in ${DESTDIR}/usr/bin/*; do
 		mv ${f} ${f}-static
 	done
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
+        vsv qemu-user-static-binfmt
 }
diff --git a/srcpkgs/qemu/files/qemu-binfmt/finish b/srcpkgs/qemu/files/qemu-binfmt/finish
new file mode 100644
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu/files/qemu-binfmt/run b/srcpkgs/qemu/files/qemu-binfmt/run
new file mode 100644
index 000000000000..bea4119538c2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Prioritize static binaries service if present
+sv check qemu-user-static-binfmt && exit 0
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu/scripts/qemu-binfmt-conf.sh --qemu-path /usr/bin -c yes
+exec chpst -b qemu-binfmt pause
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 17655fdbdda8..16f2bccd2eb6 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu-user-static
 pkgname=qemu
 version=6.2.0
-revision=2
+revision=3
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec --localstatedir=/var
  --disable-glusterfs --disable-xen --enable-docs --enable-kvm --enable-libusb --enable-pie
@@ -79,6 +79,10 @@ post_install() {
 	chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
 
 	vsv qemu-ga
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
+        vsv qemu-binfmt
 }
 
 qemu-ga_package() {

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
  2022-06-06  3:40 ` [PR PATCH] [Updated] " Animeshz
@ 2022-06-06  3:45 ` Animeshz
  2022-06-06  5:58 ` CameronNemo
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Animeshz @ 2022-06-06  3:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

There is an updated pull request by Animeshz against master on the void-packages repository

https://github.com/Animeshz/void-packages binfmt
https://github.com/void-linux/void-packages/pull/37419

qemu qemu-user-static: Provide binfmt services
`binfmt-support` doesn't work as expected, prioritizes randomly (static & non-static binaries in case both `qemu` & `qemu-user-static` is installed), also does not add `F` flag onto the binfmts which are static (that is required to chroot without copying the binaries to chroot's `/usr/bin`). Ref: https://github.com/void-linux/void-mklive/issues/253#issuecomment-1146786352.

This adds up runit services so that one can easily create the binfmts specific to qemu using [scripts/qemu-binfmt-conf.sh](https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh) provided in the upstream qemu repository. It also prioritizes static service if symlinked to the service dir.

#### Testing the changes
- I tested the changes in this PR: **briefly**


A patch file from https://github.com/void-linux/void-packages/pull/37419.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-binfmt-37419.patch --]
[-- Type: text/x-diff, Size: 4243 bytes --]

From bf5c817df29ffc89a756a2de36d182c0d23e8cef Mon Sep 17 00:00:00 2001
From: Animesh Sahu <animeshsahu19@yahoo.com>
Date: Mon, 6 Jun 2022 08:57:00 +0530
Subject: [PATCH] qemu qemu-user-static: Provide binfmt services

---
 .../files/qemu-user-static-binfmt/finish              |  5 +++++
 .../files/qemu-user-static-binfmt/run                 |  9 +++++++++
 srcpkgs/qemu-user-static/template                     |  6 +++++-
 srcpkgs/qemu/files/qemu-binfmt/finish                 |  5 +++++
 srcpkgs/qemu/files/qemu-binfmt/run                    | 11 +++++++++++
 srcpkgs/qemu/template                                 |  6 +++++-
 6 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100755 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
 create mode 100755 srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
 create mode 100755 srcpkgs/qemu/files/qemu-binfmt/finish
 create mode 100755 srcpkgs/qemu/files/qemu-binfmt/run

diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
new file mode 100755
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
new file mode 100755
index 000000000000..98359ba22a52
--- /dev/null
+++ b/srcpkgs/qemu-user-static/files/qemu-user-static-binfmt/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu-user-static/scripts/qemu-binfmt-conf.sh --qemu-suffix "-static" \
+    --qemu-path /usr/bin -c yes -p yes
+exec chpst -b qemu-user-static-binfmt pause
diff --git a/srcpkgs/qemu-user-static/template b/srcpkgs/qemu-user-static/template
index cca001f8835b..de2079af2c64 100644
--- a/srcpkgs/qemu-user-static/template
+++ b/srcpkgs/qemu-user-static/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu
 pkgname=qemu-user-static
 version=6.2.0
-revision=2
+revision=3
 wrksrc="qemu-${version}"
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
@@ -125,4 +125,8 @@ post_install() {
 	for f in ${DESTDIR}/usr/bin/*; do
 		mv ${f} ${f}-static
 	done
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
+	vsv qemu-user-static-binfmt
 }
diff --git a/srcpkgs/qemu/files/qemu-binfmt/finish b/srcpkgs/qemu/files/qemu-binfmt/finish
new file mode 100755
index 000000000000..0226413c0ed2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in /proc/sys/fs/binfmt_misc/qemu-*; do
+    echo -1 > $i
+done
diff --git a/srcpkgs/qemu/files/qemu-binfmt/run b/srcpkgs/qemu/files/qemu-binfmt/run
new file mode 100755
index 000000000000..bea4119538c2
--- /dev/null
+++ b/srcpkgs/qemu/files/qemu-binfmt/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Prioritize static binaries service if present
+sv check qemu-user-static-binfmt && exit 0
+
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+    mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+/usr/share/qemu/scripts/qemu-binfmt-conf.sh --qemu-path /usr/bin -c yes
+exec chpst -b qemu-binfmt pause
diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template
index 17655fdbdda8..9d2e12a5990c 100644
--- a/srcpkgs/qemu/template
+++ b/srcpkgs/qemu/template
@@ -2,7 +2,7 @@
 # This package should be updated together with qemu-user-static
 pkgname=qemu
 version=6.2.0
-revision=2
+revision=3
 build_style=configure
 configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec --localstatedir=/var
  --disable-glusterfs --disable-xen --enable-docs --enable-kvm --enable-libusb --enable-pie
@@ -79,6 +79,10 @@ post_install() {
 	chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
 
 	vsv qemu-ga
+
+	vmkdir "usr/share/${pkgname}/scripts"
+	vinstall scripts/qemu-binfmt-conf.sh 755 "usr/share/${pkgname}/scripts"
+	vsv qemu-binfmt
 }
 
 qemu-ga_package() {

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
  2022-06-06  3:40 ` [PR PATCH] [Updated] " Animeshz
  2022-06-06  3:45 ` Animeshz
@ 2022-06-06  5:58 ` CameronNemo
  2022-06-06 16:15 ` Animeshz
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: CameronNemo @ 2022-06-06  5:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

New comment by CameronNemo on void-packages repository

https://github.com/void-linux/void-packages/pull/37419#issuecomment-1147076117

Comment:
A long while ago I suggested using the binfmt-support software's built in config handling. I still think that is the best option. It lets the user configure the specific binfmt settings and enable/disable formats as necessary.

https://github.com/void-linux/void-packages/pull/10395

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
                   ` (2 preceding siblings ...)
  2022-06-06  5:58 ` CameronNemo
@ 2022-06-06 16:15 ` Animeshz
  2022-07-01  5:25 ` AviKav
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Animeshz @ 2022-06-06 16:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New comment by Animeshz on void-packages repository

https://github.com/void-linux/void-packages/pull/37419#issuecomment-1147628589

Comment:
Seems correct, any idea why was it not merged?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
                   ` (3 preceding siblings ...)
  2022-06-06 16:15 ` Animeshz
@ 2022-07-01  5:25 ` AviKav
  2022-09-30  2:15 ` github-actions
  2022-10-15  2:16 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: AviKav @ 2022-07-01  5:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

New comment by AviKav on void-packages repository

https://github.com/void-linux/void-packages/pull/37419#issuecomment-1171949799

Comment:
@CameronNemo As far as I can tell with #10395, whenever a package with `binfmt_files` would've been updated, the corresponding formats would've been overwritten and reactivated irregardless of a user's changes to the db


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
                   ` (4 preceding siblings ...)
  2022-07-01  5:25 ` AviKav
@ 2022-09-30  2:15 ` github-actions
  2022-10-15  2:16 ` [PR PATCH] [Closed]: " github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2022-09-30  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/37419#issuecomment-1263023575

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Closed]: qemu qemu-user-static: Provide binfmt services
  2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
                   ` (5 preceding siblings ...)
  2022-09-30  2:15 ` github-actions
@ 2022-10-15  2:16 ` github-actions
  6 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2022-10-15  2:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

There's a closed pull request on the void-packages repository

qemu qemu-user-static: Provide binfmt services
https://github.com/void-linux/void-packages/pull/37419

Description:
`binfmt-support` doesn't work as expected, prioritizes randomly (static & non-static binaries in case both `qemu` & `qemu-user-static` is installed), also does not add `F` flag onto the binfmts which are static (that is required to chroot without copying the binaries to chroot's `/usr/bin`). Ref: https://github.com/void-linux/void-mklive/issues/253#issuecomment-1146786352.

This adds up runit services so that one can easily create the binfmts specific to qemu using [scripts/qemu-binfmt-conf.sh](https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh) provided in the upstream qemu repository. It also prioritizes static service if symlinked to the service dir.

#### Testing the changes
- I tested the changes in this PR: **briefly**


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-15  2:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06  3:37 [PR PATCH] qemu qemu-user-static: Provide binfmt services Animeshz
2022-06-06  3:40 ` [PR PATCH] [Updated] " Animeshz
2022-06-06  3:45 ` Animeshz
2022-06-06  5:58 ` CameronNemo
2022-06-06 16:15 ` Animeshz
2022-07-01  5:25 ` AviKav
2022-09-30  2:15 ` github-actions
2022-10-15  2:16 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).