Hot answers tagged freebsd-ports
You are very close. Try this instead: make all-depends-list That will recurse through all dependencies and print them for you. To test different build scenarios and how they affect the dependency list, try things like: make NOPORTDOCS=yes NOPORTEXAMPLES=yes all-depends-list make WITHOUT_X11=yes all-depends-list Here is the full set of dependency ...
My suggestion would be pkg_cutleaves (available in the ports collection), or pkg-orphan -- Both of these do the same basic thing (list packages that aren't referred to as a dependency by any other package, and ask you what to do). I wouldn't bother though: The build dependencies will just have to be rebuilt and reinstalled when you upgrade the port, and ...
No upgrades are "mandatory" -- If the port version you're using works, no dependencies require the newer version, and there are no security holes you don't need to upgrade anything. If you're asking about mandatory changes (e.g. new configuration files) as a result of a port upgrade, UPDATING is the right place to look, and there's also often something in ...
The best option (IMHO) is to set all the options at the very start. You can do this by running make config-recursive.
Sequentially: portmaster --check-depends portmaster --check-port-dbdir portmaster -s portmaster -y --clean-distfiles
How can I configure FreeBSD to clean distfiles after installing a port (using make, portupgrade, etc)? If "after installing a port", just use the distclean target: make install distclean This will clean the work directory and the distfile after installing. If you want to clean distfiles separately from installation, just run rm -rf ...
Just add BATCH=1 to /etc/make.conf.
You would have to recursively get all subdependencies as well. There probably are some tools for that in the ports-mgmt category... I use portmaster(8) for port management. It always gathers (sub)dependencies before compiling and installing a port: ~> portmaster --show-work devel/apache-ant ===>>> Port directory: /usr/ports/devel/apache-ant ...
I don't think 4.7 is supported by the current ports tree. You might be able to edit /usr/ports/Mk/bsd.gcc.mk to have a value for GCCVERSION. But considering 4.x had gcc 2.95 its likely that you will have trouble compiling unless you first upgrade gcc. Another options is to forget ports and just compile the program by hand. You can use the port Makefile ...
Only top voted, non community-wiki answers of a minimum length are eligible