Created attachment 395350 [details, diff] Fix for building on musl libgamin fails with "error: ‘PTHREAD_MUTEX_RECURSIVE_NP’ undeclared" Attached patch from Alpine linux against hardened-dev:musl branch fixes this
Comment on attachment 395350 [details, diff] Fix for building on musl That doesn't look like the patch you wanted to attach.
Created attachment 395408 [details, diff] Patch against gamin git
(In reply to Felix Janda from comment #2) > Created attachment 395408 [details, diff] [details, diff] > Patch against gamin git has this gone upstream? (In reply to Fredric Johansson from comment #0) > Created attachment 395350 [details, diff] [details, diff] > Fix for building on musl > > libgamin fails with "error: ‘PTHREAD_MUTEX_RECURSIVE_NP’ undeclared" > Attached patch from Alpine linux against hardened-dev:musl branch fixes this @Fredric. In case you haven't noticed, I added this to the overlay long ago.
@blueness, feel free to commit to the tree if you want
The patch didn't go upstream because I didn't feel like signing up for another bugzilla at the time. Please feel free to take it upstream.
There is actually already an upstream bug report about a similar problem: https://bugzilla.gnome.org/show_bug.cgi?id=588337
and still not resolved: dev-libs/libgamin-0.1.10-r6 - /.../gam_data.c: error: PTHREAD_MUTEX_RECURSIVE_NP undeclared (first use in this function)
tinderbox_musl has reproduced this issue with version 0.1.10-r6 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11559f90b487fb1480b81dd58eb490e091042f5f commit 11559f90b487fb1480b81dd58eb490e091042f5f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-07 03:49:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-07 03:49:24 +0000 dev-libs/libgamin: fix musl build Upstream is long dead and the patch has been used in ::musl for quite some time. Closes: https://bugs.gentoo.org/538474 Signed-off-by: Sam James <sam@gentoo.org> .../files/libgamin-0.1.10-musl-pthread.patch | 33 ++++++++++++++++++++++ dev-libs/libgamin/libgamin-0.1.10-r6.ebuild | 3 ++ 2 files changed, 36 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/musl.git/commit/?id=c5847976afc0970df6ae46f0e60028de8773a47c commit c5847976afc0970df6ae46f0e60028de8773a47c Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-07 04:04:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-07 04:04:48 +0000 dev-libs/libgamin: treeclean (now in ::gentoo) Bug: https://bugs.gentoo.org/538474 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libgamin/Manifest | 4 - .../libgamin-0.1.10-G_CONST_RETURN-removal.patch | 67 -------------- .../files/libgamin-0.1.10-armel-features.patch | 47 ---------- .../files/libgamin-0.1.10-compilewarnings.patch | 22 ----- .../files/libgamin-0.1.10-crosscompile-fix.patch | 38 -------- .../libgamin/files/libgamin-0.1.10-deadlock.patch | 65 ------------- ...amin-0.1.10-disable_python_static_library.patch | 13 --- .../files/libgamin-0.1.10-fix-pthread-mutex.patch | 11 --- .../files/libgamin-0.1.10-noinst-lib.patch | 76 --------------- dev-libs/libgamin/libgamin-0.1.10-r6.ebuild | 102 --------------------- dev-libs/libgamin/metadata.xml | 7 -- 11 files changed, 452 deletions(-)