12.3-RC1 fails to install pkg

2021-11-17 Thread Peter


Not sure if this is intended or not - it certainly wasn't the case
with 12.2, and it likely will break a few automated deploys:


# ls -la pkg*
-rw-r--r--  1 root  wheel  4011616 Nov 17 17:52 pkg-1.17.2.pkg
# pkg add /tmp/vb/pkg-1.17.2.pkg < /dev/null
The package management tool is not yet installed on your system.
Please set ASSUME_ALWAYS_YES=yes environment variable [etc.etc.]


Okay, lets try that one:

# pkg add -y /tmp/vb/pkg-1.17.2.pkg < /dev/null
Bootstrapping pkg from 
https://oper-e.intra.daemon.contact/sysimg/ports/conr/Cur, please wait...
pkg: Error fetching 
https://oper-e.intra.daemon.contact/sysimg/ports/conr/Cur/Latest/pkg.txz: Not 
Found
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.


Not good. Not at all.

But then:

# pwd
/tmp/vb
# pkg add pkg-1.17.2.pkg < /dev/null
Installing pkg-1.17.2...
Extracting pkg-1.17.2: 100%


So, it *can* still do it. It just does no longer accept an (absolute
or relative) pathname.

And I have no idea what that might be good for. Any clues, anybody?


cheerio,
PMc



Re: 12.3-RC1 fails to install pkg

2021-11-17 Thread Glen Barber
On Wed, Nov 17, 2021 at 07:17:20PM +0100, Peter wrote:
> 
> Not sure if this is intended or not - it certainly wasn't the case
> with 12.2, and it likely will break a few automated deploys:
> 
> 
> # ls -la pkg*
> -rw-r--r--  1 root  wheel  4011616 Nov 17 17:52 pkg-1.17.2.pkg
> # pkg add /tmp/vb/pkg-1.17.2.pkg < /dev/null
> The package management tool is not yet installed on your system.
> Please set ASSUME_ALWAYS_YES=yes environment variable [etc.etc.]
> 
> 
> Okay, lets try that one:
> 
> # pkg add -y /tmp/vb/pkg-1.17.2.pkg < /dev/null
> Bootstrapping pkg from 
> https://oper-e.intra.daemon.contact/sysimg/ports/conr/Cur, please wait...
> pkg: Error fetching 
> https://oper-e.intra.daemon.contact/sysimg/ports/conr/Cur/Latest/pkg.txz: Not 
> Found
> A pre-built version of pkg could not be found for your system.
> Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
> 
> 
> Not good. Not at all.
> 
> But then:
> 
> # pwd
> /tmp/vb
> # pkg add pkg-1.17.2.pkg < /dev/null
> Installing pkg-1.17.2...
> Extracting pkg-1.17.2: 100%
> 
> 
> So, it *can* still do it. It just does no longer accept an (absolute
> or relative) pathname.
> 
> And I have no idea what that might be good for. Any clues, anybody?
> 

Can you try this?

 # pkg add -y file:///tmp/vb/pkg-1.17.2.pkg

Glen



signature.asc
Description: PGP signature


Re: 12.3-RC1 fails to install pkg

2021-11-17 Thread Peter


> Can you try this?
>  # pkg add -y file:///tmp/vb/pkg-1.17.2.pkg

Hi Glen,

 tried, doesn't help. I found the cause in the meantime, it's #370420

It states:
  * Chop off the final "-" (version delimiter) and check the name that
  * precedes it.  If we didn't have a version delimiter, it must be the
  * pkg.$archive short form but we'll check it anyways.
  
What they apparently did forget is to also chop off the leading path
name up to and including an '/'.

So it is not intentional, it is just the normal first try of an
improvement where you always forget something.


cheerio,
PMc