On Tue, Feb 02, 2016 at 10:48:47PM GMT, Stuart Henderson wrote: > On 2016/02/02 22:15, Raf Czlonka wrote: > > Like I've mentioned above, I'm not particularly fond of it either. > > > > I merely copied what was already in the FAQ - I wish you had kept the > > rest of the diff, but here is a shortened version anyway :^) > > (sorry, trimming a lot here, otherwise it's harder for readers to see > the main points)
Sure, no worries - last time it was simply about your.local.mirror and the relevant bits were missing :^) > > +# export PKG_PATH=http://your.local.mirror/pub/OpenBSD/%c/packages/%a/ > > > > I only checked the latter (faq9.html) - it has been introduced over 10 > > years ago and it doesn't seem like anyone complained, so naturally I > > assumed it is the "sanctioned" way of doing things. > > 10 years ago nobody would have predicted anybody we would have 900 > vanity TLDs. But with the current state of the root zone it's highly > likely that .mirror will be delegated sometime soon (I'm surprised > it hasn't already gone), I think we should definitely not continue > to use it. Still, nobody even noticed or complained since these were introduced, and those files received patches multiple times since then. Even the *very* lines were altered just over two months ago[0]. BTW, in this example Theo even changed ftp -> local :^) - and I hadn't "selected" this particular commit, I used 'cvs blame'. > > I don't think I need to explain why I had removed ftp.openbsd.org in the > > first place. > > I understand why but as an example it has the big advantage of > actually working as-is.. If you want to use a "working" example, and since there's no rel.openbsd.org or any other similar service (which you speak of below) available, then you'll need to "favour" one mirror over all the other ones. your.local.mirror is, at least, self-explanatory - people know exactly what to do. Yes, if .mirror ever goes official, then this would need changing. > I'd also be reasonably happy with: > > "ftp.<country>.openbsd.org" > "ftp.XX.openbsd.org" I get what you're saying. However, the above is, IMVHO, a bad example, as it implies availability of country coded mirrors and, since there are only 7 servers which follow this naming convention (3 with eu., 2 with fr. and 2 with usa.), this can be somewhat misleading. > "(your local mirror)" (because it can't be confused with a valid hostname) I still like the dotted format more :^) > ...though what I'd really like is something like "rel.openbsd.org" > that users of releases can point at, issuing http redirects pointing > at an alive server which is reasonably suitable for the user (and > pkg_add would need to cache these rather than hitting it each time). > It wouldn't work with snapshots, but by the time someone is running > snaps they should be able to take care of themselves a bit more... Yes, that would have been the best solution. However, given that: - no such thing exists at the moment - country mirrors are virtually non-existent - ftp.openbsd.org is, AFAIC, overloaded what other real *and* good alternative do you suggest? > > Regards, > > > > Raf > > > > P.S. PKG_PATH=http://example.org/ would have been my preference. > > If it was a placeholder for "any random domain" (e.g. in smtpd > config examples), I'd totally agree. On reflection, maybe not the best choice but, bar the 7 examples above + the primary ftp.openbsd.org, mirror domain names *are* random. [0] http://cvsweb.openbsd.org/cgi-bin/cvsweb/www/faq/faq9.html.diff?r1=1.115&r2=1.116&f=h Cheers, Raf