From owner-freebsd-current@freebsd.org Thu Jan 11 15:57:42 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDA3BE6B5C3 for ; Thu, 11 Jan 2018 15:57:42 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0557777AD for ; Thu, 11 Jan 2018 15:57:42 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 0db97ede-f6e8-11e7-93a5-cd02e7dc7692 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 0db97ede-f6e8-11e7-93a5-cd02e7dc7692; Thu, 11 Jan 2018 15:56:58 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w0BFvYBT003779; Thu, 11 Jan 2018 08:57:34 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1515686254.44630.74.camel@freebsd.org> Subject: Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64 From: Ian Lepore To: Baptiste Daroussin , Boris Samorodov Cc: freebsd-current@FreeBSD.org Date: Thu, 11 Jan 2018 08:57:34 -0700 In-Reply-To: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> References: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Thu, 11 Jan 2018 15:57:43 -0000 On Wed, 2018-01-10 at 19:53 +0100, Baptiste Daroussin wrote: > On Wed, Jan 10, 2018 at 09:29:04PM +0300, Boris Samorodov wrote: > > > > Hi All, > > > > I use self built base packages. Seems that I have a problem with pkg. > > Today I've got this: > > === > > % sudo pkg update -f > > Updating FreeBSD-base repository catalogue... > > Fetching meta.txz: 100%    268 B   0.3kB/s    00:01 > > Fetching packagesite.txz: 100%   29 KiB  29.4kB/s    00:01 > > Processing entries:   0% > > pkg: Newer FreeBSD version for package FreeBSD-libulog: > > - package: 1200055 > > - running kernel: 1200054 > > pkg: repository FreeBSD-base contains packages for wrong OS version: > > FreeBSD:12:amd64 > > Processing entries: 100% > > Unable to update repository FreeBSD-base > > [...] > > > > % uname -aKU > > FreeBSD latt.bsnet 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r327719: Tue Jan > >  9 14:32:13 MSK 2018 > > bsam@builder.bsnet:/usr/obj/usr/src/amd64.amd64/sys/PKG64X  amd64 > > 1200054 1200054 > > > > % pkg -v > > 1.10.4 > > > hum > > pkg now has a mechanism to protect from installing too new package (aka packages > built on a more recent system than the system you are running on. > > While this is great for ports this is a bit painful for upgrading base packages > when building on current > > One has to specify pkg -o OSVERSION=1200055 to allow packages built on 1200055 > to install on 1200054. > > I need to figure out a mechanism to make this simpler to handle to upgrade of > base system while keeping this safety belt for users. > > Any idea is welcome > > Best regards, > Bapt Is this new mechanism disabled if installing into something other than the live system, such as when using -c or -r (and maybe -j)? -- Ian