UPDATING revision 77705
1Updating Information for FreeBSD current users 2 3This file is maintained by imp@village.org. Please send new entries 4directly to him. See end of file for further details. For commonly 5done items, please see the end of the file. Search for 'COMMON 6ITEMS:' 7 820010604: 9 pccard support for pci cards has been committed. You must change 10 your /etc/pccard.conf irq lines. It must match the irq used by 11 pcic device. Interrupt storms may result if you fail to do this. 12 Interrupt storms look a lot like a hang. 13 1420010530: 15 INSTALL=install -C is being deprecated. If you want to do this, 16 use COPY=-C instead. The former method will be supported for only 17 a limited time. If you see 18 19install: warning: the -d and -C options may not be specified together 20 21 in your makeworld, then you need to migrate towards using 22 COPY=-C. 23 2420010525: 25 It appears that vm is now stable enough to use again. However, 26 there may be other problems, so caution is still urged. alpha 27 definitely is in bad shape. 28 2920010521: 30 Minor repo damanged has happened. This may cause problems 31 with cvsup of ports. If you get errors, please see 32 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27495 33 at the bottom for details on a workaround. The error message 34 is 35Updater failed: Cannot delete "/usr/ports/www/jakarta-tomcat/files": Directory not empty 36 3720010520: 38 Vm and/or swapping are busted on -current. Please be patient. 39 4020010519: 41 pccard has had much reorganizational work done to it over 42 the past few days. Everything should still work, but if 43 not, please contact imp@freebsd.org. 44 4520010517: 46 ata ioctl changed. Make sure to recompile both kernel and 47 userland at the same time. 48 4920010517: 50 New ncurses imported. 51 5220010512: 53 DEVFS is now opt out, not opt in. Barring major problems, this 54 will be the only way to go starting July 1. 55 5620010502: 57 Perl breakage in 20010501 was corrected at 14:18:33 PDT. 58 5920010501: 60 Building perl was broken at 02:25:25 PDT. 61 6220010430: 63 The bug in 20010429 was corrected at 07:35:37 PDT. It is safe to 64 go back in the water. 65 6620010429: 67 A bad bug was committed at 04:48:42 PDT. Don't use kernels after 68 this date, but before the correction date. 69 7020010423: 71 old fsck and new kernel interactions appear to have been fixed. 72 7320010411: 74 fsck and the kernel were changed to handle some optimizations 75 to directory layout. This breaks backward compatibility. 76 Update only if you understand that you must not use the old 77 fsck with the new kernel ever. 78 7920010330: 80 fsck has changed the meaning of the pass column in /etc/fstab. 81 Please see the cvs commit to fsck.8 or the fsck.8 man page for 82 details. It is unclear if changes to /etc/fstab are necessary. 83 8420010319: 85 portmap had changed name to rpcbind for maximum POLA in your 86 current world. /etc/hosts.{allow,deny} needs changes. nfs and 87 other rpc based programs that rely on portmapper will not work 88 without updates to /etc/hosts.{allow,deny} and /etc/netcofnig. 89 9020010315: 91 ata subsystem changes. ATA_ENABLE_ATAPI_DMA, ATA_ENABLE_WC 92 and ATA_ENABEL_TAGS are no longer kernel options. They have 93 been replaced by tunables. See ata.4 for details. 94 9520010312: 96 The fxp driver was converted to use miibus. If you compile 97 fxp into your kernel statically, you will need to add miibus. 98 9920010312: 100 The wi device now defaults to BSS (infrastructure) mode 101 instead of ad-hoc. 102 10320010310: 104 /dev/urandom should be a symbolic link to /dev/random now. 105 Users of current not using DEVFS need to run MAKEDEV std. 106 ssh might not work if you don't. 107 10820010220: 109 The problems with libc have been corrected. It is now mostly 110 safe to go back into the water. 111 11220010211: 113 The size of FILE was changed. This breaks upgrading. If 114 you must upgrade, be prepared for pain. It also breaks almost 115 all binaries that you've compiled on -current. You are warned 116 that before upgrading would be a good time to do a level 0 117 dump of your system. No, really, I mean it this time. 118 119 To get to the new system, you'll need to use the following 120 workaround. Hopefully this can be sorted out so that we 121 don't have to move this to the updating section. 122 123 To get around the installworld problem, do: 124 # cd /usr/src/usr.bin/sed 125 # make install 126 # cd /usr/src 127 # make installworld 128 If that doesn't work, then try: 129 # make -k installworld 130 # make installworld 131 13220010207: 133 DEVFS is now the default. If you use vinum, make sure that you 134 do not include devfs in your kernel as problems result. 135 13620010205: 137 FFS_ROOT and CD9660_ROOT have been removed or deprecated. 138 Remove them from your config. 139 14020010122: 141 ****************************** WARNING ****************************** 142 buildkernel has been changed slightly 143 ****************************** WARNING ****************************** 144 KERNCONF replaces the variable KERNEL for buildkernel. You 145 should update your scripts and make.conf accordingly. 146 14720010119: 148 config has changed to allow DEV_FOO as a replacement for NFOO. 149 This requires a new config to build correctly. 150 15120010116: 152 The kerrnel option I386_CPU is now mutually exclusive with the 153 other cpu types. If you have an i386 system, be sure that it 154 only had this line. Remove it for all other configurations. 155 15620010110: 157 Changes to the kernel require it and burncd be in sync. 158 15920010102: 160 Everyone who has hw.sndunit set to something in 161 /etc/sysctl.conf, it is now hw.snd.unit. 162 16320010101: 164 ex and vi were broken by some changes to sys/queue.h. If you 165 have a bad vi, you will see make buildworld fail with a core 166 dump while building termcap. You can work around this problem 167 by adding -k to your make buildworld. This will cause the 168 build to complete and install a new vi. Once that's done, you 169 can rebuild again without the -k to pick up anything that 170 might have been ignored by the -k option. 171 172 Others have suggested that you can just rebuild libc if your 173 vi/ex is dynamically linked, but I've not received any reports 174 of this working. 175 17620001228: 177 There have been some changes to libcrypt in -current. The 178 libscrypt/libdescrypt symlink sillyness is gone and the installed 179 libcrypt is fully functional. Be aware of this. 180 18120001218: 182 Linksys Fast Ethernet PCCARD cards supported by the ed driver 183 now require the addition of flag 0x80000 to their config line 184 in pccard.conf(5). This flag is not optional. These Linksys 185 cards will not be recognized without it. 186 18720001205: 188 Important new FreeBSD-version stuff: PAM support has been worked 189 in, partially from the "Unix" OpenSSH version. This requires 190 adding the following in pam.conf: 191 192 sshd auth sufficient pam_skey.so 193 sshd auth required pam_unix.so try_first_pass 194 sshd session required pam_permit.so 195 19620001031: 197 cvs updated to 1.11. 198 19920001020: 200 The random device needs more entropy, so you need to make sure 201 that you've run mergemaster to get a /etc/rc which will seed 202 /dev/random. If you don't and the system hangs after ldconfig, 203 then banging on the keyboard randomly until it unhangs is one 204 workaround. 205 20620001010: 207 ****************************** WARNING ****************************** 208 Sendmail has been updated. 209 ****************************** WARNING ****************************** 210 o mail.local(8) is no longer installed as a set-user-id binary. 211 o sendmail(8) is now built with STARTTLS support unless NO_OPENSSL 212 is set. 213 o The default /etc/mail/sendmail.cf disables the SMTP EXPN and VRFY 214 commands. 215 o Now using sendmail's version of vacation(1). 216 o The sendmail cf building tools (contrib/sendmail/cf) are installed 217 in /usr/share/sendmail/cf. 218 o sendmail.cw changed to local-host-names 219 220 More details can be found at 221 http://people.freebsd.org/~imp/UPDATING/sendmail-20001010 222 22320001009: 224 The ports tree's new layout is in place. Be sure to update 225 your entire ports tree, or you will have problems. 226 22720001006: 228 The perl build procedure no longer installs miniperl, nor uses 229 the installed miniperl. It is recommended that you delete 230 /usr/bin/miniperl. 231 23220001005: 233 This weekend the ports tree will be updated to a new layout. 234 It will be in an inconsistent state until noted in the UPDATING 235 file, or with asami-san's message to the relevant mailing 236 lists. With this new layout, you'll need to update the whole 237 tree for anything to work. 238 23920000928: 240 There was a change in the passwd format. Need more information. 241 24220000916: 243 /boot/kernel/kernel.ko -> /boot/kernel/kernel change has taken 244 place. Please update boot loader (not the boot blocks) at the 245 same time as your kernel. 246 24720000914: 248 The new pmtimer device is necessary for laptops. Failure to 249 include the device will cause suspended laptops losing time 250 when they resume. Include 251 device pmtimer 252 in your config file and 253 hint.pmtimer.0.at="isa" 254 to your /boot/device.hints file. 255 25620000911: 257 The random device has been turned into a (pseudo-)device, 258 rather than an option. The supplied kernel config files have 259 been updated. You will need to do something similar in your 260 own kernel config file. 261 Remove: 262 options RANDOMDEV 263 Add: 264 device random 265 If you prefer to load the loadable module, you need to do 266 nothing. 267 26820000909: 269 The random device module has been renamed from randomdev.ko to 270 random.ko. You will need to edit your /boot/loader.conf to 271 reflect this if you load this module at boot time. 272 The line should read: 273 random_load="YES" 274 27520000907: 276 The SMPNG commit has happened. It should work, but if it 277 doesn't, fallback to the PRE_SMPNG CVS tag. There are likely 278 to be a variety of minor issues. Please see 20000905 to make 279 sure you don't have model loading problems which might at 280 first blush appear related to SMP. 281 28220000906: 283 nsswitch has been imported from NetBSD. Among other things, 284 this means that /etc/host.conf is no longer used. See 285 nsswitch.conf(5) instead. Note that at boot time rc.network 286 will attempt to produce a new nsswitch.conf file for you if you 287 don't have one, and you have host.conf. 288 28920000905: 290 The ucred structure changed size. This breaks the interface 291 that mountd uses. Trying to use an older mountd with a newer 292 kernel guarantees a panic. This means that you need to use 293 kernels newer than today only with matching mountd, but you 294 needed to do that anyway with the boot loader changes. 295 29620000905: 297 The boot loader has been updated. The new default kernel is 298 now /boot/kernel/kernel.ko. The new default module location 299 is /boot/kernel. 300 301 You *MUST* upgrade your boot loader and kernel at the same time. 302 The easiest way to do this is to do the buildworld/buildkernel/ 303 installkernel/installworld dance. 304 305 Furthermore, you are urged to delete your old /modules directory 306 before booting the new kernel, since kldload will find stale 307 modules in that directory instead of finding them in the correct 308 path, /boot/kernel. The most common complaint that this cures 309 is that the linux module crashes your machine after the update. 310 311 if [ ! -d /boot/kernel.old ]; then 312 mv /modules.old /boot/kernel.old 313 chflags noschg /kernel.old 314 mv /kernel.old /boot/kernel.old/kernel.ko 315 chflags schg /boot/kernel.old/kernel.ko 316 fi 317 31820000904: 319 A new issue with the sendmail upgrade has come to light. 320 /etc/aliases has moved to /etc/mail/aliases. Mergemaster will 321 incorrectly install the default aliases in /etc/mail rather than 322 move the old one from /etc. So you'll need to manually move the 323 file, create a symbolic link, remove the old /etc/aliases.db and 324 run newaliases. For safety sake, you should stop sendmail 325 while doing this and run the upgrade when locally sourced email 326 is not likely to be generated. 327 32820000825: 329 /boot/device.hints is now required for installkernel to 330 succeed. You should copy GENERIC.hints for your architecture 331 into /boot/device.hints. If and only if you compile hints 332 into your kernel, then this file may be empty. Please note, 333 if you have an empty or missing /boot/device.hints file and 334 you neglected to compile hints into your kernel, no boot 335 messages will appear after the boot loader tries to start the 336 kernel. 337 33820000821: 339 If you do NOT have ``options RANDOMDEV'' in your kernel and 340 you DO want the random device then add randomdev_load="YES" to 341 /boot/loader.conf. 342 34320000812: 344 suidperl is now always built and installed on the system, but 345 with permissions of 511. If you have applications that use 346 this program, you are now required to add ENABLE_SUIDPERL=true 347 to /etc/make.conf. If you forget to do this, 348 chmod 4511 /usr/bin/suidperl 349 will fix this until the next build. 350 35120000812: 352 sendmail has been updated from 8.9.3 to 8.11.0. Some of the more 353 visible changes that may immediately affect your configuration 354 include: 355 - New default file locations from src/contrib/sendmail/cf/README 356 - newaliases limited to root and trusted users 357 - MSA port (587) turned on by default 358 - New queue file naming system so can't go from 8.11 -> 8.9 359 - FEATURE(`rbl') renamed to FEATURE(`dnsbl') 360 - FEATURE(`nullclient') is more full featured 361 - FEATURE(`nouucp') requires an argument: `reject' or `nospecial' 362 - mail.local FreeBSD-only -b option changed to -B 363 - See src/contrib/sendmail/RELEASE_NOTES for more info 364 36520000810: 366 suidperl (aka sperl) is no longer build by default. You must 367 specifically define BUILD_SUIDPERL to "true" for it to be build. 368 Furthermore, we recommend that you remove /usr/bin/sperl* and 369 /usr/bin/suidperl files from your system unless you have a 370 specific use for it. 371 37220000729: 373 Networking defaults have been tightened. Anybody upgrading 374 /etc/defaults/rc.conf needs to add the following lines to 375 /etc/rc.conf if they want to have the same setup 376 afterwards (unless the variables already are set, of course): 377 # Enable network daemons for user convenience. 378 inetd_enable="YES" 379 portmap_enable="YES" 380 sendmail_enable="YES" 381 38220000728: 383 If you have null_load="YES" in your /boot/loader.conf, you 384 will need to change that to nullfs_load="YES". 385 38620000728: 387 The "installkernel" target has changed slightly. Now even if 388 you override KERNEL e.g. 'make installkernel KERNEL=MYKERNEL' 389 it will install the MYKERNEL file (built with the buildkernel 390 target) as /kernel rather than /MYKERNEL. Those who have 391 updated their /boot/loader.conf files to point to /MYKERNEL 392 should remove that entry or perform manual rename of /kernel 393 to /MYKERNEL. 394 39520000711: 396 If you use CVSUP or CTM to get CVS trees, AND you used to get 397 the old crypto files from internat.freebsd.org AND you check 398 out files from the CVS tree with the cvs command, please read 399 http://people.freebsd.org/~imp/internat.txt 400 for details on potential problems that you might have and how 401 to get around them. 402 403 If you are merely a mirror, or don't answer yes to each of the 404 clauses above, you needn't worry. 405 40620000711: 407 /etc/security has been updated to print the inode number of 408 setuid programs that have changed. You will see a large spike 409 in the number of changed programs the first time when you run 410 mergemaster to get a new /etc/security. 411 41220000710: 413 /dev/random now has good entropy collection (from the keyboard 414 and sysmouse drivers). Please ensure that either `options 415 RANDOMDEV' is present in your kernel config file or that 416 `randomdev_load="YES"' is in your /boot/loader.conf. If you do 417 not have the /dev/random driver, OpenSSL (and consequently 418 lots of crypto tools (like SSH)) will fail with strange 419 errors. (see below, 20000624). 420 421 FreeBSD-current is safe again to run Crypto. 422 42320000709: 424 phk made the malloc default options AJ. This may slow things 425 down and uncover other latent bugs in the code. If you need to 426 run at full speed, you can disable this by doing the following: 427 ln -s aj /etc/malloc.conf 428 42920000706: 430 libftpio's version was accidentally bumped a few days ago. This 431 has been corrected. You may need to remove /usr/lib/libftpio.so.6 432 before doing your next buildworld/installworld pair. It certainly 433 won't hurt to remove it before the update procedure. It will 434 break fetch until a new one is built, but ftp can be used in the 435 interim if needed. 436 43720000705: 438 The crypto packages have changed for the cvsup. This has been done 439 in a backward compatible way, but the old packages will go away at 440 some point in the future. Look at /usr/share/examples/cvsup for 441 details. 442 44320000704: 444 With the new sys/modules/sound/drivers/*, you will need to 445 set SYSDIR until you do an installworld after July 7th. 446 44720000704: 448 rc.shutdown and rc will now call the rc.d scripts with start 449 or stop. This may cause some harmless warnings from older 450 rc.d scripts that haven't been updated. 451 45220000630: 453 The libfetch based version of fetch has gone into the tree. 454 Minor problems may result on some of the less popular sites, 455 which should be reported to des@freebsd.org. 456 45720000625: 458 From approximately this date forward, one must have the crypto 459 system installed in order to build the system and kernel. 460 While not technically strictly true, one should treat it as 461 required and grab the crypto bits. If you are grabbing CVS 462 trees, src-all and cvs-crypto should be treated as if they 463 were required. You should check with the latest collections 464 to make sure that these haven't changed. 465 46620000624: 467 Mark Murray just committed the first parts of a cleanup of 468 /dev/zero, et al. This is also cleaning up /dev/random. 469 The entropy is disconnected, so DO NOT USE VERSIONS OF FREEBSD 470 -CURRENT FROM THIS POINT FORWARD for cryptographic services 471 until Mark can merge in the fixes to this work in progress. 472 openssh and openssl should not be used to generate keys from this 473 date to the completion of the work. 474 475 If you must operate at this reduced level of security, add ' 476 options RANDOMDEV' to your kernel or modload the randomdev 477 module. You may also need to copy a new MAKEDEV to /dev and 478 recreate the random and urandom devices. 479 48020000622: 481 The license on the softupdates is now a standard 2 clause 482 BSD license. You may need to remove your symbolic links 483 that used to be required when updating. 484 48520000621: 486 Scott Flatman <sf@aracnet.com> sent in a decent write-up on 487 the config file update procedure. 488 http://people.freebsd.org/~imp/config-upd.html 489 NOTE: LINT is gone. It has been replaced with NOTES. NOTES 490 isn't buildable. However, you can generate a LINT file. 491 49220000620: 493 Binutils 2.10 have hit the tree, or will shortly. As soon 494 as they do, the problem noted in 20000522 will be resolved and 495 that workaround will no longer be required. 496 49720000615: 498 phk removed the compatibility creation of wd devices in the 499 ad driver. If you haven't done so already, you must update 500 your fstab, etc to use the ad devices instead of the wd 501 devices. 502 503 In addition, you'll need to update your boot blocks to a 504 more modern version, if you haven't already done so. Modern 505 here means 4.0 release or newer (although older releases 506 may work). 507 50820000612: 509 Peter took an axe to config(8). Be sure that you read his mail 510 on the topic before even thinking about updating. You will 511 need to create a /boot/device.hints or add a hints directive 512 to your config file to compile them in statically. The format 513 of the config file has changed as well. Please see GENERIC or 514 NEWCARD for examples of the new format. 515 51620000522: 517 A new set of binutils went into the tree today. Anybody 518 building a kernel after this point is advised that they need 519 to rebuild their binutils (or better yet do a 520 buildworld/installworld) before building a new kernel. 521 522 Due to bugs in binutils, using malloc options (eg /etc/malloc.conf 523 or MALLOC_OPTIONS env var) J will cause ld to dump core. It 524 is recommended that you don't set this option until the problem 525 is resolved. 526 52720000513: 528 The ethernet drivers were all updated to clean up the BPF handling. 529 53020000510: 531 The problems with boot blocks on the alphas have been corrected. 532 This will require some care in updating alphas. A new libstand 533 is requires for the boot blocks to build properly. 534 53520000503: 536 Recompile all kld modules. Proper version dependency info 537 is now available. 538 53920000502: 540 Modules have been disconnected from the buildworld tree and 541 connected to the kernel building instead. 542 54320000427: 544 You may need to build gperf 545 cd /usr/src/gnu/usr.bin/gperf && make depend all install 546 when upgrading from 4.0 -> current. The build system now uses 547 an option only in -current. 548 54920000417: 550 The method that we brand ELF binaries has changed to be more 551 acceptable to the binutils maintainers. You will need to 552 rebrand your ELF binaries that aren't native. One problem 553 binary is the Linux ldconfig. After your make world, but 554 before you reboot, you'll need to issue: 555 brandelf -t Linux /compat/linux/sbin/ldconfig 556 if you have Linux compatibility enabled on your machine. 557 55820000320: 559 If you have really bad/marginal IDE drives, you may find they 560 don't work well. Use pio mode instead. The easiest way to 561 cope if you have a problem combination is to add: 562 /sbin/sysctl -w hw.atamodes=pio,pio,pio,pio 563 to the start of /etc/rc.conf. 564 56520000319: 566 The ISA and PCI compatibility shims have been connected to the 567 options COMPAT_OLDISA and COMPAT_OLDPCI. If you are using old 568 style PCI or ISA drivers (i.e. tx, voxware, etc.) you must 569 include the appropriate option in your kernel config. Drivers 570 using the shims should be updated or they won't ship with 571 5.0-RELEASE, targeted for 2001. 572 57320000318: 574 We've entered the traditional post release dumping party. 575 Large kernel changes are being committed and are in the 576 works. It is important to keep the systems' klds and kernel 577 in sync as kernel interfaces and structures are changing. 578 Before reporting kernel panics, make sure that all modules 579 that you are loading are up to date. 580 58120000315: 582 If you are upgrading from an older version of FreeBSD, you 583 need to update your boot blocks as well. 'disklabel -B ad0' 584 will do the trick. This isn't critical until you remove your 585 wd device entries in /dev, at which point your system will not 586 boot. 587 58820000315: 589 4.0 RELEASE shipped. Please see the 4.0 UPDATING file for how 590 to upgrade to 4.0 from 3.x. 591 592COMMON ITEMS: 593 594 General Notes 595 ------------- 596 Avoid using make -j when upgrading. From time to time in the 597 past there have been problems using -j with buildworld and/or 598 installworld. This is especially true when upgrading between 599 "distant" versions (eg one that cross a major release boundary 600 or several minor releases, or when several months have passed 601 on the -current branch). 602 603 To build a kernel 604 ----------------- 605 If you are updating from a prior version of FreeBSD (even one just 606 a few days old), you should follow this procedure. With a 607 /usr/obj tree with a fresh buildworld, 608 make buildkernel KERNCONF=YOUR_KERNEL_HERE 609 make installkernel KERNCONF=YOUR_KERNEL_HERE 610 611 To just build a kernel when you know that it won't mess you up 612 -------------------------------------------------------------- 613 cd src/sys/{i386,alpha}/conf 614 config KERNEL_NAME_HERE [1] 615 cd ../../compile/KERNEL_NAME_HERE 616 make depend 617 make 618 make install 619 620 [1] If in doubt, -r might help here. 621 622 If this fails, go to the "To build a kernel" section. 623 624 To rebuild everything and install it on the current system. 625 ----------------------------------------------------------- 626 make world 627 Build a new kernel, see above. 628 629 To upgrade from 4.x-stable to current 630 ------------------------------------- 631 make buildworld 632 make buildkernel KERNCONF=YOUR_KERNEL_HERE 633 cp src/sys/${MACHINE_ARCH}/conf/GENERIC.hints /boot/device.hints [2] 634 make installkernel KERNCONF=YOUR_KERNEL_HERE 635 reboot in single user [3] 636 make installworld 637 mergemaster 638 [1] 639 <reboot> 640 641 Make sure that you've read the UPDATING file to understand the 642 tweaks to various things you need. At this point in the life 643 cycle of current, things change often and you are on your own 644 to cope. The defaults can also change, so please read ALL of 645 the UPDATING entries. 646 647 Also, if you are tracking -current, you must be subscribed to 648 freebsd-current@freebsd.org. Make sure that before you update 649 your sources that you have read and understood all the recent 650 messages there. If in doubt, please track -stable which has 651 much fewer pitfalls. 652 653 [1] If you have third party modules, such as vmware, you 654 should disable them at this point so they don't crash your 655 system on reboot. 656 657 [2] If you have legacy ISA devices, you may need to create 658 your own device.hints to reflect your unique hardware 659 configuration. 660 661 [3] From the bootblocks, boot -s, and then do 662 fsck -p 663 mount -u / 664 mount -a 665 cd /usr/src 666 adjkerntz -i # if COMS is wall time 667 668FORMAT: 669 670This file contains a list, in reverse chronological order, of major 671breakages in tracking -current. Not all things will be listed here, 672and it only starts on March 15, 2000. Updating files can found in 673previous releases if your system is older than this. 674 675Please filter your entries through Warner Losh (imp@village.org) so 676that the style, formatting, etc of this file can be maintained. 677 678$FreeBSD: head/UPDATING 77705 2001-06-04 16:17:06Z imp $ 679