From owner-svn-ports-all@freebsd.org Wed Mar 14 13:06:22 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EAE8F50B26; Wed, 14 Mar 2018 13:06:22 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from mail.ptrcrt.ch (ptrcrt.ch [IPv6:2a02:2770:8:0:21a:4aff:fe7e:c6be]) (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 605557FAF5; Wed, 14 Mar 2018 13:06:21 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from ptrcrt.ch (mail.ptrcrt.ch [192.168.1.1]) by mail.ptrcrt.ch (OpenSMTPD) with ESMTPS id 4857c06a TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 14 Mar 2018 13:06:19 +0000 (UTC) Date: Wed, 14 Mar 2018 13:06:19 +0000 From: Pietro Cerutti To: "Jason E. Hale" Cc: ports-committers , svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r464480 - head/editors/mp Message-ID: <20180314130619.cboqfsyuifzzchzm@ptrcrt.ch> Reply-To: Pietro Cerutti References: <201803141001.w2EA1Vo2042681@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6ypmlenl6lvd57g4" Content-Disposition: inline In-Reply-To: X-PGP-Key: fp="DA6D E106 A5B8 54B8 5DD8 6D49 ADD0 D38E A192 089E"; id="0xA192089E"; get=; get=; get=; get= OpenPGP: id=A192089E; url=https://gahr.ch/pgp/0xADD0D38EA192089E.txt; url=https://keybase.io/gahr/key.asc User-Agent: NeoMutt/20180223-cygwin-110-f5a038 X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 13:06:22 -0000 --6ypmlenl6lvd57g4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 14 18 08:38, Jason E. Hale wrote: >On Wed, Mar 14, 2018 at 6:01 AM, Pietro Cerutti wrote: >> Author: gahr >> Date: Wed Mar 14 10:01:31 2018 >> New Revision: 464480 >> URL: https://svnweb.freebsd.org/changeset/ports/464480 >> >> Log: >> editors/mp: fix build with ncurses from base >> >> Modified: >> head/editors/mp/Makefile >> >> Modified: head/editors/mp/Makefile >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >> --- head/editors/mp/Makefile Wed Mar 14 09:59:28 2018 (r464479) >> +++ head/editors/mp/Makefile Wed Mar 14 10:01:31 2018 (r464480) >> @@ -50,6 +50,7 @@ GTK3_CONFIGURE_ON=3D --with-gtk=3D3 >> >> NCURSES_USES=3D ncurses >> NCURSES_CONFIGURE_WITH=3D curses >> +NCURSES_CFLAGS=3D -I${NCURSESBASE}/include >> >> QT4_USE=3D qt4=3Dcorelib,gui,moc_build \ >> xorg=3Dx11 >> > >Hmm...what was the build failure? It seemed to build fine in poudriere >before this change. NCURSESINC is already passed through in >CONFIGURE_ENV and I see it in ${WRKSRC}/config.cflags after configure >is run. The failure is at compile time, and it only happens if devel/ncurses is=20 installed - which I think it's why you didn't spot it in poudriere. The problem is not with this port per se, but with the fact that=20 NCURSESINC is set to ${LOCALBASE}/include/ncurses when using ncurses=20 =66rom ports. ncurses.h includes which it cannot=20 find, as ${LOCALBASE}/include itself is not in the search path. The config.sh check for ncurses fails to compile the sample program with=20 this compile line: cc -O2 -pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing=20 -I/usr/local/include/ncurses .tmp.c -Wl,--as-needed=20 '-Wl,-rpath=3D/usr/local/lib' -fstack-protector -L/usr/local/lib=20 -lncursesw -o .tmp.o As you see, -I${LOCALBASE}/include is missing, so ncurses.h doesn't find=20 ncurses/ncurses_dll.h. So, the issue is more fundamental within Uses/ncurses.mk or within how=20 the ncurses port installs itself (depends how you see it). This was a quick fix to allow the port to be built. Thanks, --=20 Pietro Cerutti --6ypmlenl6lvd57g4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJiBAABCgBMFiEE2m3hBqW4VLhd2G1JrdDTjqGSCJ4FAlqpHkMuFIAAAAAAFQAQ cGthLWFkZHJlc3NAZ251cGcub3JnZ2FockBGcmVlQlNELm9yZwAKCRCt0NOOoZII ntoQEAC7wxBG8IWZqYhKJOc0W3FvHhYm15wpI8rLiXYmLimxwy6w0PNg7QdfW56H 3klcL0cN93ekn+NwONVmqrX0rCyGRGgFyANzPZ5I2Mk6HolhC55PNxRBaAl8fTbr 8d/NrHdYkBRHqIu/woKrgAvbuOcIfE4tZvGkS5BK0fxbfUCCZ25TAzj57YyUi0YA sBy9vHtbWH+XyMhjcgu9vodTUHrQDa6FXD2bgfZla6pK6uLga8HEdevPlTHAKocs 3nl2xqGGMoFbQ/u2a/YAAlxhh6NffoP86QBqorkJMtWIx+xKMFeS9S5dqzDzq3St xo6I/ATe4f2wCycVETZ1F3vl6omVUn9ESBKCC9kc5Nr87yQBZNdsbf1ZCdnLHehN vPoiTdAwobhf9368Rcpy99cICTzJgIv4+2NIcZiDqb5UXFT68YTttuZu/JTNtVxj yDkWMJoUm5Y9Fg7JTiJCB5E9WQCw6miolpJ+LqQdgwiAWxiP75p+JnQzCeYWoWa2 78fgEzsMFfk7lj24rdLdSUf1lAWluGvgAuzSP4ZkiDZZ0dt+ABkLYa8/KgOmdw3o K26IOy4FAgglM9dDKPaxMcqPumAAjHrcPiv/mul5yySygRVCBp/sIAmcuXrz5jBV 4hDVGiI8nZ89BkaLvMu41JDCGtgVsiAcFL1VCp0DaaU05Azwzg== =TkbB -----END PGP SIGNATURE----- --6ypmlenl6lvd57g4--