Date: Tue, 20 Feb 2018 18:13:07 -0500 From: "Jason E. Hale" <jhale@freebsd.org> To: Anton Shterenlikht <as@cmplx.uk> Cc: FreeBSD Ports <freebsd-ports@freebsd.org>, Tijl Coosemans <tijl@freebsd.org> Subject: Re: pkg fallout - wrong shared lib version? Message-ID: <CAJE75NHDVt9wU9A_afc48bgfQn8e8-4%2BZcFek9VHMDxHt_L9eg@mail.gmail.com> In-Reply-To: <201802201736.w1KHa6YT074816@jail0199.vps.exonetric.net> References: <201802201736.w1KHa6YT074816@jail0199.vps.exonetric.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 20, 2018 at 12:36 PM, Anton Shterenlikht <as@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJE75NHDVt9wU9A_afc48bgfQn8e8-4%2BZcFek9VHMDxHt_L9eg>