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 820000825: 9 /boot/device.hints is now required for installkernel to 10 succeed. You should copy GENERIC.hints for your architecture 11 into /boot/device.hints. If and only if you compile hints 12 into your kernel, then this file may be empty. Please note, 13 if you have an empty or missing /boot/device.hints file and 14 you neglected to compile hints into your kernel, no boot 15 messages will appear after the boot loader tries to start the 16 kernel. 17 1820000821: 19 If you do NOT have ``options RANDOMDEV'' in your kernel and 20 you DO want the random device then add randomdev_load="YES" to 21 /boot/loader.conf. 22 2320000812: 24 suidperl is now always built and installed on the system, but 25 with permissions of 511. If you have applications that use 26 this program, you are now required to add ENABLE_SUIDPERL=true 27 to /etc/make.conf. If you forget to do this, 28 chmod 4511 /usr/bin/suidperl 29 will fix this until the next build. 30 3120000812: 32 sendmail has been updated from 8.9.3 to 8.11.0. Some of the more 33 visible changes that may immediately affect your configuration 34 include: 35 - New default file locations from src/contrib/sendmail/cf/README 36 - newaliases limited to root and trusted users 37 - MSA port (587) turned on by default 38 - New queue file naming system so can't go from 8.11 -> 8.9 39 - FEATURE(`rbl') renamed to FEATURE(`dnsbl') 40 - FEATURE(`nullclient') is more full featured 41 - FEATURE(`nouucp') requires an argument: `reject' or `nospecial' 42 - mail.local FreeBSD-only -b option changed to -B 43 - See src/contrib/sendmail/RELEASE_NOTES for more info 44 4520000810: 46 suidperl (aka sperl) is no longer build by default. You must 47 specifically define BUILD_SUIDPERL to "true" for it to be build. 48 Furthermore, we recommend that you remove /usr/bin/sperl* and 49 /usr/bin/suidperl files from your system unless you have a 50 specific use for it. 51 5220000729: 53 Networking defaults have been tightened. Anybody upgrading 54 /etc/defaults/rc.conf needs to add the following lines to 55 /etc/rc.conf if they want to have the same setup 56 afterwards (unless the variables already are set, of course): 57 # Enable network daemons for user convenience. 58 inetd_enable="YES" 59 portmap_enable="YES" 60 sendmail_enable="YES" 61 6220000728: 63 If you have null_load="YES" in your /boot/loader.conf, you 64 will need to change that to nullfs_load="YES". 65 6620000728: 67 The "installkernel" target has changed slightly. Now even if 68 you override KERNEL e.g. 'make installkernel KERNEL=MYKERNEL' 69 it will install the MYKERNEL file (built with the buildkernel 70 target) as /kernel rather than /MYKERNEL. Those who have 71 updated their /boot/loader.conf files to point to /MYKERNEL 72 should remove that entry or perform manual rename of /kernel 73 to /MYKERNEL. 74 7520000711: 76 If you use CVSUP or CTM to get CVS trees, AND you used to get 77 the old crypto files from internat.freebsd.org AND you check 78 out files from the CVS tree with the cvs command, please read 79 http://people.freebsd.org/~imp/internat.txt 80 for details on potential problems that you might have and how 81 to get around them. 82 83 If you are merely a mirror, or don't answer yes to each of the 84 clauses above, you needn't worry. 85 8620000711: 87 /etc/security has been updated to print the inode number of 88 setuid programs that have changed. You will see a large spike 89 in the number of changed programs the first time when you run 90 mergemaster to get a new /etc/security. 91 9220000710: 93 /dev/random now has good entropy collection (from the keyboard 94 and sysmouse drivers). Please ensure that either `options 95 RANDOMDEV' is present in your kernel config file or that 96 `randomdev_load="YES"' is in your /boot/loader.conf. If you do 97 not have the /dev/random driver, OpenSSL (and consequently 98 lots of crypto tools (like SSH)) will fail with strange 99 errors. (see below, 20000624). 100 101 FreeBSD-current is safe again to run Crypto. 102 10320000709: 104 phk made the malloc default options AJ. This may slow things 105 down and uncover other latent bugs in the code. If you need to 106 run at full speed, you can disable this by doing the following: 107 ln -s aj /etc/malloc.conf 108 10920000706: 110 libftpio's version was accidentally bumped a few days ago. This 111 has been corrected. You may need to remove /usr/lib/libftpio.so.6 112 before doing your next buildworld/installworld pair. It certainly 113 won't hurt to remove it before the update procedure. It will 114 break fetch until a new one is built, but ftp can be used in the 115 interrum if needed. 116 11720000705: 118 The crypto packages have changed for the cvsup. This has been done 119 in a backward compatible way, but the old packages will go away at 120 some point in the future. Look at /usr/share/examples/cvsup for 121 details. 122 12320000704: 124 With the new sys/modules/sound/drivers/*, you will need to 125 set SYSDIR until you do an installworld after July 7th. 126 12720000704: 128 rc.shutdown and rc will now call the rc.d scripts with start 129 or stop. This may cause some harmless warnings from older 130 rc.d scripts that haven't been updated. 131 13220000630: 133 The libfetch based version of fetch has gone into the tree. 134 Minor problems may result on some of the less popular sites, 135 which should be reported to des@freebsd.org. 136 13720000625: 138 From approximately this date forward, one must have the crypto 139 system installed in order to build the system and kernel. 140 While not technically strictly true, one should treat it as 141 required and grab the crypto bits. If you are grabbing CVS 142 trees, src-all and cvs-crypto should be treated as if they 143 were required. You should check with the latest collections 144 to make sure that these haven't changed. 145 14620000624: 147 Mark Murray just committed the first parts of a cleanup of 148 /dev/zero, et al. This is also cleaning up /dev/random. 149 The entropy is disconnected, so DO NOT USE VERSIONS OF FREEBSD 150 -CURRENT FROM THIS POINT FORWARD for cryptographic services 151 until Mark can merge in the fixes to this work in progress. 152 openssh and openssl should not be used to generate keys from this 153 date to the completion of the work. 154 155 If you must operate at this reduced level of security, add ' 156 options RANDOMDEV' to your kernel or modload the randomdev 157 module. You may also need to copy a new MAKEDEV to /dev and 158 recreate the random and urandom devices. 159 16020000622: 161 The license on the softupdates is now a standard 2 clause 162 BSD license. You may need to remove your symbolic links 163 that used to be required when updating. 164 16520000621: 166 Scott Flatman <sf@aracnet.com> sent in a decent writeup on 167 the config file update procedure. 168 http://people.freebsd.org/~imp/config-upd.html 169 NOTE: LINT is gone. It has been replaced with NOTES. NOTES 170 isn't buildable. However, you can generate a LINT file. 171 17220000620: 173 Binutils 2.10 have hit the tree, or will shortly. As soon 174 as they do, the problem noted in 20000522 will be resolved and 175 that workaround will no longer be required. 176 17720000615: 178 phk removed the compatibility creation of wd devices in the 179 ad driver. If you haven't done so already, you must update 180 your fstab, etc to use the ad devices instead of the wd 181 devices. 182 183 In addition, you'll need to update your boot blocks to a 184 more modern version, if you haven't already done so. Modern 185 here means 4.0 release or newer (although older releases 186 may work). 187 18820000612: 189 Peter took an axe to config(8). Be sure that you read his mail 190 on the topic before even thinking about updating. You will 191 need to create a /boot/device.hints or add a hints directive 192 to your config file to compile them in statically. The format 193 of the config file has changed as well. Please see GENERIC or 194 NEWCARD for examples of the new format. 195 19620000522: 197 A new set of binutils went into the tree today. Anybody 198 building a kernel after this point is advised that they need 199 to rebuild their binutils (or better yet do a 200 buildworld/installworld) before building a new kernel. 201 202 Due to bugs in binutils, using malloc options (eg /etc/malloc.conf 203 or MALLOC_OPTIONS env var) J will cause ld to dump core. It 204 is recommended that you don't set this option until the problem 205 is resolved. 206 20720000513: 208 The ethernet drivers were all updated to clean up the BPF handling. 209 21020000510: 211 The problems with boot blocks on the alphas have been corrected. 212 This will require some care in updating alphas. A new libstand 213 is requires for the boot blocks to build properly. 214 21520000503: 216 Recompile all kld modules. Proper version dependency info 217 is now available. 218 21920000502: 220 Modules have been disconnected from the buildworld tree and 221 connected to the kernel building instead. 222 2232000427: 224 You may need to build gperf 225 cd /usr/src/gnu/usr.bin/gperf && make depend all install 226 when upgrading from 4.0 -> current. The build system now uses 227 an option only in -current. 228 22920000417: 230 The method that we brand ELF binaries has changed to be more 231 acceptable to the binutils maintainers. You will need to 232 rebrand your ELF binaries that aren't native. One problem 233 binary is the Linux ldconfig. After your make world, but 234 before you reboot, you'll neeed to issue: 235 brandelf -t Linux /compat/linux/sbin/ldconfig 236 if you have Linux compatibility enabled on your machine. 237 23820000320: 239 If you have really bad/marginal IDE drives, you may find they 240 don't work well. Use pio mode instead. The easiest way to 241 cope if you have a problem combination is to add: 242 /sbin/sysctl -w hw.atamodes=pio,pio,pio,pio 243 to the start of /etc/rc.conf. 244 24520000319: 246 The ISA and PCI compatibility shims have been connected to the 247 options COMPAT_OLDISA and COMPAT_OLDPCI. If you are using old 248 style PCI or ISA drivers (i.e. tx, voxware, etc.) you must 249 include the appropriate option in your kernel config. Drivers 250 using the shims should be updated or they won't ship with 251 5.0-RELEASE, targeted for 2001. 252 25320000318: 254 We've entered the traditional post release dumping party. 255 Large kernel changes are being committed and are in the 256 works. It is important to keep the systems' klds and kernel 257 in sync as kernel interfaces and structures are changing. 258 Before reporting kernel panics, make sure that all modules 259 that you are loading are up to date. 260 26120000315: 262 If you are upgrading from an older version of FreeBSD, you 263 need to update your boot blocks as well. 'disklabel -B ad0' 264 will do the trick. This isn't critical until you remove your 265 wd device entries in /dev, at which point your system will not 266 boot. 267 26820000315: 269 4.0 RELEASE shipped. Please see the 4.0 UPDATING file for how 270 to upgrade to 4.0 from 3.x. 271 272COMMON ITEMS: 273 274 General Notes 275 ------------- 276 Avoid using make -j when upgrading. From time to time in the 277 past there have been problems using -j with buildworld and/or 278 installworld. This is especially true when upgrading between 279 "distant" versions (eg one that cross a major release boundary 280 or several minor releases, or when several months have passed 281 on the -current branch). 282 283 To build a kernel 284 ----------------- 285 If you are updating from a prior version of FreeBSD (even one just 286 a few days old), you should follow this procedure. With a 287 /usr/obj tree with a fresh buildworld, 288 make buildkernel KERNEL=YOUR_KERNEL_HERE 289 make installkernel KERNEL=YOUR_KERNEL_HERE 290 291 To just build a kernel when you know that it won't mess you up 292 -------------------------------------------------------------- 293 cd src/sys/{i386,alpha}/conf 294 config KERNEL_NAME_HERE [1] 295 cd ../../compile/KERNEL_NAME_HERE 296 make depend 297 make 298 make install 299 300 [1] If in doubt, -r might help here. 301 302 If this fails, go to the "To build a kernel" section. 303 304 To rebuild everything and install it on the current system. 305 ----------------------------------------------------------- 306 make world 307 Build a new kernel, see above. 308 309 To upgrade from 4.x-stable to current 310 ------------------------------------- 311 make buildworld 312 make buildkernel KERNEL=YOUR_KERNEL_HERE 313 cp src/sys/${MACHINE_ARCH}/GENERIC.hints /boot/device.hints [2] 314 make installkernel KERNEL=YOUR_KERNEL_HERE 315 make installworld 316 [1] 317 <reboot> 318 319 Make sure that you've read the UPDATING file to understand the 320 tweaks to various things you need. At this point in the life 321 cycle of current, things change often and you are on your own 322 to cope. The defaults can also change, so please read ALL of 323 the UPDATING entries. 324 325 Also, if you are tracking -current, you must be subscribed to 326 freebsd-current@freebsd.org. Make sure that before you update 327 your sources that you have read and understood all the recent 328 messages there. If in doubt, please track -stable which has 329 much fewer pitfalls. 330 331 [1] If you have third party modules, such as vmware, you 332 should disable them at this point so they don't crash your 333 system on reboot. 334 335 [2] If you have legacy ISA devices, you may need to create 336 your own device.hints to reflect your unique hardware 337 configuration. 338 339FORMAT: 340 341This file contains a list, in reverse chronological order, of major 342breakages in tracking -current. Not all things will be listed here, 343and it only starts on March 15, 2000. Updating files can found in 344previous releases if your system is older than this. 345 346Please filter your entries through Warner Losh (imp@village.org) so 347that the style, formatting, etc of this file can be maintained. 348 349$FreeBSD$ 350