Re: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-11 Thread Baptiste Daroussin
On Wed, Feb 10, 2016 at 07:57:55PM -0500, Daniel Eischen wrote:
> On Wed, 10 Feb 2016, Baptiste Daroussin wrote:
> 
> > On Wed, Feb 10, 2016 at 10:16:44PM +0100, Dimitry Andric wrote:
> >> On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:
> >>>
> >>> I'm trying to upgrade my ports with a set that I built using poudriere.
> >>> I'm running FreeBSD-current r295354, pkg 1.6.3.
> >>>
> >>> The packages are here on my local (localhost, vega) box:
> >>>
> >>>  /usr/local/poudriere/data/packages/11amd64-default
> >>>
> >>> My repo pkg.conf (vega.conf) looks like this:
> >>>
> >>>  vega: {
> >>>url: 
> >>> "file://localhost/usr/local/poudriere/data/packages/11amd64-default",
> >>
> >> Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
> >> Berners-Lee has even apologized for it... :-) [1]
> >>
> >> -Dimitry
> >>
> >> [1] http://news.bbc.co.uk/2/hi/technology/8306631.stm
> >>
> > Yes that is it.
> >
> > Note that I will relax it in pkg 1.6.4 to be released very soon, I have 
> > been too
> > strict by accident in pkg 1.6.3 (I have never thought anyone would use 
> > file://
> > or file:/.
> >
> > pkg respects RFC2396 but there are not reason not to relax it a bit given 
> > some
> > users seems to use the previous syntax
> 
> No worries, now that I have the correct syntax.  Thanks!

FYI pkg 1.6.4 is out and relaxes the syntax

Best regards,
Bapt


signature.asc
Description: PGP signature


Re: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Daniel Eischen

On Wed, 10 Feb 2016, Baptiste Daroussin wrote:


On Wed, Feb 10, 2016 at 10:16:44PM +0100, Dimitry Andric wrote:

On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:


I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

 /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

 vega: {
   url: "file://localhost/usr/local/poudriere/data/packages/11amd64-default",


Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
Berners-Lee has even apologized for it... :-) [1]

-Dimitry

[1] http://news.bbc.co.uk/2/hi/technology/8306631.stm


Yes that is it.

Note that I will relax it in pkg 1.6.4 to be released very soon, I have been too
strict by accident in pkg 1.6.3 (I have never thought anyone would use file://
or file:/.

pkg respects RFC2396 but there are not reason not to relax it a bit given some
users seems to use the previous syntax


No worries, now that I have the correct syntax.  Thanks!

--
DE
___
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: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Daniel Eischen

On Wed, 10 Feb 2016, Warren Block wrote:


On Wed, 10 Feb 2016, Daniel Eischen wrote:


On Wed, 10 Feb 2016, Dimitry Andric wrote:


On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:


I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

 /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

 vega: {
   url: 
"file://localhost/usr/local/poudriere/data/packages/11amd64-default",


Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
Berners-Lee has even apologized for it... :-) [1]


Nope, that doesn't work either.  Previously, I used:

 url: "file:/usr/local/poudriere/data/packages/11amd64-default

and that worked until upgrading to a more recent -current and pkg
at the same time.  fetch(1,3) do not work with that syntax any more
and pkg complains with "pkg: invalid url: file:/usr/local/..."


Not with localhost, no.  It's file:// and then the path, which begins with a 
slash, so


file:///usr/local/poudriere/data/packages/11amd64-default


Thanks!  That did the trick.

--
DE
___
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: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Baptiste Daroussin
On Wed, Feb 10, 2016 at 10:16:44PM +0100, Dimitry Andric wrote:
> On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:
> > 
> > I'm trying to upgrade my ports with a set that I built using poudriere.
> > I'm running FreeBSD-current r295354, pkg 1.6.3.
> > 
> > The packages are here on my local (localhost, vega) box:
> > 
> >  /usr/local/poudriere/data/packages/11amd64-default
> > 
> > My repo pkg.conf (vega.conf) looks like this:
> > 
> >  vega: {
> >url: 
> > "file://localhost/usr/local/poudriere/data/packages/11amd64-default",
> 
> Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
> Berners-Lee has even apologized for it... :-) [1]
> 
> -Dimitry
> 
> [1] http://news.bbc.co.uk/2/hi/technology/8306631.stm
> 
Yes that is it.

Note that I will relax it in pkg 1.6.4 to be released very soon, I have been too
strict by accident in pkg 1.6.3 (I have never thought anyone would use file://
or file:/.

pkg respects RFC2396 but there are not reason not to relax it a bit given some
users seems to use the previous syntax

Best regards,
Bapt


signature.asc
Description: PGP signature


Re: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Warren Block

On Wed, 10 Feb 2016, Daniel Eischen wrote:


On Wed, 10 Feb 2016, Dimitry Andric wrote:


On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:


I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

 /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

 vega: {
   url: 
"file://localhost/usr/local/poudriere/data/packages/11amd64-default",


Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
Berners-Lee has even apologized for it... :-) [1]


Nope, that doesn't work either.  Previously, I used:

 url: "file:/usr/local/poudriere/data/packages/11amd64-default

and that worked until upgrading to a more recent -current and pkg
at the same time.  fetch(1,3) do not work with that syntax any more
and pkg complains with "pkg: invalid url: file:/usr/local/..."


Not with localhost, no.  It's file:// and then the path, which begins 
with a slash, so


file:///usr/local/poudriere/data/packages/11amd64-default
___
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: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Daniel Eischen

On Wed, 10 Feb 2016, Dimitry Andric wrote:


On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:


I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

 /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

 vega: {
   url: "file://localhost/usr/local/poudriere/data/packages/11amd64-default",


Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
Berners-Lee has even apologized for it... :-) [1]


Nope, that doesn't work either.  Previously, I used:

  url: "file:/usr/local/poudriere/data/packages/11amd64-default

and that worked until upgrading to a more recent -current and pkg
at the same time.  fetch(1,3) do not work with that syntax any more
and pkg complains with "pkg: invalid url: file:/usr/local/..."

--
DE
___
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: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Dimitry Andric
On 10 Feb 2016, at 20:10, Daniel Eischen  wrote:
> 
> I'm trying to upgrade my ports with a set that I built using poudriere.
> I'm running FreeBSD-current r295354, pkg 1.6.3.
> 
> The packages are here on my local (localhost, vega) box:
> 
>  /usr/local/poudriere/data/packages/11amd64-default
> 
> My repo pkg.conf (vega.conf) looks like this:
> 
>  vega: {
>url: "file://localhost/usr/local/poudriere/data/packages/11amd64-default",

Try using file:/// (e.g three slashes).  Yes, this is ugly, and Tim
Berners-Lee has even apologized for it... :-) [1]

-Dimitry

[1] http://news.bbc.co.uk/2/hi/technology/8306631.stm



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Daniel Eischen

On Wed, 10 Feb 2016, Daniel Eischen wrote:


I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

 /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

 vega: {
   url: 
"file://localhost/usr/local/poudriere/data/packages/11amd64-default",

   mirror_type: "srv",


BTW, I changed mirror_type to "none", but it doesn't make a difference,
still fails in the same way.

--
DE
___
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"


pkg 1.6.3 unable to upgrade, URL in pkg.conf problem?

2016-02-10 Thread Daniel Eischen

I'm trying to upgrade my ports with a set that I built using poudriere.
I'm running FreeBSD-current r295354, pkg 1.6.3.

The packages are here on my local (localhost, vega) box:

  /usr/local/poudriere/data/packages/11amd64-default

My repo pkg.conf (vega.conf) looks like this:

  vega: {
url: "file://localhost/usr/local/poudriere/data/packages/11amd64-default",
mirror_type: "srv",
signature_type: "none"
fingerprints: "/usr/share/keys/pkg",
enabled: yes
  }

'pkg upgrade -r vega' yields this:

  #  pkg upgrade -r vega
  Updating vega repository catalogue...
  vega repository is up-to-date.
  All repositories are up-to-date.
  Checking for upgrades (360 candidates): 100%
  Processing candidates (360 candidates): 100%
  The following 139 package(s) will be affected (of 0 checked):

  New packages to be INSTALLED:
  cblas: 1.0_4 [vega]
  ...

  Installed packages to be UPGRADED:
  xterm: 320 -> 322 [vega]
  ...

  Installed packages to be REINSTALLED:
  yajl-2.1.0 [vega] (provided shared library changed)
  ...

  The operation will free 20 MiB.
  323 MiB to be downloaded.

  Proceed with this action? [y/N]: y
  Checking integrity... done (0 conflicting)
  pkg: 
archive_read_open_filename(localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz):
  Failed to open 
'localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz'

Fetch however seems to work fine:

  $ fetch 
file://localhost/usr/local/poudriere/data/packages/11amd64-default/All/pciids-20160116.txz
  pciids-20160116.txz   100% of  191 kB  332 MBps 00m00s

Fetch also works fine using my hostname (vega) instead of localhost,
while 'pkg upgrade' still fails in the same way.  I am not using DNS
for local hosts, just /etc/hosts.

--
DE
___
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"