#1040902 libfreefem++: Paths in /etc/freefem++.pref do not match installation paths

Package:
libfreefem++
Source:
libfreefem++
Description:
Provides the shared libraries of the FreeFem++ FE suite
Submitter:
Arne Nordmark
Date:
2023-07-12 08:24:04 UTC
Severity:
normal
#1040902#5
Date:
2023-07-12 08:14:33 UTC
From:
To:
Dear Maintainer,

The conffile /etc/freefem++.pref contains the following lines
loadpath += "/usr/lib/ff++/4.9/lib"
includepath += "/usr/lib/ff++/4.9/idp"
which do not match where files are actually installed.

This leads to errors like:
nordmark@deedee:~$ FreeFem++ /usr/share/doc/freefem++/examples/3d/beam-3d.edp
-- FreeFem++ v4.9 ( - git no git)
 Load: lg_fem lg_mesh lg_mesh3 eigenvalue
    1 : load "medit"
Load error: medit
	 fail:
 dlerror : /usr/lib/ff++/4.9/lib/medit.so: cannot open shared object file: No such file or directory
list prefix: './' '/usr/lib/ff++/4.9/lib/' list suffix: '' , '.so'
  current line = 1
Load error : medit
	line number :1, medit
error Load error : medit
	line number :1, medit
 code = 2 mpirank: 0

The lines should probably be
loadpath += "/usr/lib/freefem++"
includepath += "/usr/include/freefem++/idp"
instead.

With the changed conffile below, the example seems to work OK.

Best regards
Arne