Github messages for voidlinux
 help / color / mirror / Atom feed
From: chrysos349 <chrysos349@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: box64
Date: Sat, 30 Mar 2024 10:29:10 +0100	[thread overview]
Message-ID: <20240330092910.9BC1E20254@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49599@inbox.vuxu.org>

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

New comment by chrysos349 on void-packages repository

https://github.com/void-linux/void-packages/issues/49599#issuecomment-2027990288

Comment:
> I have not managed to successfully build it on Musl.

Nobody did. It's not supported.  Read here - https://github.com/ptitSeb/box64/issues/998#issuecomment-1742037374
I found the answer. So can you next time ;-) !

**fixed template (not tested)**
You will need specific builds for, e.g., rpi4, or rk3588. Generic aarch64 won't work for those.
See all the supported platforms [here](https://github.com/ptitSeb/box64/blob/main/docs/COMPILE.md).

```bash
# Template file for 'box64'
pkgname=box64
version=0.2.6
revision=1
build_style=cmake
configure_args="-DNOGIT=1 -DNO_LIB_INSTALL=1"
hostmakedepends="perl python3"
short_desc="Linux Userspace x86_64 Emulator with a twist"
maintainer="jaminW55 <jaminW@proton.me>"
license="MIT"
homepage="https://box86.org"
changelog="https://raw.githubusercontent.com/ptitSeb/box64/main/docs/CHANGELOG.md"
distfiles="https://github.com/ptitSeb/box64/archive/v${version}.tar.gz"
checksum=ef002041aeefec49efb9a2cb276ab4a99d048df0be06416b93b22e507e263f61
conf_files="/etc/box64.box64rc"
nopie=yes

case "$XBPS_TARGET_MACHINE" in
	aarch64) configure_args+=" -DARM_DYNAREC=ON"         ;;
	riscv64) configure_args+=" -DRV64=1"                 ;;
	x86_64)  configure_args+=" -DLD80BITS=1 -DNOALIGN=1" ;;
	*)       broken="platform not supported"             ;;
esac

do_install() {
	vbin build/box64
	vdoc docs/USAGE.md
	vdoc docs/X64WINE.md
	vconf system/box64.box64rc
	vlicense LICENSE
	pod2man --center "Manual" --release "box64 ${version}" \
		docs/box64.pod > box64.1
	vman box64.1
}
```
**fix-pod.patch**
```diff
diff --git a/docs/box64.pod b/docs/box64.pod
index 3da39c71a..489f158a4 100644
--- a/docs/box64.pod
+++ b/docs/box64.pod
@@ -481,4 +481,6 @@ script. yyyy needs to be a full path to a valid x86_64 version of bash
     * 1 : Launch `gdb` when a segfault, bus error or illegal instruction signal is trapped, attached to the offending process and go in an endless loop, waiting. When in gdb, you need to find the correct thread yourself (the one with `my_box64signalhandler` in is stack) then probably need to `finish` 1 or 2 functions (inside `usleep(..)`) and then you'll be in `my_box64signalhandler`, just before the printf of the Segfault message. Then simply  `set waiting=0` to exit the infinite loop.
     * 2 : Launch `gdbserver` when a segfault, bus error or illegal instruction signal is trapped, attached to the offending process, and go in an endless loop, waiting. Use `gdb /PATH/TO/box64` and then `target remote 127.0.0.1:1234` to connect to the gdbserver (or use actual IP if not on the machine). After that, the procedure is the same as with ` BOX64_JITGDB=1`. This mode can be usefullwhen programs redirect all console output to a file (like Unity3D Games)
 
+=back
+
 =cut
```

  parent reply	other threads:[~2024-03-30  9:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-30  3:42 [ISSUE] " jaminW55
2024-03-30  3:42 ` jaminW55
2024-03-30  3:43 ` jaminW55
2024-03-30  9:29 ` chrysos349 [this message]
2024-03-30 13:51 ` ahesford
2024-03-30 20:55 ` jaminW55
2024-03-30 20:57 ` jaminW55
2024-03-30 21:07 ` jaminW55
2024-03-30 21:07 ` jaminW55

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240330092910.9BC1E20254@inbox.vuxu.org \
    --to=chrysos349@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).