From: hazen2215 <hazen2215@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] bees: fix build on musl & platforms without 64-bit atomics
Date: Thu, 06 Jul 2023 14:32:28 +0200 [thread overview]
Message-ID: <20230706123228.F5wsdW1VfOmYWHm43WFXyUEjxvd8gcuAOffUsyKDSZU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44816@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
There is an updated pull request by hazen2215 against master on the void-packages repository
https://github.com/hazen2215/void-packages bees
https://github.com/void-linux/void-packages/pull/44816
bees: fix build on musl & platforms without 64-bit atomics
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
A patch file from https://github.com/void-linux/void-packages/pull/44816.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bees-44816.patch --]
[-- Type: text/x-diff, Size: 2323 bytes --]
From b60ac2032a35c2eaf588c1b2f7f759b4323950b6 Mon Sep 17 00:00:00 2001
From: hazen2215 <haz@disroot.org>
Date: Mon, 3 Jul 2023 23:37:33 +0900
Subject: [PATCH] bees: fix build on musl & platforms without 64-bit atomics
---
srcpkgs/bees/patches/pthread_getname1.patch | 23 +++++++++++++++++++++
srcpkgs/bees/patches/series | 1 +
srcpkgs/bees/template | 6 +++---
3 files changed, 27 insertions(+), 3 deletions(-)
create mode 100644 srcpkgs/bees/patches/pthread_getname1.patch
diff --git a/srcpkgs/bees/patches/pthread_getname1.patch b/srcpkgs/bees/patches/pthread_getname1.patch
new file mode 100644
index 000000000000..2dcc4c63d589
--- /dev/null
+++ b/srcpkgs/bees/patches/pthread_getname1.patch
@@ -0,0 +1,23 @@
+--- a/lib/task.cc
++++ b/lib/task.cc
+@@ -289,7 +289,6 @@
+ lock.unlock();
+
+ char buf[24] = { 0 };
+- DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf)));
+ DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str()));
+
+ TaskStatePtr this_task = shared_from_this();
+--- a/src/bees-trace.cc
++++ b/src/bees-trace.cc
+@@ -136,10 +136,6 @@
+ // OK try the pthread name next.
+ char buf[24];
+ memset(buf, '\0', sizeof(buf));
+- int err = pthread_getname_np(pthread_self(), buf, sizeof(buf));
+- if (err) {
+- return string("pthread_getname_np: ") + strerror(err);
+- }
+ buf[sizeof(buf) - 1] = '\0';
+
+ // thread_getname_np returns process name
diff --git a/srcpkgs/bees/patches/series b/srcpkgs/bees/patches/series
index d9a2837128f2..c0258b77f4a2 100644
--- a/srcpkgs/bees/patches/series
+++ b/srcpkgs/bees/patches/series
@@ -1,2 +1,3 @@
0001-don-t-run-tests-unless-asked.patch
0002-move-sbin-into-bin.patch
+pthread_getname1.patch
diff --git a/srcpkgs/bees/template b/srcpkgs/bees/template
index 9cd43f1d8277..5296bf799137 100644
--- a/srcpkgs/bees/template
+++ b/srcpkgs/bees/template
@@ -1,8 +1,7 @@
# Template file for 'bees'
pkgname=bees
version=0.8
-revision=1
-archs="~*-musl"
+revision=2
build_style=gnu-makefile
make_check_target="test"
hostmakedepends="pkg-config"
@@ -24,7 +23,8 @@ if [ "$CROSS_BUILD" ]; then
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
- broken="undefined reference to __atomic_fetch_add_8"
+ makedepends+=" libatomic-devel"
+ CXXFLAGS+=" -latomic"
fi
pre_build() {
next prev parent reply other threads:[~2023-07-06 12:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 14:51 [PR PATCH] " hazen2215
2023-07-05 3:43 ` [PR REVIEW] " classabbyamp
2023-07-06 12:32 ` hazen2215 [this message]
2023-07-06 12:32 ` hazen2215
2023-07-10 9:30 ` [PR PATCH] [Merged]: " classabbyamp
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=20230706123228.F5wsdW1VfOmYWHm43WFXyUEjxvd8gcuAOffUsyKDSZU@z \
--to=hazen2215@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).