* [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic)
@ 2020-01-09 1:42 voidlinux-github
2020-01-09 12:46 ` voidlinux-github
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-09 1:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
There is a new pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages bloaty
https://github.com/void-linux/void-packages/pull/18123
bloaty: fix build on ppc32 and armv6 (use libatomic)
Need to give this a CI run.
A patch file from https://github.com/void-linux/void-packages/pull/18123.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bloaty-18123.patch --]
[-- Type: text/x-diff, Size: 1130 bytes --]
From 2bc76f12ca3120941ff554f528dfeda356315afb Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Thu, 9 Jan 2020 02:41:23 +0100
Subject: [PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic)
---
srcpkgs/bloaty/template | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/bloaty/template b/srcpkgs/bloaty/template
index 44d402dbbea..a94dc5befab 100644
--- a/srcpkgs/bloaty/template
+++ b/srcpkgs/bloaty/template
@@ -13,13 +13,24 @@ distfiles="https://github.com/google/bloaty/releases/download/v${version}/bloaty
checksum=e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0
case "$XBPS_TARGET_MACHINE" in
- armv6*) broken="undefined reference to __atomic_fetch_add_8'" ;;
+ ppc64*) ;;
+ armv6*|ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" protobuf"
fi
+post_extract() {
+ case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ armv6*|ppc*)
+ echo 'target_link_libraries(libprotobuf atomic)' >> \
+ third_party/protobuf/cmake/libprotobuf.cmake
+ ;;
+ esac
+}
+
do_install() {
vbin build/bloaty
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
@ 2020-01-09 12:46 ` voidlinux-github
2020-01-09 15:59 ` voidlinux-github
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-09 12:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
New comment by ndowens on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-572546057
Comment:
I was also trying to fix this, if you add protobuf-devel, atleast for the one arch I was testing on, will giving errors. The needed file is also in the third_party part of wrksrc as well.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
2020-01-09 12:46 ` voidlinux-github
@ 2020-01-09 15:59 ` voidlinux-github
2020-01-10 13:03 ` voidlinux-github
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-09 15:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
New comment by ndowens on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-572625907
Comment:
http://dpaste.com/12WWYZA is the errors when you add protobuf-devel to makedepends, but even if you know how to fix them, it is generated during build, so can't really patch before it is built at all.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
2020-01-09 12:46 ` voidlinux-github
2020-01-09 15:59 ` voidlinux-github
@ 2020-01-10 13:03 ` voidlinux-github
2020-01-10 13:04 ` [PR PATCH] [Updated] " voidlinux-github
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-573027086
Comment:
looks to me it's failing on all cross even before my changes...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (2 preceding siblings ...)
2020-01-10 13:03 ` voidlinux-github
@ 2020-01-10 13:04 ` voidlinux-github
2020-01-10 13:04 ` voidlinux-github
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages bloaty
https://github.com/void-linux/void-packages/pull/18123
bloaty: fix build on ppc32 and armv6 (use libatomic)
Need to give this a CI run.
A patch file from https://github.com/void-linux/void-packages/pull/18123.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bloaty-18123.patch --]
[-- Type: text/x-diff, Size: 1260 bytes --]
From ba94e500c3ac991424cf5b36c28c4711ad8fc779 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Thu, 9 Jan 2020 02:41:23 +0100
Subject: [PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic)
---
srcpkgs/bloaty/template | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/bloaty/template b/srcpkgs/bloaty/template
index 44d402dbbea..d496211f35f 100644
--- a/srcpkgs/bloaty/template
+++ b/srcpkgs/bloaty/template
@@ -11,15 +11,27 @@ license="Apache-2.0"
homepage="https://github.com/google/bloaty"
distfiles="https://github.com/google/bloaty/releases/download/v${version}/bloaty-${version}.tar.bz2"
checksum=e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0
+nocross="fails to use vendored protobuf"
case "$XBPS_TARGET_MACHINE" in
- armv6*) broken="undefined reference to __atomic_fetch_add_8'" ;;
+ ppc64*) ;;
+ armv6*|ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" protobuf"
fi
+post_extract() {
+ case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ armv6*|ppc*)
+ echo 'target_link_libraries(libprotobuf atomic)' >> \
+ third_party/protobuf/cmake/libprotobuf.cmake
+ ;;
+ esac
+}
+
do_install() {
vbin build/bloaty
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (3 preceding siblings ...)
2020-01-10 13:04 ` [PR PATCH] [Updated] " voidlinux-github
@ 2020-01-10 13:04 ` voidlinux-github
2020-01-10 13:05 ` [PR PATCH] [Updated] " voidlinux-github
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
New comment by ndowens on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-573027422
Comment:
Yep, I have yet to figure out how to fix cross-build yet.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (4 preceding siblings ...)
2020-01-10 13:04 ` voidlinux-github
@ 2020-01-10 13:05 ` voidlinux-github
2020-01-10 13:05 ` [PR PATCH] [Merged]: " voidlinux-github
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages bloaty
https://github.com/void-linux/void-packages/pull/18123
bloaty: fix build on ppc32 and armv6 (use libatomic)
Need to give this a CI run.
A patch file from https://github.com/void-linux/void-packages/pull/18123.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bloaty-18123.patch --]
[-- Type: text/x-diff, Size: 1373 bytes --]
From 4d6599c193db600e15c81c7baed81e370811b27b Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Thu, 9 Jan 2020 02:41:23 +0100
Subject: [PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) +
nocross
According to CI, this currently fails on all cross archs because
of failure to use vendored protobuf.
---
srcpkgs/bloaty/template | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/bloaty/template b/srcpkgs/bloaty/template
index 44d402dbbea..d496211f35f 100644
--- a/srcpkgs/bloaty/template
+++ b/srcpkgs/bloaty/template
@@ -11,15 +11,27 @@ license="Apache-2.0"
homepage="https://github.com/google/bloaty"
distfiles="https://github.com/google/bloaty/releases/download/v${version}/bloaty-${version}.tar.bz2"
checksum=e1cf9830ba6c455218fdb50e7a8554ff256da749878acfaf77c032140d7ddde0
+nocross="fails to use vendored protobuf"
case "$XBPS_TARGET_MACHINE" in
- armv6*) broken="undefined reference to __atomic_fetch_add_8'" ;;
+ ppc64*) ;;
+ armv6*|ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" protobuf"
fi
+post_extract() {
+ case "$XBPS_TARGET_MACHINE" in
+ ppc64*) ;;
+ armv6*|ppc*)
+ echo 'target_link_libraries(libprotobuf atomic)' >> \
+ third_party/protobuf/cmake/libprotobuf.cmake
+ ;;
+ esac
+}
+
do_install() {
vbin build/bloaty
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Merged]: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (5 preceding siblings ...)
2020-01-10 13:05 ` [PR PATCH] [Updated] " voidlinux-github
@ 2020-01-10 13:05 ` voidlinux-github
2020-01-10 13:05 ` voidlinux-github
2020-01-10 13:05 ` voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 213 bytes --]
There's a merged pull request on the void-packages repository
bloaty: fix build on ppc32 and armv6 (use libatomic)
https://github.com/void-linux/void-packages/pull/18123
Description:
Need to give this a CI run.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (6 preceding siblings ...)
2020-01-10 13:05 ` [PR PATCH] [Merged]: " voidlinux-github
@ 2020-01-10 13:05 ` voidlinux-github
2020-01-10 13:05 ` voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-573027714
Comment:
merged with nocross for now
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: bloaty: fix build on ppc32 and armv6 (use libatomic)
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
` (7 preceding siblings ...)
2020-01-10 13:05 ` voidlinux-github
@ 2020-01-10 13:05 ` voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2020-01-10 13:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/18123#issuecomment-573027714
Comment:
merged with nocross for now
i just know doing it like you said is not the right way - protobuf is vendored in this, and it should be using that
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-01-10 13:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 1:42 [PR PATCH] bloaty: fix build on ppc32 and armv6 (use libatomic) voidlinux-github
2020-01-09 12:46 ` voidlinux-github
2020-01-09 15:59 ` voidlinux-github
2020-01-10 13:03 ` voidlinux-github
2020-01-10 13:04 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-10 13:04 ` voidlinux-github
2020-01-10 13:05 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-10 13:05 ` [PR PATCH] [Merged]: " voidlinux-github
2020-01-10 13:05 ` voidlinux-github
2020-01-10 13:05 ` voidlinux-github
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).