Summary: | sys-apps/toybox-0.8.10 menuconfig fails to find -lcurses | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | hairu <boulvalex> |
Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | boulvalex, joe |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://github.com/landley/toybox/issues/13 | ||
See Also: |
https://github.com/landley/toybox/pull/332 https://github.com/gentoo/gentoo/pull/35256 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 837812 | ||
Attachments: | patch to permit make menuconfig |
Description
hairu
2024-02-10 05:24:21 UTC
Created attachment 884647 [details, diff]
patch to permit make menuconfig
Correction to description: A trivial patch changing -lcurses to -lncurses -ltinfo solves the issue. Commented at https://github.com/landley/toybox/pull/332#issuecomment-1936917705 to explain the situation. (In reply to hairu from comment #2) > Correction to description: > > A trivial patch changing -lcurses to -lncurses -ltinfo solves the issue. It should be using pkg-config. > It should be using pkg-config.
Yes, to follow what Linux kernel's build system does. Upstream won't accept attached patch because it will probably break other OS/embedded targets and they won't want an extra dep that the PR brings.
However, should Gentoo patch it in even though portage won't hit this issue installing sys-apps/toybox? This is only triggered if building from source and accessing menuconfig.
(In reply to Joe Kappus from comment #5) > > It should be using pkg-config. > > Yes, to follow what Linux kernel's build system does. Upstream won't accept > attached patch because it will probably break other OS/embedded targets and > they won't want an extra dep that the PR brings. > I did comment on the PR and I suspect that's somewhat bogus. > However, should Gentoo patch it in even though portage won't hit this issue > installing sys-apps/toybox? This is only triggered if building from source > and accessing menuconfig. We should patch it in, where the patch uses pkg-config, yes. (In reply to Sam James from comment #6) > We should patch it in, where the patch uses pkg-config, yes. (although ofc it wouldn't have actually helped with the original reproduction instructions, it would with "ebuild ... clean prepare" then menuconfig.) Good points. Essentially, a potential embedded gentoo built with crossdev would only require a compile machine to have pkg-config installed. This said, an ebuild wouldn't usually hit this bug because menuconfig is not used. I agree with "ebuild ... clean prepare" being the way to go, along with a notice from the ebuild with instructions to do so for menuconfig. |