On 2/18/20 5:00 AM, Ankur Sinha wrote:
Hiya,
I'm reviewing an octave package[1] that generates an arch specific mex
file. As I understand it, this should go to
/usr/lib64/octave/packages/%{name}-%{version} (%{octpkglibdir}), while
the other noarch files go to
/usr/share/octave/packages/%{name}-%{version} (%{octpkgdir}). This is
the case:
drwxr-xr-x /usr/lib64/octave/packages/mmclab-1.7.9
-rwxr-xr-x /usr/lib64/octave/packages/mmclab-1.7.9/mmc.mex
drwxr-xr-x /usr/share/doc/octave-mmclab
-rw-r--r-- /usr/share/doc/octave-mmclab/AUTHORS.txt
-rw-r--r-- /usr/share/doc/octave-mmclab/README.txt
drwxr-xr-x /usr/share/licenses/octave-mmclab
-rw-r--r-- /usr/share/licenses/octave-mmclab/LICENSE.txt
drwxr-xr-x /usr/share/octave/packages/mmclab-1.7.9
-rw-r--r-- /usr/share/octave/packages/mmclab-1.7.9/besselhprime.m
-rw-r--r-- /usr/share/octave/packages/mmclab-1.7.9/besseljprime.m
-rw-r--r-- /usr/share/octave/packages/mmclab-1.7.9/besselyprime.m
-rw-r--r-- /usr/share/octave/packages/mmclab-1.7.9/cart2sphorigin.m
...
However, @fangq (CC'd) reports that the mex file does not load in
Octave[2]. The path() in octave does not return %{octpkglibdir} either
when I check it. Could someone please point out what we're missing here?
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1760617
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1760617#c28
There is also an API and arch/host directory involved:
path() in octave reports:
/usr/lib64/octave/4.4.1/site/oct/x86_64-redhat-linux-gnu
/usr/lib64/octave/site/oct/api-v52/x86_64-redhat-linux-gnu
/usr/lib64/octave/site/oct/x86_64-redhat-linux-gnu
/usr/lib64/octave/4.4.1/oct/x86_64-redhat-linux-gnu
and for example, an octave package will install it's library in:
/usr/lib64/octave/packages/netcdf-1.0.12/x86_64-redhat-linux-gnu-api-v52/__netcdf__.oct
See also:
%octave_host %(octave-config -p CANONICAL_HOST_TYPE || echo 0)
%octave_api %(octave-config -p API_VERSION || echo 0)
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxx
Boulder, CO 80301 http://www.nwra.com
_______________________________________________
scitech mailing list -- scitech@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to scitech-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/scitech@xxxxxxxxxxxxxxxxxxxxxxx