Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2005 14:03:46 -0500
From:      Nicolas Blais <nb_root@videotron.ca>
To:        freebsd-current@freebsd.org
Subject:   [patch] remove build dependencies in bsd.ports.mk
Message-ID:  <200511201403.58634.nb_root@videotron.ca>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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 
have a +REQUIRED_BY file. Ports such as ezm3 and gcc-ooo that I could do 
without. So, what I did is a simple hack in /usr/ports/Mk/bsd.port.mk so that 
I can run 'make deinstall-builddepends' after a port is installed, and it 
will ask me to remove any build dependencies.

So far it works great, but I couldn't use the 'force (-f)' parameter in the 
deinstall target so I made a new target called interactivedeinstall. (I found 
out the hard way when I 'deinstall-builddepends' in cvsup and it removed my 
xorg-libraries...).

One could improve my patch by detecting if the port is already +REQUIRED_BY 
another port so it would not ask to delete it. 

You can get the patch here:
http://www.clkroot.net/FreeBSD/update/bsd.port.mk.diff

All comments are welcomed,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005     
root@clk01a:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDgMie4wTBlvcsbJURAomqAJ0aMhGa3wt6Byx9SWCYIqh2E9d+zwCcDRzD
muk2VBckqPJ5eY9PA2gBsmg=
=ltWy
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511201403.58634.nb_root>