NetBSD Problem Report #41646

From tlyu@MIT.EDU  Sun Jun 28 22:18:59 2009
Return-Path: <tlyu@MIT.EDU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5DCBF63B946
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Jun 2009 22:18:59 +0000 (UTC)
Message-Id: <ldv1vp4rohd.fsf@cathode-dark-space.mit.edu>
Date: Sun, 28 Jun 2009 18:18:54 -0400
From: Tom Yu <tlyu@MIT.EDU>
Reply-To: tlyu@MIT.EDU
To: gnats-bugs@gnats.NetBSD.org
Subject: [patch] graphics/graphviz PLIST should use PERL5_SUB_INSTALLVENDORARCH
X-Send-Pr-Version: 3.95

>Number:         41646
>Category:       pkg
>Synopsis:       [patch] graphics/graphviz PLIST should use PERL5_SUB_INSTALLVENDORARCH
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 28 22:20:01 +0000 2009
>Closed-Date:    Sun Jul 05 10:15:49 +0000 2009
>Last-Modified:  Sun Jul 05 10:20:02 +0000 2009
>Originator:     Tom Yu
>Release:        pkgsrc trunk 20090626
>Organization:

>Environment:
Darwin SPARK-GAP.MIT.EDU 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
>Description:
Building the package for graphics/graphviz on Mac OS X 10.5.7 (Intel)
fails because the PLIST tries to explicitly construct the equivalent
of PERL5_SUB_INSTALLVENDORARCH instead of actually using that
variable.  The build outputs errors such as

pkg_create: can't stat `/usr/pkg/lib/perl5/vendor_perl/5.10.0/i386-darwin-thread-multi/gv.pm'
pkg_create: can't stat `/usr/pkg/lib/perl5/vendor_perl/5.10.0/i386-darwin-thread-multi/gv.so'

The arch component of the pathname should actually be
"darwin-thread-multi-2level".  The PLIST should use the
PERL5_SUB_INSTALLVENDORARCH variable instead, which lang/perl5/vars.mk
already sets correctly.  (graphics/graphiviz/options.mk includes
lang/perl5/buildlink3.mk which includes lang/perl5/vars.mk when
building with perl)

>How-To-Repeat:
Attempt to "bmake package" in graphics/graphviz on Mac OS X 10.5.7
(Intel), or probably in other Mac OS X environments as well.

>Fix:
Patch the PLIST as follows:

Index: graphics/graphviz/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/graphviz/PLIST,v
retrieving revision 1.34
diff -u -r1.34 PLIST
--- graphics/graphviz/PLIST	14 Jun 2009 20:05:42 -0000	1.34
+++ graphics/graphviz/PLIST	28 Jun 2009 21:57:51 -0000
@@ -88,8 +88,8 @@
 lib/libgraph.la
 lib/libgvc.la
 lib/libpathplan.la
-${PLIST.perl}lib/perl5/vendor_perl/5.10.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/gv.pm
-${PLIST.perl}lib/perl5/vendor_perl/5.10.0/${MACHINE_ARCH}-${LOWER_OPSYS}-thread-multi/gv.so
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.pm
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.so
 lib/pkgconfig/libcdt.pc
 lib/pkgconfig/libcgraph.pc
 lib/pkgconfig/libgraph.pc

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 05 Jul 2009 10:15:49 +0000
State-Changed-Why:
Patch applied.  Thanks!


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41646 CVS commit: pkgsrc/graphics/graphviz
Date: Sun, 5 Jul 2009 10:15:02 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul  5 10:15:02 UTC 2009

 Modified Files:
 	pkgsrc/graphics/graphviz: PLIST

 Log Message:
 Use ${PERL5_SUB_INSTALLVENDORARCH} in PLIST.
 Fixes PLIST mismatch on Darwin reported in PR 41646.


 To generate a diff of this commit:
 cvs rdiff -u -r1.34 -r1.35 pkgsrc/graphics/graphviz/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.