From owner-freebsd-ports@FreeBSD.ORG Sun Nov 12 19:00:40 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FC3516A4F0 for ; Sun, 12 Nov 2006 19:00:40 +0000 (UTC) (envelope-from stsp@stsp.in-berlin.de) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6518743DF2 for ; Sun, 12 Nov 2006 18:59:59 +0000 (GMT) (envelope-from stsp@stsp.in-berlin.de) X-Envelope-From: stsp@stsp.in-berlin.de X-Envelope-To: Received: from stsp.lan (brln-d9ba53f8.pool.mediaWays.net [217.186.83.248]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id kACIxvNs006966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 12 Nov 2006 19:59:58 +0100 Received: from ted.stsp.lan (localhost [127.0.0.1]) by stsp.lan (8.13.6/8.13.6) with ESMTP id kACIx29Q092999 for ; Sun, 12 Nov 2006 19:59:02 +0100 (CET) (envelope-from stsp@ted.stsp.lan) Received: (from stsp@localhost) by ted.stsp.lan (8.13.6/8.13.6/Submit) id kACIx1lC092998 for freebsd-ports@freebsd.org; Sun, 12 Nov 2006 19:59:01 +0100 (CET) (envelope-from stsp) Date: Sun, 12 Nov 2006 19:59:01 +0100 From: Stefan Sperling To: freebsd-ports@freebsd.org Message-ID: <20061112185901.GA92932@ted.stsp.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: How can I deal with build-time port conflicts? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 19:00:40 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I am updating audio/beast to version 0.7.0. At first it didn't seem to work, it was segfaulting like crazy when run. With the friendly help of upstream developers I was able to track this down to a shared library problem. The port sets LDFLAGS=3D"-L/usr/local/lib" in the environment of the configure script, because otherwise the configure script fails to find required libraries, like libmad, for example. It seems that this causes the beast-0.7.0 binaries to be linked with beast-0.6.x libraries installed in /usr/local/lib. Deinstalling beast-0.6.x before compiling 0.7.0 solves the issue, the application runs just fine. So a clean upgrade requires the previous version of the port to be removed *before* the new version is built. Is there any way I can make sure that the previous version of the port is not installed while building the new version? I've tried setting CONFLICTS to beast-[0-6]*, but CONFLICTS is not checked until install time. I need the check to be performed before anything else. Or is the rather ugly LDFLAGS hack to blame, i.e. should I try to find a better way to make configure pick up required libraries? Thanks, --=20 stefan http://stsp.in-berlin.de PGP Key: 0xF59D25F0 --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFV2715dMCc/WdJfARAgQFAJ0XQ+hnA9TpJp0Y6i5q8tR4V9wrmACgqSOu /OWuxeyuXkRsnAco/Uqy11g= =drYo -----END PGP SIGNATURE----- --DocE+STaALJfprDB--