Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 10:50:44 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        "Jason E. Hale" <jhale@freebsd.org>
Cc:        Anton Shterenlikht <as@cmplx.uk>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: pkg fallout - wrong shared lib version?
Message-ID:  <20180221105044.558b54d0@kalimero.tijl.coosemans.org>
In-Reply-To: <CAJE75NHDVt9wU9A_afc48bgfQn8e8-4%2BZcFek9VHMDxHt_L9eg@mail.gmail.com>
References:  <201802201736.w1KHa6YT074816@jail0199.vps.exonetric.net> <CAJE75NHDVt9wU9A_afc48bgfQn8e8-4%2BZcFek9VHMDxHt_L9eg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Feb 2018 18:13:07 -0500 "Jason E. Hale" <jhale@freebsd.org> wrote:
> On Tue, Feb 20, 2018 at 12:36 PM, Anton Shterenlikht <as@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180221105044.558b54d0>