Issue: net-ftp/ftp-0.17.34.0.2.5.1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
This machine uses MUSL libc
Created attachment 764048 [details]
build log and emerge --info
Looks like GLOB_BRACE isn't supported on musl.
Created attachment 787103 [details, diff]
define GLOB_BRACE for musl compatibility
musl doesn't define GLOB_BRACE for glob(3), because is a GNU extension. This patch only sets GLOB_BRACE to zero.
Created attachment 787106 [details, diff]
musl patch for net-ftp/ftp-0.17.34.0.2.5.1.ebuild
This patch makes the following changes to the net-ftp/ftp ebuild, for musl support:
* add sys-libs/obstack-standalone as a dependency
* apply the GLOB_BRACE patch
* add -lobstack as a linking library
(In reply to CFuga from comment #4)
> Created attachment 787106 [details, diff] [details, diff]
> musl patch for net-ftp/ftp-0.17.34.0.2.5.1.ebuild
> This patch makes the following changes to the net-ftp/ftp ebuild, for musl
> * add sys-libs/obstack-standalone as a dependency
> * apply the GLOB_BRACE patch
> * add -lobstack as a linking library
It should be okay to apply the patch unconditionally, e.g. https://firstname.lastname@example.org/ has some context (but I figure you were being conservative).
For something like this where upstream is long gone, it matters less, but in general, better to do unconditional patching so it doesn't stop applying but nobody notices, etc: https://devmanual.gentoo.org/ebuild-writing/misc-files/patches/index.html#conditional-patching.
The bug has been closed via the following commit(s):
Author: Sam James <email@example.com>
AuthorDate: 2022-06-25 04:27:19 +0000
Commit: Sam James <firstname.lastname@example.org>
CommitDate: 2022-06-25 04:29:11 +0000
net-ftp/ftp: fix musl build; modernise
Thanks-to: Cristian Othón Martínez Vera <email@example.com>
Signed-off-by: Sam James <firstname.lastname@example.org>
.../ftp-0.17.34.0.2.5.1-musl-glob-brace.patch | 14 ++++++++++
net-ftp/ftp/ftp-0.17.34.0.2.5.1.ebuild | 30 ++++++++++++++--------
2 files changed, 33 insertions(+), 11 deletions(-)