help with GCC_VER GCC_VERSION

Tijl Coosemans tijl at FreeBSD.org
Thu Jan 11 11:45:42 UTC 2018


On Thu, 11 Jan 2018 10:50:17 GMT Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> 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?

They've always used the full version, but we patched that in the
post-patch target in the port Makefile.  You probably need to tweak
that command for the new version.


More information about the freebsd-fortran mailing list