Package dependencies

Odhiambo Washington wash at
Tue Nov 25 23:47:57 PST 2003

* Andri Kok <akok440 at cse.unsw.EDU.AU> [20031126 10:40]: wrote:
> Hi guys,
> I know that the ports system that FreeBSD has takes care of dependencies,
> but I'd like to write my own shell/perl script for finding out which
> dependencies a package need. So I guess the 1 million dollar question is
> "How do the ports programmer know what dependencies a package need?" that
> is all :) thx guys.

I believe they just get the application and then do the reading. The developer
of every application will say what other apps it will require to run. If you
write a perl program, you do say what modules it will require for it to perform
a certain operation, don't you?


use strict;
use Digest::MD5;
use bla::blah;

Same thing as what the application developer says.

So for starters,

cd /usr/ports/net/gaim
make all-depends-list

Try to investigate what the target 'all-depends-list' does.

For more details, get the Porter's Handbook. Look for it at


    |\      _,,,---,,_     | Odhiambo Washington    <wash at>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
The first Great Steward, Parrafin the Climber, was employed in King
Chloroplast's kitchen as second scullery boy when the old King met a
tragic death.  He apparently fell backward by accident on a dozen salad
forks.  Simultaneously the true heir, his son Carotene, mysteriously
fled the city, complaining of some sort of plot and a lot of
threatening notes left on his breakfast tray.  At the time, this looked
suspicious what with his father's death, and Carotene was suspected of
foul play.  Then the rest of the King's relatives began to drop dead
one after the other in an odd fashion.  Some were found strangled with
dishrags and some succumbed to food poisoning.  A few were found
drowned in the soup vats, and one was attacked by assailants unknown
and beaten to death with a pot roast.  At least three appear to have
thrown themselves backward on salad forks, perhaps in a noble gesture
of grief over the King's untimely end.  Finally there was no one left
in Minas Troney who was either eligible or willing to wear the accursed
crown, and the rule of Twodor was up for grabs.  The scullery slave
Parrafin bravely accepted the Stewardship of Twodor until that day when
a lineal descendant of Carotene's returns to reclaim his rightful
throne, conquer Twodor's enemies, and revamp the postal system.
		-- Harvard Lampoon, "Bored of the Rings"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2217 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list