pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Trouble with pkgsrc



You wrote:

I first did this:

$ PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r | cut -d_ -f1)/All"
$ echo $PKG_PATH
https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.3/All
$ export PKG_PATH
$ pkg_add ruby
pkg_add: Can't process https://cdn.NetBSD.org:443/pub/pkgsrc/packages/NetBSD/earmv7hf/9.3/All/ruby*: Unknown HTTP error
pkg_add: no pkg found for 'ruby', sorry.
pkg_add: 1 package addition failed
$


This is the result of an unhandled `421 Misdirected Request' error.
These days, most HTTP servers are hosted by CDNs and they expect
an HTTP SNI (Server Name Indication) to be sent by the client when
negotiating HTTPS requests.

The fix for _this_ issue is pretty simple, but, it changes the
libfetch API a bit.

Please file a PR (category `lib', I think) so that this can be
tracked, and we can discuss there if either a) the simple fix should
be used, or b) the whole `libfetch' library should be updated (the
latest version already has this fix--and more.)

The workaround, for now, is to simply use `http://' instead of
`https://'.

-RVP


Home | Main Index | Thread Index | Old Index