From owner-freebsd-current@FreeBSD.ORG Sun Nov 20 19:04:05 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8ACE16A426 for ; Sun, 20 Nov 2005 19:04:05 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74FED43D45 for ; Sun, 20 Nov 2005 19:04:05 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR003.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IQ900M0QOYPJP90@VL-MO-MR003.ip.videotron.ca> for freebsd-current@freebsd.org; Sun, 20 Nov 2005 14:04:03 -0500 (EST) Date: Sun, 20 Nov 2005 14:03:46 -0500 From: Nicolas Blais To: freebsd-current@freebsd.org Message-id: <200511201403.58634.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1514323.Xxt62qPHd4; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit User-Agent: KMail/1.8.3 Subject: [patch] remove build dependencies in bsd.ports.mk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 19:04:06 -0000 --nextPart1514323.Xxt62qPHd4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This may or may not be useful for the FreeBSD community but.... As I 'ls /var/db/pkg', I noticed a lot of ports I didn't use and that didn'= t=20 have a +REQUIRED_BY file. Ports such as ezm3 and gcc-ooo that I could do=20 without. So, what I did is a simple hack in /usr/ports/Mk/bsd.port.mk so th= at=20 I can run 'make deinstall-builddepends' after a port is installed, and it=20 will ask me to remove any build dependencies. So far it works great, but I couldn't use the 'force (-f)' parameter in the= =20 deinstall target so I made a new target called interactivedeinstall. (I fou= nd=20 out the hard way when I 'deinstall-builddepends' in cvsup and it removed my= =20 xorg-libraries...). One could improve my patch by detecting if the port is already +REQUIRED_BY= =20 another port so it would not ask to delete it.=20 You can get the patch here: http://www.clkroot.net/FreeBSD/update/bsd.port.mk.diff All comments are welcomed, Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc --nextPart1514323.Xxt62qPHd4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDgMie4wTBlvcsbJURAomqAJ0aMhGa3wt6Byx9SWCYIqh2E9d+zwCcDRzD muk2VBckqPJ5eY9PA2gBsmg= =ltWy -----END PGP SIGNATURE----- --nextPart1514323.Xxt62qPHd4--