Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Jan Stary
> Before I commit that, I would appreciate if Jan or jmc could confirm
> that it actually works for their 'make build' setup, too.

Yes it does, thanks.

Jan



Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Theo Buehler
On Sun, Feb 26, 2017 at 10:05:48PM -0800, Sean Kamath wrote:
> would “$(INSTALL) -d -m 775 util” be a less evil hack?

Nope. In principle, the umask is settable by WOBJUMASK in mk.conf, and
adjusting the mode passed to -m in a shell script in a generated
Makefile is disgusting. Especially when we can just let 'mkdir -p' do
this for us for free.

(Actually, it's not quite as disgusting as what you find when you grep
for umask in unbound/install-sh...)



Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Sean Kamath
would “$(INSTALL) -d -m 775 util” be a less evil hack?

> On Feb 26, 2017, at 7:51 AM, Theo Buehler  wrote:
>
> On Sun, Feb 26, 2017 at 04:37:57PM +0100, Antoine Jacoutot wrote:
>> On Sun, Feb 26, 2017 at 04:30:38PM +0100, Theo Buehler wrote:
>>> On Sun, Feb 26, 2017 at 02:33:14PM +0100, Jan Stary wrote:
 Cleaning up /usr/obj/ before a kernel build
 as a regular user who's in the wobj group,
 I get the following

  rm: /usr/obj/usr.sbin/unbound/util/configparser.h: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util/configparser.c: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util/configlexer.c: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util: Directory not empty
  rm: /usr/obj/usr.sbin/unbound: Directory not empty
  rm: /usr/obj/usr.sbin: Directory not empty


 $ find /usr/obj/ | xargs ls -ld
 drwxrwx---  3 build  wobj 512 Feb 26 14:19 /usr/obj/
 drwxrwx---  3 build  wobj2560 Feb 26 14:19 /usr/obj/usr.sbin
 drwxrwx---  3 build  wobj4096 Feb 26 14:19 /usr/obj/usr.sbin/unbound
 drwxr-xr-x  2 build  wobj 512 Feb 23 20:43
/usr/obj/usr.sbin/unbound/util
 -rw-rw  1 build  wobj  166639 Feb 23 20:43
/usr/obj/usr.sbin/unbound/util/configlexer.c
 -rw-rw  1 build  wobj  122438 Feb 23 20:43
/usr/obj/usr.sbin/unbound/util/configparser.c
 -rw-rw  1 build  wobj6016 Feb 23 20:43
/usr/obj/usr.sbin/unbound/util/configparser.h

 Everything is 770 build:wobj, except the single directory
 /usr/obj/usr.sbin/unbound/util which is 755 build:wobj.

 This is on four different -current machines.
 Is this intended?
>>
>> Aaarrg... no not this again!
>> ;-)
>>
>>> Of course it is not intended. It was discussed during the last hackathon
>>> and aja hunted the problem down to a quirk of install -d. We tried a fix
>>> in Makefile.bsd-wrapper, but it turned out to be racy, so I had to back
>>> it out: it could write to the src/ tree in some circumstances.
>>
>> It's the kind of stupid oddities that make you loose half a day and make
you
>> feel even more stupid than you are... best memory of Australia!
>
> same here :)
>
>>> This is what seems to be the least evil hack:
>>
>> If that actually improves things, OK aja.
>> That bug makes me sad...
>
> Indeed...
>
> Before I commit that, I would appreciate if Jan or jmc could confirm
> that it actually works for their 'make build' setup, too.
>
> This thing had way too many failed attempts already.
>
>>
>>> Index: usr.sbin/unbound/Makefile.in
>>> ===
>>> RCS file: /var/cvs/src/usr.sbin/unbound/Makefile.in,v
>>> retrieving revision 1.20
>>> diff -u -p -r1.20 Makefile.in
>>> --- usr.sbin/unbound/Makefile.in17 Feb 2017 18:53:31 -  1.20
>>> +++ usr.sbin/unbound/Makefile.in26 Feb 2017 15:04:38 -
>>> @@ -408,7 +408,7 @@ _unbound.la:libunbound_wrap.lo libunbou
>>>
>>> util/config_file.c: util/configparser.h
>>> util/configlexer.c:  $(srcdir)/util/configlexer.lex util/configparser.h
>>> -   @-if test ! -d util; then $(INSTALL) -d util; fi
>>> +   @-if test ! -d util; then mkdir -p util; fi
>>> if test "$(LEX)" != ":"; then \
>>> echo "#include \"config.h\"" > $@ ;\
>>> echo "#include \"util/configyyrename.h\"" >> $@ ;\
>>> @@ -416,7 +416,7 @@ util/configlexer.c:  $(srcdir)/util/conf
>>> fi
>>>
>>> util/configparser.c util/configparser.h:  $(srcdir)/util/configparser.y
>>> -   @-if test ! -d util; then $(INSTALL) -d util; fi
>>> +   @-if test ! -d util; then mkdir -p util; fi
>>> $(YACC) -d -o util/configparser.c $(srcdir)/util/configparser.y
>>>
>>> clean:
>>>
>>
>> --
>> Antoine



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread Kurt H Maier
On Sun, Feb 26, 2017 at 10:26:58AM +0100, Florian Ermisch wrote:
> With the x260 support for a 16gb RAM stick (now DDR4) in the single
slot is
> now official
> but it's not clear if you can have both a 2.5"
> (7mm thick) drive and a m.2/NVMe SSD.
> The option of having an m.2/_SATA_ SSD sure
> is gone from what I've found.
   
My X250 shipped from Lenovo with a 16GB DIMM and I put my own m.2 ssd   
in.  I also configured it with the cache ssd, so right now I have a 
512gb 2.5" SSD for openbsd, a 512gb m.2 SSD for 9front, and a 16gb m.2  
SSD with a vfat filesystem that either one can mount.
   
If you can get over the keyboard, x250 is a very capable machine.
   
khm



Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Theo Buehler
On Sun, Feb 26, 2017 at 04:37:57PM +0100, Antoine Jacoutot wrote:
> On Sun, Feb 26, 2017 at 04:30:38PM +0100, Theo Buehler wrote:
> > On Sun, Feb 26, 2017 at 02:33:14PM +0100, Jan Stary wrote:
> > > Cleaning up /usr/obj/ before a kernel build
> > > as a regular user who's in the wobj group,
> > > I get the following
> > > 
> > >   rm: /usr/obj/usr.sbin/unbound/util/configparser.h: Permission denied
> > >   rm: /usr/obj/usr.sbin/unbound/util/configparser.c: Permission denied
> > >   rm: /usr/obj/usr.sbin/unbound/util/configlexer.c: Permission denied
> > >   rm: /usr/obj/usr.sbin/unbound/util: Directory not empty
> > >   rm: /usr/obj/usr.sbin/unbound: Directory not empty
> > >   rm: /usr/obj/usr.sbin: Directory not empty
> > > 
> > > 
> > > $ find /usr/obj/ | xargs ls -ld
> > > drwxrwx---  3 build  wobj 512 Feb 26 14:19 /usr/obj/
> > > drwxrwx---  3 build  wobj2560 Feb 26 14:19 /usr/obj/usr.sbin
> > > drwxrwx---  3 build  wobj4096 Feb 26 14:19 /usr/obj/usr.sbin/unbound
> > > drwxr-xr-x  2 build  wobj 512 Feb 23 20:43 
> > > /usr/obj/usr.sbin/unbound/util
> > > -rw-rw  1 build  wobj  166639 Feb 23 20:43 
> > > /usr/obj/usr.sbin/unbound/util/configlexer.c
> > > -rw-rw  1 build  wobj  122438 Feb 23 20:43 
> > > /usr/obj/usr.sbin/unbound/util/configparser.c
> > > -rw-rw  1 build  wobj6016 Feb 23 20:43 
> > > /usr/obj/usr.sbin/unbound/util/configparser.h
> > > 
> > > Everything is 770 build:wobj, except the single directory
> > > /usr/obj/usr.sbin/unbound/util which is 755 build:wobj.
> > > 
> > > This is on four different -current machines.
> > > Is this intended?
> 
> Aaarrg... no not this again!
> ;-)
> 
> > Of course it is not intended. It was discussed during the last hackathon
> > and aja hunted the problem down to a quirk of install -d. We tried a fix
> > in Makefile.bsd-wrapper, but it turned out to be racy, so I had to back
> > it out: it could write to the src/ tree in some circumstances.
> 
> It's the kind of stupid oddities that make you loose half a day and make you
> feel even more stupid than you are... best memory of Australia!

same here :)

> > This is what seems to be the least evil hack:
> 
> If that actually improves things, OK aja.
> That bug makes me sad...

Indeed...

Before I commit that, I would appreciate if Jan or jmc could confirm
that it actually works for their 'make build' setup, too.

This thing had way too many failed attempts already.

> 
> > Index: usr.sbin/unbound/Makefile.in
> > ===
> > RCS file: /var/cvs/src/usr.sbin/unbound/Makefile.in,v
> > retrieving revision 1.20
> > diff -u -p -r1.20 Makefile.in
> > --- usr.sbin/unbound/Makefile.in17 Feb 2017 18:53:31 -  1.20
> > +++ usr.sbin/unbound/Makefile.in26 Feb 2017 15:04:38 -
> > @@ -408,7 +408,7 @@ _unbound.la:libunbound_wrap.lo libunbou
> >  
> >  util/config_file.c:util/configparser.h
> >  util/configlexer.c:  $(srcdir)/util/configlexer.lex util/configparser.h
> > -   @-if test ! -d util; then $(INSTALL) -d util; fi
> > +   @-if test ! -d util; then mkdir -p util; fi
> > if test "$(LEX)" != ":"; then \
> > echo "#include \"config.h\"" > $@ ;\
> > echo "#include \"util/configyyrename.h\"" >> $@ ;\
> > @@ -416,7 +416,7 @@ util/configlexer.c:  $(srcdir)/util/conf
> > fi
> >  
> >  util/configparser.c util/configparser.h:  $(srcdir)/util/configparser.y
> > -   @-if test ! -d util; then $(INSTALL) -d util; fi
> > +   @-if test ! -d util; then mkdir -p util; fi
> > $(YACC) -d -o util/configparser.c $(srcdir)/util/configparser.y
> >  
> >  clean:
> > 
> 
> -- 
> Antoine



Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Antoine Jacoutot
On Sun, Feb 26, 2017 at 04:30:38PM +0100, Theo Buehler wrote:
> On Sun, Feb 26, 2017 at 02:33:14PM +0100, Jan Stary wrote:
> > Cleaning up /usr/obj/ before a kernel build
> > as a regular user who's in the wobj group,
> > I get the following
> > 
> >   rm: /usr/obj/usr.sbin/unbound/util/configparser.h: Permission denied
> >   rm: /usr/obj/usr.sbin/unbound/util/configparser.c: Permission denied
> >   rm: /usr/obj/usr.sbin/unbound/util/configlexer.c: Permission denied
> >   rm: /usr/obj/usr.sbin/unbound/util: Directory not empty
> >   rm: /usr/obj/usr.sbin/unbound: Directory not empty
> >   rm: /usr/obj/usr.sbin: Directory not empty
> > 
> > 
> > $ find /usr/obj/ | xargs ls -ld
> > drwxrwx---  3 build  wobj 512 Feb 26 14:19 /usr/obj/
> > drwxrwx---  3 build  wobj2560 Feb 26 14:19 /usr/obj/usr.sbin
> > drwxrwx---  3 build  wobj4096 Feb 26 14:19 /usr/obj/usr.sbin/unbound
> > drwxr-xr-x  2 build  wobj 512 Feb 23 20:43 
> > /usr/obj/usr.sbin/unbound/util
> > -rw-rw  1 build  wobj  166639 Feb 23 20:43 
> > /usr/obj/usr.sbin/unbound/util/configlexer.c
> > -rw-rw  1 build  wobj  122438 Feb 23 20:43 
> > /usr/obj/usr.sbin/unbound/util/configparser.c
> > -rw-rw  1 build  wobj6016 Feb 23 20:43 
> > /usr/obj/usr.sbin/unbound/util/configparser.h
> > 
> > Everything is 770 build:wobj, except the single directory
> > /usr/obj/usr.sbin/unbound/util which is 755 build:wobj.
> > 
> > This is on four different -current machines.
> > Is this intended?

Aaarrg... no not this again!
;-)

> Of course it is not intended. It was discussed during the last hackathon
> and aja hunted the problem down to a quirk of install -d. We tried a fix
> in Makefile.bsd-wrapper, but it turned out to be racy, so I had to back
> it out: it could write to the src/ tree in some circumstances.

It's the kind of stupid oddities that make you loose half a day and make you
feel even more stupid than you are... best memory of Australia!

> This is what seems to be the least evil hack:

If that actually improves things, OK aja.
That bug makes me sad...

> Index: usr.sbin/unbound/Makefile.in
> ===
> RCS file: /var/cvs/src/usr.sbin/unbound/Makefile.in,v
> retrieving revision 1.20
> diff -u -p -r1.20 Makefile.in
> --- usr.sbin/unbound/Makefile.in  17 Feb 2017 18:53:31 -  1.20
> +++ usr.sbin/unbound/Makefile.in  26 Feb 2017 15:04:38 -
> @@ -408,7 +408,7 @@ _unbound.la:  libunbound_wrap.lo libunbou
>  
>  util/config_file.c:  util/configparser.h
>  util/configlexer.c:  $(srcdir)/util/configlexer.lex util/configparser.h
> - @-if test ! -d util; then $(INSTALL) -d util; fi
> + @-if test ! -d util; then mkdir -p util; fi
>   if test "$(LEX)" != ":"; then \
>   echo "#include \"config.h\"" > $@ ;\
>   echo "#include \"util/configyyrename.h\"" >> $@ ;\
> @@ -416,7 +416,7 @@ util/configlexer.c:  $(srcdir)/util/conf
>   fi
>  
>  util/configparser.c util/configparser.h:  $(srcdir)/util/configparser.y
> - @-if test ! -d util; then $(INSTALL) -d util; fi
> + @-if test ! -d util; then mkdir -p util; fi
>   $(YACC) -d -o util/configparser.c $(srcdir)/util/configparser.y
>  
>  clean:
> 

-- 
Antoine



Re: chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Theo Buehler
On Sun, Feb 26, 2017 at 02:33:14PM +0100, Jan Stary wrote:
> Cleaning up /usr/obj/ before a kernel build
> as a regular user who's in the wobj group,
> I get the following
> 
>   rm: /usr/obj/usr.sbin/unbound/util/configparser.h: Permission denied
>   rm: /usr/obj/usr.sbin/unbound/util/configparser.c: Permission denied
>   rm: /usr/obj/usr.sbin/unbound/util/configlexer.c: Permission denied
>   rm: /usr/obj/usr.sbin/unbound/util: Directory not empty
>   rm: /usr/obj/usr.sbin/unbound: Directory not empty
>   rm: /usr/obj/usr.sbin: Directory not empty
> 
> 
> $ find /usr/obj/ | xargs ls -ld
> drwxrwx---  3 build  wobj 512 Feb 26 14:19 /usr/obj/
> drwxrwx---  3 build  wobj2560 Feb 26 14:19 /usr/obj/usr.sbin
> drwxrwx---  3 build  wobj4096 Feb 26 14:19 /usr/obj/usr.sbin/unbound
> drwxr-xr-x  2 build  wobj 512 Feb 23 20:43 /usr/obj/usr.sbin/unbound/util
> -rw-rw  1 build  wobj  166639 Feb 23 20:43 
> /usr/obj/usr.sbin/unbound/util/configlexer.c
> -rw-rw  1 build  wobj  122438 Feb 23 20:43 
> /usr/obj/usr.sbin/unbound/util/configparser.c
> -rw-rw  1 build  wobj6016 Feb 23 20:43 
> /usr/obj/usr.sbin/unbound/util/configparser.h
> 
> Everything is 770 build:wobj, except the single directory
> /usr/obj/usr.sbin/unbound/util which is 755 build:wobj.
> 
> This is on four different -current machines.
> Is this intended?

Of course it is not intended. It was discussed during the last hackathon
and aja hunted the problem down to a quirk of install -d. We tried a fix
in Makefile.bsd-wrapper, but it turned out to be racy, so I had to back
it out: it could write to the src/ tree in some circumstances.

This is what seems to be the least evil hack:

Index: usr.sbin/unbound/Makefile.in
===
RCS file: /var/cvs/src/usr.sbin/unbound/Makefile.in,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile.in
--- usr.sbin/unbound/Makefile.in17 Feb 2017 18:53:31 -  1.20
+++ usr.sbin/unbound/Makefile.in26 Feb 2017 15:04:38 -
@@ -408,7 +408,7 @@ _unbound.la:libunbound_wrap.lo libunbou
 
 util/config_file.c:util/configparser.h
 util/configlexer.c:  $(srcdir)/util/configlexer.lex util/configparser.h
-   @-if test ! -d util; then $(INSTALL) -d util; fi
+   @-if test ! -d util; then mkdir -p util; fi
if test "$(LEX)" != ":"; then \
echo "#include \"config.h\"" > $@ ;\
echo "#include \"util/configyyrename.h\"" >> $@ ;\
@@ -416,7 +416,7 @@ util/configlexer.c:  $(srcdir)/util/conf
fi
 
 util/configparser.c util/configparser.h:  $(srcdir)/util/configparser.y
-   @-if test ! -d util; then $(INSTALL) -d util; fi
+   @-if test ! -d util; then mkdir -p util; fi
$(YACC) -d -o util/configparser.c $(srcdir)/util/configparser.y
 
 clean:



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread Asbel Kiprop
Hi!
230+ series are kinda ugly as hell. I would recommend new 201 or 220 with
i7/ssd onboard.

2017-02-26 12:26 GMT+03:00 Florian Ermisch :

> Hi Florian,
>
> the maintainability of the x2?? Thinkpads
> dropped from great to good(ish) starting
> with the x230. With the recent ones you
> have to remove the bottom half of the case
> to access anything but the rear battery*,
> see [0].
> But at least the x250 and the x260 have
> dedicated buttons for the trackpoint again.
> With the x260 support for a 16gb RAM stick (now DDR4) in the single slot is
> now official
> but it's not clear if you can have both a 2.5"
> (7mm thick) drive and a m.2/NVMe SSD.
> The option of having an m.2/_SATA_ SSD sure
> is gone from what I've found.
>
> You may also want to look at the slightly
> bigger t440 (14") which can have both a 2.5"
> and a m.2 drive and also (officially) supports
> 32gb of RAM.
>
> HTH, Florian
>
> PS: Yes, I've been looking at the new
> Thinkpads a lot lately, but I rarely carry
> mine around so 14" isn't a problem - and
> also want lots of RAM for ZFS & bhyve ;)
>
> *) The optional integrated front battery still is a "Field Replaceable"
> Unit,
> just not as easy to swap as the rear one ;)
>
> [0]
> http://www.laptopmain.com/how-to-disassemble-lenovo-thinkpad
> -x260-to-upgrade-
> ssd-and-ram/
> 
>
> Am 26. Februar 2017 09:19:32 MEZ schrieb Florian Obser <
> flor...@openbsd.org>:
> > I need some help since I'm terrible with hardware...
> >
> > So my x201 main hacking laptop is getting old and benno@ is always
> > mocking me for the amount of gaffer and stickers that are holding it
> > together.
> >
> > Long story short, I'm in the market for a new thinkpad.
> > Yes it has to be a thinkpad. I require the pointing stick and 3
> > physical mouse buttons.
> >
> > On the x201 I like the ease of changing the HDD and battery. I would
> > prefer if that was the case with the new one.
> >
> > So what's the done thing here? I'm not a hardware hacker, so I want a
> > kinda fully supported one. That means accelerated X and working wifi
> > (this is probably not an issue with stsp@'s hard work). Also I'm happy
> > with the size of the x201, I don't want to lug a brick around, so that
> > means an x series laptop. As a first approximation assume that money
> > is
> > not an issue.
> >
> > Thanks,
> > Florian



Re: Just to understand, ARM64 has SMP and ARM32 does not? &, OpenBSD design fine with ARM's weak mem coherency?

2017-02-26 Thread Todd C. Miller
On Sun, 26 Feb 2017 03:56:33 +, Tinker wrote:

> Did I get it right, that ARM64 has SMP (as of the patches this week), 
> but ARM32 does not have SMP and will not get it too?

As Peter says, someone has to step up andf do the work for ARM32
SMP.  That said, it probably doesn't make sense to work on that
until ARM64 SMP is stable.  A port of the ARM64 pmap to ARM32 would
be easier than trying to implement SMP on the existing ARM32 pmap.

 - todd



Re: Getting http to work

2017-02-26 Thread Monah Baki
It worked!

I switched my ext_addr to my 192.168.60.129, manually ran
/usr/sbin/httpd rather than "rcctl" or "/etc/rc.d/httpd start", did a
ps -ax and saw httpd server running. Rebooted the machine, the httpd
daemon came back up automatically. Switched the ext_addr to "*"
rebooted, the httpd server still came up as running.

Very strange.




On Sun, Feb 26, 2017 at 8:50 AM, Vijay Sankar  wrote:
>   Oops, don't know what happened to my config that I added below. Sorry
> about that.
>
> Anyways, the only thing I recall was that I used the real server name
> instead of "default" and it worked and I have not touched the configuration
> since then :)
>
> Vijay
>
> Quoting Vijay Sankar :
>
>> Hi,
>>
>> Can you try using the name of the server instead of "default"?
>>
>> I sort of recall something like this from a couple of years ago but it
> has
>> run without any problems for me.
>>
>> For example, I had "default" instead of the server's name and it did not
>> work. Once I changed to the following, there were no issues and it has
> run
>> like this  since
>>
>> vault.lab.foretell.ca$ ls -l
>>
> /etc/httpd.conf                   Â
            Â
>> Â
>> -rw-r--r--  1 root  wheel  558 Dec 28  2015 /etc/httpd.conf
>>
>> vault.lab.foretell.ca$ more
>>
> /etc/httpd.conf                   Â
             Â
>> Â
>> prefork 2
>> chroot "/home/distros"
>> Â Â Â Â Â Â Â Â Â Â  server "vault.lab.foretell.ca" {
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  listen on *
> port 80
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  directory
> auto index
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  }
>>
>> Â Â Â Â Â Â Â Â Â Â  types {
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
>> text/css              Â
>> css
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> text/html             Â
>> html htm
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
>> text/txt              Â
>> txt
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> image/gif             Â
>> gif
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> image/jpeg            Â
>> jpeg jpg
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> image/png             Â
>> png
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> application/javascript  js
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> application/xml         xml
>> Â Â Â Â Â Â Â Â Â Â  }
>>
>> Hope this helps,
>>
>> Vijay
>>
>> Quoting Monah Baki :
>>
>>> # netstat -na -f inet | grep LISTEN
>>> tcp          0      0  127.0.0.1.25  Â
> Â  Â  Â  Â *.*Â  Â  Â
>>
>> Â  Â  Â  Â  Â  Â  Â
>>> LISTEN
>>> tcp          0      0  *.22    Â
> Â  Â  Â  Â  Â  Â  Â *.*Â  Â
>>
>> Â  Â  Â  Â  Â  Â  Â  Â
>>> LISTEN
>>> # httpd -dv
>>> startup
>>> parent: send server: Can't assign requested address
>>> # logger exiting, pid 24061
>>> server exiting, pid 96224
>>> server exiting, pid 68259
>>> server exiting, pid 94930
>>>
>>> It's a fresh install so I wasn't expecting any ports listening. Even
>>> if I changed to port 8080 same issue.
>>>
>>> Thanks
>>>
>>> On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry 
>>> wrote:
 Monah Baki writes:

> # httpd -dnv
> configuration OK
>
> #Â  rcctl - start httpd
> doing _rc_parse_conf
> doing _rc_quirks
> httpd_flags empty, using default ><
> doing _rc_parse_conf /var/run/rc.d/httpd
> doing _rc_quirks
> doing rc_check
> httpd
> doing rc_pre
> configuration OK
> doing rc_start
> doing _rc_wait start
> doing rc_check
> doing _rc_write_runfile
> (ok)
>
> # /etc/rc.d/httpd start
> httpd(ok)
>
> cat /var/log/messages
>
> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign
> requested address
> Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign
> requested address
>
> vi httpd.conf
>
> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
>
> #
> # Macros
> #
> ext_addr="*"
>
> #
> # Global Options
> #
> # prefork 3
>
> #
> # Servers
> #
>
> # A minimal default server
> server "default" {
> Â  Â  Â  Â  listen on $ext_addr port 80
> }
>
> Thanks
>
> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues 
>>
>> wrote:
>> # rcctl - start httpd
>> This command should give you some details on what isn't working.
>> If not, you can try `# httpd -nvv` to check your config and `# httpd
>> -d` to run httpd directly.
>>
>> 2017-02-25 21:20 GMT+01:00 Monah Baki :
>>> Changing to ext_addr="*"
>>>
>>> # /etc/rc.d/httpd start
>>> httpd(failed)
>>>
>>> Nothing shows up in /var/log/messages
>>>
>>> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry
>>>  wrote:
 

Re: Getting http to work

2017-02-26 Thread Vijay Sankar
  Oops, don't know what happened to my config that I added below. Sorry
about that.

Anyways, the only thing I recall was that I used the real server name
instead of "default" and it worked and I have not touched the configuration
since then :)

Vijay

Quoting Vijay Sankar :

> Hi,
>
> Can you try using the name of the server instead of "default"?
>
> I sort of recall something like this from a couple of years ago but it
has
> run without any problems for me.
>
> For example, I had "default" instead of the server's name and it did not
> work. Once I changed to the following, there were no issues and it has
run
> like this  since
>
> vault.lab.foretell.ca$ ls -l
>
/etc/httpd.conf                
                 
>  
> -rw-r--r--  1 root  wheel  558 Dec 28  2015 /etc/httpd.conf
>
> vault.lab.foretell.ca$ more
>
/etc/httpd.conf                
                  
>  
> prefork 2
> chroot "/home/distros"
>            server "vault.lab.foretell.ca" {
>                 listen on *
port 80
>                 directory
auto index
>                 }
>
>            types {
>                   
> text/css               
> css
>                   
text/html              
> html htm
>                   
> text/txt               
> txt
>                   
image/gif              
> gif
>                   
image/jpeg             
> jpeg jpg
>                   
image/png              
> png
>                   
application/javascript  js
>                   
application/xml         xml
>            }
>
> Hope this helps,
>
> Vijay
>
> Quoting Monah Baki :
>
>> # netstat -na -f inet | grep LISTEN
>> tcp          0      0  127.0.0.1.25   
       *.*     
>
>              
>> LISTEN
>> tcp          0      0  *.22     
             *.*   
>
>                
>> LISTEN
>> # httpd -dv
>> startup
>> parent: send server: Can't assign requested address
>> # logger exiting, pid 24061
>> server exiting, pid 96224
>> server exiting, pid 68259
>> server exiting, pid 94930
>>
>> It's a fresh install so I wasn't expecting any ports listening. Even
>> if I changed to port 8080 same issue.
>>
>> Thanks
>>
>> On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry 
>> wrote:
>>> Monah Baki writes:
>>>
 # httpd -dnv
 configuration OK

 #  rcctl - start httpd
 doing _rc_parse_conf
 doing _rc_quirks
 httpd_flags empty, using default ><
 doing _rc_parse_conf /var/run/rc.d/httpd
 doing _rc_quirks
 doing rc_check
 httpd
 doing rc_pre
 configuration OK
 doing rc_start
 doing _rc_wait start
 doing rc_check
 doing _rc_write_runfile
 (ok)

 # /etc/rc.d/httpd start
 httpd(ok)

 cat /var/log/messages

 Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign
 requested address
 Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign
 requested address

 vi httpd.conf

 # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $

 #
 # Macros
 #
 ext_addr="*"

 #
 # Global Options
 #
 # prefork 3

 #
 # Servers
 #

 # A minimal default server
 server "default" {
         listen on $ext_addr port 80
 }

 Thanks

 On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues 
>
> wrote:
> # rcctl - start httpd
> This command should give you some details on what isn't working.
> If not, you can try `# httpd -nvv` to check your config and `# httpd
> -d` to run httpd directly.
>
> 2017-02-25 21:20 

Re: Getting http to work

2017-02-26 Thread Vijay Sankar
  Hi,

Can you try using the name of the server instead of "default"?

I sort of recall something like this from a couple of years ago but it has
run without any problems for me.

For example, I had "default" instead of the server's name and it did not
work. Once I changed to the following, there were no issues and it has run
like this  since

vault.lab.foretell.ca$ ls -l
/etc/httpd.conf                                
 
 
-rw-r--r--  1 root  wheel  558 Dec 28  2015 /etc/httpd.conf

vault.lab.foretell.ca$ more
/etc/httpd.conf                                
  
 
prefork 2
chroot "/home/distros"
           server "vault.lab.foretell.ca" {
                listen on * port 80
                directory auto index
                }

           types {
                   text/css               
css
                   text/html              
html htm
                   text/txt               
txt
                   image/gif              
gif
                   image/jpeg             
jpeg jpg
                   image/png              
png
                   application/javascript  js
                   application/xml         xml
           }

Hope this helps,

Vijay

Quoting Monah Baki :

> # netstat -na -f inet | grep LISTEN
> tcp          0      0  127.0.0.1.25           *.*     
             
> LISTEN
> tcp          0      0  *.22                   *.*   
               
> LISTEN
> # httpd -dv
> startup
> parent: send server: Can't assign requested address
> # logger exiting, pid 24061
> server exiting, pid 96224
> server exiting, pid 68259
> server exiting, pid 94930
>
> It's a fresh install so I wasn't expecting any ports listening. Even
> if I changed to port 8080 same issue.
>
> Thanks
>
> On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry 
> wrote:
>> Monah Baki writes:
>>
>>> # httpd -dnv
>>> configuration OK
>>>
>>> #  rcctl - start httpd
>>> doing _rc_parse_conf
>>> doing _rc_quirks
>>> httpd_flags empty, using default ><
>>> doing _rc_parse_conf /var/run/rc.d/httpd
>>> doing _rc_quirks
>>> doing rc_check
>>> httpd
>>> doing rc_pre
>>> configuration OK
>>> doing rc_start
>>> doing _rc_wait start
>>> doing rc_check
>>> doing _rc_write_runfile
>>> (ok)
>>>
>>> # /etc/rc.d/httpd start
>>> httpd(ok)
>>>
>>> cat /var/log/messages
>>>
>>> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign
>>> requested address
>>> Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign
>>> requested address
>>>
>>> vi httpd.conf
>>>
>>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
>>>
>>> #
>>> # Macros
>>> #
>>> ext_addr="*"
>>>
>>> #
>>> # Global Options
>>> #
>>> # prefork 3
>>>
>>> #
>>> # Servers
>>> #
>>>
>>> # A minimal default server
>>> server "default" {
>>>         listen on $ext_addr port 80
>>> }
>>>
>>> Thanks
>>>
>>> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues 
wrote:
 # rcctl - start httpd
 This command should give you some details on what isn't working.
 If not, you can try `# httpd -nvv` to check your config and `# httpd
 -d` to run httpd directly.

 2017-02-25 21:20 GMT+01:00 Monah Baki :
> Changing to ext_addr="*"
>
> # /etc/rc.d/httpd start
> httpd(failed)
>
> Nothing shows up in /var/log/messages
>
> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry
>  wrote:
>> Monah Baki writes:
>>
>>> Hi all,
>>>
>>> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and
>>> wanted to run default webserver.
>>>
>>> In the messages logs I find the following error:
>>>
>>> httpd[23792]: parent: send server: Can't assign requested address
>>>
>>> em0: flags=8843 mtu 1500
>>>         lladdr 00:0c:29:b3:81:f8
>>>         index 1 priority 0 llprio 3
>>>         groups: egress
>>>         media: Ethernet autoselect (1000baseT
full-duplex,master)
>>>         status: active
>>>         inet 192.168.60.129 netmask 0xff00 broadcast
>>> 192.168.60.255
>>>
>>> In my httpd.conf all I changed was the "ext_addr" Macro,
>>> everything else as is.
>>>
>>> $ cat /etc/httpd.conf
>>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
>>>
>>> #
>>> # Macros
>>> #
>>> ext_addr="192.168.60.129"
>>> # A minimal default server
>>> server "default" {
>>>  

Re: Getting http to work

2017-02-26 Thread Monah Baki
I installed a fresh copy of 5.9 and still having the same issue. Still
seeing  parent: send server: Can't assign requested address in
/var/log/messages.

Thanks


On Sat, Feb 25, 2017 at 10:27 PM, Kevin Gerrard  wrote:
> OpenBSD 6.0
> I had this happen to me a few days ago. I set httpd.conf up to use "*"  at
> first just to cut down on hiccups. When I had it up and working with php,
> and mariadb I changed   "*" to"192.168.3.254" and restarted
> httpd.conf. It did not work, even after a reboot. So I put the "*" back in
> just  so I could go populate mariadb 10 and php 7. After reading these
> emails today it made me remember that, and so I logged into it and changed
> it back to the "192.168.3.254" instead of "*", and restarted httpd. I
> thought I was going to reproduce the hiccup but instead the dadgum thing
> worked!!!
>
> No problems here at all but I did want to say for whatever reason it was,
> this exact anomaly did happen to me once also, however upon trying to
> reproduce it I could not.
>
> The only thing I can think of is that I "might" not have rebooted? I really
> doubt that is it but a lot on my mind lately and it could easily have been.
>
> Kevin Gerrard
>
> -Original Message-
> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
> Currell Berry
> Sent: Saturday, February 25, 2017 5:32 PM
> To: Monah Baki
> Cc: ludovic coues; openbsd-misc
> Subject: Re: Getting http to work
>
> Monah Baki writes:
>
>> # httpd -dnv
>> configuration OK
>>
>> #  rcctl - start httpd
>> doing _rc_parse_conf
>> doing _rc_quirks
>> httpd_flags empty, using default ><
>> doing _rc_parse_conf /var/run/rc.d/httpd doing _rc_quirks doing
>> rc_check httpd doing rc_pre configuration OK doing rc_start doing
>> _rc_wait start doing rc_check doing _rc_write_runfile
>> (ok)
>>
>> # /etc/rc.d/httpd start
>> httpd(ok)
>>
>> cat /var/log/messages
>>
>> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign
>> requested address Feb 25 15:36:06 nebula httpd[14026]: parent: send
>> server: Can't assign requested address
>>
>>
>> vi httpd.conf
>>
>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
>>
>> #
>> # Macros
>> #
>> ext_addr="*"
>>
>> #
>> # Global Options
>> #
>> # prefork 3
>>
>> #
>> # Servers
>> #
>>
>> # A minimal default server
>> server "default" {
>> listen on $ext_addr port 80
>> }
>>
>>
>>
>> Thanks
>>
>>
>> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues  wrote:
>>> # rcctl - start httpd
>>> This command should give you some details on what isn't working.
>>> If not, you can try `# httpd -nvv` to check your config and `# httpd
>>> -d` to run httpd directly.
>>>
>>> 2017-02-25 21:20 GMT+01:00 Monah Baki :
 Changing to ext_addr="*"


 # /etc/rc.d/httpd start
 httpd(failed)

 Nothing shows up in /var/log/messages






 On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry 
> wrote:
>
> Monah Baki writes:
>
>> Hi all,
>>
>> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and
>> wanted to run default webserver.
>>
>> In the messages logs I find the following error:
>>
>>  httpd[23792]: parent: send server: Can't assign requested address
>>
>>
>> em0: flags=8843 mtu 1500
>> lladdr 00:0c:29:b3:81:f8
>> index 1 priority 0 llprio 3
>> groups: egress
>> media: Ethernet autoselect (1000baseT full-duplex,master)
>> status: active
>> inet 192.168.60.129 netmask 0xff00 broadcast
>> 192.168.60.255
>>
>> In my httpd.conf all I changed was the "ext_addr" Macro, everything
> else as is.
>>
>> $ cat /etc/httpd.conf
>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
>>
>> #
>> # Macros
>> #
>> ext_addr="192.168.60.129"
>> # A minimal default server
>> server "default" {
>> listen on $ext_addr port 80 }
>>
>>
>>
>>
>> Thank you
>> Monah
>
> Did you try
>
>  ext_addr="*"
>
> yet?
>
> Does it report the same error with that in place?
>
> -- Currell

>>>
>>>
>>>
>>> --
>>>
>>> Cordialement, Coues Ludovic
>>> +336 148 743 42
>
> Some ideas:
> You might have an instance of httpd running in the background stopping a
> new one from binding to the port.
>
> Run the following commands and examine the output to check what could be
> there
>
> # netstat -na -f inet | grep LISTEN
> # ps ax
>
> Kill all running instances of httpd, or anything else that is binding to
> port 80.
>
> Once you've done that, try starting httpd in no-fork mode and see what
> it says:
>
> # httpd -dv
>
> If it still doesn't work, try a different port (change 80 to  for
> instance).
>
> -- Currell



chmod of /usr/obj/usr.sbin/unbound/util

2017-02-26 Thread Jan Stary
Cleaning up /usr/obj/ before a kernel build
as a regular user who's in the wobj group,
I get the following

  rm: /usr/obj/usr.sbin/unbound/util/configparser.h: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util/configparser.c: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util/configlexer.c: Permission denied
  rm: /usr/obj/usr.sbin/unbound/util: Directory not empty
  rm: /usr/obj/usr.sbin/unbound: Directory not empty
  rm: /usr/obj/usr.sbin: Directory not empty


$ find /usr/obj/ | xargs ls -ld
drwxrwx---  3 build  wobj 512 Feb 26 14:19 /usr/obj/
drwxrwx---  3 build  wobj2560 Feb 26 14:19 /usr/obj/usr.sbin
drwxrwx---  3 build  wobj4096 Feb 26 14:19 /usr/obj/usr.sbin/unbound
drwxr-xr-x  2 build  wobj 512 Feb 23 20:43 /usr/obj/usr.sbin/unbound/util
-rw-rw  1 build  wobj  166639 Feb 23 20:43 
/usr/obj/usr.sbin/unbound/util/configlexer.c
-rw-rw  1 build  wobj  122438 Feb 23 20:43 
/usr/obj/usr.sbin/unbound/util/configparser.c
-rw-rw  1 build  wobj6016 Feb 23 20:43 
/usr/obj/usr.sbin/unbound/util/configparser.h

Everything is 770 build:wobj, except the single directory
/usr/obj/usr.sbin/unbound/util which is 755 build:wobj.

This is on four different -current machines.
Is this intended?

Jan



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread Karl Pettersson
I run OpenBSD (dual boot with Linux) on an X250, which I bought in January
with the price about 50 percent discounted, because it is being replaced
with X260. There is also a rather helpful blogpost from 2016 on setting it up on
this model:

https://blogs.fsfe.org/h2/2016/01/15/openbsd-on-the-thinkpad-x250/

Regards,
Karl Pettersson

On Sun, Feb 26, 2017 at 08:19:32AM +, Florian Obser wrote:
> I need some help since I'm terrible with hardware...
> 
> So my x201 main hacking laptop is getting old and benno@ is always
> mocking me for the amount of gaffer and stickers that are holding it
> together.
> 
> Long story short, I'm in the market for a new thinkpad.
> Yes it has to be a thinkpad. I require the pointing stick and 3
> physical mouse buttons.
> 
> On the x201 I like the ease of changing the HDD and battery. I would
> prefer if that was the case with the new one.
> 
> So what's the done thing here? I'm not a hardware hacker, so I want a
> kinda fully supported one. That means accelerated X and working wifi
> (this is probably not an issue with stsp@'s hard work). Also I'm happy
> with the size of the x201, I don't want to lug a brick around, so that
> means an x series laptop. As a first approximation assume that money is
> not an issue.
> 
> Thanks,
> Florian
> 
> -- 
> I'm not entirely sure you are real.



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread Karl Pettersson
Since January, I run OpenBSD (dual boot with Linux) on an X250. There is
also a rather helpful blogpost (from January 2016)on configuring the system
on this model:

https://blogs.fsfe.org/h2/2016/01/15/openbsd-on-the-thinkpad-x250/

Regards,
Karl Pettersson

On Sun, Feb 26, 2017 at 08:19:32AM +, Florian Obser wrote:
> I need some help since I'm terrible with hardware...
> 
> So my x201 main hacking laptop is getting old and benno@ is always
> mocking me for the amount of gaffer and stickers that are holding it
> together.
> 
> Long story short, I'm in the market for a new thinkpad.
> Yes it has to be a thinkpad. I require the pointing stick and 3
> physical mouse buttons.
> 
> On the x201 I like the ease of changing the HDD and battery. I would
> prefer if that was the case with the new one.
> 
> So what's the done thing here? I'm not a hardware hacker, so I want a
> kinda fully supported one. That means accelerated X and working wifi
> (this is probably not an issue with stsp@'s hard work). Also I'm happy
> with the size of the x201, I don't want to lug a brick around, so that
> means an x series laptop. As a first approximation assume that money is
> not an issue.
> 
> Thanks,
> Florian
> 
> -- 
> I'm not entirely sure you are real.



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread Florian Ermisch
Hi Florian,

the maintainability of the x2?? Thinkpads
dropped from great to good(ish) starting
with the x230. With the recent ones you
have to remove the bottom half of the case
to access anything but the rear battery*,
see [0].
But at least the x250 and the x260 have
dedicated buttons for the trackpoint again.
With the x260 support for a 16gb RAM stick (now DDR4) in the single slot is
now official
but it's not clear if you can have both a 2.5"
(7mm thick) drive and a m.2/NVMe SSD.
The option of having an m.2/_SATA_ SSD sure
is gone from what I've found.

You may also want to look at the slightly
bigger t440 (14") which can have both a 2.5"
and a m.2 drive and also (officially) supports
32gb of RAM.

HTH, Florian

PS: Yes, I've been looking at the new
Thinkpads a lot lately, but I rarely carry
mine around so 14" isn't a problem - and
also want lots of RAM for ZFS & bhyve ;)

*) The optional integrated front battery still is a "Field Replaceable" Unit,
just not as easy to swap as the rear one ;)

[0]
http://www.laptopmain.com/how-to-disassemble-lenovo-thinkpad-x260-to-upgrade-
ssd-and-ram/

Am 26. Februar 2017 09:19:32 MEZ schrieb Florian Obser :
> I need some help since I'm terrible with hardware...
>
> So my x201 main hacking laptop is getting old and benno@ is always
> mocking me for the amount of gaffer and stickers that are holding it
> together.
>
> Long story short, I'm in the market for a new thinkpad.
> Yes it has to be a thinkpad. I require the pointing stick and 3
> physical mouse buttons.
>
> On the x201 I like the ease of changing the HDD and battery. I would
> prefer if that was the case with the new one.
>
> So what's the done thing here? I'm not a hardware hacker, so I want a
> kinda fully supported one. That means accelerated X and working wifi
> (this is probably not an issue with stsp@'s hard work). Also I'm happy
> with the size of the x201, I don't want to lug a brick around, so that
> means an x series laptop. As a first approximation assume that money
> is
> not an issue.
>
> Thanks,
> Florian



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread David Coppa
On Sun, Feb 26, 2017 at 9:19 AM, Florian Obser  wrote:
> I need some help since I'm terrible with hardware...
>
> So my x201 main hacking laptop is getting old and benno@ is always
> mocking me for the amount of gaffer and stickers that are holding it
> together.
>
> Long story short, I'm in the market for a new thinkpad.
> Yes it has to be a thinkpad. I require the pointing stick and 3
> physical mouse buttons.
>
> On the x201 I like the ease of changing the HDD and battery. I would
> prefer if that was the case with the new one.
>
> So what's the done thing here? I'm not a hardware hacker, so I want a
> kinda fully supported one. That means accelerated X and working wifi
> (this is probably not an issue with stsp@'s hard work). Also I'm happy
> with the size of the x201, I don't want to lug a brick around, so that
> means an x series laptop. As a first approximation assume that money is
> not an issue.

I'd go for a refurbished X230 (Sandy Bridge, so fully working accelerated X).
Then you can upgrade it with 16GB of ram and a SSD harddisk.

CIAO!
David



Looking for replacement of thinkpad x201

2017-02-26 Thread Florian Obser
I need some help since I'm terrible with hardware...

So my x201 main hacking laptop is getting old and benno@ is always
mocking me for the amount of gaffer and stickers that are holding it
together.

Long story short, I'm in the market for a new thinkpad.
Yes it has to be a thinkpad. I require the pointing stick and 3
physical mouse buttons.

On the x201 I like the ease of changing the HDD and battery. I would
prefer if that was the case with the new one.

So what's the done thing here? I'm not a hardware hacker, so I want a
kinda fully supported one. That means accelerated X and working wifi
(this is probably not an issue with stsp@'s hard work). Also I'm happy
with the size of the x201, I don't want to lug a brick around, so that
means an x series laptop. As a first approximation assume that money is
not an issue.

Thanks,
Florian

-- 
I'm not entirely sure you are real.