Bug #267

Old package .inc files can prevent system from booting properly

Added by Chris Buechler over 9 years ago. Updated about 9 years ago.

Package System
Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


Old package .inc files on a 2.0 system can prevent the system from booting. For one example:

Configuring WAN interface...done.
Configuring LAN interface...bge0: link state changed to DOWN
Configuring OPT1h interface...me1: link state changed to DOWN
Starting syslog...done.
Configuring firewall..
Fatal error: Cannot redeclare is_url() (previously declared in /etc/inc/ in /usr/local/pkg/ on line 1753

Probably should clean those all up before they're loaded, and force a package reinstall.

Associated revisions

Revision c57a3ac8 (diff)
Added by Jim Pingle over 9 years ago

Don't load the package include files if the packages are out of sync, which can lead to the system not booting properly. Should help with ticket #267.


#1 Updated by Ermal Lu├ži over 9 years ago

The only solution i can find for this is getting a list of packages installed before upgrade.
Save it somewhere and remove everything before upgrade.
When booting up installing from sctrach this packages!

#2 Updated by Chris Buechler over 9 years ago

similar issue with open-vm-tools, if you upgrade to a diff FreeBSD version than your open-vm-tools is for, it will panic on next boot. One example:,23044.0.html

#3 Updated by Jim Pingle over 9 years ago

  • Status changed from New to Feedback

This should be fixed with the commit I just made. Post upgrade we should have /conf/needs_package_sync and we can just skip loading the .inc files in that case since they may be out of sync.

May not help with vmware but it should help with the other cases.

#4 Updated by Jim Pingle over 9 years ago

Alternately, sometime before here in the boot process it could force a reinstall of packages if it sees /conf/needs_package_sync instead of requiring a visit to the GUI.

#5 Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

this seems to be fine now

Also available in: Atom PDF