From owner-freebsd-ports-bugs@freebsd.org Fri Jul 1 06:04:42 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AA66B8C271 for ; Fri, 1 Jul 2016 06:04:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A3FF246C for ; Fri, 1 Jul 2016 06:04:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6164fit073764 for ; Fri, 1 Jul 2016 06:04:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206471] sysutils/tmux USES=ncurses seems to be a no-op Date: Fri, 01 Jul 2016 06:04:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: portmaster@bsdforge.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 06:04:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206471 Chris Hutchinson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |portmaster@bsdforge.com --- Comment #1 from Chris Hutchinson --- (In reply to Vick Khera from comment #0) > A while ago I reported a bug I observed using the sysutils/tmux program in > bug #193685 >=20 > The TL;DR is that I needed tmux to be linked using the ports ncurses rath= er > than the system ncurses to avoid display errors in certain circumstances. >=20 > Fast forward to today (well, a while ago, but I cannot pinpoint exactly > when) it seems that the build of tmux is registering a dependency on the > ports ncurses package, but is not actually linking against it. This used = to > work, but some update between the original bug fix and now causes it to n= ot > link to the ports ncurses. Perhaps it is that I'm running FreeBSD 10.2 no= w? >=20 > This is what I see: >=20 > [root@lorax]# ldd /usr/local/bin/tmux > /usr/local/bin/tmux: > libutil.so.9 =3D> /lib/libutil.so.9 (0x80088c000) > libncurses.so.8 =3D> /lib/libncurses.so.8 (0x800a9e000) > libevent-2.0.so.5 =3D> /usr/local/lib/libevent-2.0.so.5 (0x800ceb000) > libulog.so.0 =3D> /lib/libulog.so.0 (0x800f2e000) > libc.so.7 =3D> /lib/libc.so.7 (0x801130000) > libthr.so.3 =3D> /lib/libthr.so.3 (0x8014dc000) > libmd.so.6 =3D> /lib/libmd.so.6 (0x801700000) > [root@lorax]# pkg info -dr tmux > tmux-2.1_1 > Depends on : > libevent2-2.0.22_1 > ncurses-6.0_2 >=20 > And the problem persists with the display errors. >=20 > If I use my workaround and install the following libmap entry, I get tmux= to > link to the ports ncurses, and then the display bugs go away. >=20 > [root@lorax]# cat /usr/local/etc/libmap.d/tmux.conf > [tmux] > libncurses.so.8 libncurses.so.6 > [root@lorax]# ldd /usr/local/bin/tmux > /usr/local/bin/tmux: > libutil.so.9 =3D> /lib/libutil.so.9 (0x80088c000) > libncurses.so.8 =3D> /usr/local/lib/libncurses.so.6 (0x800a9e000) > libevent-2.0.so.5 =3D> /usr/local/lib/libevent-2.0.so.5 (0x800cc3000) > libulog.so.0 =3D> /lib/libulog.so.0 (0x800f06000) > libc.so.7 =3D> /lib/libc.so.7 (0x801108000) > libtinfo.so.6 =3D> /usr/local/lib/libtinfo.so.6 (0x8014b4000) > libthr.so.3 =3D> /lib/libthr.so.3 (0x8016eb000) > libmd.so.6 =3D> /lib/libmd.so.6 (0x80190f000) >=20 >=20 > I tried modifying the port to set USES=3Dncurses:port and also added the > NCURSES_RPATH=3Dyes variable. Neither one resulted in a suitable library = link. >=20 > While this is immediately noticed using tmux, I think it may be all ports > that are affected. For example, the sysutils/tty-clock port also specifies > USES=3Dncurses yet links to the base system ncurses when ports ncurses is > installed. >=20 >=20 > [root@lorax]# uname -r > 10.2-RELEASE-p7 Hello, While I'm not the Maintainer; it appears to me that the port is choosing the $BASE version library, before attempting to use the ports version. As seen here: LIBEVENT_STATIC_BUILD_DEPENDS=3D ${LOCALBASE}/lib/libevent.a:devel/libevent2 Note that devel/libevent2 is chosen *after* ${LOCALBASE} Have you attempted to reverse that order, and try again? --Chris --=20 You are receiving this mail because: You are on the CC list for the bug.=