Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830557 - dev-libs/libratbag-0.16 fails to compile: hidpp20-reset.c:26:10: fatal error: error.h: No such file or directory
Summary: dev-libs/libratbag-0.16 fails to compile: hidpp20-reset.c:26:10: fatal error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Barker
URL: https://github.com/libratbag/libratba...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-03 20:47 UTC by Agostino Sarubbo
Modified: 2022-07-18 00:26 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,68.67 KB, text/plain)
2022-01-03 20:47 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-03 20:47:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

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

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 https://github.com/libratbag/libratbag/issues/1253 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7fe66b67489c54ae8244dbbe7d801aed073952f

commit d7fe66b67489c54ae8244dbbe7d801aed073952f
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2022-07-16 07:42:27 +0000
Commit:     Sam James <sam@gentoo.org>
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.
    
    [1]: https://github.com/libratbag/libratbag/issues/1253
    
    Closes: https://bugs.gentoo.org/830557
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26437
    Signed-off-by: Sam James <sam@gentoo.org>

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