From owner-freebsd-stable@FreeBSD.ORG Tue Mar 3 21:14:06 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D48FC35A for ; Tue, 3 Mar 2015 21:14:06 +0000 (UTC) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) by mx1.freebsd.org (Postfix) with ESMTP id AE843BC8 for ; Tue, 3 Mar 2015 21:14:06 +0000 (UTC) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 1171A5A9F25; Tue, 3 Mar 2015 21:14:00 +0000 (UTC) Date: Tue, 3 Mar 2015 21:13:59 +0000 From: Brooks Davis To: Dewayne Geraghty Subject: Re: buildworld without libncursesw Message-ID: <20150303211359.GA10621@spindle.one-eyed-alien.net> References: <54F57CF9.8000704@heuristicsystems.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <54F57CF9.8000704@heuristicsystems.com.au> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: FreeBSD Stable Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 21:14:06 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 03, 2015 at 08:20:57PM +1100, Dewayne Geraghty wrote: > Is there a preferred way to buildworld without libncursesw? >=20 > When I add to /etc/src.conf > WITHOUT_NCURSESW=3Dyes >=20 > I find that a buildworld fails due to missing libncursesw.*. > So what uses libncurses? These guys do > /usr/bin/dialog > /usr/bin/dpv > =20 > /usr/sbin/sade -> /usr/libexec/bsdinstall/partedit > /usr/sbin/tzsetup >=20 > Getting a little frustrated I modifed the Makefile:, so for example > dialog (/usr/src/contrib/dialog) >=20 > +.include > + > +.if ${MK_NCURSESW} =3D=3D "no" > +DPADD=3D ${LIBDPV} ${LIBDIALOG} ${LIBFIGPAR} ${LIBNCURSES} > ${LIBUTIL} ${LIBM} > +LDADD=3D -ldpv -ldialog -lfigpar -lncurses -lutil -lm > +.else > DPADD=3D ${LIBDPV} ${LIBDIALOG} ${LIBFIGPAR} ${LIBNCURSESW} > ${LIBUTIL} ${LIBM} > LDADD=3D -ldpv -ldialog -lfigpar -lncursesw -lutil -lm > +.endif >=20 > And checking > # make -VMK_NCURSESW > no >=20 > I'm at a bit of a loss as to why these are proving difficult to build, > or what I can do to get the desired outcome, ie no libncursesw.so* I tried to make this work a while ago and it's not practical. Instead, we need to remove libncurses (or more likely replace it with a linker script to cause libncursesw to be used.) It should be the case that nothing in the base system uses libncurses, but it's all too likely that someone has broken that since I switched the remaining bits over. -- Brooks --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlT2JBcACgkQXY6L6fI4GtTMegCfRFWmJE4tJtjlQhBeRS9paHd/ cFEAoMdmRpWVPn3cEkLCgZGRb/pleC6H =EE0W -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--