help with GCC_VER GCC_VERSION

Anton Shterenlikht mexas at bristol.ac.uk
Thu Jan 11 10:50:26 UTC 2018


Hi Gerald

Need your help

I'm updating lang/opencoarrays.
Previously pkg-plist had

include/OpenCoarrays/GNU/%%GCC_VER%%/opencoarrays.mod

which worked fine.

Now upstream put the whole version triplet into
the file name:

include/OpenCoarrays-1.9.3_GNU-6.4.0/opencoarrays.mod

so %%GCC_VER%% does not work anymore, because it
has only the major version.

I notice that lang/gcc* ports use %%GCC_VERSION%%
in pkg-plist. Is this different from %%GCC_VER%%?
I thought that maybe it contains the full version triplet?

However, if I try to use it in my pkg-plist:

include/OpenCoarrays/GNU/%%GCC_VERSION%%/opencoarrays.mod

it doesn't seem to be recognised:

# make package
===>  Building package for opencoarrays-1.9.3_1
pkg-static: Unable to access file /usr/ports/lang/opencoarrays/work/stage/usr/local/include/OpenCoarrays-1.9.3_GNU-%%GCC_VERSION%%/opencoarrays.mod:No such file or directory
*** Error code 1

Any advice?

Thanks

Anton


More information about the freebsd-fortran mailing list