Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538474 - dev-libs/libgamin-0.1.10-r6 with sys-libs/musl - error: ‘PTHREAD_MUTEX_RECURSIVE_NP’ undeclared
Summary: dev-libs/libgamin-0.1.10-r6 with sys-libs/musl - error: ‘PTHREAD_MUTEX_RECURS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-02-01 21:46 UTC by Fredric Johansson
Modified: 2022-02-07 04:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for building on musl (dev-libs-libgamin-musl.patch,34.09 KB, patch)
2015-02-01 21:46 UTC, Fredric Johansson
Details | Diff
Patch against gamin git (gamin.patch,1.26 KB, patch)
2015-02-02 19:15 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fredric Johansson 2015-02-01 21:46:57 UTC
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 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-02 10:38:19 UTC
Comment on attachment 395350 [details, diff]
Fix for building on musl

That doesn't look like the patch you wanted to attach.
Comment 2 Felix Janda 2015-02-02 19:15:57 UTC
Created attachment 395408 [details, diff]
Patch against gamin git
Comment 3 Anthony Basile gentoo-dev 2015-05-13 17:37:52 UTC
(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.
Comment 4 Pacho Ramos gentoo-dev 2015-05-13 18:31:37 UTC
@blueness, feel free to commit to the tree if you want
Comment 5 Felix Janda 2015-05-14 16:25:43 UTC
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.
Comment 6 Felix Janda 2016-01-09 12:39:55 UTC
There is actually already an upstream bug report about a similar problem:

https://bugzilla.gnome.org/show_bug.cgi?id=588337
Comment 7 Toralf Förster gentoo-dev 2021-12-09 16:56:01 UTC
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)
Comment 8 Agostino Sarubbo gentoo-dev 2021-12-29 22:03:04 UTC
tinderbox_musl has reproduced this issue with version 0.1.10-r6 - Updating summary.
Comment 9 Larry the Git Cow gentoo-dev 2022-02-07 03:50:36 UTC
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(+)
Comment 10 Larry the Git Cow gentoo-dev 2022-02-07 04:11:23 UTC
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(-)