Created attachment 202258 [details] patch Building with GCC requires including atomic in src/core/init.cpp. While here, also don't assume building on FreeBSD. I know I sent a patch for this port to fix build on GCC before, but it was before the switch to GCC 8, so that's why it built previously. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
Committed the Makefile part. The patch is wrong, it introduces the third instance of #include <atomic> in their code. Thanks for your submission!
A commit references this bug: Author: yuri Date: Sat Feb 23 17:19:11 UTC 2019 New revision: 493713 URL: https://svnweb.freebsd.org/changeset/ports/493713 Log: audio/giada: fix build with GCC-based architectures, don't assume building on FreeBSD PR: 235933 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Changes: head/audio/giada/Makefile
What do you mean? root@talos:$/usr/ports/audio/giada$ grep atomic work/giada-0.15.3/src/core/init.cpp #include <atomic> extern std::atomic<bool> G_quit; This is with my patch.
(In reply to Piotr Kubaj from comment #3) There are 2 atomic includes there: https://github.com/monocasual/giada/blob/master/src/core/init.cpp#L31 I created the PR to remove one: https://github.com/monocasual/giada/pull/242
Also, you should not create port patches that belong in the upstream code.
(In reply to Piotr Kubaj from comment #3) It looks like they modified the place that you did after that release. Unfortunately, they didn't merge the FreeBSD compatibility pull request properly, and now the port can't be updated due to conflicts.
(In reply to Yuri Victorovich from comment #4) You're right, the upstream code has duplicate includes, but the version in ports doesn't have any include. So I'm not introducing duplicate includes.
The upstream is uncooperative, and wouldn't properly merge the patch. I'll probably just remove this port due to the excessive maintanence requirement.
A commit references this bug: Author: yuri Date: Sat Feb 23 18:27:57 UTC 2019 New revision: 493723 URL: https://svnweb.freebsd.org/changeset/ports/493723 Log: audio/giada: fix build with GCC-based architectures, don't assume building on FreeBSD PR: 235933 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Changes: head/audio/giada/files/ head/audio/giada/files/patch-src_core_init.cpp
I added the patch, thanks!