Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2016 06:59:20 -0700
From:      Patrick Powell <papowell@astart.com>
To:        Lowell Gilbert <freebsd-ports-local@be-well.ilk.org.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:  <cbc1cd7e-0890-a421-aade-7056a57f8f3b@astart.com>
In-Reply-To: <44poryi2fz.fsf@lowell-desk.lan>
References:  <5b020f89-8f29-5c52-e3de-6c067019b7e9@astart.com> <44poryi2fz.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/03/16 10:53, Lowell Gilbert wrote:
> Patrick Powell <papowell@astart.com> writes:
>
>> 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
>> installed 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=YES install'
>> to force overwriting the conflicting files?
> Not directly, no. The way to do it straight from the ports tree is to
> remove the "PortA" *first* (with "pkg delete -f"), and then install
> "PortB". You end up losing the dependency information that PortA had
> formerly had, but things will work.
>
> Upgrade tools (pkg, portmaster, portupgrade, at least) have a "-o"
> option that fixes up the dependency information.
>
When you do the 'pkg delete -f PortA' then it will also delete the 
libraries installed by PortA.
if you do 'cd ...PortB; make install' and it will now install the files 
that were in conflict,
but there are now some libraries installed by PortA which are missing.

I understand that this is on the outskirts of package/port management,  
but there are times when
you want to install a test version of a utility which has only part of 
the functionality of another port.

-- 
Patrick Powell                 Astart Technologies
papowell@astart.com            1530 Jamacha Rd, Suite X
Network and System             San Diego, CA 92019
   Consulting                   858-874-6543 FAX 858-751-2435
Web: www.astart.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cbc1cd7e-0890-a421-aade-7056a57f8f3b>