NetBSD Problem Report #23735
Received: (qmail 29287 invoked by uid 605); 13 Dec 2003 20:45:59 -0000
Message-Id: <200312132045.hBDKjJnA007168@lain.ziaspace.com>
Date: Sat, 13 Dec 2003 15:45:19 -0500 (EST)
From: jklos@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jklos@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: pkgsrc sendmail does not handle non-pkg files during update
X-Send-Pr-Version: 3.95
>Number: 23735
>Category: pkg
>Synopsis: When updating pkgsrc sendmail,
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: cjep
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 13 20:46:00 +0000 2003
>Closed-Date: Wed Jun 23 11:02:25 +0000 2004
>Last-Modified: Wed Jun 23 11:03:00 +0000 2004
>Originator: John Klos
>Release: NetBSD 1.6.1_STABLE
>Organization:
>Environment:
System: NetBSD lain.ziaspace.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (LAIN-$Revision: 1.631 $) #0: Mon Oct 20 16:46:18 EDT 2003 john@lain.ziaspace.com:/usr/src/sys/arch/macppc/compile/LAIN macppc
Architecture: powerpc
Machine: macppc
>Description:
When one file was left in /usr/local/share/sendmail/feature, the following happened
from make update:
...
mailwrapper configuration file. The command below will do that for you:
ln -fs /usr/local/share/examples/sendmail/mailer.conf /etc/mailer.conf
===========================================================================
ls: /usr/local/share/sendmail/README: No such file or directory
ls: /usr/local/share/sendmail/cf/Build: No such file or directory
ls: /usr/local/share/sendmail/cf/Makefile: No such file or directory
ls: /usr/local/share/sendmail/cf/chez.cs.mc: No such file or directory
ls: /usr/local/share/sendmail/cf/clientproto.mc: No such file or directory
ls: /usr/local/share/sendmail/cf/cs-hpux10.mc: No such file or directory
...
Full pathname symlink `/usr/local/libexec/sendmail/sendmail' is target of
`/usr/local/bin/purgestat' - adjusting to `../libexec/sendmail/sendmail'
pkg_create: can't stat `/usr/local/share/sendmail/README'
pkg_create: can't stat `/usr/local/share/sendmail/cf/Build'
pkg_create: can't stat `/usr/local/share/sendmail/cf/Makefile'
pkg_create: can't stat `/usr/local/share/sendmail/cf/chez.cs.mc'
pkg_create: can't stat `/usr/local/share/sendmail/cf/clientproto.mc'
...
>How-To-Repeat:
Install pkgsrc/sendmail. Copy a file into /usr/(local pkg)/share/sendmail/feature/.
Run a "make update".
>Fix:
Fix the package.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: cjep
State-Changed-When: Mon Jun 7 15:46:05 UTC 2004
State-Changed-Why:
Does this bug still affect you? I cannot reproduce it on my system.
Responsible-Changed-From-To: pkg-manager->cjep
Responsible-Changed-By: cjep
Responsible-Changed-When: Mon Jun 7 15:46:05 UTC 2004
Responsible-Changed-Why:
I'll take this one.
State-Changed-From-To: feedback->open
State-Changed-By: cjep
State-Changed-When: Tue Jun 22 18:26:27 UTC 2004
State-Changed-Why:
I can now reproduce this on my system. hope to fix.
State-Changed-From-To: open->feedback
State-Changed-By: cjep
State-Changed-When: Tue Jun 22 18:46:17 UTC 2004
State-Changed-Why:
Please try this fix and let me know:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/sendmail/Makefile,v
retrieving revision 1.70
diff -u -u -r1.70 Makefile
--- Makefile 9 May 2004 21:14:43 -0000 1.70
+++ Makefile 22 Jun 2004 18:46:01 -0000
@@ -90,8 +90,9 @@
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sendmail
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/sendmail
${INSTALL_DATA} ${WRKDIR}/mailer.conf.sendmail ${PREFIX}/share/examples/sendmail/mailer.conf
- ${CP} -pr ${WRKSRC}/cf ${PREFIX}/share/sendmail
+ cd ${WRKSRC}/cf && ${PAX} -rw -pp -pm . ${PREFIX}/share/sendmail
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/sendmail
.if ${USE_DB2} == YES
${MV} -f /usr/sbin/makemap /usr/sbin/makemap.8.8 || ${TRUE}
It is possible that one will need to think again on this.
State-Changed-From-To: feedback->closed
State-Changed-By: cjep
State-Changed-When: Wed Jun 23 11:02:07 UTC 2004
State-Changed-Why:
originator has tested a patch for me.
From: Chris Pinnock <cjep@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/23735 CVS commit: pkgsrc/mail/sendmail
Date: Wed, 23 Jun 2004 11:02:02 +0000 (UTC)
Module Name: pkgsrc
Committed By: cjep
Date: Wed Jun 23 11:02:02 UTC 2004
Modified Files:
pkgsrc/mail/sendmail: Makefile PLIST
Log Message:
Handle installation of PREFIX/share/sendmail better. Fixes PR#23735
To generate a diff of this commit:
cvs rdiff -r1.70 -r1.71 pkgsrc/mail/sendmail/Makefile
cvs rdiff -r1.6 -r1.7 pkgsrc/mail/sendmail/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
if any files are left in any install directory, installation blows up.
(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.