Re: etcupdate: Failed to build new tree

2021-07-14 Thread John Baldwin

On 7/2/21 2:30 AM, Nuno Teixeira wrote:

Hello,

Last update I have some issues with etcupdate:

etcupdate warning: "No previous tree to compare against, a sane comparison
is not possible."

That I corrected with:

etcupdate extract
etcupdate diff > /tmp/etc.diff
patch -R < /tmp/etc.diff
(etcupdate diff doesn't show any diffs.)

Today I've just updated current and etcupdate -p gives:

"Failed to build new tree"

What might be wrong?


You can look in /var/db/etcupdate/log to check for errors.

--
John Baldwin



Re: etcupdate: Failed to build new tree

2021-07-03 Thread Kevin Oberman
On Fri, Jul 2, 2021 at 2:31 AM Nuno Teixeira  wrote:

> Hello,
>
> Last update I have some issues with etcupdate:
>
> etcupdate warning: "No previous tree to compare against, a sane comparison
> is not possible."
>
> That I corrected with:
>
> etcupdate extract
> etcupdate diff > /tmp/etc.diff
> patch -R < /tmp/etc.diff
> (etcupdate diff doesn't show any diffs.)
>
> Today I've just updated current and etcupdate -p gives:
>
> "Failed to build new tree"
>
> What might be wrong?
>
> Thanks
> Nuno Teixeira
>
I'm no expert. In fact, I just started using etcupdate in the past couple
of months but I think you need to read the man page section on "Default
Mode". In most cases, it looks to me like there is no reason to specify the
mode. Default Mode just does the right thing when starting from scratch.
There are clearly reasons to use the modes for various reasons. but I don't
think it should be used in most cases.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkober...@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


etcupdate: Failed to build new tree

2021-07-02 Thread Nuno Teixeira
Hello,

Last update I have some issues with etcupdate:

etcupdate warning: "No previous tree to compare against, a sane comparison
is not possible."

That I corrected with:

etcupdate extract
etcupdate diff > /tmp/etc.diff
patch -R < /tmp/etc.diff
(etcupdate diff doesn't show any diffs.)

Today I've just updated current and etcupdate -p gives:

"Failed to build new tree"

What might be wrong?

Thanks
Nuno Teixeira


Re: etcupdate failed to build new tree

2021-01-01 Thread Chris

On 2021-01-01 11:01, Graham Perrin wrote:
At what should have been the end of my first upgrade since the transition to 
git:


cd /usr/src/freebsd-current && make installworld && etcupdate

Ĵ– concluded with a successful installworld, then a few lines about scanning 
and

skipping certificates, then:


Failed to build new tree.


I see the manual page for etcupdate(8) but I'm not sure how to proceed.



I did try `mergemaster -p` and somehow (!) ended up with an empty 
`/etc/group`

file. Dug myself out of that hole, I'll prefer to continue using etcupdate.

For years now I have always initiated a simple failsafe
# cp -Rp /etc /eetc
prior to (build|install) (world|kernel)
because you just never know. ;-)

Happy 20201!

--Chris
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: mergemaster option -m (was: etcupdate failed to build new tree)

2021-01-01 Thread Herbert J. Skuhra
On Fri, 01 Jan 2021 21:29:45 +0100, Graham Perrin wrote:
> 
> On 01/01/2021 19:24, Herbert J. Skuhra wrote:
> 
> > On Fri, 01 Jan 2021 20:01:16 +0100, Graham Perrin wrote:
> > 
> >> …
> >> 
> >> I did try `mergemaster -p` and somehow (!) ended up with an empty
> >> `/etc/group` file. Dug myself out of that hole, I'll prefer to
> >> continue using etcupdate.
> > -m /path/to/sources
> >   Specify the path to the directory where you want to do the
> >   make(1).
> 
> 
> Thank you, what path would you suggest?
> 
> (Given the previous weirdness, I want to make no guesses here.)

1. Your SOURCEDIR is /usr/src/freebsd-current and not /usr/src.

Unlike etcupdate mergemaster checks for Makefile1.inc in the working
directory and asks to set SOURCEDIR accordingly:

*** /usr/src was not found.
Found Makefile.inc1 in the current directory.
Would you like to set SOURCEDIR to /mnt2/src? [no and exit]

Did you see this prompt?

2. Do you have (old) files (e.g. Makefile.inc1) or directories
(e.g. etc) in /usr/src?

Is this problem reproducible? Does it work if use -m switch, e.g:
'mergemaster -m .' or 'mergemaster -m /usr/src/freebsd-current'?

--
Herbert
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


mergemaster option -m (was: etcupdate failed to build new tree)

2021-01-01 Thread Graham Perrin

On 01/01/2021 19:24, Herbert J. Skuhra wrote:


On Fri, 01 Jan 2021 20:01:16 +0100, Graham Perrin wrote:


…

I did try `mergemaster -p` and somehow (!) ended up with an empty
`/etc/group` file. Dug myself out of that hole, I'll prefer to
continue using etcupdate.

-m /path/to/sources
  Specify the path to the directory where you want to do the
  make(1).



Thank you, what path would you suggest?

(Given the previous weirdness, I want to make no guesses here.)

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: etcupdate failed to build new tree

2021-01-01 Thread Herbert J. Skuhra
On Fri, 01 Jan 2021 20:01:16 +0100, Graham Perrin wrote:
> 
> At what should have been the end of my first upgrade since the
> transition to git:
> 
> cd /usr/src/freebsd-current && make installworld && etcupdate
> 
> Ĵ– concluded with a successful installworld, then a few lines about
> scanning and skipping certificates, then:
> 
> > Failed to build new tree.
> 
> I see the manual page for etcupdate(8) but I'm not sure how to proceed.

-s source  Specify an alternate source tree to use when building
   or extracting a “current” tree.  The default source
   tree is /usr/src.
   
> 
> 
> I did try `mergemaster -p` and somehow (!) ended up with an empty
> `/etc/group` file. Dug myself out of that hole, I'll prefer to
> continue using etcupdate.

-m /path/to/sources
 Specify the path to the directory where you want to do the
 make(1).

--
Herbert
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


etcupdate failed to build new tree

2021-01-01 Thread Graham Perrin
At what should have been the end of my first upgrade since the 
transition to git:


cd /usr/src/freebsd-current && make installworld && etcupdate

Ĵ– concluded with a successful installworld, then a few lines about 
scanning and skipping certificates, then:


> Failed to build new tree.

I see the manual page for etcupdate(8) but I'm not sure how to proceed.



I did try `mergemaster -p` and somehow (!) ended up with an empty 
`/etc/group` file. Dug myself out of that hole, I'll prefer to continue 
using etcupdate.

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"