Current-Users archive

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

Re: NetBSD 11.99.1 installation procedure issue







Sent with Proton Mail secure email.

On Monday, 4 August 2025 at 05:14, RVP <rvp%SDF.ORG@localhost> wrote:

> On Sun, 3 Aug 2025, ci4ic4 wrote:
> 
> > #!/usr/pkg/bin/zsh
> > nohup simple-http-server --ip 192.168.0.49 -p 3003 --index /bd/sysbuild/release &
> > nohup simple-http-server --ip 192.168.0.49 -p 3004 --index /bd/pkgsrc/packages &
> > 
> > I clean-install from the DVD image and configure the network settings of the guest, as usual; the network works as expected. The access is via http, the base directory is empty, the packages directory is All and everything used to work. However, the initial pkgin package does not get installed - pkg_add does not appear to find the package by name, the command
> > 
> > pkg_add http://192.168.0.49/All/pkgin
> > 
> > fails with 'no pkg for ' ...
> 
> 
> If `simple-http-server' is this[1] one, 

yes,
>then I can tell you what the issue is: 1. simple-http-server returns an` index.html' with `href' links like this:
> 
> ```
> <td><a href="/pkgin-25.5.1.tgz">pkgin-25.5.1.tgz</a></td>
>

Indeed,
 
> `whereas (bozo)httpd returns:`
> <tr><td><a href="pkgin-25.5.1.tgz">pkgin-25.5.1.tgz</a><td>04-Aug-2025 04:02<td align=right>70kB
> 
> ``ie. there's a extra `/' at the beginning of the link in simple-http-server's case. 2. This isn't handled by pkg_add(8) and friends. Use bozohttpd instead, and you won't have any issues, I think:``
> $ /usr/libexec/httpd -f -n -s -I 8080 -X /tmp

This works. The trouble is, I am pretty sure it used to work before with simple-http-server, so I don't know what has changed since then. I tried my last 10.99.14 build and it failed the same as 11.99.1 this time. 


> ```
> 
> File a PR for pkg_add/pkg_install too. It should handle a leading `/' too, I
> think (not sure--may have to read the RFCs some time...).

As long as the reason for the failure is clear, I'm ok; maybe I am mistaken about how it used to work, my previous build was probably three months ago so I may be wrong on that. It is only the system pkg_add which is having the issue - pkgin works fine against simple-http-server after the installation as it is. 

Chavdar

> 
> -RVP
> 
> [1]: https://github.com/TheWaWaR/simple-http-server


Home | Main Index | Thread Index | Old Index