Github messages for voidlinux
 help / color / mirror / Atom feed
From: Piraty <Piraty@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] cross-aarch64-linux-musl: do not remove gcc's stddef.h
Date: Sun, 16 Aug 2020 13:19:02 +0200	[thread overview]
Message-ID: <20200816111902.Xk1vHw4pBWWFPdvSgVff3X2RqZDNaoIJlXfZV8r6qTY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24307@inbox.vuxu.org>

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

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

https://github.com/Piraty/void-packages cross-aarch64-musl-stddef-fix
https://github.com/void-linux/void-packages/pull/24307

cross-aarch64-linux-musl: do not remove gcc's stddef.h
224951e9dd7820f31ffce0fbe853e860bb37accc forgot to touch aarch64-musl,
possibly because it was added around that time.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cross-aarch64-musl-stddef-fix-24307.patch --]
[-- Type: text/x-diff, Size: 3212 bytes --]

From 065d3a58d4fca5b253f24b686d9f3cb196ac6869 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sun, 16 Aug 2020 10:47:44 +0200
Subject: [PATCH 1/3] cross-aarch64-linux-musl: do not remove gcc's stddef.h

224951e9dd7820f31ffce0fbe853e860bb37accc forgot to address aarch64-musl,
possibly because it was added around that time.
---
 srcpkgs/cross-aarch64-linux-musl/template | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 7766a9c929d..8dba1d564ec 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -12,7 +12,7 @@ _sysroot="/usr/${_triplet}"
 
 pkgname=cross-${_triplet}
 version=0.33
-revision=2
+revision=3
 short_desc="Cross toolchain for ARM64 LE target (musl)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="https://www.voidlinux.org/"
@@ -284,8 +284,7 @@ do_install() {
 	make DESTDIR=${DESTDIR}/${_sysroot} install
 
 	# Remove useless headers.
-	rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed/ \
-		${DESTDIR}/usr/lib/gcc/${_triplet}/*/include/stddef.h
+	rm -rf ${DESTDIR}/usr/lib/gcc/${_triplet}/*/include-fixed
 
 	# Make ld-musl.so symlinks relative.
 	ln -sf libc.so ${DESTDIR}/${_sysroot}/usr/lib/ld-musl-aarch64.so.1

From 07fb56d23a918279f9a264095fd0c423df540f4b Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sun, 16 Aug 2020 10:53:13 +0200
Subject: [PATCH 2/3] pinebookpro-uboot: remove stddef hack for musl

---
 srcpkgs/pinebookpro-uboot/template | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/srcpkgs/pinebookpro-uboot/template b/srcpkgs/pinebookpro-uboot/template
index b1fdd304ed1..7df07bb9a71 100644
--- a/srcpkgs/pinebookpro-uboot/template
+++ b/srcpkgs/pinebookpro-uboot/template
@@ -20,9 +20,6 @@ do_fetch() {
 	git clone https://git.eno.space/pbp-uboot.git
 	cd pbp-uboot
 	git reset --hard ${_commit_uboot}
-	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
-		touch include/stddef.h
-	fi
 
 	cd "${wrksrc}"
 	git clone https://github.com/ARM-software/arm-trusted-firmware.git

From afcd2e30d050823d492e1ad829fa04c4702be58f Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sun, 16 Aug 2020 10:53:13 +0200
Subject: [PATCH 3/3] u-boot-tools: remove stddef hack for musl

[ci skip]
---
 srcpkgs/u-boot-tools/template | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/u-boot-tools/template b/srcpkgs/u-boot-tools/template
index 0c166b42dc9..0859350f18a 100644
--- a/srcpkgs/u-boot-tools/template
+++ b/srcpkgs/u-boot-tools/template
@@ -20,7 +20,6 @@ if [ "$CROSS_BUILD" ]; then
 fi
 
 post_extract() {
-	touch include/stddef.h  # musl hack
 	vsed '1itypedef unsigned long ulong;' \
 		-i include/image.h \
 		-i include/env.h \
@@ -32,6 +31,12 @@ do_configure() {
 	make ${makejobs} ${make_build_args} tools-only_defconfig
 }
 
+do_check() {
+	# skip tests for now. requires some gymnastics to make the python scripts
+	# find libfdt. the most useful target appears to be "make tcheck"
+	: ;
+}
+
 do_install() {
 	ln -sf fw_printenv tools/env/fw_setenv
 	for x in dumpimage fdtgrep fit_check_sign fit_info gen_eth_addr \

  parent reply	other threads:[~2020-08-16 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-16 11:17 [PR PATCH] " Piraty
2020-08-16 11:18 ` [PR PATCH] [Updated] " Piraty
2020-08-16 11:19 ` Piraty [this message]
2020-08-20 15:08 ` Piraty
2020-08-20 15:08 ` [PR PATCH] [Closed]: " Piraty

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=20200816111902.Xk1vHw4pBWWFPdvSgVff3X2RqZDNaoIJlXfZV8r6qTY@z \
    --to=piraty@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).