Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2018 10:19:02 -0800
From:      Conrad Meyer <cem@freebsd.org>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: pkg does not recognize correct kernel version
Message-ID:  <CAG6CVpW9O%2BXkbMe7seSCmvGXmUuOuYJGfAqiFOS2EQxEfpbB0A@mail.gmail.com>
In-Reply-To: <op.zepfusvakndu52@klop.ws>
References:  <op.zeo60hflkndu52@klop.ws> <eeae41de-d83b-93b4-0b69-bb62c9e84bb4@gwdg.de> <op.zeo9mlutkndu52@klop.ws> <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> <20180219210551.GE94212@kib.kiev.ua> <op.zepfusvakndu52@klop.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 19, 2018 at 2:38 PM, Ronald Klop <ronald-lists@klop.ws> wrote:
> On Mon, 19 Feb 2018 22:05:51 +0100, Konstantin Belousov
> <kostikbel@gmail.com> wrote:
>
>> Look at the man page.  pkg reads version from the /bin/sh ELF FreeBSD
>
>
> Which man page? I can't find it in pkg help update or pkg help upgrade or
> man pkg.

I had to dig for quite a while to find a reference (pkg.conf(5)):

     ABI: string      The ABI of the package you want to install.  Default:
                      derived from the ABI of the /bin/sh binary.

>> version note:
>> orion% file /bin/ls
>> /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD),
>> dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.1
>> (1101506), FreeBSD-style, stripped
>>
>> Update world past the __FreeBSD_version which is reported for the
>> repository.
>
>
> Does this mean I always have to do a *clean* buildworld after every version
> bump? This takes ages.

You could also do a -DNO_CLEAN buildworld.

Or you can continue to override with "-o OSVERSION=foo", although that
may eventually result in broken packages.  In general the OSVERSION is
bumped conservatively (more often than will actually result in
breakage), so you can get away with the easy workaround for a while
between buildworlds.

Best,
Conrad



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpW9O%2BXkbMe7seSCmvGXmUuOuYJGfAqiFOS2EQxEfpbB0A>