now | writings | rss | github | twitter | contact

posted to status updates via twitter on apr 8th, 2018 and commented on 23 times
Comments? Contact me via Twitter or e-mail.

23 Comments

Laurent Bercot (authentic, via ) on april 9th, 2018 at 05:09:54:

Software ported to OpenBSD often needs patches because it's OpenBSD and does not care much about POSIX compatibility 🙄

Timo Myyrä (authentic, via ) on april 9th, 2018 at 07:01:49:

@jcs You mean it does not care about GNU compatibility?

Laurent Bercot (authentic, via ) on april 9th, 2018 at 07:38:07:

@jcs Would you like me to explain to you the difference between GNU and POSIX ?

VoidGazer (authentic, via ) on april 9th, 2018 at 10:58:08:

@zmyrgel @jcs Yes please

Simon Krenz (authentic, via ) on april 9th, 2018 at 13:35:45:

@laurentbercot @zmyrgel @jcs Yes please...

Marc Espie (authentic, via ) on april 9th, 2018 at 14:23:07:

@jcs Don't respond to Laurent, it's useless.
He doesn't get it.

Laurent Bercot (authentic, via ) on april 9th, 2018 at 14:54:38:

@jcs Indeed, I don't get it. I don't get why it's harder to make skalibs build on OpenBSD than on any other system except MacOS. And I don't get why you jump on every chance you get to be an asshole to me, either.

Marc Espie (authentic, via ) on april 9th, 2018 at 15:36:09:

@jcs not really, just not wanting to waste any time on this.

OpenBSD works.

You do things very differently from about everything else.

Reminds me of djb, not surprisingly.

Waste of time.

Not going to learn swahili any time soon either.

Laurent Bercot (authentic, via ) on april 9th, 2018 at 15:42:58:

@jcs And again, you're stuck on an image of me that's more than 20 years old.
How my software works has NOTHING to do with how painful OpenBSD is for developers. Wanting to use EPROTO, pselect, fd-passing, or arc4random_addrandom() does not make me a special snowflake, sorry.

Marc Espie (authentic, via ) on april 9th, 2018 at 17:39:17:

@jcs fd passing works (see libutil)

Maybe you want a version that's guaranteed to be non portable ?

Laurent Bercot (authentic, via ) on april 9th, 2018 at 17:45:57:

@jcs Yes it works, but it wasn't easy to make work properly and reliably in all cases. But FreeBSD was a lot worse in this regard than OpenBSD (forget about ever fd-passing over a SOCK_DGRAM on FreeBSD, it just doesn't work).

Marc Espie (authentic, via ) on april 9th, 2018 at 17:40:09:

@jcs why pselect (with the mask size issue) and not some variation on poll ?

Laurent Bercot (authentic, via ) on april 9th, 2018 at 17:43:17:

@jcs I use ppoll() wherever available. I prefer pselect() to poll() because of the nanosecond precision: microsecond would be fine, but millisecond is too coarse.

Marc Espie (authentic, via ) on april 10th, 2018 at 05:08:30:

@jcs You do know OpenBSD has had pselect since 2013, don't you ?

Marc Espie (authentic, via ) on april 10th, 2018 at 05:10:02:

@jcs ... and EPROTO was added last september, specifically to conform to POSIX.

Laurent Bercot (authentic, via ) on april 10th, 2018 at 06:14:23:

@jcs I saw that, and I'm glad. You guys are definitely making progress, maybe OpenBSD isn't the hardest OS to port to anymore - I'll have to test 6.3. Welcome to the 21st century 😆

Laurent Bercot (authentic, via ) on april 10th, 2018 at 06:09:38:

@jcs Yes. And it was broken until 2016 (it returned -1 EINVAL on very long timeouts).

sthen (authentic, via ) on april 11th, 2018 at 06:43:06:

@espie_openbsd @jcs the advantage of the relatively short release cycle is that you don't really need to worry about users on 2-year old OpenBSD versions (nor, usually, about OpenBSD package users being stuck on years-old versions of your software that you're trying to move people away from)

Laurent Bercot (authentic, via ) on april 11th, 2018 at 06:52:27:

@espie_openbsd @jcs Does it mean it's okay if I don't try to keep stuff building on older versions? If I only need to support the latest OpenBSD release, this will make my life MUCH easier indeed, and most of my "OpenBSD is hard to port to" comments obsolete.

Marc Espie (authentic, via ) on april 11th, 2018 at 16:14:16:

@sthen_ @jcs EOL is two releases, so one year.

People running 6.1 should really update NOW.

sthen (authentic, via ) on april 11th, 2018 at 06:44:20:

@espie_openbsd @jcs fd-passing is used *extensively* on OpenBSD...the vast majority of daemons in base use it for privsep

Kevin Chadwick (authentic, via ) on april 9th, 2018 at 16:03:21:

@espie_openbsd @jcs I was interested what tech you were using that wouldn't build "easily" but http://skarnet.org appears to be down.

Laurent Bercot (authentic, via ) on april 9th, 2018 at 17:41:49:

@espie_openbsd @jcs It was down indeed, for reasons out of my control. It's now back up, and if you were really interested, you would have looked at the github mirror. The tech that "doesn't build easily" is a simple C library that tries to be portable on multiple systems. Feel free to take a look.