Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2025 10:29:00 +0100
From:      Thomas Schweikle <tschweikle@gmail.com>
To:        Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>
Cc:        freebsd-current@freebsd.org
Subject:   Re: "etcupdate extract" -- Failed to build new tree.
Message-ID:  <CA%2BrGx5e44JhSLTwjLJt=LXT47e-%2B2n=uicdqAbZgx6raXJg=Ow@mail.gmail.com>
In-Reply-To: <B7D6F208-6435-49C3-91B3-77CB7B334E55@ketas.si.pri.ee>
References:  <CA%2BrGx5ekwmBNUJKoCOk1c-ts_Q_VXuRoQ4Krkuqey_c-KZbaXQ@mail.gmail.com> <86qzuo1ab1.fsf@ltc.des.dev> <CA%2BrGx5cF%2B-QTh95Jw1hs59Dsyk7TSAn%2BYBfWw_suNY98Q7i56w@mail.gmail.com> <868qgw14xj.fsf@ltc.des.dev> <CA%2BrGx5d3ZOXZM6yw4eyO-CbhjiCGu%2BZz1COmLiRDOOQEiOa1Qg@mail.gmail.com> <864irj1ett.fsf@ltc.des.dev> <CA%2BrGx5eKUx2KzfN=81pKrTkC6-3yhKiBn_2xgLqC5oADBuddSg@mail.gmail.com> <86jz0fyzjj.fsf@ltc.des.dev> <CA%2BrGx5dZgdMkW7zWsrbwLast8t_BhBZt6CF75H8VjW_Lez7cYA@mail.gmail.com> <31a80d2d-65b3-4604-ac5f-1440d23fb85a@plan-b.pwste.edu.pl> <CA%2BrGx5cUAo-93t1fTDhEeLxqrJ4ewb%2BriLfodOEhKAwNM6koig@mail.gmail.com> <43c4ae93-71e2-4b2e-b265-b84b96a70666@plan-b.pwste.edu.pl> <4570E827-C9ED-4473-AE60-C895DBD9C2BF@ketas.si.pri.ee> <CA%2BrGx5cw9zd8e-uwB0v7WHwzm6Dco%2BUtPWRtYikUW3aZ1fz8jw@mail.gmail.com> <2121B7E6-0DB6-427A-9C72-640A3AEE26AA@ketas.si.pri.ee> <CA%2BrGx5fOJS5SwywFfe3Eo%2BFVgbAQ-hCLih-tA49AwP=cgkzwhw@mail.gmail.com> <B7D6F208-6435-49C3-91B3-77CB7B334E55@ketas.si.pri.ee>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Seems like someone "optimized" "./mk_cmds" by changing permissions to
"chmod 0755 m/mk_cmds*", then directly calling "./mk_cmds". Within older
versions of "etcupdate" it was executed by "/bin/sh ./mk_cmds". "/bin/sh
./mk_cmds" circumvents "noexec". But it makes it possible to compile
sources without executing anything within /usr/src directly.

But: while /usr/src is mounted

zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)


/usr/obj is mounted

zroot/usr on /usr (zfs, local, nfsv4acls)


And both mounts are what FreeBSD on zfs with GPT (
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot) expects (copied right from
the handbook pages):

zfs create -o mountpoint=/tmp  -o exec=on      -o setuid=off   zroot/tmp
zfs create -o canmount=off -o mountpoint=/usr                  zroot/usr
zfs create                                                     zroot/usr/home
zfs create                     -o exec=off     -o setuid=off   zroot/usr/src
zfs create                                                     zroot/usr/obj
zfs create -o mountpoint=/usr/ports            -o setuid=off   zroot/usr/ports
zfs create                     -o exec=off     -o setuid=off
zroot/usr/ports/distfiles
zfs create                     -o exec=off     -o setuid=off
zroot/usr/ports/packages
zfs create -o canmount=off -o mountpoint=/var                  zroot/var
zfs create                     -o exec=off     -o setuid=off   zroot/var/audit
zfs create                     -o exec=off     -o setuid=off   zroot/var/crash
zfs create                     -o exec=off     -o setuid=off   zroot/var/log
zfs create -o atime=on         -o exec=off     -o setuid=off   zroot/var/mail
zfs create                     -o exec=on      -o setuid=off   zroot/var/tmp


Since "etcupdate" worked about four months ago, then it started to stop
working, something has changed with how it works. For me it looks like
there creating mk_cmds within /usr/src, instead within /usr/obj. This was
ok as long as mk_cmds was called with "/bin/sh ./mk_cmds". As soon as this
was changed to "chmod 0755 mk_cmds*; ./mk_cmds" it broke.

I've tested a lot last days. It is not "noexec" set for "/usr/src". It is
something changed just before forking "stable/15". Going back to this makes
it working again (as it does copying "etcupdate" from "stable/14".

On Sun, Nov 9, 2025 at 2:49 AM Sulev-Madis Silber <
freebsd-current-freebsd-org111@ketas.si.pri.ee> wrote:

>
>
> On November 8, 2025 10:36:43 PM GMT+02:00, Thomas Schweikle <
> tschweikle@gmail.com> wrote:
> >On Sat, Nov 8, 2025 at 8:00 PM Sulev-Madis Silber <
> >freebsd-current-freebsd-org111@ketas.si.pri.ee> wrote:
> >
> >> first thing that comes to my mind...
> >>
> >> is there any other fs where noexec is used?
> >>
> >The other systems are set up the same way, mounting /usr/src
> >zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)
> >
> >
> >> especially on which the etcupdate actually runs on?
> >>
> >It runs on three other systems:
> >- stable/13
> >- stable/14
> >and a pre stable/15 (before ALPHA was out and the branch done).
> >
> >It does not run if executed on a
> >- stable/15
> >- current
> >
> >in both cases "make buildetc" works as expected if not called from inside
> >"etcupdate".
> >
> >
> >> i haven't so far studied the whole thing but if you have put noexec
> >> everywhere, including tmp dirs or whatever etcupdate uses, it could be
> it!
> >>
> >noexec does not touch "root", but standard users. Does etcupdate switch to
> >some other user while executing? Does it do so before branching stable/15?
>
> unfortunately noexec don't even let root execute anything directly
>
> read works, shell scripts, makefiles
>
> if you have other fses in that very same machine mounted noexec then this
> code will fail. and it indeed does give permission denied
>
> i don't know where mk_cmds is. perhaps in obj? i'm currently not debugging
> this
>
> whether it should be able to run noexec, no idea, not everything can be
>
> noexec is there by purpose i assume, but maybe it could be temporary
> disabled
>
> btw noexec as a security measure can be also bypassed
>
> tell us if disabling noexec on fses helped
>
> that's also fun thing, that not many add, or if they do, they know what
> happens. many building type tasks like to execute something in dirs
>
> you didn't tell that you had noexec on and nobody asked either so maybe
> it's noexec for all that time and you had to do manual work
>
> i hope it's fixed now!!!
>
> >
> >And just switching into /usr/src, then executing "make etcupdate" does
> call
> >"./mk_cmds" and it does not fail because it is forbidden to run -- it
> runs.
> >
> >just a wild guess. noexec is not always used and it often blows up random
> >> thing unexpectedly. others have it disabled and therefore don't see it
> >>
> >>
> >>
> >> On November 8, 2025 8:21:22 PM GMT+02:00, Thomas Schweikle <
> >> tschweikle@gmail.com> wrote:
> >> >Looking at the log from etcupdate I found it failing with
> >> >
> >> >chmod 755 mk_cmds
> >> >rm -f et-h-ss_err.et et-h-ss_err.c et-h-ss_err.h
> >> >cp /usr/src/crypto/krb5/src/util/ss/ss_err.et et-h-ss_err.et
> >> >compile_et -d /usr/src/crypto/krb5/src/util/et --textdomain mit-krb5
> >> >et-h-ss_err.et
> >> >+ /usr/bin/awk -f /usr/src/crypto/krb5/src/util/et/et_h.awk
> >> >'outfile=et-h-ss_err.h' et-h-ss_err.et
> >> >+ /usr/bin/awk -f /usr/src/crypto/krb5/src/util/et/et_c.awk
> >> >'outfile=et-h-ss_err.c' 'textdomain=mit-krb5' 'localedir='
> et-h-ss_err.et
> >> >mv et-h-ss_err.h ss_err.h
> >> >rm -f et-h-ss_err.et et-h-ss_err.h
> >> >./mk_cmds /usr/src/crypto/krb5/src/util/ss/std_rqs.ct
> >> >make[4]: exec(./mk_cmds): Permission denied
> >> >*** Error code 1
> >> >
> >> >Stop.
> >> >make[4]: stopped making "all" in /usr/src/krb5/util/ss
> >> >*** Error code 1
> >> >
> >> >Stop.
> >> >make[3]: stopped making "bootstrap-tools" in /usr/src
> >> >       10.16 real         8.75 user         1.04 sys
> >> >*** Error code 1
> >> >
> >> >Stop.
> >> >make[2]: stopped making "_bootstrap-tools" in /usr/src
> >> >*** Error code 1
> >> >
> >> >Stop.
> >> >make[1]: stopped making "buildetc" in /usr/src
> >> >*** Error code 1
> >> >
> >> >Stop.
> >> >make: stopped making "buildetc" in /usr/src
> >> >
> >> >It fails, because it is not allowed to "exec ./mk_cmds", after setting
> >> >"chmod 0755" for "mk_cmds"? Within "/usr/src" "mk_cmds" just does not
> >> exist
> >> >– as long as "find /usr/src -iname '*mk_cmds*' -print" would be able to
> >> >find it:
> >> >/usr/src # find . -iname '*/mk_cmds/*'
> >> >/usr/src #
> >> >
> >> >"/usr/src" is mounted
> >> >zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)
> >> >
> >> >AND what makes it even more mysterious:
> >> ># cd /usr/src
> >> ># make buildetc
> >> >
> >> >works without reporting any error. If called from "etcupdate extract"
> it
> >> >fails.
> >> >
> >> >It works for FreeBSD:
> >> >- stable/13
> >> >- stable/14
> >> >
> >> >but not for:
> >> >- stable/15
> >> >
> >> >Full log is attached.
> >> >
> >> >On Tue, Nov 4, 2025 at 4:00 PM Sulev-Madis Silber <
> >> >freebsd-current-freebsd-org111@ketas.si.pri.ee> wrote:
> >> >
> >> >> something bad clearly happened in that machine if it's able to
> selfhost
> >> >> build itself and work, except etcupdate. and that for a long time
> >> >>
> >> >> i don't see any reason getting pissed about his machine mysteriously
> not
> >> >> working, despite i haven't broken any machine myself since i
> installed
> >> >> first fbsd, 4.6
> >> >>
> >> >> unsure how to go from here. unsure if src.conf or make.conf matters
> here
> >> >>
> >> >> if this happens in currently actively supported fbsd release, maybe
> >> >> etcupdate needs a bugfix to cleanup for edge cases
> >> >>
> >> >> if it's in unsupported, that should not cause any "pissages" either.
> fix
> >> >> is somewhere
> >> >>
> >> >> so, the admin updated files manually because he was not able to get
> it
> >> >> working? i bet you can recreate it and fix it for future cases
> >> >>
> >> >> since i haven't ever broken etcupdate, i don't know which data it
> uses
> >> as
> >> >> input. but seems like it reads wrong data out of somewhere. and
> entire
> >> >> machine works, except this?
> >> >>
> >> >> i mean if this was bad upgrade leftover, how to fix? i mean doesn't
> >> >> etcupdate get rework now, for pkgbase. while we do that, maybe it
> could
> >> be
> >> >> made to handle this. or maybe even given non-destructive nuke mode so
> >> >> people can start clean
> >> >>
> >> >> i don't think it's really entirely user error, considering he didn't
> >> break
> >> >> the machine
> >> >>
> >> >> i'm curious too. at worst you could do other install in another
> machine
> >> >> and compare dirs as something must differ there. then, according to
> >> >> findings, fix the old machine. maybe while doing this, some new
> bugfix
> >> idea
> >> >> appears
> >> >>
> >> >> but hell with getting mad over machine. he's pissed too, everyone's
> >> >> pissed, server is not working and no productive work have been done
> here
> >> >>
> >> >> maybe something got lost in translation too
> >> >>
> >> >>
> >> >
> >>
> >>
> >
>
>

-- 
Thomas

[-- Attachment #2 --]
<div dir="ltr">Seems like someone &quot;optimized&quot; &quot;./mk_cmds&quot; by changing permissions to &quot;chmod 0755 m/mk_cmds*&quot;, then directly calling &quot;./mk_cmds&quot;. Within older versions of &quot;etcupdate&quot; it was executed by &quot;/bin/sh ./mk_cmds&quot;. &quot;/bin/sh ./mk_cmds&quot; circumvents &quot;noexec&quot;. But it makes it possible to compile sources without executing anything within /usr/src directly.<div><br></div><div>But: while /usr/src is mounted</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)</font></div></blockquote><div><br></div><div>/usr/obj is mounted</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">zroot/usr on /usr (zfs, local, nfsv4acls)</font></div></blockquote><div><br></div><div>And both mounts are what FreeBSD on zfs with GPT (<a href="https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot" target="_blank">https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot</a>) expects (copied right from the handbook pages):</div><div><pre style="border:1pt solid rgb(174,189,204);background-color:rgb(243,245,247);padding:5pt;font-family:courier,monospace;color:rgb(0,0,0);font-size:16px">zfs create -o mountpoint=/tmp  -o exec=on      -o setuid=off   zroot/tmp
zfs create -o canmount=off -o mountpoint=/usr                  zroot/usr
zfs create                                                     zroot/usr/home
zfs create                     -o exec=off     -o setuid=off   zroot/usr/src
zfs create                                                     zroot/usr/obj
zfs create -o mountpoint=/usr/ports            -o setuid=off   zroot/usr/ports
zfs create                     -o exec=off     -o setuid=off   zroot/usr/ports/distfiles
zfs create                     -o exec=off     -o setuid=off   zroot/usr/ports/packages
zfs create -o canmount=off -o mountpoint=/var                  zroot/var
zfs create                     -o exec=off     -o setuid=off   zroot/var/audit
zfs create                     -o exec=off     -o setuid=off   zroot/var/crash
zfs create                     -o exec=off     -o setuid=off   zroot/var/log
zfs create -o atime=on         -o exec=off     -o setuid=off   zroot/var/mail
zfs create                     -o exec=on      -o setuid=off   zroot/var/tmp</pre></div><div><br></div><div>Since &quot;etcupdate&quot; worked about four months ago, then it started to stop working, something has changed with how it works. For me it looks like there creating mk_cmds within /usr/src, instead within /usr/obj. This was ok as long as mk_cmds was called with &quot;/bin/sh ./mk_cmds&quot;. As soon as this was changed to &quot;chmod 0755 mk_cmds*; ./mk_cmds&quot; it broke.</div><div><br></div><div>I&#39;ve tested a lot last days. It is not &quot;noexec&quot; set for &quot;/usr/src&quot;. It is something changed just before forking &quot;stable/15&quot;. Going back to this makes it working again (as it does copying &quot;etcupdate&quot; from &quot;stable/14&quot;.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 9, 2025 at 2:49 AM Sulev-Madis Silber &lt;<a href="mailto:freebsd-current-freebsd-org111@ketas.si.pri.ee" target="_blank">freebsd-current-freebsd-org111@ketas.si.pri.ee</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On November 8, 2025 10:36:43 PM GMT+02:00, Thomas Schweikle &lt;<a href="mailto:tschweikle@gmail.com" target="_blank">tschweikle@gmail.com</a>&gt; wrote:<br>
&gt;On Sat, Nov 8, 2025 at 8:00 PM Sulev-Madis Silber &lt;<br>
&gt;<a href="mailto:freebsd-current-freebsd-org111@ketas.si.pri.ee" target="_blank">freebsd-current-freebsd-org111@ketas.si.pri.ee</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; first thing that comes to my mind...<br>
&gt;&gt;<br>
&gt;&gt; is there any other fs where noexec is used?<br>
&gt;&gt;<br>
&gt;The other systems are set up the same way, mounting /usr/src<br>
&gt;zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)<br>
&gt;<br>
&gt;<br>
&gt;&gt; especially on which the etcupdate actually runs on?<br>
&gt;&gt;<br>
&gt;It runs on three other systems:<br>
&gt;- stable/13<br>
&gt;- stable/14<br>
&gt;and a pre stable/15 (before ALPHA was out and the branch done).<br>
&gt;<br>
&gt;It does not run if executed on a<br>
&gt;- stable/15<br>
&gt;- current<br>
&gt;<br>
&gt;in both cases &quot;make buildetc&quot; works as expected if not called from inside<br>
&gt;&quot;etcupdate&quot;.<br>
&gt;<br>
&gt;<br>
&gt;&gt; i haven&#39;t so far studied the whole thing but if you have put noexec<br>
&gt;&gt; everywhere, including tmp dirs or whatever etcupdate uses, it could be it!<br>
&gt;&gt;<br>
&gt;noexec does not touch &quot;root&quot;, but standard users. Does etcupdate switch to<br>
&gt;some other user while executing? Does it do so before branching stable/15?<br>
<br>
unfortunately noexec don&#39;t even let root execute anything directly<br>
<br>
read works, shell scripts, makefiles<br>
<br>
if you have other fses in that very same machine mounted noexec then this code will fail. and it indeed does give permission denied<br>
<br>
i don&#39;t know where mk_cmds is. perhaps in obj? i&#39;m currently not debugging this<br>
<br>
whether it should be able to run noexec, no idea, not everything can be<br>
<br>
noexec is there by purpose i assume, but maybe it could be temporary disabled<br>
<br>
btw noexec as a security measure can be also bypassed<br>
<br>
tell us if disabling noexec on fses helped<br>
<br>
that&#39;s also fun thing, that not many add, or if they do, they know what happens. many building type tasks like to execute something in dirs<br>
<br>
you didn&#39;t tell that you had noexec on and nobody asked either so maybe it&#39;s noexec for all that time and you had to do manual work<br>
<br>
i hope it&#39;s fixed now!!!<br>
<br>
&gt;<br>
&gt;And just switching into /usr/src, then executing &quot;make etcupdate&quot; does call<br>
&gt;&quot;./mk_cmds&quot; and it does not fail because it is forbidden to run -- it runs.<br>
&gt;<br>
&gt;just a wild guess. noexec is not always used and it often blows up random<br>
&gt;&gt; thing unexpectedly. others have it disabled and therefore don&#39;t see it<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On November 8, 2025 8:21:22 PM GMT+02:00, Thomas Schweikle &lt;<br>
&gt;&gt; <a href="mailto:tschweikle@gmail.com" target="_blank">tschweikle@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;Looking at the log from etcupdate I found it failing with<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;chmod 755 mk_cmds<br>
&gt;&gt; &gt;rm -f <a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a> et-h-ss_err.c et-h-ss_err.h<br>
&gt;&gt; &gt;cp /usr/src/crypto/krb5/src/util/ss/<a href="http://ss_err.et" rel="noreferrer" target="_blank">ss_err.et</a> <a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a><br>
&gt;&gt; &gt;compile_et -d /usr/src/crypto/krb5/src/util/et --textdomain mit-krb5<br>
&gt;&gt; &gt;<a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a><br>
&gt;&gt; &gt;+ /usr/bin/awk -f /usr/src/crypto/krb5/src/util/et/et_h.awk<br>
&gt;&gt; &gt;&#39;outfile=et-h-ss_err.h&#39; <a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a><br>
&gt;&gt; &gt;+ /usr/bin/awk -f /usr/src/crypto/krb5/src/util/et/et_c.awk<br>
&gt;&gt; &gt;&#39;outfile=et-h-ss_err.c&#39; &#39;textdomain=mit-krb5&#39; &#39;localedir=&#39; <a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a><br>
&gt;&gt; &gt;mv et-h-ss_err.h ss_err.h<br>
&gt;&gt; &gt;rm -f <a href="http://et-h-ss_err.et" rel="noreferrer" target="_blank">et-h-ss_err.et</a> et-h-ss_err.h<br>
&gt;&gt; &gt;./mk_cmds /usr/src/crypto/krb5/src/util/ss/std_rqs.ct<br>
&gt;&gt; &gt;make[4]: exec(./mk_cmds): Permission denied<br>
&gt;&gt; &gt;*** Error code 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Stop.<br>
&gt;&gt; &gt;make[4]: stopped making &quot;all&quot; in /usr/src/krb5/util/ss<br>
&gt;&gt; &gt;*** Error code 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Stop.<br>
&gt;&gt; &gt;make[3]: stopped making &quot;bootstrap-tools&quot; in /usr/src<br>
&gt;&gt; &gt;       10.16 real         8.75 user         1.04 sys<br>
&gt;&gt; &gt;*** Error code 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Stop.<br>
&gt;&gt; &gt;make[2]: stopped making &quot;_bootstrap-tools&quot; in /usr/src<br>
&gt;&gt; &gt;*** Error code 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Stop.<br>
&gt;&gt; &gt;make[1]: stopped making &quot;buildetc&quot; in /usr/src<br>
&gt;&gt; &gt;*** Error code 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Stop.<br>
&gt;&gt; &gt;make: stopped making &quot;buildetc&quot; in /usr/src<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;It fails, because it is not allowed to &quot;exec ./mk_cmds&quot;, after setting<br>
&gt;&gt; &gt;&quot;chmod 0755&quot; for &quot;mk_cmds&quot;? Within &quot;/usr/src&quot; &quot;mk_cmds&quot; just does not<br>
&gt;&gt; exist<br>
&gt;&gt; &gt;– as long as &quot;find /usr/src -iname &#39;*mk_cmds*&#39; -print&quot; would be able to<br>
&gt;&gt; &gt;find it:<br>
&gt;&gt; &gt;/usr/src # find . -iname &#39;*/mk_cmds/*&#39;<br>
&gt;&gt; &gt;/usr/src #<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&quot;/usr/src&quot; is mounted<br>
&gt;&gt; &gt;zroot/usr/src on /usr/src (zfs, local, noexec, nosuid, nfsv4acls)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;AND what makes it even more mysterious:<br>
&gt;&gt; &gt;# cd /usr/src<br>
&gt;&gt; &gt;# make buildetc<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;works without reporting any error. If called from &quot;etcupdate extract&quot; it<br>
&gt;&gt; &gt;fails.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;It works for FreeBSD:<br>
&gt;&gt; &gt;- stable/13<br>
&gt;&gt; &gt;- stable/14<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;but not for:<br>
&gt;&gt; &gt;- stable/15<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Full log is attached.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;On Tue, Nov 4, 2025 at 4:00 PM Sulev-Madis Silber &lt;<br>
&gt;&gt; &gt;<a href="mailto:freebsd-current-freebsd-org111@ketas.si.pri.ee" target="_blank">freebsd-current-freebsd-org111@ketas.si.pri.ee</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; something bad clearly happened in that machine if it&#39;s able to selfhost<br>
&gt;&gt; &gt;&gt; build itself and work, except etcupdate. and that for a long time<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; i don&#39;t see any reason getting pissed about his machine mysteriously not<br>
&gt;&gt; &gt;&gt; working, despite i haven&#39;t broken any machine myself since i installed<br>
&gt;&gt; &gt;&gt; first fbsd, 4.6<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; unsure how to go from here. unsure if src.conf or make.conf matters here<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; if this happens in currently actively supported fbsd release, maybe<br>
&gt;&gt; &gt;&gt; etcupdate needs a bugfix to cleanup for edge cases<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; if it&#39;s in unsupported, that should not cause any &quot;pissages&quot; either. fix<br>
&gt;&gt; &gt;&gt; is somewhere<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; so, the admin updated files manually because he was not able to get it<br>
&gt;&gt; &gt;&gt; working? i bet you can recreate it and fix it for future cases<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; since i haven&#39;t ever broken etcupdate, i don&#39;t know which data it uses<br>
&gt;&gt; as<br>
&gt;&gt; &gt;&gt; input. but seems like it reads wrong data out of somewhere. and entire<br>
&gt;&gt; &gt;&gt; machine works, except this?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; i mean if this was bad upgrade leftover, how to fix? i mean doesn&#39;t<br>
&gt;&gt; &gt;&gt; etcupdate get rework now, for pkgbase. while we do that, maybe it could<br>
&gt;&gt; be<br>
&gt;&gt; &gt;&gt; made to handle this. or maybe even given non-destructive nuke mode so<br>
&gt;&gt; &gt;&gt; people can start clean<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; i don&#39;t think it&#39;s really entirely user error, considering he didn&#39;t<br>
&gt;&gt; break<br>
&gt;&gt; &gt;&gt; the machine<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; i&#39;m curious too. at worst you could do other install in another machine<br>
&gt;&gt; &gt;&gt; and compare dirs as something must differ there. then, according to<br>
&gt;&gt; &gt;&gt; findings, fix the old machine. maybe while doing this, some new bugfix<br>
&gt;&gt; idea<br>
&gt;&gt; &gt;&gt; appears<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; but hell with getting mad over machine. he&#39;s pissed too, everyone&#39;s<br>
&gt;&gt; &gt;&gt; pissed, server is not working and no productive work have been done here<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; maybe something got lost in translation too<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Thomas</div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BrGx5e44JhSLTwjLJt=LXT47e-%2B2n=uicdqAbZgx6raXJg=Ow>