From owner-freebsd-current@freebsd.org Tue Feb 20 18:25:34 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D22BF1CDE5 for ; Tue, 20 Feb 2018 18:25:34 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) (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 ACBB385097 for ; Tue, 20 Feb 2018 18:25:33 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io0-f172.google.com with SMTP id u84so15931704iod.9 for ; Tue, 20 Feb 2018 10:25:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=xr1FuSlbWph4kI/1A1Q/O4xZ9G5mFQ+I9htS/WTsBzQ=; b=UvumNwv2Cj03QFahasCNs/0fpqdsUksrYsdR5cjY+gyE+HMmddmxr9RNMetCFC25Lb vrhGvSEdeOVmHq/s20vC3lpuB92ZVNSpNuD1i0s1fpIWx7TdaTLRqof6b+8lVYN+jRbK WVhGUvDLiJXOXcRZrWiVql8nMsY5nHSQP6Ws3fmsjgDuU/ksDVWV4KKwO6ZGBbwDhgId RrGwXGb7Sd8IjAsgebrDTC5ikXB1mEEgTF6SZhHrO1VMtq7Mx+ZPASnhmHbo1HDIuKAQ KMJnfbUpup9ALYlJFUf4QBQJZrGuFAuuqNd38pDLfxMUxoQO7FoB53OQdFLH3bkKg6EK zz9w== X-Gm-Message-State: APf1xPA/jGnIcMT479BHa9kjfqfvVgkLv+v8QZsnoXgTRWL8TZecWSlP SxEjyFOtlwoGyLBLrnYr2P3Jlw5E X-Google-Smtp-Source: AH8x227SxRTxQfKOlJ3+D7hVst/0fDOZtDHOGDjOARwHMeRZOCK9M4dyXIxeYttMmDg81450aiISWg== X-Received: by 10.107.197.66 with SMTP id v63mr749875iof.298.1519150743227; Tue, 20 Feb 2018 10:19:03 -0800 (PST) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com. [209.85.223.178]) by smtp.gmail.com with ESMTPSA id e63sm14223997ioj.85.2018.02.20.10.19.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 10:19:03 -0800 (PST) Received: by mail-io0-f178.google.com with SMTP id t22so15914751ioa.7 for ; Tue, 20 Feb 2018 10:19:03 -0800 (PST) X-Received: by 10.107.179.70 with SMTP id c67mr702416iof.220.1519150742911; Tue, 20 Feb 2018 10:19:02 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.30.149 with HTTP; Tue, 20 Feb 2018 10:19:02 -0800 (PST) In-Reply-To: References: <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> <20180219210551.GE94212@kib.kiev.ua> From: Conrad Meyer Date: Tue, 20 Feb 2018 10:19:02 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pkg does not recognize correct kernel version To: Ronald Klop Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 18:25:34 -0000 On Mon, Feb 19, 2018 at 2:38 PM, Ronald Klop wrote: > On Mon, 19 Feb 2018 22:05:51 +0100, Konstantin Belousov > 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