this patch allow www-misc/htdig-3.2.0_beta6-r3 to compile and run under gentoo over musl
Created attachment 389452 [details, diff]
Created attachment 392516 [details, diff]
more accurate fix
please make a single commit against hardened-dev::musl overlay and upload the patch
Created attachment 393606 [details, diff]
patch against hardened musl branch
(In reply to DaggyStyle from comment #4)
> Created attachment 393606 [details, diff] [details, diff]
> patch against hardened musl branch
A few points about future patches --- to amke my life even easier!
1. Remove the ChangeLog. We don't need to replicate that.
2. Remove any files that we don't need for the ebuild from files. We don't need to duplicate that either. (There are none here, but there were in other patches you submitted.)
3. Make your commit message something like this:
www-misc/htdig: rresvport() not supported in musl
Reopening so we can get this upstream.
Upstream looks kind of dead (last entry to Changelog in CVS is from 2005,
same for the mailing list).
But I think it would be preferable to have the musl patch in the portage
tree rather than in the overlay (might stay forever). (The check for
__UCLIBC__ can be removed since uclibc also exports __GLIBC__.)
(In reply to Felix Janda from comment #7)
> Upstream looks kind of dead (last entry to Changelog in CVS is from 2005,
> same for the mailing list).
> But I think it would be preferable to have the musl patch in the portage
> tree rather than in the overlay (might stay forever). (The check for
> __UCLIBC__ can be removed since uclibc also exports __GLIBC__.)
yeah i kinda figured. I was responding to vapier's point that we really should be getting these patches upstream. may not be always possible though.
Submitted a pull request to get this fixed in the main tree:
commit e4cd88b4c016eb7cbf610ffe1d3a67d2dc332975 (HEAD -> master, origin/master, origin/HEAD)
Author: Felix Janda <email@example.com>
AuthorDate: Tue Jun 13 21:29:45 2017 +0200
Commit: Patrice Clement <firstname.lastname@example.org>
CommitDate: Tue Jun 13 21:31:07 2017 +0200
www-misc/htdig: add patch for musl. EAPI 6 bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.1
.../htdig/files/htdig-3.2.0_beta6-as-needed.patch | 4 +-
www-misc/htdig/files/htdig-3.2.0_beta6-gcc4.patch | 4 +-
www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch | 33 ++++++++++++
www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild | 63 ++++++++++++++++++++++
4 files changed, 100 insertions(+), 4 deletions(-)
create mode 100644 www-misc/htdig/files/htdig-3.2.0_beta6-musl.patch
create mode 100644 www-misc/htdig/htdig-3.2.0_beta6-r5.ebuild