Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h
@ 2020-08-16 11:17 Piraty
  2020-08-16 11:18 ` [PR PATCH] [Updated] " Piraty
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Piraty @ 2020-08-16 11:17 UTC (permalink / raw)
  To: ml

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

There is a new 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: 3200 bytes --]

From 281e0dc4b0167e0704241179419d52685c9ab237 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 touch 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 b71f92ae33b15d9020c3277b985751b8336e9b57 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 c413dc17fd0966bf2e073a0f937f3f0e0b6807a9 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

---
 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 \

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

* Re: [PR PATCH] [Updated] cross-aarch64-linux-musl: do not remove gcc's stddef.h
  2020-08-16 11:17 [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h Piraty
@ 2020-08-16 11:18 ` Piraty
  2020-08-16 11:19 ` Piraty
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Piraty @ 2020-08-16 11:18 UTC (permalink / raw)
  To: ml

[-- 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: 3210 bytes --]

From 281e0dc4b0167e0704241179419d52685c9ab237 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 touch 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 b71f92ae33b15d9020c3277b985751b8336e9b57 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 4c26ac02508b9ed75f42663ed7316c6a4719e00f 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 \

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

* Re: [PR PATCH] [Updated] cross-aarch64-linux-musl: do not remove gcc's stddef.h
  2020-08-16 11:17 [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h Piraty
  2020-08-16 11:18 ` [PR PATCH] [Updated] " Piraty
@ 2020-08-16 11:19 ` Piraty
  2020-08-20 15:08 ` Piraty
  2020-08-20 15:08 ` [PR PATCH] [Closed]: " Piraty
  3 siblings, 0 replies; 5+ messages in thread
From: Piraty @ 2020-08-16 11:19 UTC (permalink / raw)
  To: ml

[-- 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 \

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

* Re: cross-aarch64-linux-musl: do not remove gcc's stddef.h
  2020-08-16 11:17 [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h Piraty
  2020-08-16 11:18 ` [PR PATCH] [Updated] " Piraty
  2020-08-16 11:19 ` Piraty
@ 2020-08-20 15:08 ` Piraty
  2020-08-20 15:08 ` [PR PATCH] [Closed]: " Piraty
  3 siblings, 0 replies; 5+ messages in thread
From: Piraty @ 2020-08-20 15:08 UTC (permalink / raw)
  To: ml

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

New comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/24307#issuecomment-677723513

Comment:
849570a814f0a48cf1612f1ae0ecf3e33d1db7c3, 8a030ccff43aece351f4e03f3333eb0a6e0059ae, 77085725d982a81f6c695dc44e056affc8e7b93a

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

* Re: [PR PATCH] [Closed]: cross-aarch64-linux-musl: do not remove gcc's stddef.h
  2020-08-16 11:17 [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h Piraty
                   ` (2 preceding siblings ...)
  2020-08-20 15:08 ` Piraty
@ 2020-08-20 15:08 ` Piraty
  3 siblings, 0 replies; 5+ messages in thread
From: Piraty @ 2020-08-20 15:08 UTC (permalink / raw)
  To: ml

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

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

cross-aarch64-linux-musl: do not remove gcc's stddef.h
https://github.com/void-linux/void-packages/pull/24307

Description:
224951e9dd7820f31ffce0fbe853e860bb37accc forgot to touch aarch64-musl,
possibly because it was added around that time.

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

end of thread, other threads:[~2020-08-20 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 11:17 [PR PATCH] cross-aarch64-linux-musl: do not remove gcc's stddef.h Piraty
2020-08-16 11:18 ` [PR PATCH] [Updated] " Piraty
2020-08-16 11:19 ` Piraty
2020-08-20 15:08 ` Piraty
2020-08-20 15:08 ` [PR PATCH] [Closed]: " Piraty

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).