Github messages for voidlinux
 help / color / mirror / Atom feed
From: Gottox <Gottox@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] ksh: fix cross build
Date: Wed, 31 Mar 2021 22:57:32 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29911@inbox.vuxu.org> (raw)

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

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

https://github.com/Gottox/void-packages ksh-cross
https://github.com/void-linux/void-packages/pull/29911

ksh: fix cross build


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

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

From 33c97b7878f1284cca44ddfb3bf5712e88bac707 Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Wed, 31 Mar 2021 22:57:22 +0200
Subject: [PATCH] ksh: fix cross build

---
 srcpkgs/ksh/patches/fix-cross.diff | 9 +++++++++
 srcpkgs/ksh/template               | 6 ++++--
 2 files changed, 13 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/ksh/patches/fix-cross.diff

diff --git a/srcpkgs/ksh/patches/fix-cross.diff b/srcpkgs/ksh/patches/fix-cross.diff
new file mode 100644
index 000000000000..dfefdaccb6b5
--- /dev/null
+++ b/srcpkgs/ksh/patches/fix-cross.diff
@@ -0,0 +1,9 @@
+--- scripts/libast_prereq.sh.orig	2021-03-31 22:45:26.222481811 +0200
++++ scripts/libast_prereq.sh	2021-03-31 22:45:34.162481713 +0200
+@@ -25,5 +25,5 @@ cd "$MESON_BUILD_ROOT"
+ # Generate header files whose content depends on the current platform.
+ "$MESON_SOURCE_ROOT/scripts/siglist.sh" > features/siglist.h
+ # shellcheck disable=SC2086
+-$CC -D_BLD_DLL $INC_DIRS -std=gnu99 -o "sfinit" "$MESON_SOURCE_ROOT/etc/sfinit.c"
++cc -D_BLD_DLL $INC_DIRS -std=gnu99 -o "sfinit" "$MESON_SOURCE_ROOT/etc/sfinit.c"
+ ./sfinit > features/sfinit.h
diff --git a/srcpkgs/ksh/template b/srcpkgs/ksh/template
index 2709dacc0b02..8937bdcb3e4b 100644
--- a/srcpkgs/ksh/template
+++ b/srcpkgs/ksh/template
@@ -4,14 +4,16 @@ version=2020.0.0
 revision=1
 wrksrc="ast-${version}"
 build_style=meson
-configure_args="-Dbuild-api-tests=false -Dbuild-api-tests-only=true"
+build_helper="qemu"
+configure_args="-Dbuild-api-tests=false -Dbuild-api-tests-only=true
+ -Dexe_wrapper=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
 short_desc="AT&T's Korn shell (ksh93)"
 maintainer="Leah Neukirchen <leah@vuxu.org>"
 license="EPL-1.0"
 homepage="http://www.kornshell.com/"
 distfiles="https://github.com/att/ast/archive/${version}.tar.gz"
 checksum=76597c96c4f94423b9225b5de50ea54be08d5bbaa1e0e594a7eec603bd60ecaf
-nocross=yes
+#nocross=yes
 
 register_shell="/bin/ksh"
 alternatives="

             reply	other threads:[~2021-03-31 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 20:57 Gottox [this message]
2021-03-31 20:58 ` [PR PATCH] [Updated] " Gottox
2021-03-31 21:08 ` [PR REVIEW] " ericonr
2021-03-31 21:08 ` ericonr
2021-04-01  6:28 ` Gottox
2021-04-06 19:36 ` Gottox
2021-04-06 19:36 ` [PR PATCH] [Closed]: " Gottox

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-29911@inbox.vuxu.org \
    --to=gottox@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).