|
|||
HOWTO: Always install an up-to-date port
I know I should, but I very rarely have the latest ports tree on my system and it's for that reason I always make sure that a port I'm about to install is up to date.
So, this isn't a very lengthy or complex howto but next time your about to install a port and are unsure weather it's the latest skeleton version or not run this command first; Code:
cvsup -i ports/CATAGORY/YOUR-PORT -g /location/of/your/ports-supfile Code:
cvsup -i ports/net-p2p/libtorrent-devel -g /root/ports-supfile && cd /usr/ports/net-p2p/libtorrent-devel && make install clean If you haven't edited your ports-supfile yet you must do so beforehand, a typical user will only need to edit the *default host= variable and to help you find the fastest cvsup host a tool called fastest-cvsup has been developed, you can find it here; Code:
/usr/ports/sysutils/fastest_cvsup Code:
/usr/share/examples/cvsup/ports-supfile Last edited by chris; 26th May 2008 at 06:34 PM. |
|
||||
Very nice howto mate, about dependencies you mentioned you can parse a port Makefile to get dependencies and also update them before building the port:
for example /usr/ports/www/lighttpd/Makefile Code:
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre LIB_DEPENDS+= fam:${PORTSDIR}/devel/fam LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm BUILD_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind RUN_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind sqlite3.8:${PORTSDIR}/databases/sqlite3
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
I think I need more sleep if I forgot about such basics, thanks mate.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
Good stuff. Another tip: You can forgo editing the cvsup file if you use the '-h' option to cvsup. Here's a fully automated command:
cvsup -h `fastest_cvsup -qc tld` /usr/share/cvsup/ports-supfile However, beware: I have stopped using that, because for a while here in australia (I used -c au) there was one cvsup server that was out of date, and, because no one was using it, it was always the fastest! Caveat Downlodeur.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
||||
Thanks for the nice post, I usually don't update my ports tree until I have to build something (or every few months).
Writing a script to handle the depends is worth not having to wait on cvsup/csup to finish the *usual way* !! Quote:
I remember working on a program that needed me to dig up a target ports Makefile, locate OPTIONS and generate a custom QDialog for setting the ones desired, including handling <ports-db>/portname/options where necessary -- it was not fun dealing with the makefile part! And actually now that I try using zsh's tab completion with make and the ports I used for field testing that module: Code:
Terry@dixie$ cd /usr/ports/net/samba3/ 7:51 Terry@dixie$ make depends-list 7:51 make: don't know how to make depends-list. Stop Terry@dixie$ make show-options 7:51 make: don't know how to make show-options. Stop Terry@dixie$ cd /usr/ports/editors/vim 7:51 Terry@dixie$ make depends-list 7:51 make: don't know how to make depends-list. Stop Terry@dixie$ make show-options 7:51 ===> The following configuration options are available for vim-7.1.282: PERL=off (default) "Enable Perl interpreter" PYTHON=off (default) "Enable Python interpreter" RUBY=off (default) "Enable Ruby interpreter" CSCOPE=off (default) "Enable cscope" EXUBERANT_CTAGS=off (default) "Use exctags instead of ctags" ATHENA=off (default) "Athena GUI" GTK2=off (default) "GTK2 GUI" GNOME=off (default) "Gnome1 GUI" MOTIF=off (default) "Motif GUI" XTERM_SAVE=off (default) "" ===> Use 'make config' to modify these settings Terry@dixie$ 7:51 Just peachy :\
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Quote:
# make showconfig It's all in /usr/ports/Mk/bsd.ports.mkThe show-options target is _ONLY_ for vim, look at the Makefile: Code:
show-options: @${MAKE} -DWITH_OPTIONS showconfig
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
/lsknobs/
/portsopt/ each I think in /ports-mgmt/ I use the latter daily
__________________
FreeBSD 13-STABLE |
Tags |
cvsup, freebsd, ports-supfile, update port, update uninstalled port, upgrade port |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Opera Port - conflicting pkgs in "make install" | IronForge | OpenBSD Packages and Ports | 5 | 29th October 2009 05:10 AM |
HOWTO: Install and configure NVIDIA drivers on FreeBSD | tangram | Guides | 2 | 29th March 2009 08:23 PM |
HOWTO: Install and setup MLDonkey on FreeBSD | tangram | Guides | 0 | 7th January 2009 05:13 PM |
Using Date variable? | cwhitmore | FreeBSD General | 9 | 13th August 2008 07:16 AM |
Unable to make install on Subversion port | Fuitad | FreeBSD Ports and Packages | 2 | 28th July 2008 04:49 PM |