Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 830557

Summary: dev-libs/libratbag-0.16 fails to compile: hidpp20-reset.c:26:10: fatal error: error.h: No such file or directory
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Alex Barker <alex>
Severity: normal CC: alex, polynomial-c, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-03 20:47:24 UTC

Issue: dev-libs/libratbag-0.16 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-03 20:47:27 UTC
Created attachment 761226 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-03 20:47:27 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

../libratbag-0.16/tools/hidpp20-reset.c:26:10: fatal error: error.h: No such file or directory
/var/tmp/portage/dev-libs/libratbag-0.16/temp/environment: line 2167: type: locale: not found
../libratbag-0.16/tools/hidpp20-reset.c:26:10: fatal error: error.h: No such file or directory
Comment 3 Alex Barker 2022-01-03 21:22:35 UTC
It looks like this is already fixed in 0.17 which is still in progress.  I have opened upstream bug just in case.
Comment 4 Larry the Git Cow gentoo-dev 2022-07-18 00:26:26 UTC
The bug has been closed via the following commit(s):

commit d7fe66b67489c54ae8244dbbe7d801aed073952f
Author:     brahmajit das <>
AuthorDate: 2022-07-16 07:42:27 +0000
Commit:     Sam James <>
CommitDate: 2022-07-18 00:26:12 +0000

    dev-libs/libratbag-: Fix missing error.h error on musl
    Since musl doesn't provide error.h we need to check before adding it. If
    error.h is present in system only then we include it else we use err.h.
    Already there exists a bug report for this upstream [1]. The devs are open to
    a custom implementation of error but for now this patch for do it.
    Signed-off-by: brahmajit das <>
    Signed-off-by: Sam James <>

 .../files/libratbag-0.16-musl-error.h.patch        | 69 ++++++++++++++++++++++
 dev-libs/libratbag/libratbag-0.16.ebuild           |  4 ++
 2 files changed, 73 insertions(+)