NetBSD Problem Report #58045

From www@netbsd.org  Sun Mar 17 00:51:04 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 767251A924E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 17 Mar 2024 00:51:04 +0000 (UTC)
Message-Id: <20240317005103.0694A1A924F@mollari.NetBSD.org>
Date: Sun, 17 Mar 2024 00:51:02 +0000 (UTC)
From: mdehling@gmail.com
Reply-To: mdehling@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/lldb fails to build
X-Send-Pr-Version: www-1.0

>Number:         58045
>Category:       pkg
>Synopsis:       devel/lldb fails to build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 17 00:55:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Fri Apr 26 20:10:01 +0000 2024
>Originator:     Malte Dehling
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD x230.local 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Mon Aug  7 23:48:31 UTC 2023  root@x230.local:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Trying to build devel/lldb fails with the following error (same result with or without the curses option):

CMake Error at /scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMExports.cmake:64 (set_target_properties):
  The link interface of target "LLVMSupport" contains:

    Terminfo::terminfo

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:344 (include)
  cmake/modules/LLDBStandalone.cmake:9 (find_package)
  CMakeLists.txt:37 (include)
>How-To-Repeat:
Try to build devel/lldb.
>Fix:
I don't know how to fix this.

>Release-Note:

>Audit-Trail:
From: Malte Dehling <mdehling@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkgsrc-bugs@netbsd.org
Subject: RE: pkg/58045: devel/lldb fails to build
Date: Tue, 19 Mar 2024 12:39:12 -0700

 --000000000000fcaa27061408a058
 Content-Type: text/plain; charset="UTF-8"

 Hi,

 I've been trying to build current devel/lldb but without success, and
 based on https://releng.netbsd.org/bulktracker/devel/lldb I'm not the
 only one.  In fact it looks like the only successful recent builds are
 on MacOS.

 As per my initial bug report, the build fails with this CMake error:

     [...]
     -- Performing Test Terminfo_LINKABLE
     -- Performing Test Terminfo_LINKABLE - Failed
     -- Could NOT find Terminfo (missing: Terminfo_LINKABLE)

     [...]

     CMake Error at
 /scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMExports.cmake:64
 (set_target_properties):
       The link interface of target "LLVMSupport" contains:

         Terminfo::terminfo

       but the target was not found.  Possible reasons include:

         * There is a typo in the target name.
         * A find_package call is missing for an IMPORTED target.
         * An ALIAS target is missing.

     Call Stack (most recent call first):
       /scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:344
 (include)
       cmake/modules/LLDBStandalone.cmake:9 (find_package)
       CMakeLists.txt:37 (include)

 I added this line to devel/lldb/Makefile

     CMAKE_ARGS+=	--debug-trycompile

 and had a look at the CMakeConfigureLog.yaml file left behind:

     -
       kind: "try_compile-v1"
       backtrace:
         - "/pkg/share/cmake-3.28/Modules/Internal/CheckSourceCompiles.cmake:101
 (try_compile)"
         - "/pkg/share/cmake-3.28/Modules/CheckCSourceCompiles.cmake:52
 (cmake_check_source_compiles)"
         - "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/FindTerminfo.cmake:21
 (check_c_source_compiles)"
         - "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:263
 (find_package)"
         - "cmake/modules/LLDBStandalone.cmake:9 (find_package)"
         - "CMakeLists.txt:37 (include)"
       checks:
         - "Performing Test Terminfo_LINKABLE"
       directories:
         source:
 "/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
         binary:
 "/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
       cmakeVariables:
         CMAKE_C_FLAGS: "-O2 -I/usr/include/readline -I/usr/include
 -I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
 -I/pkg/include/python3.10"
         CMAKE_C_FLAGS_DEBUG: "-g"
         CMAKE_EXE_LINKER_FLAGS: "-Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
 -L/pkg/lib -Wl,-R/pkg/lib"
         CMAKE_MODULE_PATH:
 "/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake/modules;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/../cmake/Modules;/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm"
       buildResult:
         variable: "Terminfo_LINKABLE"
         cached: true
         stdout: |
           Change Dir:
 '/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3'

           Run Build Command(s): /pkg/bin/cmake -E env VERBOSE=1
 /pkg/bin/gmake -f Makefile cmTC_627fa/fast
           make  -f CMakeFiles/cmTC_627fa.dir/build.make
 CMakeFiles/cmTC_627fa.dir/build
           Building C object CMakeFiles/cmTC_627fa.dir/src.c.o
           /scratch/pkg/devel/lldb/work/.cwrapper/bin/cc
 -DTerminfo_LINKABLE  -O2 -I/usr/include/readline -I/usr/include
 -I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
 -I/pkg/include/python3.10 -o CMakeFiles/cmTC_627fa.dir/src.c.o -c
 /scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3/src.c
           Linking C executable cmTC_627fa
           /pkg/bin/cmake -E cmake_link_script
 CMakeFiles/cmTC_627fa.dir/link.txt --verbose=1
           /scratch/pkg/devel/lldb/work/.cwrapper/bin/cc -O2
 -I/usr/include/readline -I/usr/include -I/pkg/include
 -I/pkg/include/ncurses -I/pkg/include/lua-5.3
 -I/pkg/include/python3.10  -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
 -L/pkg/lib -Wl,-R/pkg/lib  CMakeFiles/cmTC_627fa.dir/src.c.o -o
 cmTC_627fa  /usr/lib/libterminfo.so
           ld: CMakeFiles/cmTC_627fa.dir/src.c.o: in function `main':
           src.c:(.text.startup+0x7): undefined reference to `setupterm'
           *** Error code 1

           Stop.
           make[1]: stopped in
 /scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3
           gmake: *** [Makefile:127: cmTC_627fa/fast] Error 1

         exitCode: 2

 Manually running 'gcc src.c.o /usr/lib/libterminfo.so' works just fine
 so I'm not sure why this fails.

 Anyone know what's going on and how to fix this?

 Cheers,
 -- 
 Malte Dehling

 --000000000000fcaa27061408a058
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Disposition: attachment; filename="signature.asc"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: 4d40b44f3a3f2723_0.1

 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUFCQ0FBZEZpRUVva3ZsOUFOMEFo
 T05jQXdlSzhMazZxS3dkMFFGQW1YNTZlOEFDZ2tRSzhMazZxS3cKZDBSMjRRLy9Wbmo4d0oyMWFG
 dW81dDFGblVUdFF2V3NoeFpGOTQ1Y0N1RVR5MU5VWkVHVlZHRkVWNEFMbmZkZApBTTJUYmtuQ3Uv
 eS9HRi9WWi9MRXd2N1FmcEhGbnlmSS90WXNBejMrK0c1OXB1VHRLakxKZFltb25IL29LeFF4Ckl5
 cnNxa3hkZzM4UUlhWDJ6VjdTWWFsOVNtUTNOcldzUTR1VGdXNlZEUGR3VWtkcjdwc2V4cFM0MHJm
 RVRKa2cKeENJV0dGRnRTcmxPSUllcWo0UnBmcmp4U2tUai9DMWxYak1hME9zeDJGa1hURjZEUnE2
 Z21RNXNPTHovb3doMwowM016MjFtV05IM042ME9yOUtlaHMxbzhibVJTT2xyWmJ1eURUMkxhclhm
 Z1NjMDVnNkxzZE1aOVhIcVloM0hFCjZlRi85ZHJmbjhMMFpzeDNrVXFwS0xtMkxxYk1DQUIyc2gw
 cWlEQTFyQWhJR1JkTXM0M2ZDdmIvMjE3NEp3dzcKNFI1cFE5QWNTa2RJbHpDYWR2L2l4NFRGV2Jq
 S1VveE41TGZhdWdFMGpoZlFrUXhVN3VveHE2VGdYeU5CZTRVVQpsYjZxeWlSQ1ArU3lRbkw0Zkxn
 NXdlVDJUWlVVTHhsV0hEMVV1RzNHdEl2OXdVc3BEZzF4Um9IY2hGREE4T1M5CnNSallkTEx1UVRH
 a0RDdmk5L2c2U2dGMXN2RDFvZWtXN0g0bGhDcFp4Y2IrelJscmEwK3V5SVhBRmdhS01nREMKdWN6
 SDFUVHlRNnBZcFA3dnNic0RyVXZrT0FhQUhYbWRNeXdWamlCK0VKQStockYxZ05sdXFiQ1hZRStV
 SEtLZwpWUVRncHhuaVV0UmpjYnBxemRVS1hYKzVYaFlKNWt0aVlKUkJYWXZaNDlQWVBldDFJN0k9
 Cj1tT2hxCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQo=
 --000000000000fcaa27061408a058--

From: Nikita Ronja Gillmann <nikita@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Tue, 23 Apr 2024 11:05:00 +0200

 This persists with 17.x, in pbulk:

 ===> Creating toolchain wrappers for lldb-17.0.6
 ERROR: ncurses>=5.3nb1 is not installed; can't buildlink files.
 *** Error code 1

 Stop.
 make[1]: stopped in /usr/pkgsrc/devel/lldb
 *** Error code 1

 Stop.
 make: stopped in /usr/pkgsrc/devel/lldb

 Malte Dehling transcribed 5.9K bytes:
 >Hi,
 >
 >I've been trying to build current devel/lldb but without success, and
 >based on https://releng.netbsd.org/bulktracker/devel/lldb I'm not the
 >only one.  In fact it looks like the only successful recent builds are
 >on MacOS.
 >
 >As per my initial bug report, the build fails with this CMake error:
 >
 >    [...]
 >    -- Performing Test Terminfo_LINKABLE
 >    -- Performing Test Terminfo_LINKABLE - Failed
 >    -- Could NOT find Terminfo (missing: Terminfo_LINKABLE)
 >
 >    [...]
 >
 >    CMake Error at
 >/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMExports.cmake:64
 >(set_target_properties):
 >      The link interface of target "LLVMSupport" contains:
 >
 >        Terminfo::terminfo
 >
 >      but the target was not found.  Possible reasons include:
 >
 >        * There is a typo in the target name.
 >        * A find_package call is missing for an IMPORTED target.
 >        * An ALIAS target is missing.
 >
 >    Call Stack (most recent call first):
 >      /scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:344
 >(include)
 >      cmake/modules/LLDBStandalone.cmake:9 (find_package)
 >      CMakeLists.txt:37 (include)
 >
 >I added this line to devel/lldb/Makefile
 >
 >    CMAKE_ARGS+=	--debug-trycompile
 >
 >and had a look at the CMakeConfigureLog.yaml file left behind:
 >
 >    -
 >      kind: "try_compile-v1"
 >      backtrace:
 >        - "/pkg/share/cmake-3.28/Modules/Internal/CheckSourceCompiles.cmake:101
 >(try_compile)"
 >        - "/pkg/share/cmake-3.28/Modules/CheckCSourceCompiles.cmake:52
 >(cmake_check_source_compiles)"
 >        - "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/FindTerminfo.cmake:21
 >(check_c_source_compiles)"
 >        - "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:263
 >(find_package)"
 >        - "cmake/modules/LLDBStandalone.cmake:9 (find_package)"
 >        - "CMakeLists.txt:37 (include)"
 >      checks:
 >        - "Performing Test Terminfo_LINKABLE"
 >      directories:
 >        source:
 >"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
 >        binary:
 >"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
 >      cmakeVariables:
 >        CMAKE_C_FLAGS: "-O2 -I/usr/include/readline -I/usr/include
 >-I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
 >-I/pkg/include/python3.10"
 >        CMAKE_C_FLAGS_DEBUG: "-g"
 >        CMAKE_EXE_LINKER_FLAGS: "-Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
 >-L/pkg/lib -Wl,-R/pkg/lib"
 >        CMAKE_MODULE_PATH:
 >"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake/modules;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/../cmake/Modules;/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm"
 >      buildResult:
 >        variable: "Terminfo_LINKABLE"
 >        cached: true
 >        stdout: |
 >          Change Dir:
 >'/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3'
 >
 >          Run Build Command(s): /pkg/bin/cmake -E env VERBOSE=1
 >/pkg/bin/gmake -f Makefile cmTC_627fa/fast
 >          make  -f CMakeFiles/cmTC_627fa.dir/build.make
 >CMakeFiles/cmTC_627fa.dir/build
 >          Building C object CMakeFiles/cmTC_627fa.dir/src.c.o
 >          /scratch/pkg/devel/lldb/work/.cwrapper/bin/cc
 >-DTerminfo_LINKABLE  -O2 -I/usr/include/readline -I/usr/include
 >-I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
 >-I/pkg/include/python3.10 -o CMakeFiles/cmTC_627fa.dir/src.c.o -c
 >/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3/src.c
 >          Linking C executable cmTC_627fa
 >          /pkg/bin/cmake -E cmake_link_script
 >CMakeFiles/cmTC_627fa.dir/link.txt --verbose=1
 >          /scratch/pkg/devel/lldb/work/.cwrapper/bin/cc -O2
 >-I/usr/include/readline -I/usr/include -I/pkg/include
 >-I/pkg/include/ncurses -I/pkg/include/lua-5.3
 >-I/pkg/include/python3.10  -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
 >-L/pkg/lib -Wl,-R/pkg/lib  CMakeFiles/cmTC_627fa.dir/src.c.o -o
 >cmTC_627fa  /usr/lib/libterminfo.so
 >          ld: CMakeFiles/cmTC_627fa.dir/src.c.o: in function `main':
 >          src.c:(.text.startup+0x7): undefined reference to `setupterm'
 >          *** Error code 1
 >
 >          Stop.
 >          make[1]: stopped in
 >/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3
 >          gmake: *** [Makefile:127: cmTC_627fa/fast] Error 1
 >
 >        exitCode: 2
 >
 >Manually running 'gcc src.c.o /usr/lib/libterminfo.so' works just fine
 >so I'm not sure why this fails.
 >
 >Anyone know what's going on and how to fix this?
 >
 >Cheers,
 >-- 
 >Malte Dehling


From: Jonathan Perkin <jperkin@mnx.io>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Tue, 23 Apr 2024 13:55:39 +0100

 * On 2024-04-23 at 10:10 BST, Nikita Ronja Gillmann wrote:

 > ===> Creating toolchain wrappers for lldb-17.0.6
 > ERROR: ncurses>=5.3nb1 is not installed; can't buildlink files.

 This error is always due to a change in dependencies since your binary 
 packages were last built, and usually due to some mk.conf change.

 Remove all your old packages, rebuild, and it should go away.

 -- 
 Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
 Open Source Complete Cloud   www.tritondatacenter.com

From: Nikita Ronja Gillmann <nikita@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Wed, 24 Apr 2024 21:23:57 +0200

 I'll give it a try, but if I remember correctly this happened in a pbulk
 with the first run, no prior packages built. I'll empty the binary 
 packages in the next days and will report back in a couple of days.

 Jonathan Perkin transcribed 0.7K bytes:
 >The following reply was made to PR pkg/58045; it has been noted by GNATS.
 >
 >From: Jonathan Perkin <jperkin@mnx.io>
 >To: gnats-bugs@netbsd.org
 >Cc:
 >Subject: Re: pkg/58045: devel/lldb fails to build
 >Date: Tue, 23 Apr 2024 13:55:39 +0100
 >
 > * On 2024-04-23 at 10:10 BST, Nikita Ronja Gillmann wrote:
 >
 > > ===> Creating toolchain wrappers for lldb-17.0.6
 > > ERROR: ncurses>=5.3nb1 is not installed; can't buildlink files.
 >
 > This error is always due to a change in dependencies since your binary
 > packages were last built, and usually due to some mk.conf change.
 >
 > Remove all your old packages, rebuild, and it should go away.
 >
 > --
 > Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
 > Open Source Complete Cloud   www.tritondatacenter.com
 >

From: Nikita Ronja Gillmann <nikita@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Fri, 26 Apr 2024 21:06:22 +0200

 Jonathan Perkin transcribed 0.7K bytes:
 >The following reply was made to PR pkg/58045; it has been noted by GNATS.
 >
 >From: Jonathan Perkin <jperkin@mnx.io>
 >To: gnats-bugs@netbsd.org
 >Cc:
 >Subject: Re: pkg/58045: devel/lldb fails to build
 >Date: Tue, 23 Apr 2024 13:55:39 +0100
 >
 > * On 2024-04-23 at 10:10 BST, Nikita Ronja Gillmann wrote:
 >
 > > ===> Creating toolchain wrappers for lldb-17.0.6
 > > ERROR: ncurses>=5.3nb1 is not installed; can't buildlink files.
 >
 > This error is always due to a change in dependencies since your binary
 > packages were last built, and usually due to some mk.conf change.
 >
 > Remove all your old packages, rebuild, and it should go away.

 I encountered the same error in an empty pbulk chroot now again,
 on NetBSD 10.99.10, all package build removed before that.

 > --
 > Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
 > Open Source Complete Cloud   www.tritondatacenter.com
 >

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Fri, 26 Apr 2024 21:23:19 +0200

 --jaSoMDWlO3S7PP1n
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Did tnn's commit change anything?
  Thomas

 --jaSoMDWlO3S7PP1n
 Content-Type: message/rfc822
 Content-Disposition: inline

 Return-Path: <bounces-pkgsrc-changes-owner-wiz=netbsd.org@NetBSD.org>
 Delivered-To: wiz@gatalith.at
 Received: from gatalith.at
 	by gatalith.at with LMTP
 	id XK0wKYBpKmajbgAA4iLUCg
 	(envelope-from <bounces-pkgsrc-changes-owner-wiz=netbsd.org@NetBSD.org>)
 	for <wiz@gatalith.at>; Thu, 25 Apr 2024 16:32:32 +0200
 Received: from mail.netbsd.org (mail.NetBSD.org [IPv6:2001:470:a085:999::25])
 	by gatalith.at (Postfix) with ESMTPS id B1B6D390A21
 	for <wiz@gatalith.at>; Thu, 25 Apr 2024 16:32:31 +0200 (CEST)
 Received: by mail.netbsd.org (Postfix)
 	id 3270684ECB; Thu, 25 Apr 2024 14:32:29 +0000 (UTC)
 Delivered-To: wiz@netbsd.org
 Received: by mail.netbsd.org (Postfix, from userid 605)
 	id A65A784EAC; Thu, 25 Apr 2024 14:32:28 +0000 (UTC)
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
 	s=20240131; t=1714055548;
 	bh=fXCgM8iI6t6KcOwOUt0y89EZYr2nUw1rtAJ2AHrVaCQ=;
 	h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe;
 	b=E4jo8ea56rMHUSeCHF9S2+ICjOGWz7BziHJR9MOZLmwzyJUT18sBaA71d66Edqc4/
 	 AoYiwHzponhg0tg0c4QsbzxXe2zmTPf+LNRbkXlPIwZ2yH3aBZV335neLY3+CJgkVg
 	 m392cBULOQmoPlrYso5llx+X6AkR1ZMACDc+KfPg=
 Delivered-To: pkgsrc-changes@NetBSD.org
 Received: from localhost (localhost [127.0.0.1])
 	by mail.netbsd.org (Postfix) with ESMTP id 9763C84EAB
 	for <pkgsrc-changes@NetBSD.org>; Thu, 25 Apr 2024 14:32:27 +0000 (UTC)
 X-Virus-Scanned: amavisd-new at netbsd.org
 Authentication-Results: mail.netbsd.org (amavisd-new);
 	dkim=pass (1024-bit key) header.d=netbsd.org
 Received: from mail.netbsd.org ([127.0.0.1])
 	by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025)
 	with ESMTP id 0pH2DEOmp-VK for <pkgsrc-changes@netbsd.org>;
 	Thu, 25 Apr 2024 14:32:27 +0000 (UTC)
 Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984])
 	by mail.netbsd.org (Postfix) with ESMTP id 0C58384EA5
 	for <pkgsrc-changes@NetBSD.org>; Thu, 25 Apr 2024 14:32:27 +0000 (UTC)
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
 	s=20240131; t=1714055547;
 	bh=fXCgM8iI6t6KcOwOUt0y89EZYr2nUw1rtAJ2AHrVaCQ=;
 	h=Date:From:Subject:To:Reply-To;
 	b=z79PGDj3s61+FX0puPUG3Ikj7T1EQw9/Ik2K2QaqFiZlx1j9O45xUo141nPW1agut
 	 jmMQiUhrXHsL/1++rTTg9RBRf7/t+O6vYs2UIPOqVcQ0dI72YmW7dGPAXrSHCRhTif
 	 uYnFJEVyhjA4AIYionFIk2mU4VVOXCsHU/OuR8X4=
 Received: by cvs.NetBSD.org (Postfix, from userid 500)
 	id 03262FA2C; Thu, 25 Apr 2024 14:32:27 +0000 (UTC)
 Content-Transfer-Encoding: 7bit
 Content-Type: multipart/mixed; boundary="_----------=_171405554649350"
 MIME-Version: 1.0
 Date: Thu, 25 Apr 2024 14:32:26 +0000
 From: "Tobias Nygren" <tnn@netbsd.org>
 Subject: CVS commit: pkgsrc/mk
 To: pkgsrc-changes@NetBSD.org
 Reply-To: tnn@netbsd.org
 X-Mailer: log_accum
 Message-Id: <20240425143227.03262FA2C@cvs.NetBSD.org>
 Sender: pkgsrc-changes-owner@NetBSD.org
 List-Id: <pkgsrc-changes.NetBSD.org>
 Precedence: bulk
 List-Unsubscribe: <mailto:majordomo@NetBSD.org?subject=Unsubscribe%20pkgsrc-changes&body=unsubscribe%20pkgsrc-changes>

 This is a multi-part message in MIME format.

 --_----------=_171405554649350
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 Content-Type: text/plain; charset="US-ASCII"

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Thu Apr 25 14:32:26 UTC 2024

 Modified Files:
 	pkgsrc/mk: termcap.builtin.mk

 Log Message:
 mk: fix termcap/terminfo detection issue when both are builtin

 Both termcap.builtin.mk and terminfo.builtin.mk used the same variable
 H_TERM for BUILTIN_FIND_HEADERS_VAR. This for some reason causes the
 logic to trip up in a specific scenario:
 when termcap.buildlink3.mk is included before terminfo.buildlink3.mk.

 When termcap was introduced as a dependency in audio/lame/buildlink3.mk
 in r1.12, then audio/libsndfile incorrectly started to depend on ncurses
 on NetBSD.

 Fix this by using a different variable name for the builtin detection.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/mk/termcap.builtin.mk

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


 --_----------=_171405554649350
 Content-Disposition: inline
 Content-Length: 1854
 Content-Transfer-Encoding: binary
 Content-Type: text/x-diff; charset=us-ascii

 Modified files:

 Index: pkgsrc/mk/termcap.builtin.mk
 diff -u pkgsrc/mk/termcap.builtin.mk:1.10 pkgsrc/mk/termcap.builtin.mk:1.11
 --- pkgsrc/mk/termcap.builtin.mk:1.10	Sat Nov 23 09:10:14 2013
 +++ pkgsrc/mk/termcap.builtin.mk	Thu Apr 25 14:32:26 2024
 @@ -1,11 +1,11 @@
 -# $NetBSD: termcap.builtin.mk,v 1.10 2013/11/23 09:10:14 obache Exp $
 +# $NetBSD: termcap.builtin.mk,v 1.11 2024/04/25 14:32:26 tnn Exp $

  BUILTIN_PKG:=	termcap

  BUILTIN_FIND_LIBS:=		terminfo curses termcap termlib tinfo
 -BUILTIN_FIND_HEADERS_VAR:=	H_TERM H_TERMCAP H_TERMLIB
 -BUILTIN_FIND_HEADERS.H_TERM:=	term.h
 -BUILTIN_FIND_GREP.H_TERM:=	tgetent
 +BUILTIN_FIND_HEADERS_VAR:=	H_TERM_TC H_TERMCAP H_TERMLIB
 +BUILTIN_FIND_HEADERS.H_TERM_TC:=term.h
 +BUILTIN_FIND_GREP.H_TERM_TC:=	tgetent
  BUILTIN_FIND_HEADERS.H_TERMCAP:=	termcap.h
  BUILTIN_FIND_GREP.H_TERMCAP:=	tgetent
  BUILTIN_FIND_HEADERS.H_TERMLIB:=	termlib.h
 @@ -19,7 +19,7 @@ BUILTIN_FIND_GREP.H_TERMLIB:=	tgetent
  ###
  .if !defined(IS_BUILTIN.termcap)
  IS_BUILTIN.termcap=	no
 -.  if empty(H_TERM:M__nonexistent__) && empty(H_TERM:M${LOCALBASE}/*) || \
 +.  if empty(H_TERM_TC:M__nonexistent__) && empty(H_TERM_TC:M${LOCALBASE}/*) || \
        empty(H_TERMCAP:M__nonexistent__) && empty(H_TERMCAP:M${LOCALBASE}/*) || \
        empty(H_TERMLIB:M__nonexistent__) && empty(H_TERMLIB:M${LOCALBASE}/*) || \
        !empty(BUILTIN_LIB_FOUND.termlib:M[yY][eE][sS])
 @@ -55,7 +55,7 @@ MAKEVARS+=	USE_BUILTIN.termcap
  # (7) If <termlib.h> exists and libtermlib doesn't, then it's "c".
  # (8) If libtermlib exists by itself, then it's "termlib".
  #
 -.if empty(H_TERM:M__nonexistent__) && empty(H_TERM:M${LOCALBASE}/*)
 +.if empty(H_TERM_TC:M__nonexistent__) && empty(H_TERM_TC:M${LOCALBASE}/*)
  .  if !empty(BUILTIN_LIB_FOUND.terminfo:M[yY][eE][sS])
  BUILTIN_LIBNAME.termcap=	terminfo
  .  elif !empty(BUILTIN_LIB_FOUND.tinfo:M[yY][eE][sS])


 --_----------=_171405554649350--


 --jaSoMDWlO3S7PP1n--

From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58045: devel/lldb fails to build
Date: Fri, 26 Apr 2024 21:54:17 +0200

 On Tue, 23 Apr 2024 09:10:01 +0000 (UTC)
 Nikita Ronja Gillmann <nikita@netbsd.org> wrote:

 >  ===> Creating toolchain wrappers for lldb-17.0.6
 >  ERROR: ncurses>=5.3nb1 is not installed; can't buildlink files.

 lldb is not supposed to depend on ncurses for terminfo on NetBSD, but
 there was a pkgsrc infrastructure bug that added the dependency
 incorrectly in some cases. I fixed it the other day, but I'm not sure
 what revision bumps are necessary for this if any.

 If you have ncurses installed on your system but are unsure why, it's
 probably best to remove it and rebuild all packages that depend on it
 to get rid of the dependency.

 > The link interface of target "LLVMSupport" contains:
 > Terminfo::terminfo
 > but the target was not found.

 This stuff is due to a bug in the lldb package. I will fix it.

State-Changed-From-To: open->feedback
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Fri, 26 Apr 2024 20:09:54 +0000
State-Changed-Why:
try with options.mk,v 1.2?


From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58045 CVS commit: pkgsrc/devel/lldb
Date: Fri, 26 Apr 2024 20:07:15 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Fri Apr 26 20:07:15 UTC 2024

 Modified Files:
 	pkgsrc/devel/lldb: options.mk

 Log Message:
 lldb: don't try to outsmart pkgsrc's curses & terminfo logic

 Probably this was an attempt to paper over the bug fixed in
 termcap.builtin.mk the other day. Likely cause of PR pkg/58045.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lldb/options.mk

 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.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.