QMAILDIR wart

Jonathan Perkin <[email protected]> Wed, 15 Apr 2026 15:39:41 +0100
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
When building qmail-related packages, they break if QMAILDIR (e.g. 
/var/qmail) exists.  This causes problems in bulk builds if a builder 
has already attempted to install a qmail-related package:

   https://github.com/NetBSD/pkgsrc/blob/trunk/mail/qmail/INSTALL#L11-L25

pbulk has this wart in client-clean:

   rm -rf ${cur_destdir}${varbase}/qmail 2> /dev/null || true

and I've had to add a similar hook to bob to stop lots of packages 
failing inside clean build sandboxes.

Can we not just clean up /var/qmail properly on DEINSTALL or similar?  
It feels wrong to have to hardcode this manual rm -rf everywhere else.

Thanks,

-- 
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com