From owner-freebsd-net@FreeBSD.ORG Tue Sep 16 00:45:58 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18A4D16A4B3 for ; Tue, 16 Sep 2003 00:45:58 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 4703043FA3 for ; Tue, 16 Sep 2003 00:45:56 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 15955 invoked from network); 16 Sep 2003 07:37:52 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 16 Sep 2003 07:37:52 -0000 Received: (qmail 32710 invoked by uid 1000); 16 Sep 2003 07:45:53 -0000 Date: Tue, 16 Sep 2003 10:45:53 +0300 From: Peter Pentchev To: Luigi Rizzo Message-ID: <20030916074553.GN397@straylight.oblivion.bg> References: <20030916002808.A5624@xorpc.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TU+u6i6jrDPzmlWF" Content-Disposition: inline In-Reply-To: <20030916002808.A5624@xorpc.icir.org> User-Agent: Mutt/1.5.4i cc: net@freebsd.org Subject: Re: trafshow and libslang X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 07:45:58 -0000 --TU+u6i6jrDPzmlWF Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 16, 2003 at 12:28:08AM -0700, Luigi Rizzo wrote: > hi, > there seems to be no way to build trafshow without slang -- even > if the port's Makefile tries to remove slang from LIB_DEPENDS if > you set WITHOUT_TRAFSHOW_SLANG, config will detect the library and > use it anyways. >=20 > Does anyone have ideas on how to convince config to stick to ncurses > instead (i am not fond of slang, and anyways it's an additional > library that i do not need to carry in picobsd configs) Unfortunately, as you've found out yourself, trafshow's configure script does not provide for disabling slang. The attached patch to the port should be fine for a quick workaround, and I might try to fix up the configure script itself to add a --enable/disable-slang option later. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I were you, who would be reading this sentence? Index: ports/net/trafshow/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 RCS file: /home/ncvs/ports/net/trafshow/Makefile,v retrieving revision 1.25 diff -u -r1.25 Makefile --- ports/net/trafshow/Makefile 29 Jun 2003 16:54:55 -0000 1.25 +++ ports/net/trafshow/Makefile 16 Sep 2003 07:40:59 -0000 @@ -22,6 +22,7 @@ (exists(${LOCALBASE}/lib/libslang.a) && !defined(WITHOUT_TRAFSHOW_SLAN= G)) LIB_DEPENDS=3D slang.1:${PORTSDIR}/devel/libslang .else +BREAK_SLANG=3D yes .if ${OSVERSION} < 400010 LIB_DEPENDS=3D ncurses.5:${PORTSDIR}/devel/ncurses .endif @@ -37,6 +38,9 @@ =20 post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c +.if defined(BREAK_SLANG) + ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/configure-noslang.patch +.endif =20 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin Index: ports/net/trafshow/files/configure-noslang.patch =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 RCS file: ports/net/trafshow/files/configure-noslang.patch diff -N ports/net/trafshow/files/configure-noslang.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/trafshow/files/configure-noslang.patch 16 Sep 2003 07:36:50 -= 0000 @@ -0,0 +1,10 @@ +--- configure.old Tue Sep 16 10:36:10 2003 ++++ configure Tue Sep 16 10:36:20 2003 +@@ -1510,6 +1510,7 @@ + LIBS=3D"-lslang $ac_cv_save_LIBS" + cat > conftest.$ac_ext < + int main() { --TU+u6i6jrDPzmlWF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/Zr+x7Ri2jRYZRVMRAigZAKCg2sHcXd2wkpd/03z1ugGo4BOQgACgtzoE wtwFmJdlXhYf2owRPFzOXcg= =lVLY -----END PGP SIGNATURE----- --TU+u6i6jrDPzmlWF--