Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 16:53:03 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        Jan Bramkamp <crest@rlwinm.de>, freebsd-ports@freebsd.org
Subject:   Re: Chicken/egg problem with pkg
Message-ID:  <cfea72eb-3031-8281-8c11-fd944615536f@madpilot.net>
In-Reply-To: <28fa36aa-e1b1-d58b-96cb-17da0428a150@rlwinm.de>
References:  <a2528a17-bae9-ef23-e2cd-bc4b1c813db7@xs4all.nl> <06a269f9-b942-5f1b-717c-7de4a60bd263@madpilot.net> <28fa36aa-e1b1-d58b-96cb-17da0428a150@rlwinm.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/10/17 14:57, Jan Bramkamp wrote:
> On 10/03/2017 14:47, Guido Falsi wrote:
>> On 03/10/17 14:26, Hans de Hartog wrote:
>>> I have an old web server (10.1-RELEASE-p9) which is running for years
>>>
>>> without any upgrades. Now I want to install a simple port (trafshow, to
>>>
>>> see what's going on).
>>>
>>> It first want to upgrade pkg from 1.5.1 to 1.10.0_2 but that doesn't
>>> work:
>>>
>>> [1/1] Upgrading pkg from 1.5.1 to 1.10.0_2...
>>> [1/1] Extracting pkg-1.10.0_2: 100%
>>> /usr/local/lib/libpkg.so.4: Undefined symbol "openat"
>>>
>>> Anything I try to do with pkg now gives me this error-message.
>>>
>>> /var/log/messages says: pkg: pkg upgraded: 1.5.1 -> 1.10.0_2
>>>
>>> How do I proceed from here (without upgrading everything, please)?
>>>
>>
>> Have you tried using the "pkg-static" command? It's the same as pkg, but
>> statically linked, should sidestep your issue.
> 
> The old pkg-static might work, but it would wreck his system because he
> uses a repo with an ABI unsupported by his base + kernel system. He is
> lucky he immediately triggered the incompatibility.

You are right. I interpreted the OP email as in that he was going to
upgrade the Base OS too. He should do that first thing, then upgrade the
ports, most probably by forcing them all.

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cfea72eb-3031-8281-8c11-fd944615536f>