NetBSD Problem Report #54545

From hf@nt.tu-darmstadt.de  Fri Sep 13 15:47:59 2019
Return-Path: <hf@nt.tu-darmstadt.de>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BDEDE7A1B2
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Sep 2019 15:47:59 +0000 (UTC)
Message-Id: <201909131547.x8DFlqWg003561@Hochobir.nt.e-technik.tu-darmstadt.de>
Date: Fri, 13 Sep 2019 17:47:52 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: lang/perl5 build fails
X-Send-Pr-Version: 3.95

>Number:         54545
>Category:       pkg
>Synopsis:       lang/perl5 build fails
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    cjep
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 13 15:50:00 +0000 2019
>Closed-Date:    Sun Feb 14 17:14:26 +0000 2021
>Last-Modified:  Sun Feb 14 17:14:26 +0000 2021
>Originator:     Hauke Fath
>Release:        NetBSD 7.2_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Hochobir 7.2_STABLE NetBSD 7.2_STABLE (DMZ_DOMU) #1: Mon May 27 17:21:38 CEST 2019 hf@Hochstuhl:/var/obj/netbsd-builds/7/amd64/sys/arch/amd64/compile/DMZ_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:

	On netbsd-7, lang/perl5 fails to build with

[...]
=> Checking for missing run-time search paths in perl-5.30.0
WARNING: Skipping check for SSP in DESTDIR mode.
=> Checking for work-directory references in perl-5.30.0
ERROR: /usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/CORE/config.h:      #define LOC_SED         "/var/obj/pkgsrc/lang/perl5/work/.tools/bin/sed"        /**/
ERROR: /usr/pkg/lib/perl5/5.30.0/x86_64-netbsd-thread-multi/Config_heavy.pl:    full_sed='/var/obj/pkgsrc/lang/perl5/work/.tools/bin/sed'
ERROR: *** The above files still have references to the build directory.
ERROR:     This is possibly an error that should be fixed by unwrapping
ERROR:     the files or adding missing tools to the package makefile!
*** Error code 1

%  make show-all | grep sed
                                SED=/usr/bin/sed \
                                /usr/bin/sed \
                                /usr/bin/sed \
                                s,@TOOLS_SED@,/usr/bin/sed,g \
                                /usr/bin/sed \
                                /usr/bin/sed \
                                /usr/bin/sed \
                                sed \
                                sed \
                                sed \
                                sed \
                                sed:pkgsrc \
                                sed \
  sys   TOOLS_ALIASES.sed=      sed
  sys   TOOLS_ARGS.sed=         # empty
  sys   TOOLS_CMD.sed=          
/var/obj/pkgsrc/lang/perl5/work/.tools/bin/sed
  sys   TOOLS_DEPENDS.sed       # undefined
  sys   TOOLS_IGNORE.sed        # undefined
  sys   TOOLS_PATH.sed=         /usr/bin/sed
  sys   TOOLS_PLATFORM.sed=     /usr/bin/sed
  sys   TOOLS_SCRIPT.sed        # undefined
  sys   TOOLS_SCRIPT_DFLT.sed=  /usr/bin/sed  "$@"
  sys   TOOLS_VALUE_GNU.sed     # undefined
%  make debug | fgrep sed
        SED=/usr/bin/sed
        #define LOC_SED         
"/var/obj/pkgsrc/lang/perl5/work/.tools/bin/sed"        /**/
        #define Timeval struct timeval  /* Structure used by 
gettimeofday() */
%

	This used to work. No idea why the build system started to use
	sed from WRKDIR/.tools/.



>How-To-Repeat:
	Build perl5 pkg on netbsd-7.

>Fix:
	Yes, please - a pkgsrc update doesn't get far without building perl.



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cjep
Responsible-Changed-By: cjep@NetBSD.org
Responsible-Changed-When: Sun, 14 Feb 2021 17:14:26 +0000
Responsible-Changed-Why:
Taking this and cleaning up old PRs


State-Changed-From-To: open->closed
State-Changed-By: cjep@NetBSD.org
State-Changed-When: Sun, 14 Feb 2021 17:14:26 +0000
State-Changed-Why:
Hi Hauke - apologies for the delay. I've just built the latest perl pkg
on NetBSD/amd64 9.1 and it builds fine. I suspect given the time that
has lapsed the problem has just gone away. Please ping me direct or reopen
the PR if you are still having issues. Kind regards, Chris


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.