tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: HEADS-UP: sysutils/sysupgrade is about to break on NetBSD HEAD
Hi!
On Tue, Nov 24, 2026 at 01:53:27AM +0100, Robert Elz wrote:
> That is, a change is about to be made to /bin/sh in NetBSD HEAD
> which fixes a bug that sysupgrade has been exploiting.
>
> See the thread from
>
> https://mail-index.netbsd.org/pkgsrc-users/2026/11/19/msg043805.html
>
> for details.
>
> Someone probably needs to fix (merge into an existing patches/* patch) a
> change of 1 line of the sysupgrade script from
>
> for set_name in "${@:-$(shtk_config_get SETS)}"; do
>
> to
>
> test "$#" -gt 0 || set -- $(shtk_config_get SETS)
> for set_name do
>
> That's it. It is safe - in fact a very good idea - it will fix the
> issue described in the message above when the shell being used for
> sysupgrade is not the NetBSD shell (no other shell I could find executes
> that one line the way it was intended - all shells, old versions of the
> NetBSD shell included, will execute the suggested replacement), and will
> keep sysupgrade usable properly after the NetBSD shell is fixed.
> (Tomorrow (Tue) UTC probably, considerably later today my timezone).
>
> kre
>
> ps: I don't use sysupgrade, and have no way to test it, but this change
> is kind of absurdly obvious.
I've committed the fix, untested, since the sh(1) change went into -current.
Thomas
Home |
Main Index |
Thread Index |
Old Index