Re: Version skew?

2017-05-06 Thread Marc Espie
On Fri, May 05, 2017 at 11:01:18PM -0400, Donald Allen wrote:
> Also, if you look at the pkg_add man page, PKG_PATH is documented
> without any mention that it is deprecated.

That's because it isn't.



Re: Version skew?

2017-05-06 Thread Donald Allen
I won't clutter the list with the output of the commands you suggested
or the dmesg, because I figured out what happened, based on your
suggestions. Pilot error.

The installed kernel was from mid April, but /bsd has creation
date-time from yesterday.

I used a USB key that I had last prepared correctly in April.  But in
the dd command I did this time, I had forgotten the trailing 'c' in
the output device (of=/dev/sd1 instead of of=/dev/sd1c) (I wondered
why the dd command completed so quickly and apparently I failed to
notice that the usual message from dd about bytes copied was missing
or not correct -- I don't recall what the response was). The current
image did not get copied to the key and I was updating the system with
the image from last month. I just dd-ed the snapshot image correctly,
updated, and now, of course, the pkg_add works properly.

Sorry for the noise, but thanks for the help.

/Don



Re: Version skew?

2017-05-06 Thread jungle boogie

On 05/05/2017 08:01 PM, Donald Allen wrote:

The /etc/installurl file is not present on either of my 'current'
systems. Reading the man pages, it looks to me like installurl is
related to the new syspatch facility, which I believe is for tracking
the STABLE branch. As I said, I'm running CURRENT, so if I've got all
this right, the fact that /etc/installurl isn't present on my systems
is not surprising.

Also, if you look at the pkg_add man page, PKG_PATH is documented
without any mention that it is deprecated.


See this commit:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib/sets/lists/base/mi?rev=1.823=text/x-cvsweb-markup



Re: Version skew?

2017-05-05 Thread Manuel Solis
Hello, Donald

Perhaps you should try:

1-  doas echo "https://ftp.openbsd.org/pub/OpenBSD; > /etc/installurl (or
any other mirror you like)
and then again doas pkg_add rust


I certainly do not know exactly the process and all stuff, but maybe you
should get help in the faq page ( https://www.openbsd.org/faq/upgrade61.html
)  since it says something like:


   - *pkg.conf(5) no longer supported.* The pkg_* tools now use the
   installurl(5)  file to
   find the main package repository. If you install or upgrade from a mirror,
   this file is created automatically. Verify that /etc/installurl points
   to your preferred mirror and that the URI does *not* end in /6.1 (which
   may happen due to a bug in the installer).

   If necessary, please create the /etc/installurl file manually with your
   preferred mirror :

 *echo 'https://your.mirror/pub/OpenBSD
' > /etc/installurl*

   Since the pkg.conf(5)  file
   will no longer be used by tools, you may remove it:

 *rm /etc{,/examples}/pkg.conf*

   Use the PKG_PATH environment variable in case you need to specify more
   than one repository.

Or just in case in the pkg management part:

https://www.openbsd.org/faq/faq15.html#PkgMgmt


2 - If all of this does not work for you,maybe you should do a fresh
install instead of an upgrade and try again, if it solves, then something
weird happened during the upgrade process.


I hope that this information will help you.

Best Reggards

Manuel



On Fri, May 5, 2017 at 10:01 PM, Donald Allen 
wrote:

> The /etc/installurl file is not present on either of my 'current'
> systems. Reading the man pages, it looks to me like installurl is
> related to the new syspatch facility, which I believe is for tracking
> the STABLE branch. As I said, I'm running CURRENT, so if I've got all
> this right, the fact that /etc/installurl isn't present on my systems
> is not surprising.
>
> Also, if you look at the pkg_add man page, PKG_PATH is documented
> without any mention that it is deprecated.
>
> I'm pretty sure I can work around this problem by building the rust
> port, though I think it takes quite a while to do this. But I'm still
> puzzled that a 'current' package would be looking for a libc version
> newer than that supplied by the latest snapshot.
>
> On 5 May 2017 at 19:47, Kapfhammer, Stefan  wrote:
> > Hello Donald,
> >
> > PKG_PATH is deprecated since 6.1-RELEASE.
> >
> > Use /etc/installurl instead.
> >
> > https://man.openbsd.org/installurl
> >
> >
> > Freundliche Grüße / Regards
> > -stefan kapfhammer
> >   Originalnachricht
> > Von: Donald Allen
> > Gesendet: Freitag, 5. Mai 2017 20:16
> > An: OpenBSD general usage list
> > Betreff: Version skew?
> >
> >
> > I am running current on an amd64 system. I updated the system from the
> > latest (5/4) snapshot this morning, downloaded from the Alberta site.
> > But I am (still) unable to install the following package:
> >
> >  doas /usr/sbin/pkg_add rust
> > quirks-2.319 signed on 2017-05-03T14:53:25Z
> > Can't install rust-1.16.0 because of libraries
> > |library c.89.5 not found
> > | /usr/lib/libc.so.89.3 (system): minor is too small
> > | /usr/lib/libc.so.89.4 (system): minor is too small
> > Direct dependencies for rust-1.16.0 resolve to gcc-libs-4.9.4p4
> > Full dependency tree is gcc-libs-4.9.4p4
> >
> > This is with
> >
> > PKG_PATH=https://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64
> >
> > The /etc/doas.conf uses the KEEPENV option for /usr/sbin/pkg_add.
> >
> > What I am not clear about is why a package would require a library
> > with a greater minor version (and presumably newer) than that supplied
> > by the most recent snapshot? If someone could explain this I'd
> > appreciate it.
> >
> > /Don Allen
> >
>
>


-- 
Ing. Manuel Solís Agüero
Corporativo Los Solises
Cel: (871) 108 6000
Tel: (871) 721 6303


Re: Version skew?

2017-05-05 Thread Sebastien Marie
On Fri, May 05, 2017 at 02:15:26PM -0400, Donald Allen wrote:
> I am running current on an amd64 system. I updated the system from the
> latest (5/4) snapshot this morning, downloaded from the Alberta site.
> But I am (still) unable to install the following package:
> 
>  doas /usr/sbin/pkg_add rust
> quirks-2.319 signed on 2017-05-03T14:53:25Z
> Can't install rust-1.16.0 because of libraries
> |library c.89.5 not found
> | /usr/lib/libc.so.89.3 (system): minor is too small
> | /usr/lib/libc.so.89.4 (system): minor is too small
> Direct dependencies for rust-1.16.0 resolve to gcc-libs-4.9.4p4
> Full dependency tree is gcc-libs-4.9.4p4
> 
> This is with
> 
> PKG_PATH=https://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64
> 
> The /etc/doas.conf uses the KEEPENV option for /usr/sbin/pkg_add.
> 
> What I am not clear about is why a package would require a library
> with a greater minor version (and presumably newer) than that supplied
> by the most recent snapshot? If someone could explain this I'd
> appreciate it.
> 
> /Don Allen
> 

Your system isn't up-to-date: the latest libc version is 89.5.

$ tar zft /var/www/htdocs/pub/OpenBSD/snapshots/amd64/base61.tgz 
./usr/lib/libc.so*
./usr/lib/libc.so.89.5
./usr/lib/libc.so.89.5.a

>From 
>http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/shlib_version?rev=1.190=text/x-cvsweb-markup
major=89
minor=5

So it should be something weird in the upgrade you did. Could you send a
full dmesg of the running machine ?

and the output of the following commands:

$ what /bsd*
$ sysctl kern.version


Regarding statment of Stephan about PKG_PATH, the variable is still in
use under -current. It is the use of /etc/pkg.conf which is deprecated.

But I seems to me that /etc/installurl should be present in your system
too. The installer adds it on upgrade (but maybe only if you uses an
http mirror for sets - I didn't checked the exact conditions).

Thanks.
-- 
Sebastien Marie



Re: Version skew?

2017-05-05 Thread Donald Allen
The /etc/installurl file is not present on either of my 'current'
systems. Reading the man pages, it looks to me like installurl is
related to the new syspatch facility, which I believe is for tracking
the STABLE branch. As I said, I'm running CURRENT, so if I've got all
this right, the fact that /etc/installurl isn't present on my systems
is not surprising.

Also, if you look at the pkg_add man page, PKG_PATH is documented
without any mention that it is deprecated.

I'm pretty sure I can work around this problem by building the rust
port, though I think it takes quite a while to do this. But I'm still
puzzled that a 'current' package would be looking for a libc version
newer than that supplied by the latest snapshot.

On 5 May 2017 at 19:47, Kapfhammer, Stefan  wrote:
> Hello Donald,
>
> PKG_PATH is deprecated since 6.1-RELEASE.
>
> Use /etc/installurl instead.
>
> https://man.openbsd.org/installurl
>
>
> Freundliche Grüße / Regards
> -stefan kapfhammer
>   Originalnachricht
> Von: Donald Allen
> Gesendet: Freitag, 5. Mai 2017 20:16
> An: OpenBSD general usage list
> Betreff: Version skew?
>
>
> I am running current on an amd64 system. I updated the system from the
> latest (5/4) snapshot this morning, downloaded from the Alberta site.
> But I am (still) unable to install the following package:
>
>  doas /usr/sbin/pkg_add rust
> quirks-2.319 signed on 2017-05-03T14:53:25Z
> Can't install rust-1.16.0 because of libraries
> |library c.89.5 not found
> | /usr/lib/libc.so.89.3 (system): minor is too small
> | /usr/lib/libc.so.89.4 (system): minor is too small
> Direct dependencies for rust-1.16.0 resolve to gcc-libs-4.9.4p4
> Full dependency tree is gcc-libs-4.9.4p4
>
> This is with
>
> PKG_PATH=https://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64
>
> The /etc/doas.conf uses the KEEPENV option for /usr/sbin/pkg_add.
>
> What I am not clear about is why a package would require a library
> with a greater minor version (and presumably newer) than that supplied
> by the most recent snapshot? If someone could explain this I'd
> appreciate it.
>
> /Don Allen
>



Re: Version skew?

2017-05-05 Thread Kapfhammer, Stefan
Hello Donald,

PKG_PATH is deprecated since 6.1-RELEASE.

Use /etc/installurl instead.

https://man.openbsd.org/installurl


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Donald Allen
Gesendet: Freitag, 5. Mai 2017 20:16
An: OpenBSD general usage list
Betreff: Version skew?


I am running current on an amd64 system. I updated the system from the
latest (5/4) snapshot this morning, downloaded from the Alberta site.
But I am (still) unable to install the following package:

 doas /usr/sbin/pkg_add rust
quirks-2.319 signed on 2017-05-03T14:53:25Z
Can't install rust-1.16.0 because of libraries
|library c.89.5 not found
| /usr/lib/libc.so.89.3 (system): minor is too small
| /usr/lib/libc.so.89.4 (system): minor is too small
Direct dependencies for rust-1.16.0 resolve to gcc-libs-4.9.4p4
Full dependency tree is gcc-libs-4.9.4p4

This is with

PKG_PATH=https://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64

The /etc/doas.conf uses the KEEPENV option for /usr/sbin/pkg_add.

What I am not clear about is why a package would require a library
with a greater minor version (and presumably newer) than that supplied
by the most recent snapshot? If someone could explain this I'd
appreciate it.

/Don Allen