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

Bug 728864

Summary: net-print/hplip-3.20.{5,6}: fails to build with musl libc - missing #include's
Product: Gentoo Linux Reporter: Michael 'veremitz' Everitt <gentoo>
Component: Current packagesAssignee: Michael 'veremitz' Everitt <gentoo>
Status: CONFIRMED ---    
Severity: normal CC: billie, chewi, herrtimson, musl
Priority: Normal Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Michael 'veremitz' Everitt 2020-06-20 06:04:53 UTC
I was preparing to install hplip-3.20.6 in order to test hplip-plugin-3.20.6, but unfortunately we don't presently have the patch(es) needed to build any of the 3.20.x versions of hplip for musl libc in ::gentoo yet (nor ::musl FTR).

As agreed with @billie, happy to submit the required patches for him to include, as they shouldn't affect [normal] glibc installations.

Alpine linux has a full set of patches for 3.20.5 at but these need sync'ing with our own, which I'm happy to do & test.

Assigning to self, as need to log some Z's presently, but making notes to revisit asap. @Chewi will know I've promised him a PR for hplip-plugin once tested :P

Will update as I make progress.
Comment 1 Daniel Pielmeier gentoo-dev 2020-06-20 13:32:20 UTC
No problem with including musl patches. Two things however:

First please make sure that upstream is aware of these patches. At a quick glance I found nothing there.

Second you may look also at the OpenWrt Project [1] and The Void Linux distribution [2] which also support musl and hplip.

Btw. hplip is at 3.20.6 now.

Comment 2 Michael 'veremitz' Everitt 2020-06-20 18:20:50 UTC
Thanks Daniel!

Usually I do check in with void too, as it can be a slow process for musl distros to keep track of upstream releases!

I'll do my best to push necessary patches upstream, I do believe they are receptive to changes and PR, although I'm not 100% at present what their preferred method is.

Thanks for doing the 3.20.6 bump .. for some reason I've lost the email notification I had about the update! I see you've also picked up a dbus issue in another bug too!
Comment 3 tt_1 2020-09-06 11:16:54 UTC
I found an upstream bug for musl support with three patches:
Comment 4 Michael 'veremitz' Everitt 2020-09-06 19:12:08 UTC
(In reply to tt_1 from comment #3)
> I found an upstream bug for musl support with three patches:

Thanks for this, just what we need. Hopefully if these are accepted we can stop carrying downstream patches.

I'm overdue testing the new releases on my musl boxes, but will endeavour to PR these over the next week or so.
Comment 5 tt_1 2020-09-06 19:26:45 UTC
how is the situation with the hplip-plugins package? Does it tolerate a musl
Comment 6 James Le Cuirot gentoo-dev 2020-09-06 19:33:21 UTC
(In reply to tt_1 from comment #5)
> how is the situation with the hplip-plugins package? Does it tolerate a musl

I haven't tried but I think it does, with the exception of
Comment 7 tt_1 2020-09-06 19:40:03 UTC
well, and it seems that hplip-plugins just got a useflag to filter these out, happy days! :)