From owner-freebsd-ports@freebsd.org Wed Sep 21 12:19:56 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 10960BE3B21 for ; Wed, 21 Sep 2016 12:19:56 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EC4E1A1 for ; Wed, 21 Sep 2016 12:19:55 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E8479BE3B20; Wed, 21 Sep 2016 12:19:55 +0000 (UTC) Delivered-To: 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 E7EA7BE3B1F for ; Wed, 21 Sep 2016 12:19:55 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mail.pingpong.net (mail.pingpong.net [79.136.116.202]) by mx1.freebsd.org (Postfix) with ESMTP id ABF70A0 for ; Wed, 21 Sep 2016 12:19:55 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from mail.pingpong.net (localhost [127.0.0.1]) by mail.pingpong.net (Postfix) with ESMTP id 5B2DA1A00D for ; Wed, 21 Sep 2016 14:13:07 +0200 (CEST) X-Virus-Scanned: by amavisd-new at pingpong.net Received: from mail.pingpong.net ([127.0.0.1]) by mail.pingpong.net (mail.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uRxWKo89lIe5 for ; Wed, 21 Sep 2016 14:13:07 +0200 (CEST) Received: from [10.0.1.12] (h-155-4-132-242.na.cust.bahnhof.se [155.4.132.242]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.pingpong.net (Postfix) with ESMTPSA id 0866D1A006 for ; Wed, 21 Sep 2016 14:13:06 +0200 (CEST) From: Palle Girgensohn X-Pgp-Agent: GPGMail Content-Type: multipart/signed; boundary="Apple-Mail=_1A6FD9A3-6272-4398-8034-AABA62F9CFBE"; protocol="application/pgp-signature"; micalg=pgp-sha256 Subject: Is there a mechanism to select the preferred version from mulitple installed versions of a port? Date: Wed, 21 Sep 2016 14:13:06 +0200 Message-Id: <28ECD867-F222-4C4D-BE44-4A75606973A9@FreeBSD.org> To: ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 12:19:56 -0000 --Apple-Mail=_1A6FD9A3-6272-4398-8034-AABA62F9CFBE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, MacPorts has this and I believe that Debian has something similar. Say I want to install foobar-1.0 and foobar-2.0 and they CONFLICT what if I could change the foobar ports to install in, say = ${PREFIX}/libexec/foobar-1.0 and ${PREFIX}/libexec/foobar-2.0 = respectively, and then add a metaport that symlinks the preferred one. Fine you say, look at python or similar metaports. Sure, but it would = nice to have a port that also has a command portselect foobar foobar-1.0 or portselect foobar foobar-2.0 and the preferred version would be symlinked from = ${LOCALBASE}/bin/foobar -> ${PREFIX}/libexec/foobar-2.0/foobar so users = could set and change the default version and still use the common binary = distributed packages. Just a thought. This could of course be written for a specific port, but = perhaps there is a mechanism in the ports tree for this that I've = missed? Palle --Apple-Mail=_1A6FD9A3-6272-4398-8034-AABA62F9CFBE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJX4nlSAAoJEDQn0sf36UlsQYoH/RC7hntDZ3QXXhT/7o0bivbp D17bt3Ys5BzZN+M/U4F1BDZEJCwRUI/h/HudnS+eaFJOROzsnaXmlUc4LLb9vZBb 5AtqJjZgywc/GjM89L89PkUVtEMFiMOzK1Mk7Er9jnoFcbXTBrSEOtedkP3Yi+Za hI4yZPlA6e9tID3grfg5mtxEdLdl8CNeGWDff3SHfDeqS6fqPpweRRXJzq6QbzWI ahzK8RJtb6fUs548KYp7jMxzRGyp6mUI6VwhtHGG2Zn6r227TirrWAKAqI+Nd/Lb SQROk3pFSU+QYJs4PlwXFFfKqLwb13NANwFhIR3f31HFebNowR0l1gZxTdiyK9U= =Q1O3 -----END PGP SIGNATURE----- --Apple-Mail=_1A6FD9A3-6272-4398-8034-AABA62F9CFBE--