From: Gorggg <Gorggg@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gcompat: update to 0.9.0.
Date: Sat, 08 Aug 2020 05:20:04 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24134@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
There is a new pull request by Gorggg against master on the void-packages repository
https://github.com/Gorggg/void-packages gcompatupdate
https://github.com/void-linux/void-packages/pull/24134
gcompat: update to 0.9.0.
The patch for powerpc is no longer needed, as it was applied upstream.
A patch file from https://github.com/void-linux/void-packages/pull/24134.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcompatupdate-24134.patch --]
[-- Type: text/x-diff, Size: 3689 bytes --]
From eefb2da5fb6aeb02faf688e7574e7814e2914218 Mon Sep 17 00:00:00 2001
From: George Matsumura <gmmatsumura01@bvsd.org>
Date: Fri, 7 Aug 2020 21:13:31 -0600
Subject: [PATCH] gcompat: update to 0.9.0.
The patch is no longer needed, as it was applied upstream.
---
.../gcompat/patches/ppc-libc_start_main.patch | 67 -------------------
srcpkgs/gcompat/template | 4 +-
2 files changed, 2 insertions(+), 69 deletions(-)
delete mode 100644 srcpkgs/gcompat/patches/ppc-libc_start_main.patch
diff --git a/srcpkgs/gcompat/patches/ppc-libc_start_main.patch b/srcpkgs/gcompat/patches/ppc-libc_start_main.patch
deleted file mode 100644
index 518292745f7..00000000000
--- a/srcpkgs/gcompat/patches/ppc-libc_start_main.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From d30e49d10cefeb2748373127e1d1aba1184f653d Mon Sep 17 00:00:00 2001
-From: q66 <daniel@octaforge.org>
-Date: Sun, 10 Nov 2019 15:32:28 +0100
-Subject: [PATCH 1/1] internal: add a wrapper for __libc_start_main for
- PowerPC(64(le))
-
-This is necessary because the musl and glibc function signatures
-differ significantly.
----
- libgcompat/internal.c | 41 +++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 41 insertions(+)
-
-diff --git a/libgcompat/internal.c b/libgcompat/internal.c
-index 450c5e4..53ac429 100644
---- libgcompat/internal.c
-+++ libgcompat/internal.c
-@@ -2,6 +2,47 @@
- #include <stdio.h>
- #include <stdlib.h>
-
-+#if defined(__powerpc__)
-+
-+/* On PowerPC as well as ppc64, we need to fix up __libc_start_main as the
-+ * glibc and musl versions have wildly different signatures, which would
-+ * result in the arguments to __libc_start_main being completely wrong.
-+ *
-+ * Using dlsym in this context is mildly questionable as this is before
-+ * the full initialization has been done, but there is no better way.
-+ */
-+
-+#include <dlfcn.h>
-+
-+struct startup_info {
-+ void *sda_base;
-+ void *f_main;
-+ void *f_init;
-+ void *f_fini;
-+};
-+
-+typedef int (*start_main_t)(void *mf, int argc, char **argv);
-+
-+/*
-+ * ref: https://git.musl-libc.org/cgit/musl/tree/crt/crt1.c?id=90251cf
-+ * ref: https://git.musl-libc.org/cgit/musl/tree/src/env/__libc_start_main.c?id=90251cf#n71
-+ * ref: https://github.com/bminor/glibc/blob/5cb226d/sysdeps/unix/sysv/linux/powerpc/libc-start.c#L36
-+ */
-+int __libc_start_main(void *argc, void *argv, void *ev, void *auxv, void *fini,
-+ struct startup_info *si, long *p)
-+{
-+ (void)argc;
-+ (void)argv;
-+ (void)ev;
-+ (void)auxv;
-+ (void)fini;
-+ /* argc/argv from the stack, main from startup_info */
-+ start_main_t mainf = (start_main_t)dlsym(RTLD_NEXT, "__libc_start_main");
-+ return mainf(si->f_main, *p, (void *)(p + 1));
-+}
-+
-+#endif /* defined(__powerpc__) */
-+
- void GCOMPAT__panic(const char *fmt, ...)
- {
- va_list va;
---
-2.23.0
-
diff --git a/srcpkgs/gcompat/template b/srcpkgs/gcompat/template
index 237f97bd5e9..6441d74768e 100644
--- a/srcpkgs/gcompat/template
+++ b/srcpkgs/gcompat/template
@@ -1,6 +1,6 @@
# Template file for 'gcompat'
pkgname=gcompat
-version=0.4.0
+version=0.9.0
revision=1
build_style=gnu-makefile
short_desc="Compatibility layer to allow running glibc binaries on musl systems"
@@ -8,7 +8,7 @@ maintainer="Daniel James <djames@orcadian.net>"
license="ISC"
homepage="https://code.foxkit.us/adelie/gcompat"
distfiles="https://distfiles.AdelieLinux.org/source/${pkgname}/${pkgname}-${version}.tar.xz"
-checksum=9903fac7b70de3ba7736ae2987fa00bbafff7bfcf6a9c88731c292dff19e44e2
+checksum=4555d045d7d2831d11b907719005c5dfbc77642c32f8c0172d40883026ffaf53
build_options="libucontext"
desc_option_libucontext="Build with ucontext support via libucontext"
next reply other threads:[~2020-08-08 3:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-08 3:20 Gorggg [this message]
2020-08-08 14:17 ` ericonr
2020-08-08 14:23 ` [PR PATCH] [Closed]: " Johnnynator
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-24134@inbox.vuxu.org \
--to=gorggg@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).