NetBSD Problem Report #20852
Received: (qmail 17928 invoked by uid 605); 23 Mar 2003 11:51:25 -0000
Message-Id: <200303231151.h2NBp6R00845@nforce.naobsd.org>
Date: Sun, 23 Mar 2003 20:51:06 +0900 (JST)
From: naoki@fukaumi.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: naoki@fukaumi.org
To: gnats-bugs@gnats.netbsd.org
Subject: mail/sendmail package install problem
X-Send-Pr-Version: 3.95
>Number: 20852
>Category: pkg
>Synopsis: mail/sendmail package install problem
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: tv
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 23 11:52:00 +0000 2003
>Closed-Date: Fri Dec 22 20:43:27 +0000 2006
>Last-Modified: Fri Dec 22 20:43:27 +0000 2006
>Originator: FUKAUMI Naoki
>Release: NetBSD 1.6Q
>Organization:
FUKAUMI Naoki
>Environment:
System: NetBSD nforce.naobsd.org 1.6Q NetBSD 1.6Q (NFORCE) #0: Fri Mar 21 19:48:18 JST 2003 fun@nforce.naobsd.org:/usr/obj/i386/sys/arch/i386/compile/NFORCE i386
Architecture: i386
Machine: i386
>Description:
These files/directories are exist on package build machine, but
not exist on the machine installed by pkg_add.
/etc/mail/statistics
/etc/mail/submit.cf
/var/db/pkg/sendmail-8.12.8nb1/+INSTALL
/var/spool/clientmqueue
>How-To-Repeat:
make package && (copy another machine) && pkg_add
>Fix:
I don't know.
>Release-Note:
>Audit-Trail:
From: collver1@comcast.net
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@gnats.netbsd.org, tech-pkg@netbsd.org
Subject: Re: pkg/20852
Date: Mon, 28 Jul 2003 15:47:34 -0700
On Fri, Jul 25, 2003 at 09:22:06AM -0700, Jeremy C. Reed wrote:
> > > Yes, but in the default installation it should try to be a drop-in
> > > replacement for the base system supplied sendmail as far as possible.
>
> > When it installs files in /etc/mail, should those files be in the package's
> > PLIST so they are included in the binary package?
>
> Have a look at pkgsrc/Packages.txt and read the "Configuration files
> handling and placement" section. The files are generally installed "under
> share/examples/${PKGNAME} so PLIST can register them."
Thank you, this answers my question very nicely.
A patch to fix PR #20852 can be found at
http://netbsd.math.orst.edu/pkgsrc/sendmail.diff
All this patch does is avoid directly installing files in the system
configuration directory. It does not change where the sendmail package is
going to look for configuration files.
I think this fix is sufficient to close the PR. What do you think?
Ben
From: Ben Collver <ben@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/20852 CVS commit: pkgsrc/mail/sendmail
Date: Tue, 2 Dec 2003 05:45:12 +0000 (UTC)
Module Name: pkgsrc
Committed By: ben
Date: Tue Dec 2 05:45:12 UTC 2003
Modified Files:
pkgsrc/mail/sendmail: Makefile distinfo
pkgsrc/mail/sendmail/patches: patch-aa
Log Message:
This package would install a directory and two files on the build machine
that do make it into the binary package. Under the default configuration
on NetBSD these files are erroneous. This fix should resolve PR 20852
Here are the details:
1) /etc/mail/statistics
This file is created like so:
statistics:
${CP} /dev/null statistics
This file is not needed because sendmail is configured to use:
O StatusFile=/var/log/sendmail.st
To avoid creating this file, I added to devtools/OS/NetBSD:
define(`confNO_STATISTICS_INSTALL', `')
2) /etc/mail/submit.cf
This file is not needed because we install it as:
${PREFIX}/share/sendmail/cf/submit.cf
To avoid installing /etc/mail/submit.cf, I added to devtools/OS/NetBSD:
define(`confINST_DEP', `')
If confINST_DEP is undefined, then it will default to:
`${DESTDIR}/etc/mail/submit.cf ${DESTDIR}${MSPQ}'
3) /var/db/pkg/sendmail-8.12.8nb1/+INSTALL
This is now created by pkg_add with the binary package.
It appears the problem is resolved.
4) /var/spool/clientmqueue
This directory is not needed because sendmail is configured to use:
O QueueDirectory=/var/spool/mqueue
To avoid installing this directory, I added to devtools/OS/NetBSD:
define(`confINST_DEP', `')
To generate a diff of this commit:
cvs rdiff -r1.64 -r1.65 pkgsrc/mail/sendmail/Makefile
cvs rdiff -r1.13 -r1.14 pkgsrc/mail/sendmail/distinfo
cvs rdiff -r1.15 -r1.16 pkgsrc/mail/sendmail/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Ben Collver <ben@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/20852 CVS commit: pkgsrc/doc
Date: Tue, 2 Dec 2003 05:49:48 +0000 (UTC)
Module Name: pkgsrc
Committed By: ben
Date: Tue Dec 2 05:49:48 UTC 2003
Modified Files:
pkgsrc/doc: CHANGES
Log Message:
Note bump in mail/sendmail PKGREVISION regarding fix for PR 20852.
To generate a diff of this commit:
cvs rdiff -r1.3890 -r1.3891 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: ben
State-Changed-When: Tue Dec 2 05:52:25 UTC 2003
State-Changed-Why:
Thank you for your PR. Could you update pkgsrc/mail/sendmail and confirm
that the fix works to your satisfaction?
Kind Regards,
Ben
From: Ben Collver <ben@netbsd.org>
To: Jim Bernard <jbernard@mines.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/20852 CVS commit: pkgsrc/mail/sendmail
Date: Tue, 2 Dec 2003 07:32:25 -0800
On Tue, Dec 02, 2003 at 08:12:46AM -0700, Jim Bernard wrote:
> On Tue, Dec 02, 2003 at 05:45:12AM +0000, Ben Collver wrote:
> > 2) /etc/mail/submit.cf
> > This file is not needed because we install it as:
> > ${PREFIX}/share/sendmail/cf/submit.cf
> >
> > To avoid installing /etc/mail/submit.cf, I added
> > define(`confINST_DEP', `')
> >
> > If confINST_DEP is undefined, then it will default to:
> > `${DESTDIR}/etc/mail/submit.cf ${DESTDIR}${MSPQ}'
>
> I'm not sure I understand this. For sendmail in the base system, there's an
> /etc/mail/submit.cf (added by the user or installed from the etc set), and
> there's a /usr/share/sendmail/cf/submit.mc, but no
> /usr/share/sendmail/cf/submit.cf. So, why should the pkg install submit.cf in
> the latter location? Shouldn't it go in either /etc/mail or ${PREFIX}/etc/mail
> (or possibly elsewhere), depending on the setting of PKG_SYSCONFBASE?
I honestly don't know where it *should* be. I asked about this on
tech-pkg, and was told to have a look at pkgsrc/Packages.txt and read the
"Configuration files handling and placement" section, where it says the
files are generally installed "under share/examples/${PKGNAME} so PLIST can
register them." I saw mail/sendmail already installs submit.cf under
${PREFIX}/share/sendmail/cf/ and figured I would leave it alone. Should we
ask about this on tech-pkg again?
> > 4) /var/spool/clientmqueue
> > This directory is not needed because sendmail is configured to use:
> > O QueueDirectory=/var/spool/mqueue
> >
> > To avoid installing this directory, I added to devtools/OS/NetBSD:
> > define(`confINST_DEP', `')
>
> Are you sure this is right? The mail submission program (smmsp) uses
> /var/spool/clientmqueue (set in submit.cf), and the MTA uses /var/spool/mqueue
> (set in sendmail.cf), at least in the base system. Shouldn't the pkg do the
> same?
You are right, I overlooked that it is configured through submit.cf to use
/var/spool/clientmqueue, both in the base system and in the package.
Coincidentally the base system doesn't create /var/spool/clientmqueue, so
my change caused the package to be consistent with the base system.
Ben
--
NetBSD: It's everywhere you want to be.
From: Jim Bernard <jbernard@mines.edu>
To: Ben Collver <ben@netbsd.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/20852 CVS commit: pkgsrc/mail/sendmail
Date: Tue, 2 Dec 2003 09:57:32 -0700
On Tue, Dec 02, 2003 at 07:32:25AM -0800, Ben Collver wrote:
> I honestly don't know where it *should* be. I asked about this on
> tech-pkg, and was told to have a look at pkgsrc/Packages.txt and read the
> "Configuration files handling and placement" section, where it says the
> files are generally installed "under share/examples/${PKGNAME} so PLIST can
> register them." I saw mail/sendmail already installs submit.cf under
> ${PREFIX}/share/sendmail/cf/ and figured I would leave it alone. Should we
> ask about this on tech-pkg again?
Hmmm, it looks like the base installation puts the netbsd .cf files in
/usr/share/sendmail/cf, rather than /usr/share/examples/sendmail. (My
original comment that there was no submit.cf there was evidently beside
the point, since netbsd-msp.cf _is_ the netbsd submit.cf.) So maybe it's
best to live with that convention, rather than separating the config source
files and the config example files, though it is generally nicer to put
examples in the examples directory. But you might want to name the .cf
files in the same way that the base system does, netbsd-msp.cf and
netbsd-proto.cf, rather than submit.cf and sendmail.cf.
There is also the question of whether the pkg should actually install
the submit.cf and sendmail.cf files (I don't know whether it already does)
on a system where they don't already exist, such as an older system that
shipped with a version of sendmail that didn't use separate MSP and MTA
processes, which wouldn't have an /etc/submit.cf. But it's important not
to overwrite any existing config files. If pkgsrc is installing config
files into ${PREFIX}/etc, then in many cases there won't be preexisting
config files there, but even then there could be, since deinstalling the
pkg shouldn't delete them. Since these files are included in the etc set as
/etc/mail/{sendmail,submit}.cf, it seems reasonable to go ahead and install
them if there are no existing config files in ${PKG_SYSCONFBASE}/mail.
> You are right, I overlooked that it is configured through submit.cf to use
> /var/spool/clientmqueue, both in the base system and in the package.
> Coincidentally the base system doesn't create /var/spool/clientmqueue, so
> my change caused the package to be consistent with the base system.
Actually, I just checked my last -current userland build (11/5), and it did
create both ${DESTDIR}/var/spool/mqueue and ${DESTDIR}/var/spool/clientmqueue.
Also, they both appear in /etc/mtree/special. So, while it shouldn't matter
much, given that an installation of the base system should already have those
directories, it's probably a good idea for the pkg to make sure they exist
or are created. That's especially true for older installations that shipped
with a version of sendmail that didn't use /var/spool/clientmqueue.
--Jim
From: Ben Collver <collver1@comcast.net>
To: Jim Bernard <jbernard@mines.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/20852 CVS commit: pkgsrc/mail/sendmail
Date: Tue, 2 Dec 2003 20:09:07 -0800
I've backed out my change, and I will leave fixing this PR to people who
actually know what they are doing.
My apologies,
Ben
--
NetBSD: It's everywhere you want to be.
State-Changed-From-To: feedback->open
State-Changed-By: wiz
State-Changed-When: Wed Dec 3 08:02:31 UTC 2003
State-Changed-Why:
Change backed out -- put back into open state.
Responsible-Changed-From-To: pkg-manager->adrianp
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Fri, 25 Mar 2005 12:00:49 +0000
Responsible-Changed-Why:
Over to maintainer.
Responsible-Changed-From-To: adrianp->tv
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 07 Oct 2006 19:06:15 +0000
Responsible-Changed-Why:
New maintainer for the package. Perhaps this one has time
to fix the problem...
From: Todd Vierling <tv@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/20852 CVS commit: pkgsrc/mail/sendmail
Date: Thu, 12 Oct 2006 21:04:27 +0000 (UTC)
Module Name: pkgsrc
Committed By: tv
Date: Thu Oct 12 21:04:27 UTC 2006
Modified Files:
pkgsrc/mail/sendmail: MESSAGE Makefile Makefile.common
pkgsrc/mail/sendmail/files: site.config.m4
Log Message:
8.13.8nb2:
Don't install .cf files to /etc/mail directly at all; offer a message
about how to install them instead. Don't create /etc/mail/statistics.
Create mqueue dirs at install via MAKE_DIRS. Should fix PR pkg/20852.
Make sure SMRSH_CMDDIR gets to the compile defs. Fixes PR pkg/34513.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/mail/sendmail/MESSAGE
cvs rdiff -r1.92 -r1.93 pkgsrc/mail/sendmail/Makefile
cvs rdiff -r1.38 -r1.39 pkgsrc/mail/sendmail/Makefile.common
cvs rdiff -r1.5 -r1.6 pkgsrc/mail/sendmail/files/site.config.m4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: tv@netbsd.org
State-Changed-When: Thu, 12 Oct 2006 21:09:12 +0000
State-Changed-Why:
Please confirm that sendmail-8.13.8nb2 (or later) fixes the problem.
From: Todd Vierling <tv@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/20852 CVS commit: pkgsrc/mail/sendmail812
Date: Thu, 12 Oct 2006 21:05:26 +0000 (UTC)
Module Name: pkgsrc
Committed By: tv
Date: Thu Oct 12 21:05:26 UTC 2006
Modified Files:
pkgsrc/mail/sendmail812: MESSAGE Makefile Makefile.common PLIST
pkgsrc/mail/sendmail812/files: site.config.m4
Log Message:
8.12.11nb5:
Don't install .cf files to /etc/mail directly at all; offer a message
about how to install them instead. Don't create /etc/mail/statistics.
Create mqueue dirs at install via MAKE_DIRS. Should fix PR pkg/20852.
While here, fixup manpages to act like mail/sendmail so that they are
uniform across build platforms.
To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/mail/sendmail812/MESSAGE \
pkgsrc/mail/sendmail812/PLIST
cvs rdiff -r1.13 -r1.14 pkgsrc/mail/sendmail812/Makefile
cvs rdiff -r1.12 -r1.13 pkgsrc/mail/sendmail812/Makefile.common
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/mail/sendmail812/files/site.config.m4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: joerg@netbsd.org
State-Changed-When: Fri, 22 Dec 2006 20:43:27 +0000
State-Changed-Why:
Feedback time out, no issue reported in bulk builds.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.