pkg fallout - wrong shared lib version?
Tijl Coosemans
tijl at FreeBSD.org
Wed Feb 21 09:51:56 UTC 2018
On Tue, 20 Feb 2018 18:13:07 -0500 "Jason E. Hale" <jhale at freebsd.org> wrote:
> On Tue, Feb 20, 2018 at 12:36 PM, Anton Shterenlikht <as at cmplx.uk> wrote:
>> 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?
>
> 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.
Should be fixed in r462483.
More information about the freebsd-ports
mailing list