NetBSD Problem Report #45643

From river@TCX.ORG.UK  Tue Nov 22 23:26:59 2011
Return-Path: <river@TCX.ORG.UK>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 6E63963C3D5
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Nov 2011 23:26:59 +0000 (UTC)
Message-Id: <20111122232656.68D9440FA3@tamara.tcx.org.uk>
Date: Tue, 22 Nov 2011 23:26:56 +0000 (GMT)
From: river@TCX.ORG.UK
Reply-To: river@TCX.ORG.UK
To: gnats-bugs@gnats.NetBSD.org
Subject: mail/procmail 'make package' fails
X-Send-Pr-Version: 3.95

>Number:         45643
>Category:       pkg
>Synopsis:       mail/procmail 'make package' fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kim
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 22 23:30:00 +0000 2011
>Last-Modified:  Wed Nov 23 04:24:30 +0000 2011
>Originator:     River Tarnell
>Release:        NetBSD 5.1.0_PATCH
>Organization:
TCX.ORG.UK
>Environment:
System: NetBSD tamara.tcx.org.uk 5.1.0_PATCH NetBSD 5.1.0_PATCH (TAMARA) #2: Thu Aug 4 18:30:08 UTC 2011 root@tamara.tcx.org.uk:/usr/src/sys/arch/amd64/compile/TAMARA amd64
Architecture: x86_64
Machine: amd64
pkgsrc-2011Q3
>Description:
mail/procmail build fails when using destdir:

cp new/procmail new/lockfile new/formail new/mailstat /usr/pkgsrc/mail/procmail/work/.destdir/usr/pkg/bin
chown root ${DESTDIR}/usr/pkg/bin/procmail
chgrp 1018 ${DESTDIR}/usr/pkg/bin/procmail ${DESTDIR}/usr/pkg/bin/lockfile
chmod 6755 ${DESTDIR}/usr/pkg/bin/procmail
chmod 2755 ${DESTDIR}/usr/pkg/bin/lockfile
chmod g+w ${DESTDIR}/var/mail//.
chmod: /usr/pkgsrc/mail/procmail/work/.destdir/var/mail//.: No such file or directory
*** Error code 1

>How-To-Repeat:
cd /usr/pkgsrc/mail/procmail; make package
>Fix:
Index: patches/patch-ad
===================================================================
RCS file: /cvsroot/pkgsrc/mail/procmail/patches/patch-ad,v
retrieving revision 1.4
diff -u -r1.4 patch-ad
--- patches/patch-ad    27 Jan 2010 18:14:05 -0000      1.4
+++ patches/patch-ad    20 Nov 2011 23:31:27 -0000
@@ -32,7 +32,7 @@
       goto nogchmod;
    if(chmdir)
 -     printf("chmod %c+w %s/.\n",chmdir==1?'g':'a',mailspooldir);
-+     printf("chmod %c+w ${DESTDIR}%s/.\n",chmdir==1?'g':'a',mailspooldir);
++     /*printf("chmod %c+w ${DESTDIR}%s/.\n",chmdir==1?'g':'a',mailspooldir);*/
  nogchmod:
    return EXIT_SUCCESS;
  }

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 23 Nov 2011 04:24:30 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.