From owner-freebsd-pkg@freebsd.org Wed Jul 13 21:16:38 2016 Return-Path: Delivered-To: freebsd-pkg@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 6ECA2B97936 for ; Wed, 13 Jul 2016 21:16:38 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 569F11D73 for ; Wed, 13 Jul 2016 21:16:38 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4ECB8B97934; Wed, 13 Jul 2016 21:16:38 +0000 (UTC) Delivered-To: pkg@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 4E24EB97932; Wed, 13 Jul 2016 21:16:38 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 972A71D6F; Wed, 13 Jul 2016 21:16:36 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (pD9FE975D.dip0.t-ipconnect.de [217.254.151.93]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id u6DLFDRD016720; Wed, 13 Jul 2016 23:15:14 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id u6DLGT9Y018597; Wed, 13 Jul 2016 23:16:29 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id u6DLFc2h002328; Wed, 13 Jul 2016 23:15:51 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201607132115.u6DLFc2h002328@fire.js.berklix.net> To: ports@freebsd.org cc: Franco Fichtner , Guido Falsi , Matthew Donovan , "Chris H" , pkg@freebsd.org, Baptiste Daroussin , Julien Laffaye Subject: Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-URL: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Wed, 13 Jul 2016 16:58:59 +0200." Date: Wed, 13 Jul 2016 23:15:38 +0200 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2016 21:16:38 -0000 Added CC: pkg@FreeBSD.org from ports-mgmt/pkg/Makefile: MAINTAINER= & CC: Baptiste Daroussin , Julien Laffaye from AUTHORS in pkg-1.8.7.tar.xz > > On 13 Jul 2016, at 4:49 PM, Julian H. Stacey wrote: > > > > Hi ports@ > > With: > > uname -a > > FreeBSD lapr.js.berklix.net 12.0-CURRENT FreeBSD 12.0-CURRENT \ > > #1 r302560M: Wed Jul 13 01:28:27 CEST 2016 \ > > jhs@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64 > > > > cd /usr/ports; svn up > > Updating '.': > > At revision 418418 > > > > make fetch > > pkg-static: Warning: Major OS version upgrade detected. \ > > Running "pkg-static install -f pkg" recommended > > > > This is an incomplete thus bad reccomendation, based on a false > > assumption all users of ports/ only want packages. It's quite obvious > > from "make fetch" that here one wants to fetch distfiles to recompile, > > not install binary packages, the warning should at least also provide > > an alternate recipe for ports/ source based users who want to > > recompile whatever to get rid of warning. > > > > What causes the warning ? a grep of Mk/* doesnt show it, > > It's presumably coming from Mk/ calling some pkg ? > > In /usr/src/usr.sbin/pkg ? I fail to grep for Major > > > > What text can we add to which Mk/* to state the source upgrade route ? > > > > Cheers, > > Julian ... Corrected to bottom post ... Franco Fichtner wrote Wed, 13 Jul 2016 16:58:59 +0200 : > Hi Julian, > > I ran into something similar, maybe this make.conf flag helps: > > CLEAN_FETCH_ENV=yes > > Cheers, > Franco Thanks for the idea Franco, I tried but it didn't help. Then I looked, only usage is here: Mk/bsd.port.mk .if !defined(PKG_DEPENDS) && !defined(CLEAN_FETCH_ENV) PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN} .endif & adding a debug shows I have ${PKG_DEPENDS}: /usr/local/sbin/pkg:ports-mgmt/pkg Guido Falsi wrote Wed, 13 Jul 2016 17:13:55 +0200 : > It' the "pkg-static" binary installed by the ports-mgmt/pkg port. It's > invoked in various ways by the ports framework. > > You can ignore such warnings, they will go away once you forcibly update > the pkg port. cd /usr/ports/ports-mgmt/pkg ; make clean ; make install ; make package-recursive ; cd ../../ ; make fetch Now OK, so that fixes it, Thanks Guido ! Patch below, & copied here: http://berklix.com/~jhs/src/bsd/fixes/freebsd/ports/gen/ports-mgmt/pkg/patch-ja ============== *** src/main.c.orig Wed Jul 13 22:13:46 2016 --- src/main.c Wed Jul 13 22:19:56 2016 *************** *** 742,749 **** errx(EX_SOFTWARE, "register pkg_shutdown() to run at exit"); if (!pkg_compiled_for_same_os_major()) ! warnx("Warning: Major OS version upgrade detected. Running " ! "\"pkg-static install -f pkg\" recommended"); plugins_enabled = pkg_object_bool(pkg_config_get("PKG_ENABLE_PLUGINS")); --- 742,751 ---- errx(EX_SOFTWARE, "register pkg_shutdown() to run at exit"); if (!pkg_compiled_for_same_os_major()) ! // warnx("Warning: Major OS version upgrade detected. Running " ! // "\"pkg-static install -f pkg\" recommended"); ! warnx("Warning: Major OS version upgrade detected. Recommended: " ! "\"pkg-static install -f pkg\" OR \"cd /usr/ports/ports-mgmt/pkg;make clean;make install\""); plugins_enabled = pkg_object_bool(pkg_config_get("PKG_ENABLE_PLUGINS")); ============== PS Matthew Donovan wrote Wed, 13 Jul 2016 10:07:51 -0500 (17:07 CEST) > Not sure how this is bad it just reinstalls pkg for the new ABI. > Ports/packages is placed in the database by pkg. So you will get that > warning when even doing pkg list Sorry, I only meant it was bad in that it didn't tell users who dont use packages how to fix the problem. I could have better written "this is [a poor reccomendation as] incomplete" "Chris H" wrote Wed, 13 Jul 2016 13:32:56 -0700 (22:32 CEST) > It *should* read: > pkg-static: Warning: Major OS version upgrade detected. \ > Running "pkg-static install -f pkg" recommended \ > or run "pkg-static delete -f pkg" to remove this message. > > Sorry. Couldn't resist. In all honesty Julian, I too had the > same reaction/ understanding as you, when I saw it. Took me a bit > before it dawned on me what it was *actually* trying to tell me. :P Ah Thanks, I hadn't thought of that ! Hopefully the authors/ maintainers of pkg will add one or the other. Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/ Mail plain text, No quoted-printable, HTML, base64, MS.doc. Prefix old lines '> ' Reply below old, like play script. Break lines by 80. http://berklix.eu/brexit/#stolen_votes