When building with USE=duktape, netsurf uses "xxd -i" from vim, which is why vim-core is in BDEPEND. Vim is an annoying dependency, however, and Greg KH wrote a small replacement script for it that's available in Gentoo as dev-util/xxdi. I'm not 100% sure how this should be done. we can probably add something to the upstream makefile like XXDI := xxd -i and then override it in Gentoo with emake XXDI=xxdi.pl or something like that if xxdi is installed but vim-core is not.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d7f9207012d7ed63cda301848b7a572b4bc2e9f commit 7d7f9207012d7ed63cda301848b7a572b4bc2e9f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-03-16 02:38:52 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-16 02:39:04 +0000 www-client/netsurf: drop remaining IUSE=duktape Bug: https://bugs.gentoo.org/729444 Fixes: c4398dfb476bd4f3be8f3b78b695d9f5996f697c Signed-off-by: Sam James <sam@gentoo.org> www-client/netsurf/netsurf-3.10-r6.ebuild | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
commit 154a6b69870f215ae05f98daa4e2713aac706d36 Author: Vincent Sanders <vince@kyllikki.org> Date: Wed Jun 3 23:32:54 2020 +0100 implement a minimal xxd for builds to remove external dependancy