4

Can multiple make installs cause problems for the package system?

For example:

cd /usr/ports/*/nmap && make install
cd /usr/ports/*/firefox && make install
Stefan Lasiewski
  • 23,975
  • 42
  • 135
  • 187

1 Answers1

4

Yes, if two ports have the same dependancy, try to build it at the same time, one or both builds will fail. It's better to build ports serially (making a meta port of all the ports you want to install is a good idea if you're going to do it on several machines) and run make with a -j # to increase concurrency where it's able .

Chris S
  • 78,185
  • +1 - I'd also add that I try to build the port with the most dependencies first. If you're doing this for multiple machines it helps to use something like radmind or puppet to manage your machines (install on one box as a template and push out the changes to the rest of your environment) – voretaq7 Jun 03 '11 at 21:24
  • It's not a big problem for me to restart the build. Can this corrupt the package database? – Eugene Yarmash Jun 03 '11 at 21:34
  • 1
    Do not run make with -j, ports system is already aware of this and by default will run one make process per CPU where it's possible – gelraen Jun 05 '11 at 19:29