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: CONFIRMED
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: PATCH
Depends on: 858554
Blocks:
  Show dependency tree
 
Reported: 2022-03-13 02:43 UTC by Alessandro Barbieri
Modified: 2022-07-17 10:21 UTC (History)
4 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
find and use OCTLIBDIR in the custom command (flann-1.9.1-octave-6.patch,1.88 KB, patch)
2022-07-07 18:45 UTC, Jouni Kosonen
Details | Diff

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
Comment 6 Jouni Kosonen 2022-07-07 18:45:02 UTC
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.
Comment 7 Fat-Zer 2022-07-17 08:36:43 UTC
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...