Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835021 - sci-libs/flann-1.9.1-r5[octave] cannot find -loctinterp
Summary: sci-libs/flann-1.9.1-r5[octave] cannot find -loctinterp
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-13 02:43 UTC by Alessandro Barbieri
Modified: 2022-05-06 23:32 UTC (History)
2 users (show)

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


Attachments
emerge_info (emerge_info,36.02 KB, text/plain)
2022-03-13 02:43 UTC, Alessandro Barbieri
Details
flann-1.9.1-r5:20220313-014441.log (flann-1.9.1-r5:20220313-014441.log,23.56 KB, text/plain)
2022-03-13 02:43 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2022-03-13 02:43:01 UTC
This package fails to build on an unstable system. Attached relevant logs and emerge --info
Comment 1 Alessandro Barbieri 2022-03-13 02:43:06 UTC
Created attachment 766896 [details]
emerge_info

emerge --info
Comment 2 Alessandro Barbieri 2022-03-13 02:43:08 UTC
Created attachment 766897 [details]
flann-1.9.1-r5:20220313-014441.log

build log
Comment 3 Alessandro Barbieri 2022-05-05 02:42:48 UTC
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
Comment 4 Alessandro Barbieri 2022-05-06 23:31:16 UTC
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
Comment 5 Alessandro Barbieri 2022-05-06 23:32:41 UTC
LFLAGS are already deprecated, in version 7 they will remove the ability to use them