NetBSD Problem Report #51157

From www@NetBSD.org  Sun May 22 12:04:02 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3BB347A3D4
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 May 2016 12:04:02 +0000 (UTC)
Message-Id: <20160522120401.58CA67AAA6@mollari.NetBSD.org>
Date: Sun, 22 May 2016 12:04:01 +0000 (UTC)
From: triaxx@triaxx.org
Reply-To: triaxx@triaxx.org
To: gnats-bugs@NetBSD.org
Subject: EVAL_PREFIX does not work
X-Send-Pr-Version: www-1.0

>Number:         51157
>Category:       pkg
>Synopsis:       EVAL_PREFIX does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 22 12:05:00 +0000 2016
>Closed-Date:    Sun Apr 29 03:34:09 +0000 2018
>Last-Modified:  Sun Apr 29 03:34:09 +0000 2018
>Originator:     Frédéric Fauberteau
>Release:        pkgsrc-2016Q1
>Organization:
>Environment:
NetBSD trashware 7.0_STABLE NetBSD 7.0_STABLE (TRASHWARE) #1: Sat Dec  5 19:26:52 CET 2015  triaxx@hydralisk:/home/triaxx/dev/nbsd/netbsd-7/usr/objs/sys/arch/amd64/compile/TRASHWARE amd64
>Description:
I tried to change a package using EVAL_PREFIX but this variable does not seem used any more (grep -R "EVAL_PREFIX" /usr/pkgsrc/mk/* gives nothing).

For instance /usr/pkgsrc/mk/compiler/f2c:
--- pkgsrc/mk/compiler/f2c.mk	2013/05/09 23:37:26	1.16
+++ pkgsrc/mk/compiler/f2c.mk	2015/11/25 13:05:47	1.17
@@ -60,9 +60,6 @@ _USE_F2C=	YES
 .if !empty(_USE_F2C:M[yY][eE][sS])
 USE_LANGUAGES+=		c

-EVAL_PREFIX+=		_F2CBASE=f2c
-_F2CBASE_DEFAULT=	${LOCALBASE}
-
 _F2C_DIR=	${WRKDIR}/.f2c
 _F2C_VARS=	# empty
 .  if !empty(_LANGUAGES.f2c:Mfortran) || !empty(_LANGUAGES.f2c:Mfortran77)
@@ -70,7 +67,7 @@ PKG_FC?=	${FC}
 _F2C_VARS+=	FC
 _F2C_FC:=	${_F2C_DIR}/bin/${PKG_FC:T}
 _ALIASES.FC+=	f77 g77 f2c-f77
-FCPATH=		${_F2CBASE}/bin/f2c-f77
+FCPATH=		${LOCALBASE}/bin/f2c-f77

Then I replaced EVAL_PREFIX by LOCALBASE but pkglint tells me that the LOCALBASE variable should not be used by packages and gives me some examples using EVAL_PREFIX. EVAL_PREFIX is also described in the pkgsrc guide.

Either pkgsrc is broken or both pkglint and documentation has to be fixed.


>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 29 Apr 2018 03:34:09 +0000
State-Changed-Why:
EVAL_PREFIX was removed in 2015 - see the thread "Removing find-prefix
infrastructure" in tech-pkg starting on 20151001.

It got removed from the guide as well (eventually).


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.