Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927449 - app-text/texlive-core-2023-r4 configure phase looks for headers on the host [Prefix]
Summary: app-text/texlive-core-2023-r4 configure phase looks for headers on the host [...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 17:27 UTC by Steven Trogdon
Modified: 2024-03-27 12:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge.info (emerge.info,6.92 KB, text/plain)
2024-03-21 17:27 UTC, Steven Trogdon
Details
build.log (build.log,31.01 KB, text/x-log)
2024-03-21 17:29 UTC, Steven Trogdon
Details
build.log for texlive-core-2023-r1 after configure phase (build_config.log-2023-r1,52.93 KB, text/x-log)
2024-03-25 20:35 UTC, Steven Trogdon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Trogdon 2024-03-21 17:27:31 UTC
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"
Comment 1 Steven Trogdon 2024-03-21 17:29:03 UTC
Created attachment 888052 [details]
build.log
Comment 2 Steven Trogdon 2024-03-21 17:42:31 UTC
app-text/texlive-core-2023-r1 does pass the configure phase.
Comment 3 Florian Schmaus gentoo-dev 2024-03-25 15:01:56 UTC
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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-25 15:03:01 UTC
Should be using $(tc-getPKG_CONFIG) too.
Comment 5 Florian Schmaus gentoo-dev 2024-03-25 15:06:40 UTC
(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.
Comment 6 Larry the Git Cow gentoo-dev 2024-03-25 15:24:20 UTC
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(-)
Comment 7 Florian Schmaus gentoo-dev 2024-03-25 18:27:05 UTC
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.
Comment 8 Steven Trogdon 2024-03-25 20:02:59 UTC
(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.
Comment 9 Steven Trogdon 2024-03-25 20:30:24 UTC
(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
Comment 10 Steven Trogdon 2024-03-25 20:35:41 UTC
Created attachment 888576 [details]
build.log for texlive-core-2023-r1 after configure phase
Comment 11 Florian Schmaus gentoo-dev 2024-03-26 19:34:01 UTC
strogdon: What is the output of "pkg-config kpathsea --variable=includedir" invoked in your prefix installation?
Comment 12 Steven Trogdon 2024-03-26 19:53:07 UTC
$ pkg-config kpathsea --variable=includedir
/storage/strogdon/gentoo-rap/usr/include
Comment 13 Steven Trogdon 2024-03-26 22:19:40 UTC
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?
Comment 14 Larry the Git Cow gentoo-dev 2024-03-27 12:43:09 UTC
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(-)