From owner-freebsd-ports@freebsd.org Tue Jul 26 17:14:11 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5329BBA5C44 for ; Tue, 26 Jul 2016 17:14:11 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.lautre.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 165FD1CD1; Tue, 26 Jul 2016 17:14:10 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id 0A507101CA7; Tue, 26 Jul 2016 19:13:58 +0200 (CEST) Received: by graf.pompo.net (Postfix, from userid 1001) id 89F4D328D7D; Tue, 26 Jul 2016 19:13:58 +0200 (CEST) Date: Tue, 26 Jul 2016 19:13:58 +0200 From: Thierry Thomas To: "Montgomery-Smith, Stephen" Cc: "freebsd-ports@freebsd.org" , "stephen@FreeBSD.org" Subject: Re: How to make installation conditional in pkg-plist Message-ID: <20160726171358.GP47088@graf.pompo.net> Mail-Followup-To: "Montgomery-Smith, Stephen" , "freebsd-ports@freebsd.org" , "stephen@FreeBSD.org" References: <6dc97a24-9f13-7538-4e43-efde0f461f1d@missouri.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GmiNL4+5WUWrod5m" Content-Disposition: inline In-Reply-To: <6dc97a24-9f13-7538-4e43-efde0f461f1d@missouri.edu> X-Operating-System: FreeBSD 10.3-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2016 17:14:11 -0000 --GmiNL4+5WUWrod5m Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le mar 26 jul 16 =E0 18:57:16 +0200, Montgomery-Smith, Stephen =E9crivait=A0: > Currently the ports math/vtk6 and science/paraview both try to install=20 > the same file: share/cmake/hdf5/libhdf5.settings. It is described in=20 > this bug report. >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211334 >=20 > My proposed solution is that each port only installs the file if it=20 > doesn't already exist, and only deinstalls the file if it installed it.= =20 > I am planning to figure out some kind of @exec solution for the pkg-plist. >=20 > Has anyone already solved this problem in other situations? I prefer=20 > not to reinvent something if good solutions already exist. >=20 > Failing that, does anyone have good ideas on how to do this, or even=20 > alternative solutions? This file is already installed by the port science/hdf5, but under $PREFIX/lib. I would suggest to: - modify science/hdf5 to create a symlink under share/cmake/hdf5 - patch math/vtk6 and science/paraview to not install this file. Regards, --=20 Th. Thomas. --GmiNL4+5WUWrod5m Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQJ8BAEBCgBmBQJXl5pVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTascQALw8mtkL31BsoLtppc1o6/SG 76IT1Lo4Rz/6HZrRw/C2MU9Zm48Sc/4W1sq5sAO2ItAgZtgo1bW3At8s2TQliJNp woRO7YYdnG/CoqHbpYIN7lvoRM+q2Yi4ZbZw8wK7HbN9QSvFwyiEoNiOo3V0tW3f XJYc74gWTsMvzFNBdIlptAA3flWb2DqdcEDMzYhMR0puEFBaGuOG15doD6EZFisC rXWv1qMzDrm+wmE+4tV+lXWmHriTIlRxeZp1oa40ghYM69E4cPjKDQYDVa+nEPd+ IdODGo9oq95Idb0JJtfAUx02peF92LyX1N+gRSIqOz4C+HX76RTcJAP/l8OGhXi9 VCyBujoWJ7WFC1egHREspTsswoATqnNGfNyQcrHEJGTUkwFHXmVa+et8Rrcwv1EJ +7MRY03EbaDSAoRqId9wUHqpmMwNFBqC/NSfPI3OQEVaX5OwjuZBMtvEpX2LCL62 bHhhKP0c+n6M8A6zwBzWBQV4yUvC9FbnsvWOaty71c+5YwffXv3HDreWXVt+Z2QX hXFviwFPKGtyIHCS1M28qKfM3gIYZ+yTD68hZSZycqXiXDiY4i9xhAc4l+PBQb+d 2OcjqsfpE0YGIlCamr9iUJlx6ljKE5enEC7YxYmY+SzaHU1VN/JP5O+6y9ila8fH TITv8P/4ZnlD3pqX1d84 =Kgfb -----END PGP SIGNATURE----- --GmiNL4+5WUWrod5m--