Re: build error on octeon, 6.6

2019-11-07 Thread Janne Johansson
Den ons 6 nov. 2019 kl 23:36 skrev Christian Groessler :

> Hi,
> I've installed OpenBSD 6.6 on an EdgeRouter Lite. I wanted to rebuild
> the system.
>
> Maybe the machine has too little memory?
>
> routie$ swapctl -lk
> Device  1K-blocks UsedAvail Capacity  Priority
> /dev/sd0b  22077035824   18494616%0
> routie$
> routie$ sysctl -a | grep physmem
> hw.physmem=536870912
>

A while back when I needed/wanted to build ports-llvm on ERL, I added some
8G of swap over NFS (to an ssd-x86_64 server) which helps with large builds.
Takes ages, but works.

-- 
May the most significant bit of your life be positive.


Re: Is there an easier way to browse ports?

2019-11-07 Thread Anthony J. Bentley
Adam Thompson writes:
> openports.se

Generated by scraping, and thus often incomplete. Taking a look, it's
missing many of my recent commits, and even entire ports.

> ports.su

Extremely out of date. "These pages were generated 2018-11-21T13Z"...



Re: Tools for writers

2019-11-07 Thread Joe Davis
> Some writers swear on Scrivener. It's proprietary and Mac/Win only, though.

Manuskript[1] looks promising as a foss alternative. Haven't attempted
to build it on OpenBSD. None of the dependencies look to be a major
problem.

Cheers,
Joe

[1]: http://www.theologeek.ch/manuskript/



Re: Tools for writers

2019-11-07 Thread Mark Jamsek
Joe Davis wrote
>> Some writers swear on Scrivener. It's proprietary and Mac/Win only,
>> though.
> 
> Manuskript[1] looks promising as a foss alternative. Haven't attempted
> to build it on OpenBSD. None of the dependencies look to be a major
> problem.
> 
> Cheers,
> Joe
> 
> [1]: http://www.theologeek.ch/manuskript/

This looks really interesting. Thanks for sharing, Joe.



--
Sent from: http://openbsd-archive.7691.n7.nabble.com/openbsd-user-misc-f3.html



Relayd in docker

2019-11-07 Thread Flipchan
Hey!
I am running docker(yeah i know ..) but anyhow the task is to get a nice load 
balancer up in a docker container and i want to use relayd ofcourse ! has 
anyone gotten relayd to work in docker or has anyone created openbsd images for 
docker ? 

If not i guess i have to compile it and run it on a linux docker image...



Thanks !
sincerely
flipchan


Re: Is there an easier way to browse ports?

2019-11-07 Thread Marc Espie
On Wed, Nov 06, 2019 at 04:44:48PM -0600, Adam Thompson wrote:
> Also http://openports.se/ and http://ports.su/ .

Don't use those, they don't know how the openbsd ports are named.



Re: Relayd in docker

2019-11-07 Thread Marc Chantreux
> I am running docker(yeah i know ..) but anyhow the task is to get a
> nice load balancer up in a docker container and i want to use relayd
> ofcourse ! has anyone gotten relayd to work in docker or has anyone
> created openbsd images for docker ?

AFAIK, docker is just an ugly wrapper on top of cgroups and linux
namespaces: there is no way to have a openbsd docker.

> If not i guess i have to compile it and run it on a linux docker
> image...

please report any sucess on it: i'm interested.

regards
marc



Re: Is there an easier way to browse ports?

2019-11-07 Thread Adam Thompson
Oh, ok... Do you recall an example offhand?  (I haven't noticed systemic
problems with either, but then I'm hardly a ports expert!)Thanks,-Adam
On Nov. 7, 2019 07:18, Marc Espie  wrote:

  On Wed, Nov 06, 2019 at 04:44:48PM -0600, Adam Thompson wrote:
  > Also http://openports.se/ and http://ports.su/ .

  Don't use those, they don't know how the openbsd ports are named.


Re: Is there an easier way to browse ports?

2019-11-07 Thread Adam Thompson
Ah, there's a good answer to the question I just asked Marc, thanks!-Adam


Re: Is there an easier way to browse ports?

2019-11-07 Thread Marc Espie
On Thu, Nov 07, 2019 at 08:03:54AM -0600, Adam Thompson wrote:
> Oh, ok... Do you recall an example offhand?  (I haven't noticed systemic
> problems with either, but then I'm hardly a ports expert!)
> Thanks,
> -Adam

About anything that's an heavy flavor/pseudo-flavors/multi-packages user.
There's a whole amount of madness involved to parsing it properly (both
dpb and sqlports have some specific code to take care of building proper
equivalence relations and normalizing pkgpaths).

the .pl site is a straight instance of ports-readmes-dancer, which leverages
sqlports and pkglocatedb, and so it's the official data set up in a correct
way.



Value of eax register after BIOS interrupt call from boot(8)

2019-11-07 Thread Julius Zint
Hi misc,

the following code snipped is from sys/arch/amd64/stand/libsa/gidt.S

/* pass BIOS return values back to caller */
movl%eax, 0xb*4(%esp)
movl%ecx, 0xa*4(%esp)
movl%edx, 0x9*4(%esp)
movb%bh , 0xe*4(%esp)

/* clear NT flag in eflags */
/* Martin Fredriksson  */
pushf
pop %eax
and $0xbfff, %eax
push%eax
popf

/* save registers into save area */
movl%eax, _C_LABEL(BIOS_regs)+BIOSR_AX
movl%ecx, _C_LABEL(BIOS_regs)+BIOSR_CX
movl%edx, _C_LABEL(BIOS_regs)+BIOSR_DX
movl%ebp, _C_LABEL(BIOS_regs)+BIOSR_BP
movl%esi, _C_LABEL(BIOS_regs)+BIOSR_SI
movl%edi, _C_LABEL(BIOS_regs)+BIOSR_DI

These instructions are being executed after a BIOS interrupt. If i read
correctly, than (BIOS_regs)+BIOSR_AX contains the contents of the eflags
processor register and not of %eax. Is this intended or should it contain
the value of %eax?

Kind regards

Julius



Re: OpenBSD BFD support

2019-11-07 Thread Henry Bonath
While I cannot comment to the BFD support in OpenBSD, I can say that I have
seen
Peter Hessler around here, so hopefully he sees this and can answer your
question.

BFD would be a very nice addition to see, considering the maturity level we
are getting
to with BGPD and MPLS support.

On Wed, Nov 6, 2019 at 4:42 AM Vasco Matos  wrote:

> Hi,
>
>
> I see that a white paper was written in order to have BFD (Bidirectional
> Forwarding Detection) implemented on OpenBSD.
> However after reading the paper and try to implement it it just doesn't
> work.
> I already tried to reach the white paper writer (Peter Hessler) without
> success. Does anyone know if this is an ongoing project?
> From the Changelog "https://www.openbsd.org/plusXX.html";
>  page the only thing I can see is a
> mention on the 6.5 version but it points to a blank page
> (Reconnected bfd(4)  to the build after
> updating for sounlock() api change.)
>
> 
>
> Thanks
>
>


Re: acme-client issue with domain w/ alternative name

2019-11-07 Thread Mik J
 Hello,
What this does mean ?> Just to follow up: Of my two problem domains, one was 
caused by pebkac 
I tried to force the renewal -F but have that error.
Also I read that someone had a A record missing, I have a CNAME with NOERROR. 
It should also work with a valid CNAME.
Regards

Le mercredi 23 octobre 2019 à 07:44:12 UTC+2, Ian Darwin 
 a écrit :  
 
 On 10/21/19 19:38, Ian Darwin wrote:
> Today acme-client renewed all but 2 of my domains; the two that have 
> "alternative names"
> in the certificates. I cannot get it to renew those two.  This is on amd64 on 
> 6.6-current,
> updated today.
>
Just to follow up: Of my two problem domains, one was caused by pebkac 
(sorry) and the other, which I tried 5 or 6 times last night, worked 
like a charm this morning, with no config changes. I'll just blame 
transient network conditions for that one.

  


Re: acme-client issue with domain w/ alternative name

2019-11-07 Thread Ian Darwin
On Thu, Nov 07, 2019 at 11:34:48PM +, Mik J wrote:
>  Hello,
> What this does mean ?> Just to follow up: Of my two problem domains, one was 
> caused by pebkac 

pebkac = problem exists between keyboard and chair. In other words, user error



Re: Is there an easier way to browse ports?

2019-11-07 Thread Predrag Punosevac
On Thu, Nov 07, 2019 at 08:03:54AM -0600, Adam Thompson wrote:
> Oh, ok... Do you recall an example offhand?  (I haven't noticed systemic
> problems with either, but then I'm hardly a ports expert!)
> Thanks,
> -Adam

Hi Adam,

Here is a quick example for you

http://openports.se/search.php?so=gitea

vs

https://openports.pl/search?file=gitea&descr=&path=&pkgname=&category=&maintainer=

Often times entire categories will be empty on http://openports.se.

Cheers,
Predrag



Re: Value of eax register after BIOS interrupt call from boot(8)

2019-11-07 Thread Philip Guenther
On Thu, Nov 7, 2019 at 9:31 AM Julius Zint  wrote:

> the following code snipped is from sys/arch/amd64/stand/libsa/gidt.S
>
> /* pass BIOS return values back to caller */
> movl%eax, 0xb*4(%esp)
> movl%ecx, 0xa*4(%esp)
> movl%edx, 0x9*4(%esp)
> movb%bh , 0xe*4(%esp)
>
> /* clear NT flag in eflags */
> /* Martin Fredriksson  */
> pushf
> pop %eax
> and $0xbfff, %eax
> push%eax
> popf
>
> /* save registers into save area */
> movl%eax, _C_LABEL(BIOS_regs)+BIOSR_AX
> movl%ecx, _C_LABEL(BIOS_regs)+BIOSR_CX
> movl%edx, _C_LABEL(BIOS_regs)+BIOSR_DX
> movl%ebp, _C_LABEL(BIOS_regs)+BIOSR_BP
> movl%esi, _C_LABEL(BIOS_regs)+BIOSR_SI
> movl%edi, _C_LABEL(BIOS_regs)+BIOSR_DI
>
> These instructions are being executed after a BIOS interrupt. If i read
> correctly, than (BIOS_regs)+BIOSR_AX contains the contents of the eflags
> processor register and not of %eax. Is this intended or should it contain
> the value of %eax?
>

Yeah, it looks like it's in the wrong order.  The trick, of course, is that
nothing actually examines BIOS_regs.biosr_ax, so the fact that the wrong
value is saved there hasn't mattered.

Since we're unlikely to do _more_ with BIOS calls in the boot loader, my
inclination would be to eliminate the structure value and the code that
sets it (incorrectly).  Opinions?


Philip Guenther


vi in ramdisk?

2019-11-07 Thread Brennan Vincent

Hello,

I am asking this out of pure curiosity, not to criticize or start a debate.

Why does the ramdisk not include /usr/bin/vi by default? To date,
it is the only UNIX-like environment I have ever seen without some form 
of vi.





Re: vi in ramdisk?

2019-11-07 Thread Theo de Raadt
Brennan Vincent  wrote:

> Hello,
> 
> I am asking this out of pure curiosity, not to criticize or start a debate.
> 
> Why does the ramdisk not include /usr/bin/vi by default? To date,
> it is the only UNIX-like environment I have ever seen without some
> form of vi.

For the same reasons it doesn't contain a web browser:

Not required, and besides that far too large.




Re: vi in ramdisk?

2019-11-07 Thread Philip Guenther
On Thu, Nov 7, 2019 at 9:57 PM Brennan Vincent 
wrote:

> I am asking this out of pure curiosity, not to criticize or start a debate.
>
> Why does the ramdisk not include /usr/bin/vi by default? To date,
> it is the only UNIX-like environment I have ever seen without some form
> of vi.
>

The ramdisk space is extremely tight.  We include what we feel is
necessary, PUSHING OUT other stuff as priorities shift.  If you have watch
the commits closely, you would have seen drivers vanish from the ramdisks
on tight archs as new functionality was added.

Given what we want people to use the ramdisks for (installing,
reinstalling, upgrading, fixing boot and set issues), vi is not necessary,
while other functionality and drivers extend their applicability.  We will
keep the latter and not include the former.


Philip Guenther