This package fails to build on an unstable system. Attached relevant logs and emerge --info
Created attachment 766896 [details] emerge_info emerge --info
Created attachment 766897 [details] flann-1.9.1-r5:20220313-014441.log build log
octave install this file /etc/env.d/99octave containing LDPATH=/usr/lib64/octave/6.4.0 for some reasons it doesn't work while linking
In the octaveforge eclass https://github.com/gentoo/guru/blob/f67e192b6b303d35e13f36ae9ffd9739ca69c495/eclass/octaveforge.eclass#L87 I've solved the issue with: octavecommand() { "${OCT_BIN}" -H -q --no-site-file --eval "$1" } cmd="disp(__octave_config_info__('octlibdir'));" OCTLIBDIR=$(octavecommand "${cmd}" || die) export LFLAGS="-L${OCTLIBDIR}" this will work until octave-7 when they will deprecate LFLAGS in favour of LDFLAGS then an export LDFLAGS="${LDFLAGS} -L${OCTLIBDIR}" will mostly like work
LFLAGS are already deprecated, in version 7 they will remove the ability to use them
Created attachment 790553 [details, diff] find and use OCTLIBDIR in the custom command The patch alters the changes and additions from flann-1.9.1-build-oct-rather-than-mex-files-for-octave.patch – it would probably be wiser to modify that directly instead but this worked as a user patch.
IMHO this one as well as an #836945 is more of an sci-mathematics/octave-6.4.0-r3 bug rather than a flann or hdf5 bugs respectively because /usr/bin/mkoctfile is supposed to build an octave module without any additional hassle...