NetBSD Problem Report #57204

From www@netbsd.org  Mon Jan 30 06:02:38 2023
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 2190C1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Jan 2023 06:02:38 +0000 (UTC)
Message-Id: <20230130060216.BDD2C1A923A@mollari.NetBSD.org>
Date: Mon, 30 Jan 2023 06:02:16 +0000 (UTC)
From: jbowen@infinitecactus.com
Reply-To: jbowen@infinitecactus.com
To: gnats-bugs@NetBSD.org
Subject: Tmux doesn't pull in curses as a full dependency
X-Send-Pr-Version: www-1.0

>Number:         57204
>Category:       pkg
>Synopsis:       Tmux doesn't pull in curses as a full dependency
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 30 06:05:00 +0000 2023
>Closed-Date:    
>Last-Modified:  Tue May 09 21:51:03 +0000 2023
>Originator:     Jason Bowen
>Release:        pkgsrc -current
>Organization:
>Environment:
NetBSD charlock 10.99.2 NetBSD 10.99.2 (GENERIC) #0: Mon Jan 23 13:40:04 UTC 2023  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
On a fresh install of NetBSD 10.99.2 (amd64) with pkgsrc -current, attempting to build tmux fails with "curses not found"

---

# make distclean
===> Cleaning for tmux-3.3a
===> Dist cleaning for tmux-3.3a
charlock# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching tmux-3.3a.tar.gz
=> Total size: 677448 bytes
Requesting https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz
Redirected to https://objects.githubusercontent.com/github-production-release-asset-2e65be/36836475/88f72fee-9c95-4171-8c21-3ddbafc557bf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F202
30130%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230130T055159Z&X-Amz-Expires=300&X-Amz-Signature=fb64e78c06fff797ff1947af9d45101fd87525bac82b5e0f3928d75e588555ed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&rep
o_id=36836475&response-content-disposition=attachment%3B%20filename%3Dtmux-3.3a.tar.gz&response-content-type=application%2Foctet-stream
Trying 185.199.110.133:443 ...
Requesting https://objects.githubusercontent.com/github-production-release-asset-2e65be/36836475/88f72fee-9c95-4171-8c21-3ddbafc557bf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F202301
30%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230130T055159Z&X-Amz-Expires=300&X-Amz-Signature=fb64e78c06fff797ff1947af9d45101fd87525bac82b5e0f3928d75e588555ed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_i
d=36836475&response-content-disposition=attachment%3B%20filename%3Dtmux-3.3a.tar.gz&response-content-type=application%2Foctet-stream
100% |************************************************************************************************************************************************************************|   661 KiB    1.33 MiB/s    00:00 ETA
677448 bytes retrieved in 00:00 (1.33 MiB/s)
=> Checksum BLAKE2s OK for tmux-3.3a.tar.gz
=> Checksum SHA512 OK for tmux-3.3a.tar.gz
===> Installing dependencies for tmux-3.3a
==========================================================================
The following variables will affect the build process of this package,
tmux-3.3a.  Their current value is shown below:

        * CURSES_DEFAULT = curses
        * SSLBASE = /usr
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

Based on these variables, the following variables have been set:

        * CURSES_TYPE = curses

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency ccache-[0-9]*: found ccache-3.7.12nb2
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency libevent>=2.1.11nb1: found libevent-2.1.12
===> Checking for vulnerabilities in tmux-3.3a
===> Overriding tools for tmux-3.3a
===> Extracting for tmux-3.3a
===> Patching for tmux-3.3a
=> Applying pkgsrc patches for tmux-3.3a
===> Creating toolchain wrappers for tmux-3.3a
===> Configuring for tmux-3.3a
=> Do not force sysconfdir to /etc
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... etc/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for bison... bison -y
checking pkg-config is at least version 0.9.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking bitstring.h usability... yes
checking bitstring.h presence... yes
checking for bitstring.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libproc.h usability... yes
checking libproc.h presence... yes
checking for libproc.h... yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking for stdint.h... (cached) yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/tree.h usability... yes
checking sys/tree.h presence... yes
checking for sys/tree.h... yes
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking for library containing sys_signame... none required
checking for fmod in -lm... yes
checking for library containing flock... none required
checking for dirfd... no
checking for flock... yes
checking for prctl... no
checking for proc_pidinfo... no
checking for getpeerucred... no
checking for sysconf... yes
checking for asprintf... yes
checking for cfmakeraw... yes
checking for clock_gettime... yes
checking for closefrom... yes
checking for explicit_bzero... no
checking for fgetln... yes
checking for freezero... no
checking for getdtablecount... no
checking for getdtablesize... yes
checking for getpeereid... yes
checking for getline... yes
checking for getprogname... yes
checking for memmem... yes
checking for setenv... yes
checking for setproctitle... yes
checking for strcasestr... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strndup... yes
checking for strsep... yes
checking for working strnlen... yes
checking for working strtonum... yes
checking for working reallocarray... yes
checking for working recallocarray... no
checking for library containing clock_gettime... none required
checking for libevent_core >= 2... yes
checking event2/event.h usability... yes
checking event2/event.h presence... yes
checking for event2/event.h... yes
checking for tinfo... no
checking for ncurses... no
checking for ncursesw... no
checking for library containing setupterm... no
checking for setupterm in -lcurses... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: error: "curses not found"
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/misc/tmux
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/tmux
#
>How-To-Repeat:
Install NetBSD 10.99.2, check out pkgsrc -current (cvs status output below), then, without building anything that provides a suitable curses.h, attempt to build tmux.

---

# cvs status
? work
cvs status: Examining .
===================================================================
File: DESCR             Status: Up-to-date

   Working revision:    1.1.1.1
   Repository revision: 1.1.1.1 /cvsroot/pkgsrc/misc/tmux/DESCR,v
   Commit Identifier:   (none)
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

===================================================================
File: Makefile          Status: Up-to-date

   Working revision:    1.61
   Repository revision: 1.61    /cvsroot/pkgsrc/misc/tmux/Makefile,v
   Commit Identifier:   JDldMm3Jhgrlj3ND
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

===================================================================
File: PLIST             Status: Up-to-date

   Working revision:    1.1.1.1
   Repository revision: 1.1.1.1 /cvsroot/pkgsrc/misc/tmux/PLIST,v
   Commit Identifier:   (none)
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

===================================================================
File: distinfo          Status: Up-to-date

   Working revision:    1.55
   Repository revision: 1.55    /cvsroot/pkgsrc/misc/tmux/distinfo,v
   Commit Identifier:   JDldMm3Jhgrlj3ND
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

cvs status: Examining patches
===================================================================
File: patch-compat_daemon-darwin.c      Status: Up-to-date

   Working revision:    1.1
   Repository revision: 1.1     /cvsroot/pkgsrc/misc/tmux/patches/patch-compat_daemon-darwin.c,v
   Commit Identifier:   6g1WHsWbtKfH3rgC
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

===================================================================
File: patch-osdep-darwin.c      Status: Up-to-date

   Working revision:    1.4
   Repository revision: 1.4     /cvsroot/pkgsrc/misc/tmux/patches/patch-osdep-darwin.c,v
   Commit Identifier:   pp6WpnJQqUcxcDPC
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

#
>Fix:
Build/install something that provides curses.h (e.g. devel/ncurses) before installing tmux.

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/57204: Tmux doesn't pull in curses as a full dependency
Date: Tue, 9 May 2023 21:45:44 +0000

 On Mon, Jan 30, 2023 at 06:05:00AM +0000, jbowen@infinitecactus.com wrote:
  > On a fresh install of NetBSD 10.99.2 (amd64) with pkgsrc -current,
  > attempting to build tmux fails with "curses not found"

 If this is still broken, can you report what ends up in config.log
 when this happens?

 Because tmux does pull in curses and base should provide an adequate
 builtin curses that it will accept.

 Anyway, this is the problem:

  > checking for setupterm in -lcurses... no

 and that's what we need more info about.


 (also, you know a copy of tmux comes with base, right?)

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 09 May 2023 21:51:03 +0000
State-Changed-Why:
Questions have arisen.


>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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.