Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Apr 2020 21:52:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245438] Mk/Scripts/do-depends.sh fails to propagate DEBUG_MK_* environment variables to find-lib.sh
Message-ID:  <bug-245438-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245438

            Bug ID: 245438
           Summary: Mk/Scripts/do-depends.sh fails to propagate DEBUG_MK_*
                    environment variables to find-lib.sh
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mrT1188123@gmail.com

Revision 531029: /head/Mk/Scripts/do-depends.sh
When building a port with make DEBUG_MK_SCRIPTS=3D1
                     or   make DEBUG_MK_SCRIPTS_FIND_LIB=3D1
when Mk/Scripts/do-depends.sh is called=20
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_FIND_LIB}" ] && set -x
and the shell tracing works as expected. (set -x)

However, when do-depends.sh calls sub-script: Mk/Scripts/find-lib.sh
there is no shell tracing for find-lib.sh

I believe the the cause is in Mk/Scripts/do-depends.sh
find_lib()
{ ...=20
  libfile=3D$(env -i PATH=3D"${PATH}" LIB_DIRS=3D"${dp_LIB_DIRS}"
LOCALBASE=3D"${dp_LOCALBASE}" ${dp_SH} ${dp_SCRIPTSDIR}/find-lib.sh $1)
  ...
}

When ports calls Mk/Scripts/do-depends.sh
from: Mk/bsd.port.mk
it is using:   ${SETENV} \
                        dp_RAWDEPENDS=3D"${${deptype}_DEPENDS}" \
                        dp_DEPTYPE=3D"${deptype}_DEPENDS" \
                             ...
                        ${SH} ${SCRIPTSDIR}/do-depends.sh

SETENV =3D /usr/bin/env

NOTE: I tried to use the 'preview' tab but it does not seem to be working,
      only get a blank description box.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245438-7788>