Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2016 09:44:53 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        papowell@astart.com
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>, freebsd-pkg@freebsd.org
Subject:   Re: how do you force make install to overwrite conflicting files from another port?
Message-ID:  <CAOjFWZ6DL6S8kQ=JAqrptS%2B3sHueB09svZEksogq_UZ6sHfATw@mail.gmail.com>
In-Reply-To: <5b020f89-8f29-5c52-e3de-6c067019b7e9@astart.com>
References:  <5b020f89-8f29-5c52-e3de-6c067019b7e9@astart.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 3, 2016 at 8:26 AM, Patrick Powell <papowell@astart.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ6DL6S8kQ=JAqrptS%2B3sHueB09svZEksogq_UZ6sHfATw>