pkg fallout - wrong shared lib version?

Jason E. Hale jhale at freebsd.org
Tue Feb 20 23:13:09 UTC 2018


On Tue, Feb 20, 2018 at 12:36 PM, Anton Shterenlikht <as at cmplx.uk> wrote:
> Please help
>
> My port lang/opencoarrays gives this error
> via pkg-fallout:
>
> ...
> -- Installing: /wrkdirs/usr/ports/lang/opencoarrays/work/stage/usr/local/lib/libcaf_mpi.so.1
> ...
>
> ===>  Building package for opencoarrays-1.9.3
> pkg-static: Unable to access file /wrkdirs/usr/ports/lang/opencoarrays/work/stage/usr/local/lib/libcaf_mpi.so.2:No such file or directory
>
> On the system where I did the testing I get:
>
> # pkg info -xl opencoarr
> opencoarrays-1.9.3:
> ...
>         /usr/local/lib/libcaf_mpi.so.2
>
> Accrdingly I put
>
> lib/libcaf_mpi.so.2
>
> in pkg-plist
>
> Where did I go wrong?
>
> Thanks
>
> Anton
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"

I just took a quick look at the port and src/mpi/CMakeLists.txt is
setting the SOVERSION differently depending on which version the
Fortran compiler is:

set(CAF_SO_VERSION 0)
if(gfortran_compiler)
  if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
    set(CAF_SO_VERSION 2)
  elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0.0)
    set(CAF_SO_VERSION 1)
  endif()
endif()

You will probably have to do a check for the compiler version and
adjust pkg-plist accordingly.

I've CC'd tijl since he landed this.

-Jason


More information about the freebsd-ports mailing list