From owner-freebsd-perl@freebsd.org Thu Sep 24 14:12:55 2015 Return-Path: Delivered-To: freebsd-perl@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82831A086B9 for ; Thu, 24 Sep 2015 14:12:55 +0000 (UTC) (envelope-from parv@pair.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6893713A4 for ; Thu, 24 Sep 2015 14:12:55 +0000 (UTC) (envelope-from parv@pair.com) Received: by mailman.ysv.freebsd.org (Postfix) id 651D1A086B8; Thu, 24 Sep 2015 14:12:55 +0000 (UTC) Delivered-To: perl@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63BA5A086B7 for ; Thu, 24 Sep 2015 14:12:55 +0000 (UTC) (envelope-from parv@pair.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.230]) by mx1.freebsd.org (Postfix) with ESMTP id 2C26E13A2 for ; Thu, 24 Sep 2015 14:12:54 +0000 (UTC) (envelope-from parv@pair.com) Received: from [66.91.233.235] ([66.91.233.235:11080] helo=holstein.holy.cow) by dnvrco-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id ED/27-08781-0E404065; Thu, 24 Sep 2015 14:12:48 +0000 Received: by holstein.holy.cow (Postfix, from userid 1000) id 87CFC703C; Thu, 24 Sep 2015 04:12:52 -1000 (HST) Date: Thu, 24 Sep 2015 04:12:52 -1000 From: parv@pair.com To: perl@freebsd.org Subject: Re: install looking in $WRKDIR/stage/*/site_perl/mach/5/ but */mach/5.20 exists Message-ID: <20150924141252.GA24279@holstein.holy.cow> References: <20150924131433.GA58316@holstein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150924131433.GA58316@holstein.holy.cow> X-RR-Connecting-IP: 107.14.64.142:25 X-Authority-Analysis: v=2.1 cv=Mo7c6gqe c=1 sm=1 tr=0 a=lTVOjstemKd+xnJOf5b3+g==:117 a=lTVOjstemKd+xnJOf5b3+g==:17 a=ayC55rCoAAAA:8 a=Ymsr-CWnAAAA:8 a=kj9zAlcOel0A:10 a=ff-B7xzCdYMA:10 a=Bs99wA1y8zQISNyPrAgA:9 a=CjuIK1q_8ugA:10 X-Cloudmark-Score: 0 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 14:12:55 -0000 In short, it was operator error. in message <20150924131433.GA58316@holstein.holy.cow>, wrote parv@p thusly... ... > pkg-static: Unable to access file \ > /misc/work/ports/misc/ports/devel/p5-subversion/work/stage/misc/local/lib/perl5/site_perl/mach/5/SVN/Repos.pm: \ > No such file or directory ... > So making a symbolic link from ... > > $WRKDIR/stage/misc/local/lib/perl5/site_perl/mach/5 > > ... to the directory actually existing ... > > $WRKDIR/stage/misc/local/lib/perl5/site_perl/mach/5.20 > > ... allows them to be installed but have to do for every one. I see that */mach/5 path is from SITE_ARCH variable (after reading pkg-plist) ... # make -V SITE_ARCH /misc/local/lib/perl5/site_perl/mach/5 ... which in turn is derived SITE_ARCH_REL from from PERL_VER /misc/ports/Mk/Uses/perl5.mk:# SITE_ARCH - Directory name where arch site specific perl packages go. /misc/ports/Mk/Uses/perl5.mk:SITE_ARCH_REL?= ${SITE_PERL_REL}/${PERL_ARCH}/${PERL_VER} /misc/ports/Mk/Uses/perl5.mk:SITE_ARCH?= ${LOCALBASE}/${SITE_ARCH_REL} /misc/ports/Mk/Uses/perl5.mk:QA_ENV+= SITE_ARCH_REL=${SITE_ARCH_REL} LIBPERL=libperl.so.${PERL_VER} /misc/ports/Mk/Uses/perl5.mk: SITE_ARCH=${SITE_ARCH_REL} /misc/ports/Mk/Uses/perl5.mk: --install_path arch="${PREFIX}/${SITE_ARCH_REL}" \ /misc/ports/Mk/Uses/perl5.mk:PACKLIST_DIR?= ${PREFIX}/${SITE_ARCH_REL}/auto ... which produces the "5" ... # make -V PERL_VER 5 ... oh, found the culprit (PERL_VERSION being 5.20 instead of 5.20.3 in /etc/make.conf) after seeing variable substitution ... Uses/perl5.mk 10 # PERL_VERSION - Full version of perl5 (see below for current value). 12 # PERL_VER - Short version of perl5 (major.minor without patchlevel) 16 # the patch level. E.g., PERL_VERSION=5.14.4 would give 47 .if defined(PERL_VERSION) 63 # Force PERL_PORT here in case two identical PERL_VERSION. 70 PERL_VER?= ${PERL_VERSION:C/\.[0-9]+$//} ... after reading Uses/perl5.mk further followed by bsd.default-versions.mk, I have removed (commented out) PERL_VERSION & PERL5_DEFAULT variables from (in) /etc/make.conf. That led to ... # make -V SITE_ARCH /misc/local/lib/perl5/site_perl/mach/5.20 WHEEEE! - parv --