From owner-freebsd-ports@freebsd.org Wed Feb 21 09:51:56 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84D66F186EE for ; Wed, 21 Feb 2018 09:51:56 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay101.isp.belgacom.be (mailrelay101.isp.belgacom.be [195.238.20.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3DD2700A6; Wed, 21 Feb 2018 09:51:55 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3AFJMcqxfcEq+Y9iQwPwfVjDb5lGMj4u6mDksu8pMi?= =?us-ascii?q?zoh2WeGdxcS5Zh7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI24?= =?us-ascii?q?09vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7?= =?us-ascii?q?Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYe?= =?us-ascii?q?RWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZ?= =?us-ascii?q?TAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hy?= =?us-ascii?q?gbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTyJPDIOi?= =?us-ascii?q?YYUSDOQOP+hYoIbhqFUBtha+GQuhCP/zxjNUmnP6w6s32PkhHwHc2wwgGsoDvm?= =?us-ascii?q?rVrNX3MKcZTP64zK7PzTXYcfxW3C3y6I7Tchs8pvyMQbNwccjVyUQ0Fw3FlEuf?= =?us-ascii?q?ppL4Mj2I2OoBqW+b7/BvVe+2jWMstgJ/oiC3y8ovl4XFnJwZx1/F+Clj3Yo4K9?= =?us-ascii?q?O1RFRmbdOqH5ZdsTyROZFsTcM4WW5ovT43yrgBuZGmYicH0I8nxxvDa/yfdIiI?= =?us-ascii?q?/w7jWP6RIThmgHJlf6qyhxWo/kiky+38U9e70ExNriZfjtnMt3IN1xjJ5sebTf?= =?us-ascii?q?t9+Vyh1iiK1w/J7OFEOlo4la3BK54u2rIwl5wTvlrfHiLum0j6kbWaelsr9+Wp?= =?us-ascii?q?8ejrf7vrq5GGO4NphAzzPbwimsmlDuQ5NggOUXKb+eO51LD74U35QbdKjvktn6?= =?us-ascii?q?nXqpDVO9oUqbWiAwBIyIoj7Ay/Dzi+3NQCgXYHNE5FeA6Aj4XxNVHOOu73Aumk?= =?us-ascii?q?jFS3jThn3ujGPrr7ApXRNXjOi7nhfaxj5EFC0wUz1s1Q64hTCrEbL/L5QlXxu8?= =?us-ascii?q?DADh8lLwy0xP7qCNd91owEXWKAHLSUMK3IsVCW+O0gOPKMa5IPtDb6Mfgl6K2m?= =?us-ascii?q?sXhs030UZq6vlbZRIFCxGvksaxGbYXPoj/8PC2oHtBEyCuvwhwvRfyRUYiOOXq?= =?us-ascii?q?A4rho8D5mrCI7FXcj5nL2D2A+VBJBbTFtqTFeWHiG7JM2/R/4QZXfKcYdamTse?= =?us-ascii?q?WO3kEtd52A=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2ClCQCVQI1a/4aF9lFdGwEBAQEDAQEBC?= =?us-ascii?q?QEBAYMiLVaBABUTjwGNAQEBggEyAWSYYIU+AoJxWRQBAgEBAQEBAQIBaihCDAG?= =?us-ascii?q?BaSQBgkcBBTocHgUQCxgJJQ8qHgYTiietDoh9ghMBAQEBAQUBAQEBJIUOiROLH?= =?us-ascii?q?wWkOwmWAIEGk0yZYjYigVFNMAiCfYJUHIEKAQh0QDeBHotqAQEB?= X-IPAS-Result: =?us-ascii?q?A2ClCQCVQI1a/4aF9lFdGwEBAQEDAQEBCQEBAYMiLVaBABU?= =?us-ascii?q?TjwGNAQEBggEyAWSYYIU+AoJxWRQBAgEBAQEBAQIBaihCDAGBaSQBgkcBBTocH?= =?us-ascii?q?gUQCxgJJQ8qHgYTiietDoh9ghMBAQEBAQUBAQEBJIUOiROLHwWkOwmWAIEGk0y?= =?us-ascii?q?ZYjYigVFNMAiCfYJUHIEKAQh0QDeBHotqAQEB?= Received: from 134.133-246-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.246.133.134]) by relay.skynet.be with ESMTP; 21 Feb 2018 10:50:45 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id w1L9ojVX027653; Wed, 21 Feb 2018 10:50:45 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Wed, 21 Feb 2018 10:50:44 +0100 From: Tijl Coosemans To: "Jason E. Hale" Cc: Anton Shterenlikht , FreeBSD Ports Subject: Re: pkg fallout - wrong shared lib version? Message-ID: <20180221105044.558b54d0@kalimero.tijl.coosemans.org> In-Reply-To: References: <201802201736.w1KHa6YT074816@jail0199.vps.exonetric.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 09:51:56 -0000 On Tue, 20 Feb 2018 18:13:07 -0500 "Jason E. Hale" wrote: > On Tue, Feb 20, 2018 at 12:36 PM, Anton Shterenlikht 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.