Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Julian H. Stacey
Added CC: p...@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 \
> >j...@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

Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Chris H
On Wed, 13 Jul 2016 16:49:37 +0200 "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 \
> j...@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
> -- 
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

--Chris


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Franco Fichtner
Hi Julian,

I ran into something similar, maybe this make.conf flag helps:

CLEAN_FETCH_ENV=yes


Cheers,
Franco

> 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 \
>j...@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
> -- 
> 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
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
> 

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Guido Falsi
On 07/13/16 16:49, 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 \
> j...@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 ?
> 

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.

-- 
Guido Falsi 
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Matthew Donovan
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
On Jul 13, 2016 9:59 AM, "Franco Fichtner"  wrote:

> Hi Julian,
>
> I ran into something similar, maybe this make.conf flag helps:
>
> CLEAN_FETCH_ENV=yes
>
>
> Cheers,
> Franco
>
> > 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 \
> >j...@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
> > --
> > 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
> > ___
> > freebsd-ports@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
> >
>
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
>
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


OS version upgrade detected. Running "pkg-static install -f pkg" recommended

2016-07-13 Thread Julian H. Stacey
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 \
j...@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
-- 
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
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"