Created attachment 888051 [details] emerge.info The config error configure: You requested to build `web2c' using an installed `kpathsea' version, configure: which requires to locate the <kpathsea/paths.h> header file. configure: error: Sorry, not found under any of: /usr/include /usr/local/include ***** $ emerge -pqv '=app-text/texlive-core-2023-r4::gentoo' [ebuild N ] app-text/texlive-core-2023-r4 USE="cjk luajittex xetex xindy -X -doc -source -tk"
Created attachment 888052 [details] build.log
app-text/texlive-core-2023-r1 does pass the configure phase.
I assume this is caused by the following change from texlive-core-2021 to texlive-core-2023: sed -i \ - -e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,${EPREFIX}/usr/include\"," \ + -e "s,/usr/include /usr/local/include.*echo \$KPATHSEA_INCLUDES.*,$(pkg-config kpathsea --variable=includedir)\"," \ texk/web2c/configure || die
Should be using $(tc-getPKG_CONFIG) too.
(In reply to Steven Trogdon from comment #2) > app-text/texlive-core-2023-r1 does pass the configure phase. So texlive-core-2023-r1 works on prefix for you? Could I bother you attaching the according build.log? Diffing the faulty build's log with a working one would probably be interesting.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36b6feea6d79823b991a4e68d1f62c86d8fc13ec commit 36b6feea6d79823b991a4e68d1f62c86d8fc13ec Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2024-03-25 15:22:40 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-03-25 15:23:59 +0000 app-text/texlive-core: use tc-getPKG_CONFIG This hopefully fixes installation on prefix systems (bug #927449), where we should now pick-up the prefix varaint of pkg-config. Bug: https://bugs.gentoo.org/927449 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-text/texlive-core/texlive-core-2023-r5.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
strogdon: could you check and report back if the above commit fixes the issue for you? Simply syncing ::gentoo and emerging texlive-core-2023-r5 should do the trick.
(In reply to Florian Schmaus from comment #5) > (In reply to Steven Trogdon from comment #2) > > app-text/texlive-core-2023-r1 does pass the configure phase. > > So texlive-core-2023-r1 works on prefix for you? Could I bother you > attaching the according build.log? Diffing the faulty build's log with a > working one would probably be interesting. Do you still need the build.log for texlive-core-2023-r1? This version will not build (I believe there is a xindy issue). However, it will configure. To get texlive-core-2023-r4 to configure and build I added --with-teckit-includes="${EPREFIX}"/usr/include/teckit --with-kpathsea-includes="${EPREFIX}"/usr/include to the ebuild.
(In reply to Larry the Git Cow from comment #6) > The bug has been referenced in the following commit(s): > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=36b6feea6d79823b991a4e68d1f62c86d8fc13ec > > commit 36b6feea6d79823b991a4e68d1f62c86d8fc13ec > Author: Florian Schmaus <flow@gentoo.org> > AuthorDate: 2024-03-25 15:22:40 +0000 > Commit: Florian Schmaus <flow@gentoo.org> > CommitDate: 2024-03-25 15:23:59 +0000 > > app-text/texlive-core: use tc-getPKG_CONFIG > > This hopefully fixes installation on prefix systems (bug #927449), where > we should now pick-up the prefix varaint of pkg-config. > > Bug: https://bugs.gentoo.org/927449 > Signed-off-by: Florian Schmaus <flow@gentoo.org> > > app-text/texlive-core/texlive-core-2023-r5.ebuild | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This commit does not work here. I get basically the same config failure: configure: You requested to build `web2c' using an installed `kpathsea' version, configure: which requires to locate the <kpathsea/paths.h> header file. configure: error: Sorry, not found under any of: /usr/include /usr/local/include ***** !!! Please attach the following file when seeking support: !!! /storage/strogdon/gentoo-rap/var/tmp/portage/app-text/texlive-core-2023-r5/work/texlive-core-2023_build/config.log
Created attachment 888576 [details] build.log for texlive-core-2023-r1 after configure phase
strogdon: What is the output of "pkg-config kpathsea --variable=includedir" invoked in your prefix installation?
$ pkg-config kpathsea --variable=includedir /storage/strogdon/gentoo-rap/usr/include
This, in the main configure file, seems to be what is failing: if test "x$enable_web2c" = xyes && test "x$with_system_kpathsea" = xyes; then if test "x$with_kpathsea_includes" = x; then list="/usr/include /usr/local/include" else list=$with_kpathsea_includes fi found=no for ac_dir in $list; do if test -r "$ac_dir/kpathsea/paths.h"; then found=yes break fi done if test "x$found" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: You requested to build \`web2c' using an installed \`kpathsea' version," >&5 printf "%s\n" "$as_me: You requested to build \`web2c' using an installed \`kpathsea' version," >&6;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: which requires to locate the <kpathsea/paths.h> header file." >&5 printf "%s\n" "$as_me: which requires to locate the <kpathsea/paths.h> header file." >&6;} as_fn_error $? "Sorry, not found under any of: $list *****" "$LINENO" 5 fi fi "list" is set incorrectly for prefix unless "with_kpathsea_includes" is defined. I'm wondering whether this chunk of code is needed at all. Unless I've done something wrong, texlive-core-2023-r5 builds in my prefix without it?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=998842fde5933c97c5147652503839f9c0e58c22 commit 998842fde5933c97c5147652503839f9c0e58c22 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2024-03-27 12:26:02 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-03-27 12:42:45 +0000 app-text/texlive-core: configure --with-kpathsea-includes, fixes prefix Prefix installation of texlive-core-2023-r5 was broken, because somewhere between -r1 and -r5 we dropped --with-kpathsea-includes. Thanks to Steven Trogdon for reporting this and providing valuable feedback. Closes: https://bugs.gentoo.org/927449 Signed-off-by: Florian Schmaus <flow@gentoo.org> app-text/texlive-core/texlive-core-2023-r5.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)