One minor issue, argp-standalone only provides a static library, so
this should use BUILD_DEPENDS rather than LIB_DEPENDS (essentially
LIB_DEPENDS is invalid unless there is a WANTLIB entry to go with it).

I would like guidance from someone who knows pledge better than me
about the NULL vs "" for execpromises. The manual doesn't mention it
but AFAIK we are not using it at all and I think it would be unwise
to do something different here.


On 2022/11/12 23:25, Alexander Klimov wrote:
> 
> 
> On 18.10.22 11:57, Stuart Henderson wrote:
> > On 2022/10/16 14:51, Alexander A. Klimov wrote:
> > > Hello OpenBSD devs!
> > > Hello Michel!
> > > 
> > > I'd like OpenBSD to have a package of Michel's software "F3".
> > > 
> > > https://github.com/AltraMayor/f3
> > > 
> > > Today I checked out the snapshot ports tree, but didn't find F3 even 
> > > there,
> > > nor anything in the ports@ archive.
> > > 
> > > Is anyone of you (going to) porting it in the near future?
> > > 
> > > If no, I'm gonna give it a try.
> > > 
> > > I'm looking forward to hear from you.
> > > 
> > > Best,
> > > A/K
> > > 
> > 
> > I've attached a skeleton port for it, but it needs more work, OpenBSD
> And I've attached the more work you mentioned.
> 
> ok?
> 
> (At least for me it purrs like a cat, see below.)
> 
> > doesn't have posix_fadvise() or clock_nanosleep().
> > 
> > There is some code to emulate posix_fadvise for MacOS but it uses various
> > fcntl(2) commands that we don't have.
> > 
> 
>  82989 f3write  CALL  fcntl(1,F_ISATTY)
>  82989 f3write  RET   fcntl 1
>  82989 f3write  CALL  write(1,0x6a6a3e1c000,0xd)
>  82989 f3write  GIO   fd 1 wrote 13 bytes
>        "F3 write 8.0
>        "
>  82989 f3write  RET   write 13/0xd
>  82989 f3write  CALL  write(1,0x6a6a3e1c000,0x2b)
>  82989 f3write  GIO   fd 1 wrote 43 bytes
>        "Copyright (C) 2010 Digirati Internet LTDA.
>        "
>  82989 f3write  RET   write 43/0x2b
>  82989 f3write  CALL  write(1,0x6a6a3e1c000,0x3e)
>  82989 f3write  GIO   fd 1 wrote 62 bytes
>        "This is free software; see the source for copying conditions.
>        "
>  82989 f3write  RET   write 62/0x3e
>  82989 f3write  CALL  write(1,0x6a6a3e1c000,0x1)
>  82989 f3write  GIO   fd 1 wrote 1 bytes
>        "
>        "
>  82989 f3write  RET   write 1
>  82989 f3write  CALL  kbind(0x7f7fffdd7548,24,0xfc765877a3dc19cd)
>  82989 f3write  RET   kbind 0
>  82989 f3write  CALL  chdir(0x7f7ffffd7937)
>  82989 f3write  NAMI  "."
>  82989 f3write  RET   chdir 0
>  82989 f3write  CALL  kbind(0x7f7fffdd7548,24,0xfc765877a3dc19cd)
>  82989 f3write  RET   kbind 0
>  82989 f3write  CALL  chroot(0x6a48b8f790c)
>  82989 f3write  NAMI  "."
>  82989 f3write  RET   chroot 0
>  82989 f3write  CALL  chdir(0x6a48b8f790e)
>  82989 f3write  NAMI  "/"
>  82989 f3write  RET   chdir 0
>  82989 f3write  CALL  kbind(0x7f7fffdd7568,24,0xfc765877a3dc19cd)
>  82989 f3write  RET   kbind 0
>  82989 f3write  CALL  unveil(0x6a48b8f790c,0x6a48b8f7d94)
>  82989 f3write  STRU  flags="rwc"
>  82989 f3write  NAMI  "."
>  82989 f3write  RET   unveil 0
>  82989 f3write  CALL  unveil(0,0)
>  82989 f3write  RET   unveil 0
>  82989 f3write  CALL  kbind(0x7f7fffdd7568,24,0xfc765877a3dc19cd)
>  82989 f3write  RET   kbind 0
>  82989 f3write  CALL  pledge(0x6a48b8f80c2,0x6a48b8f83e8)
>  82989 f3write  STRU  promise="stdio rpath wpath cpath"
>  82989 f3write  STRU  execpromise=""
>  82989 f3write  RET   pledge 0


Reply via email to