From owner-freebsd-pkg@freebsd.org Fri Jun 3 16:44:55 2016 Return-Path: Delivered-To: freebsd-pkg@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 52B08B68E79; Fri, 3 Jun 2016 16:44:55 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 110D11986; Fri, 3 Jun 2016 16:44:55 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qk0-x236.google.com with SMTP id u1so9642610qkh.2; Fri, 03 Jun 2016 09:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9d1FkeYGjSB5LAae2kDZmEwHs0/zP2WK4x8QNIQCuj0=; b=boipw1xQNp3hPq+WtVZC8z81k1VxRNQ1qlfmTXMX71GABykHCajd67Uu6KEL44e1Rz FWVwSGCdp6ZYSIXbR+Ati61HHKeHjQh9vPEJa3KfwGcwrvddtPxXRlOoBXRdRVIAW1Ma kQUvRUzqH2ghJALqlAk79tS5pttUyM2PCxv9xNuW9dUJh75UPyF1ySai2NI/pmi99m9U KwWQK/ngm0MoixJvujBvIiNwc8H3rA9F/kJuE18ypMIx1MBf5mtDeJ0c2KKaOxMFp1++ yMlsHPkj/WX4wvg9PpuDsrPbPO5w0ZdWWdYsu92eB9KgvUK2qmCTQJNCjrJNBbgW37mC oK8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9d1FkeYGjSB5LAae2kDZmEwHs0/zP2WK4x8QNIQCuj0=; b=EFxHl9SbNS19h+iZYTjphSfC7ZiAQdyzQ92jIm+uCRKeirFJtGxPyqm7QtJO7rjorv jEAqiefK2opedqhdR6dEohXcyp6AibyaZq7/HcopUU4anmwzJNn8VVcyrCnA5B8F7NDa FtSf2nFXy48EOYQ3uEizNUBGP0fvlCZ1QEb26Osxg8hyMJkJbi0dS1SJtp82eupcG5qQ ZMR0wJrKE5XtROk5gcBUrYqyA8HWgId9ii30/ydFSGlllGJp5PHFpHpkfoqTy/i4Db05 U7NPna3ObfOy4oMdg/F6v/QkzFCdwHymAwqF7Bu0zDNbvijQ28ZYGNWM9cVeCWX4Ulxj HkxQ== X-Gm-Message-State: ALyK8tIQmX5OyY3fDw5cMvmeOB6Zd61hC7FE+16C3aixPVxBO5M29E2M3TgMCuTPkZd3ZAbYzgaB0k9grZVrww== X-Received: by 10.55.119.66 with SMTP id s63mr4247861qkc.169.1464972294067; Fri, 03 Jun 2016 09:44:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.38.5 with HTTP; Fri, 3 Jun 2016 09:44:53 -0700 (PDT) In-Reply-To: <5b020f89-8f29-5c52-e3de-6c067019b7e9@astart.com> References: <5b020f89-8f29-5c52-e3de-6c067019b7e9@astart.com> From: Freddie Cash Date: Fri, 3 Jun 2016 09:44:53 -0700 Message-ID: Subject: Re: how do you force make install to overwrite conflicting files from another port? To: papowell@astart.com Cc: FreeBSD Ports ML , freebsd-pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2016 16:44:55 -0000 On Fri, Jun 3, 2016 at 8:26 AM, Patrick Powell wrote: > Suppose that you have a portA which is a dependency of a lot of other > ports. > > You also have a portB which is a replacement/update/upgrade for portA. > > PortB provides replacements for the executables generated/supplied by > PortA but for various reasons you still want to use some of PortA install= ed > items such as libraries, etc. > > I tried doing the following: > > # pkg install PortA > # cd /usr/ports/xxx/PortB > # make install > > Installing PortB... > pkg-static: PortB conflicts with PortA (installs files into the same > place). Problematic file: /usr/local/bin/utilityl > *** Error code 70 > > Is there an option, or a way similar to using 'make FORCE_PGK_REGISTER=3D= YES > install' > to force overwriting the conflicting files? =E2=80=8BSplit portA into multiple ports that install the libraries and bin= aries and what-not separately, then create a meta-port that installs all of the new portA ports. Then create portB and have it CONFLICT with the portA-whatever port so that it's a drop-in replacement (uninstall portA-whatever, install portB).=E2=80= =8B --=20 Freddie Cash fjwcash@gmail.com