tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Request to import wip/dma 0.14 as mail/dma



On 19/11/2026 21:53, Philip Dodd wrote:
On 19/11/2026 20:03, Juha-Matti Tilli wrote:
On Thu, Nov 19, 2026, at 20:22, Philip Dodd wrote:
Could someone review wip/dma 0.14 for import into pkgsrc as mail/dma?

I’ve pushed one more change (9c20e1b02b) to fix a Linux build error by
using DMA’s bundled getprogname() on Linux. With that change, it builds,
installs and works properly on Debian testing amd64.  I've also tested
on NetBSD 11.1 and -current, where it runs on several of my machines as
the local MTA for delivery to my mail relay.

There’s a COMMIT_MSG in wip/dma for the import.  I’d welcome any
feedback and be happy to address anything that seems to need more work.
Hello,

Not a complete review, but...

I can immediately note this hasn't been tested on all platforms
supported by pkgsrc.

$ /home/juhis/pkg/bin/bmake
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /home/juhis/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/home/juhis/pkg/sbin/pkg_admin -K /home/juhis/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for dma-0.14
yacc -d -o aliases_parse.c aliases_parse.y
yacc: illegal option -- o
Usage: yacc [-vVdltY] [-Q(y/n)] [-b file_prefix] [-p sym_prefix] [-P parser] file
*** Error code 1

Stop.
bmake: stopped making "all" in /home/juhis/pkgsrc/wip/dma/work/dma-0.14
*** Error code 1

Stop.
bmake[1]: stopped making "all" in /home/juhis/pkgsrc/wip/dma
*** Error code 1

Stop.
bmake: stopped making "all" in /home/juhis/pkgsrc/wip/dma
$ uname -a
SunOS omni 5.11 omnios-r151054-f66c95f374 i86pc i386 i86pc

I think it might need bison or byacc instead. The POSIX yacc doesn't
take an -o option.

BR, Juha-Matti


Thanks, you’re right. I pushed a change to use byacc, and I've built and done basic testing on an OmniOS VM.

While replicating your scenario, I also found that an unprivileged install was looking for the spool in the wrong place and pkgsrc was expecting the wrong ownership. Both are also fixed.

b4b87c251009f06c05cfdcc6fe264cba1c2b5aeb dma: use byacc and fix unprivileged spool setup

Thanks again for pointing this out. Based on the feedback about the other pkgsrc platforms, I tried the build on a GitHub macOS runner and found a couple more portability issues. I believe I’ve fixed those now, and the runner passed a smoke test that queues a message using the default spool.

It now builds and installs on NetBSD 11.1 and -current, OmniOS r151060, Debian testing, and macOS 15 arm64 on the GitHub runner.

I think that’s about as far as I can take it with the setups I have. I’d be interested to hear how it goes if anyone else tries it.

82b5ad4555 - dma: Build fixes for MacOS (and I will prepare a PR to upstream the MacOS fixes as they're not pkgsrc specific, but I don't know how much appetite corecode/dma has to get it working on MacOS, nor how many other build issues there might be on non-pkgsrc builds)




Home | Main Index | Thread Index | Old Index