Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Herbert J. Skuhra
On Tue, Nov 06, 2018 at 12:58:54AM +, m...@netbsd.org wrote:
> On Mon, Nov 05, 2018 at 09:45:38PM +0100, Herbert J. Skuhra wrote:
> > With etc/etc.evbarm/Makefile.inc r1.97 the command completes. I only
> > have to fix the build of groff (PR #53314) by removing/commenting out
> > the following lines in obj/tools/groff/build/src/include/config.h:
> > 
> > #define NEED_DECLARATION_GETTIMEOFDAY 1
> > #define NEED_DECLARATION_PUTENV 1
> > #define NEED_DECLARATION_SRAND 1
> > #define NEED_DECLARATION_STRNCASECMP 1
> 
> on -8 its fixed it with
> https://releng.netbsd.org/cgi-bin/req-8.cgi?show=1070

Adding HOST_CXXFLAGS to tools/Makefile.gnuhost fixes the issue:

--- tools/Makefile.gnuhost  22 Oct 2018 13:19:42 -  1.51
+++ tools/Makefile.gnuhost  6 Nov 2018 07:14:01 -
@@ -22,6 +22,7 @@
 HOST_COMPILER_CLANG!= if ${HOST_CC} --version | grep -q -s clang; then echo 
yes; else echo no; fi
 .if ${HOST_COMPILER_CLANG} == "yes"
 HOST_CFLAGS+=-O2 -no-cpp-precomp
+HOST_CXXFLAGS+=-std=gnu++03
 .endif
 
 MAKE_PROGRAM?= ${MAKE}



Thanks.

-- 
Herbert 


Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Herbert J. Skuhra
On Mon, Nov 05, 2018 at 09:37:31PM +, Nick Hudson wrote:
> On 05/11/2018 20:45, Herbert J. Skuhra wrote:
> > On Mon, Nov 05, 2018 at 09:11:02AM -0500, Greg Troxel wrote:
> > > "Herbert J. Skuhra"  writes:
> > > 
> > > > On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:
> > > > > 
> > > > > Module Name:  src
> > > > > Committed By: skrll
> > > > > Date: Sun Nov  4 21:41:12 UTC 2018
> > > > > 
> > > > > Modified Files:
> > > > >   src/etc/etc.evbarm: Makefile.inc
> > > > > 
> > > > > Log Message:
> > > > > Only add GENERIC to earmv6 and earmv7 builds
> > > > 
> > > > This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U 
> > > > release".
> 
> fixed. (I hope)

Yes, the build completes again.

> > My Raspberry boots, grows /, reboots and then panics. This happens for
> > several days now. :-(
> 
> What's the panic message and backtrace?

I have to take a screenshot or transcribe it. I'll post this information
later today.

Thanks.

-- 
Herbert


Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Greg Troxel


Greg Troxel  writes:

> "Herbert J. Skuhra"  writes:
>
>> On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:
>>> 
>>> Module Name:src
>>> Committed By:   skrll
>>> Date:   Sun Nov  4 21:41:12 UTC 2018
>>> 
>>> Modified Files:
>>> src/etc/etc.evbarm: Makefile.inc
>>> 
>>> Log Message:
>>> Only add GENERIC to earmv6 and earmv7 builds
>>
>> This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U release".
>
> That seems like an unusual invocation.   Do you really mean it that way,
> instead of -a evbarm?   Passing earmv7hf to -a is an alias which sets
> both a amd m, and then the line is also setting m.Why do you include
> '-m evbarm' - what cpu type are you trying to build for?

Sorry, I was confused and wrote from memory and got it wrong.  You are
entirely right about your invocation.

I just actually read build.sh and adjusted the wording in the wiki.


Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread maya
On Mon, Nov 05, 2018 at 09:45:38PM +0100, Herbert J. Skuhra wrote:
> With etc/etc.evbarm/Makefile.inc r1.97 the command completes. I only
> have to fix the build of groff (PR #53314) by removing/commenting out
> the following lines in obj/tools/groff/build/src/include/config.h:
> 
> #define NEED_DECLARATION_GETTIMEOFDAY 1
> #define NEED_DECLARATION_PUTENV 1
> #define NEED_DECLARATION_SRAND 1
> #define NEED_DECLARATION_STRNCASECMP 1

on -8 its fixed it with
https://releng.netbsd.org/cgi-bin/req-8.cgi?show=1070



Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Nick Hudson

On 05/11/2018 20:45, Herbert J. Skuhra wrote:

On Mon, Nov 05, 2018 at 09:11:02AM -0500, Greg Troxel wrote:

"Herbert J. Skuhra"  writes:


On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:


Module Name:src
Committed By:   skrll
Date:   Sun Nov  4 21:41:12 UTC 2018

Modified Files:
src/etc/etc.evbarm: Makefile.inc

Log Message:
Only add GENERIC to earmv6 and earmv7 builds


This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U release".


fixed. (I hope)


My Raspberry boots, grows /, reboots and then panics. This happens for
several days now. :-(


What's the panic message and backtrace?

Thanks,
Nick



Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Herbert J. Skuhra
On Mon, Nov 05, 2018 at 09:11:02AM -0500, Greg Troxel wrote:
> "Herbert J. Skuhra"  writes:
> 
> > On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:
> >> 
> >> Module Name:   src
> >> Committed By:  skrll
> >> Date:  Sun Nov  4 21:41:12 UTC 2018
> >> 
> >> Modified Files:
> >>src/etc/etc.evbarm: Makefile.inc
> >> 
> >> Log Message:
> >> Only add GENERIC to earmv6 and earmv7 builds
> >
> > This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U release".
> 
> That seems like an unusual invocation.   Do you really mean it that way,
> instead of -a evbarm?   Passing earmv7hf to -a is an alias which sets
> both a amd m, and then the line is also setting m.Why do you include
> '-m evbarm' - what cpu type are you trying to build for?

I am trying to build an image for my Raspberry Pi 2B on FreeBSD
12.0-BETA3 and I am just following the instructions from
:


CPU types

Raspberry Pi 1 uses "earmv6hf".
Raspberry Pi 2 uses "earmv7hf".
Raspberry Pi 3 uses "earmv7hf".

Building yourself

Getting sources and building a release with build.sh is not special for
evbarm. Pick a CPU type alias and pass it to build.sh with -m. Examples
(the first two are equivalent):

./build.sh -m earmv6hf -u release
./build.sh -m evbarm -a earmv6hf -u release
./build.sh -m evbarm -a earmv7hf -u release
 

With etc/etc.evbarm/Makefile.inc r1.97 the command completes. I only
have to fix the build of groff (PR #53314) by removing/commenting out
the following lines in obj/tools/groff/build/src/include/config.h:

#define NEED_DECLARATION_GETTIMEOFDAY 1
#define NEED_DECLARATION_PUTENV 1
#define NEED_DECLARATION_SRAND 1
#define NEED_DECLARATION_STRNCASECMP 1

My Raspberry boots, grows /, reboots and then panics. This happens for
several days now. :-(

-- 
Herbert


Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Greg Troxel
"Herbert J. Skuhra"  writes:

> On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:
>> 
>> Module Name: src
>> Committed By:skrll
>> Date:Sun Nov  4 21:41:12 UTC 2018
>> 
>> Modified Files:
>>  src/etc/etc.evbarm: Makefile.inc
>> 
>> Log Message:
>> Only add GENERIC to earmv6 and earmv7 builds
>
> This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U release".

That seems like an unusual invocation.   Do you really mean it that way,
instead of -a evbarm?   Passing earmv7hf to -a is an alias which sets
both a amd m, and then the line is also setting m.Why do you include
'-m evbarm' - what cpu type are you trying to build for?


Re: CVS commit: src/etc/etc.evbarm

2018-11-05 Thread Herbert J. Skuhra
On Sun, 04 Nov 2018 22:41:12 +0100, "Nick Hudson" wrote:
> 
> Module Name:  src
> Committed By: skrll
> Date: Sun Nov  4 21:41:12 UTC 2018
> 
> Modified Files:
>   src/etc/etc.evbarm: Makefile.inc
> 
> Log Message:
> Only add GENERIC to earmv6 and earmv7 builds

This change obviously breaks "./build.sh -m evbarm -a earmv7hf -U release".

mv: rename /tmp/mkimage.zyfOkH/mnt/boot/sun50i-* to 
/tmp/mkimage.zyfOkH/mnt/boot/allwinner/sun50i-*: No such file or directory  
   

*** Failed target:  smp_armv7

--
Herbert


Re: CVS commit: src/usr.sbin/sysinst

2018-11-05 Thread Martin Husemann
On Sun, Nov 04, 2018 at 05:54:30PM +, David Holland wrote:
> On Sat, Nov 03, 2018 at 06:30:00PM +, Martin Husemann wrote:
>  > Remove "usage" translations - they never could be displayed as we only 
> select
>  > the language later.
> 
> What happens in the scenario when someone's using sysinst after
> installation and has a locale set?

That does not affect loading of sysinst msg files, which only ever would
happen after any call to usage().

Martin