1Updating Information for FreeBSD current users. 2 3This file is maintained and copyrighted by M. Warner Losh <[email protected]>. 4See end of file for further details. For commonly done items, please see the 5COMMON ITEMS: section later in the file. These instructions assume that you 6basically know what you are doing. If not, then please consult the FreeBSD 7handbook: 8 9 https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld 10 11Items affecting the ports and packages system can be found in 12/usr/ports/UPDATING. Please read that file before updating system packages 13and/or ports. 14 15NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW: 16 FreeBSD 14.x has many debugging features turned on, in both the kernel 17 and userland. These features attempt to detect incorrect use of 18 system primitives, and encourage loud failure through extra sanity 19 checking and fail stop semantics. They also substantially impact 20 system performance. If you want to do performance measurement, 21 benchmarking, and optimization, you'll want to turn them off. This 22 includes various WITNESS- related kernel options, INVARIANTS, malloc 23 debugging flags in userland, and various verbose features in the 24 kernel. Many developers choose to disable these features on build 25 machines to maximize performance. (To completely disable malloc 26 debugging, define WITH_MALLOC_PRODUCTION in /etc/src.conf and rebuild 27 world, or to merely disable the most expensive debugging functionality 28 at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) 29 3020221205: 31 dma(8) has replaced sendmail(8) as the default mta. For people willing 32 to reenable sendmail(8): 33 34 $ cp /usr/share/examples/sendmail/mailer.conf /etc/mail/mailer.conf 35 36 and add sendmail_enable="YES" to rc.conf. 37 3820221204: 39 hw.bus.disable_failed_devices has changed from 'false' to 'true' by 40 default. Now if newbus succeeds in probing a device, but fails to attach 41 the device, we'll disable the device. In the past, we'd keep retrying 42 the device on each new driver loaded. To get that behavior now, one 43 needs to use devctl to re-enable the device, and reprobe it (or set 44 the sysctl/tunable hw.bus.disable_failed_devices=false). 45 46 NOTE: This was reverted 20221205 due to unexpected compatibility issues 47 4820221122: 49 pf no longer accepts 'scrub fragment crop' or 'scrub fragment drop-ovl'. 50 These configurations are no longer automatically reinterpreted as 51 'scrub fragment reassemble'. 52 5320221121: 54 The WITHOUT_CLANG_IS_CC option has been removed. When Clang is enabled 55 it is always installed as /usr/bin/cc (and c++, cpp). 56 5720221026: 58 Some programs have been moved into separate packages. It is recommended 59 for pkgbase users to do: 60 61 pkg install FreeBSD-dhclient FreeBSD-geom FreeBSD-resolvconf \ 62 FreeBSD-devd FreeBSD-devmatch 63 64 after upgrading to restore all the component that were previously 65 installed. 66 6720220610: 68 LinuxKPI pm.h changes require an update to the latest drm-kmod version 69 before re-compiling to avoid errors. 70 7120211230: 72 The macros provided for the manipulation of CPU sets (e.g. CPU_AND) 73 have been modified to take 2 source arguments instead of only 1. 74 Externally maintained sources that use these macros will have to 75 be adapted. The FreeBSD version has been bumped to 1400046 to 76 reflect this change. 77 7820211214: 79 A number of the kernel include files are able to be included by 80 themselves. A test has been added to buildworld to enforce this. 81 8220211209: 83 Remove mips as a recognized target. This starts the decommissioning of 84 mips support in FreeBSD. mips related items will be removed wholesale in 85 the coming days and weeks. 86 87 This broke the NO_CLEAN build for some people. Either do a clean build 88 or touch 89 lib/clang/include/llvm/Config/Targets.def 90 lib/clang/include/llvm/Config/AsmParsers.def 91 lib/clang/include/llvm/Config/Disassemblers.def 92 lib/clang/include/llvm/Config/AsmPrinters.def 93 before the build to force everything to rebuild that needs to. 94 9520211202: 96 Unbound support for RFC8375: The special-use domain 'home.arpa' is 97 by default blocked. To unblock it use a local-zone nodefault 98 statement in unbound.conf: 99 local-zone: "home.arpa." nodefault 100 101 Or use another type of local-zone to override with your choice. 102 103 The reason for this is discussed in Section 6.1 of RFC8375: 104 Because 'home.arpa.' is not globally scoped and cannot be secured 105 using DNSSEC based on the root domain's trust anchor, there is no way 106 to tell, using a standard DNS query, in which homenet scope an answer 107 belongs. Consequently, users may experience surprising results with 108 such names when roaming to different homenets. 109 11020211110: 111 Commit b8d60729deef changed the TCP congestion control framework so 112 that any of the included congestion control modules could be 113 the single module built into the kernel. Previously newreno 114 was automatically built in through direct reference. As of 115 this commit you are required to declare at least one congestion 116 control module (e.g. 'options CC_NEWRENO') and to also declare a 117 default using the CC_DEFAULT option (e.g. options CC_DEFAULT="newreno\"). 118 The GENERIC configuration includes CC_NEWRENO and defines newreno 119 as the default. If no congestion control option is built into the 120 kernel and you are including networking, the kernel compile will 121 fail. Also if no default is declared the kernel compile will fail. 122 12320211118: 124 Mips has been removed from universe builds. It will be removed from the 125 tree shortly. 126 12720211106: 128 Commit f0c9847a6c47 changed the arguments for VOP_ALLOCATE. 129 The NFS modules must be rebuilt from sources and any out 130 of tree file systems that implement their own VOP_ALLOCATE 131 may need to be modified. 132 13320211022: 134 The synchronous PPP kernel driver sppp(4) has been removed. 135 The cp(4) and ce(4) drivers are now always compiled with netgraph(4) 136 support, formerly enabled by NETGRAPH_CRONYX option. 137 13820211020: 139 sh(1) is now the default shell for the root user. To force root to use 140 the csh shell, please run the following command as root: 141 142 # chsh -s csh 143 14420211004: 145 Ncurses distribution has been split between libtinfow and libncurses 146 with libncurses.so becoming a linker (ld) script to seamlessly link 147 to libtinfow as needed. Bump _FreeBSD_version to 1400035 to reflect 148 this change. 149 15020210923: 151 As of commit 8160a0f62be6, the dummynet module no longer depends on the 152 ipfw module. Dummynet can now be used by pf as well as ipfw. As such 153 users who relied on this dependency may need to include ipfw in the 154 list of modules to load on their systems. 155 15620210922: 157 As of commit 903873ce1560, the mixer(8) utility has got a slightly 158 new syntax. Please refer to the mixer(8) manual page for more 159 information. The old mixer utility can be installed from ports: 160 audio/freebsd-13-mixer 161 16220210911: 163 As of commit 55089ef4f8bb, the global variable nfs_maxcopyrange has 164 been deleted from the nfscommon.ko. As such, nfsd.ko must be built 165 from up to date sources to avoid an undefined reference when 166 being loaded. 167 16820210817: 169 As of commit 62ca9fc1ad56 OpenSSL no longer enables kernel TLS 170 by default. Users can enable kernel TLS via the "KTLS" SSL 171 option. This can be enabled globally by using a custom 172 OpenSSL config file via OPENSSL_CONF or via an 173 application-specific configuration option for applications 174 which permit setting SSL options via SSL_CONF_cmd(3). 175 17620210811: 177 Commit 3ad1e1c1ce20 changed the internal KAPI between the NFS 178 modules. Therefore, all need to be rebuilt from sources. 179 18020210730: 181 Commit b69019c14cd8 removes pf's DIOCGETSTATESNV ioctl. 182 As of be70c7a50d32 it is no longer used by userspace, but it does mean 183 users may not be able to enumerate pf states if they update the kernel 184 past b69019c14cd8 without first updating userspace past be70c7a50d32. 185 18620210729: 187 As of commit 01ad0c007964 if_bridge member interfaces can no longer 188 change their MTU. Changing the MTU of the bridge itself will change the 189 MTU on all member interfaces instead. 190 19120210716: 192 Commit ee29e6f31111 changed the internal KAPI between the nfscommon 193 and nfsd modules. Therefore, both need to be rebuilt from sources. 194 Bump __FreeBSD_version to 1400026 for this KAPI change. 195 19620210715: 197 The 20210707 awk update brought in a change in behavior. This has 198 been corrected as of d4d252c49976. Between these dates, if you 199 installed a new awk binary, you may not be able to build a new 200 kernel because the change in behavior affected the genoffset 201 script used to build the kernel. If you did update, the fix is 202 to update your sources past the above hash and do 203 % cd usr.bin/awk 204 % make clean all 205 % sudo -E make install 206 to enable building kernels again. 207 20820210708: 209 Commit 1e0a518d6548 changed the internal KAPI between the NFS 210 modules. They all need to be rebuilt from sources. I did not 211 bump __FreeBSD_version, since it was bumped recently. 212 21320210707: 214 awk has been updated to the latest one-true-awk version 20210215. 215 This contains a number of minor bug fixes. 216 21720210624: 218 The NFSv4 client now uses the highest minor version of NFSv4 219 supported by the NFSv4 server by default instead of minor version 0, 220 for NFSv4 mounts. 221 The "minorversion" mount option may be used to override this default. 222 22320210618: 224 Bump __FreeBSD_version to 1400024 for LinuxKPI changes. 225 Most notably netdev.h can change now as the (last) dependencies 226 (mlx4/ofed) are now using struct ifnet directly, but also for PCI 227 additions and others. 228 22920210618: 230 The directory "blacklisted" under /usr/share/certs/ has been 231 renamed to "untrusted". 232 23320210611: 234 svnlite has been removed from base. Should you need svn for any reason 235 please install the svn package or port. 236 23720210611: 238 Commit e1a907a25cfa changed the internal KAPI between the krpc 239 and nfsserver. As such, both modules must be rebuilt from 240 sources. Bump __FreeBSD_version to 1400022. 241 24220210610: 243 The an(4) driver has been removed from FreeBSD. 244 24520210608: 246 The vendor/openzfs branch was renamed to vendor/openzfs/legacy to 247 start tracking OpenZFS upstream more closely. Please see 248https://lists.freebsd.org/archives/freebsd-current/2021-June/000153.html 249 for details on how to correct any errors that might result. The 250 short version is that you need to remove the old branch locally: 251 git update-ref -d refs/remotes/freebsd/vendor/openzfs 252 (assuming your upstream origin is named 'freebsd'). 253 25420210525: 255 Commits 17accc08ae15 and de102f870501 add new files to LinuxKPI 256 which break drm-kmod. In addition various other additions where 257 committed. Bump __FreeBSD_version to 1400015 to be able to 258 detect this. 259 26020210513: 261 Commit ca179c4d74f2 changed the package in which the OpenSSL 262 libraries and utilities are packaged. 263 It is recommended for pkgbase user to do: 264 pkg install -f FreeBSD-openssl 265 before pkg upgrade otherwise some dependencies might not be met 266 and pkg will stop working as libssl will not be present anymore 267 on the system. 268 26920210426: 270 Commit 875977314881 changed the internal KAPI between 271 the nfsd and nfscommon modules. As such these modules 272 need to be rebuilt from sources. 273 Without this patch in your NFSv4.1/4.2 server, enabling 274 delegations by setting vfs.nfsd.issue_delegations non-zero 275 is not recommended. 276 27720210411: 278 Commit 7763814fc9c2 changed the internal KAPI between 279 the krpc and NFS. As such, the krpc, nfscommon and 280 nfscl modules must all be rebuilt from sources. 281 Without this patch, NFSv4.1/4.2 mounts should not 282 be done with the nfscbd(8) daemon running, to avoid 283 needing a working back channel for server->client RPCs. 284 28520210330: 286 Commit 01ae8969a9ee fixed the NFSv4.1/4.2 server so that it 287 handles binding of the back channel as required by RFC5661. 288 Until this patch is in your server, avoid use of the "nconnects" 289 mount option for Linux NFSv4.1/4.2 mounts. 290 29120210225: 292 For 64-bit architectures the base system is now built with Position 293 Independent Executable (PIE) support enabled by default. It may be 294 disabled using the WITHOUT_PIE knob. A clean build is required. 295 29620210128: 297 Various LinuxKPI functionality was added which conflicts with DRM. 298 Please update your drm-kmod port to after the __FreeBSD_version 1400003 299 update. 300 30120210108: 302 PC Card attachments for all devices have been removed. In the case of 303 wi and cmx, the entire drivers were removed because they were only 304 PC Card devices. FreeBSD_version 1300134 should be used for this 305 since it was bumped so recently. 306 30720210107: 308 Transport-independent parts of HID support have been split off the USB 309 code in to separate subsystem. Kernel configs which include one of 310 ums, ukbd, uhid, atp, wsp, wmt, uaudio, ugold or ucycom drivers should 311 be updated with adding of "device hid" line. 312 31320210105: 314 ncurses installation has been modified to only keep the widechar 315 enabled version. Incremental build is broken for that change, so it 316 requires a clean build. 317 31820201223: 319 The FreeBSD project has migrated from Subversion to Git. Temporary 320 instructions can be found at 321 https://github.com/bsdimp/freebsd-git-docs/blob/main/src-cvt.md 322 and other documents in that repo. 323 32420201216: 325 The services database has been updated to cover more of the basic 326 services expected in a modern system. The database is big enough 327 that it will cause issues in mergemaster in Releases previous to 328 12.2 and 11.3, or in very old current systems from before r358154. 329 33020201215: 331 Obsolete in-tree GDB 6.1.1 has been removed. GDB (including kgdb) 332 may be installed from ports or packages. 333 33420201124: 335 ping6 has been merged into ping. It can now be called as "ping -6". 336 See ping(8) for details. 337 33820201108: 339 Default value of net.add_addr_allfibs has been changed to 0. 340 If you have multi-fib configuration and rely on existence of all 341 interface routes in every fib, you need to set the above sysctl to 1. 342 34320201030: 344 The internal pre-processor in the calendar(1) program has been 345 extended to support more C pre-processor commands (e.g. #ifdef, #else, 346 and #undef) and to detect unbalanced conditional statements. 347 Error messages have been extended to include the filename and line 348 number if processing stops to help fixing malformed data files. 349 35020201026: 351 All the data files for the calendar(1) program, except calendar.freebsd, 352 have been moved to the deskutils/calendar-data port, much like the 353 jewish calendar entries were moved to deskutils/hebcal years ago. After 354 make delete-old-files, you need to install it to retain full 355 functionality. calendar(1) will issue a reminder for files it can't 356 find. 357 35820200923: 359 LINT files are no longer generated. We now include the relevant NOTES 360 files. Note: This may cause conflicts with updating in some cases. 361 find sys -name LINT\* -delete 362 is suggested across this commit to remove the generated LINT files. 363 364 If you have tried to update with generated files there, the svn 365 command you want to un-auger the tree is 366 cd sys/amd64/conf 367 svn revert -R . 368 and then do the above find from the top level. Substitute 'amd64' 369 above with where the error message indicates a conflict. 370 37120200824: 372 OpenZFS support has been integrated. Do not upgrade root pools until 373 the loader is updated to support zstd. Furthermore, we caution against 374 'zpool upgrade' for the next few weeks. The change should be transparent 375 unless you want to use new features. 376 377 Not all "NO_CLEAN" build scenarios work across these changes. Many 378 scenarios have been tested and fixed, but rebuilding kernels without 379 rebuilding world may fail. 380 381 The ZFS cache file has moved from /boot to /etc to match the OpenZFS 382 upstream default. A fallback to /boot has been added for mountroot. 383 384 Pool auto import behavior at boot has been moved from the kernel module 385 to an explicit "zpool import -a" in one of the rc scripts enabled by 386 zfs_enable=YES. This means your non-root zpools won't auto import until 387 you upgrade your /etc/rc.d files. 388 38920200824: 390 The resume code now notifies devd with the 'kernel' system 391 rather than the old 'kern' subsystem to be consistent with 392 other use. The old notification will be created as well, but 393 will be removed prior to FreeBSD 14.0. 394 39520200821: 396 r362275 changed the internal API between the kernel RPC and the 397 NFS modules. As such, all the modules must be recompiled from 398 sources. 399 40020200817: 401 r364330 modified the internal API used between the NFS modules. 402 As such, all the NFS modules must be re-compiled from sources. 403 40420200816: 405 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 406 been upgraded to 11.0.0. Please see the 20141231 entry below for 407 information about prerequisites and upgrading, if you are not already 408 using clang 3.5.0 or higher. 409 41020200810: 411 r364092 modified the internal ABI used between the kernel NFS 412 modules. As such, all of these modules need to be rebuilt 413 from sources, so a version bump was done. 414 41520200807: 416 Makefile.inc has been updated to work around the issue documented in 417 20200729. It was a case where the optimization of using symbolic links 418 to point to binaries created a situation where we'd run new binaries 419 with old libraries starting midway through the installworld process. 420 42120200729: 422 r363679 has redefined some undefined behavior in regcomp(3); notably, 423 extraneous escapes of most ordinary characters will no longer be 424 accepted. An exp-run has identified all of the problems with this in 425 ports, but other non-ports software may need extra escapes removed to 426 continue to function. 427 428 Because of this change, installworld may encounter the following error 429 from rtld: Undefined symbol "regcomp@FBSD_1.6" -- It is imperative that 430 you do not halt installworld. Instead, let it run to completion (whether 431 successful or not) and run installworld once more. 432 43320200627: 434 A new implementation of bc and dc has been imported in r362681. This 435 implementation corrects non-conformant behavior of the previous bc 436 and adds GNU bc compatible options. It offers a number of extensions, 437 is much faster on large values, and has support for message catalogs 438 (a number of languages are already supported, contributions of further 439 languages welcome). The option WITHOUT_GH_BC can be used to build the 440 world with the previous versions of bc and dc. 441 44220200625: 443 r362639 changed the internal API used between the NFS kernel modules. 444 As such, they all need to be rebuilt from sources. 445 44620200613: 447 r362158 changed the arguments for VFS_CHECKEXP(). As such, any 448 out of tree file systems need to be modified and rebuilt. 449 Also, any file systems that are modules must be rebuilt. 450 45120200604: 452 read(2) of a directory fd is now rejected by default. root may 453 re-enable it for system root only on non-ZFS filesystems with the 454 security.bsd.allow_read_dir sysctl(8) MIB if 455 security.bsd.suser_enabled=1. 456 457 It may be advised to setup aliases for grep to default to `-d skip` if 458 commonly non-recursively grepping a list that includes directories and 459 the potential for the resulting stderr output is not tolerable. Example 460 aliases are now installed, commented out, in /root/.cshrc and 461 /root/.shrc. 462 46320200523: 464 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 465 been upgraded to 10.0.1. Please see the 20141231 entry below for 466 information about prerequisites and upgrading, if you are not already 467 using clang 3.5.0 or higher. 468 46920200512: 470 Support for obsolete compilers has been removed from the build system. 471 Clang 6 and GCC 6.4 are the minimum supported versions. 472 47320200424: 474 closefrom(2) has been moved under COMPAT12, and replaced in libc with a 475 stub that calls close_range(2). If using a custom kernel configuration, 476 you may want to ensure that the COMPAT_FREEBSD12 option is included, as 477 a slightly older -CURRENT userland and older FreeBSD userlands may not 478 be functional without closefrom(2). 479 48020200414: 481 Upstream DTS from Linux 5.6 was merged and they now have the SID 482 and THS (Secure ID controller and THermal Sensor) node present. 483 The DTB overlays have now been removed from the tree for the H3/H5 and 484 A64 SoCs and the aw_sid and aw_thermal driver have been updated to 485 deal with upstream DTS. If you are using those overlays you need to 486 remove them from loader.conf and update the DTBs on the FAT partition. 487 48820200310: 489 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 490 been upgraded to 10.0.0. Please see the 20141231 entry below for 491 information about prerequisites and upgrading, if you are not already 492 using clang 3.5.0 or higher. 493 49420200309: 495 The amd(8) automount daemon has been removed from the source tree. 496 As of FreeBSD 10.1 autofs(5) is the preferred tool for automounting. 497 amd is still available in the sysutils/am-utils port. 498 49920200301: 500 Removed brooktree driver (bktr.4) from the tree. 501 50220200229: 503 The WITH_GPL_DTC option has been removed. The BSD-licenced device tree 504 compiler in usr.bin/dtc is used on all architectures which use dtc, and 505 the GPL dtc is available (if needed) from the sysutils/dtc port. 506 50720200229: 508 The WITHOUT_LLVM_LIBUNWIND option has been removed. LLVM's libunwind 509 is used by all supported CPU architectures. 510 51120200229: 512 GCC 4.2.1 has been removed from the tree. The WITH_GCC, 513 WITH_GCC_BOOTSTRAP, and WITH_GNUCXX options are no longer available. 514 Users who wish to build FreeBSD with GCC must use the external toolchain 515 ports or packages. 516 51720200220: 518 ncurses has been updated to a newer version (6.2-20200215). Given the ABI 519 has changed, users will have to rebuild all the ports that are linked to 520 ncurses. 521 52220200217: 523 The size of struct vnet and the magic cookie have changed. 524 Users need to recompile libkvm and all modules using VIMAGE 525 together with their new kernel. 526 52720200212: 528 Defining the long deprecated NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB, 529 NO_MAN, NO_PROFILE, and NO_WARNS variables is now an error. Update 530 your Makefiles and scripts to define MK_<var>=no instead as required. 531 532 One exception to this is that program or library Makefiles should 533 define MAN to empty rather than setting MK_MAN=no. 534 53520200108: 536 Clang/LLVM is now the default compiler and LLD the default 537 linker for riscv64. 538 53920200107: 540 make universe no longer uses GCC 4.2.1 on any architectures. 541 Architectures not supported by in-tree Clang/LLVM require an 542 external toolchain package. 543 54420200104: 545 GCC 4.2.1 is now not built by default, as part of the GCC 4.2.1 546 retirement plan. Specifically, the GCC, GCC_BOOTSTRAP, and GNUCXX 547 options default to off for all supported CPU architectures. As a 548 short-term transition aid they may be enabled via WITH_* options. 549 GCC 4.2.1 is expected to be removed from the tree on 2020-03-31. 550 55120200102: 552 Support for armv5 has been disconnected and is being removed. The 553 machine combination MACHINE=arm MACHINE_ARCH=arm is no longer valid. 554 You must now use a MACHINE_ARCH of armv6 or armv7. The default 555 MACHINE_ARCH for MACHINE=arm is now armv7. 556 55720191226: 558 Clang/LLVM is now the default compiler for all powerpc architectures. 559 LLD is now the default linker for powerpc64. The change for powerpc64 560 also includes a change to the ELFv2 ABI, incompatible with the existing 561 ABI. 562 56320191226: 564 Kernel-loadable random(4) modules are no longer unloadable. 565 56620191222: 567 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 568 been upgraded to 9.0.1. Please see the 20141231 entry below for 569 information about prerequisites and upgrading, if you are not already 570 using clang 3.5.0 or higher. 571 57220191212: 573 r355677 has modified the internal interface used between the 574 NFS modules in the kernel. As such, they must all be upgraded 575 simultaneously. I will do a version bump for this. 576 57720191205: 578 The root certificates of the Mozilla CA Certificate Store have been 579 imported into the base system and can be managed with the certctl(8) 580 utility. If you have installed the security/ca_root_nss port or package 581 with the ETCSYMLINK option (the default), be advised that there may be 582 differences between those included in the port and those included in 583 base due to differences in nss branch used as well as general update 584 frequency. Note also that certctl(8) cannot manage certs in the 585 format used by the security/ca_root_nss port. 586 58720191120: 588 The amd(8) automount daemon has been disabled by default, and will be 589 removed in the future. As of FreeBSD 10.1 the autofs(5) is available 590 for automounting. 591 59220191107: 593 The nctgpio and wbwd drivers have been moved to the superio bus. 594 If you have one of these drivers in a kernel configuration, then 595 you should add device superio to it. If you use one of these drivers 596 as a module and you compile a custom set of modules, then you should 597 add superio to the set. 598 59920191021: 600 KPIs for network drivers to access interface addresses have changed. 601 Users need to recompile NIC driver modules together with kernel. 602 60320191021: 604 The net.link.tap.user_open sysctl no longer prevents user opening of 605 already created /dev/tapNN devices. Access is still controlled by 606 node permissions, just like tun devices. The net.link.tap.user_open 607 sysctl is now used only to allow users to perform devfs cloning of 608 tap devices, and the subsequent open may not succeed if the user is not 609 in the appropriate group. This sysctl may be deprecated/removed 610 completely in the future. 611 61220191009: 613 mips, powerpc, and sparc64 are no longer built as part of 614 universe / tinderbox unless MAKE_OBSOLETE_GCC is defined. If 615 not defined, mips, powerpc, and sparc64 builds will look for 616 the xtoolchain binaries and if installed use them for universe 617 builds. As llvm 9.0 becomes vetted for these architectures, they 618 will be removed from the list. 619 62020191009: 621 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 622 been upgraded to 9.0.0. Please see the 20141231 entry below for 623 information about prerequisites and upgrading, if you are not already 624 using clang 3.5.0 or higher. 625 62620191003: 627 The hpt27xx, hptmv, hptnr, and hptrr drivers have been removed from 628 GENERIC. They are available as modules and can be loaded by adding 629 to /boot/loader.conf hpt27xx_load="YES", hptmv_load="YES", 630 hptnr_load="YES", or hptrr_load="YES", respectively. 631 63220190913: 633 ntpd no longer by default locks its pages in memory, allowing them 634 to be paged out by the kernel. Use rlimit memlock to restore 635 historic BSD behaviour. For example, add "rlimit memlock 32" 636 to ntp.conf to lock up to 32 MB of ntpd address space in memory. 637 63820190823: 639 Several of ping6's options have been renamed for better consistency 640 with ping. If you use any of -ARWXaghmrtwx, you must update your 641 scripts. See ping6(8) for details. 642 64320190727: 644 The vfs.fusefs.sync_unmount and vfs.fusefs.init_backgrounded sysctls 645 and the "-o sync_unmount" and "-o init_backgrounded" mount options have 646 been removed from mount_fusefs(8). You can safely remove them from 647 your scripts, because they had no effect. 648 649 The vfs.fusefs.fix_broken_io, vfs.fusefs.sync_resize, 650 vfs.fusefs.refresh_size, vfs.fusefs.mmap_enable, 651 vfs.fusefs.reclaim_revoked, and vfs.fusefs.data_cache_invalidate 652 sysctls have been removed. If you felt the need to set any of them to 653 a non-default value, please tell [email protected] why. 654 65520190713: 656 Default permissions on the /var/account/acct file (and copies of it 657 rotated by periodic daily scripts) are changed from 0644 to 0640 658 because the file contains sensitive information that should not be 659 world-readable. If the /var/account directory must be created by 660 rc.d/accounting, the mode used is now 0750. Admins who use the 661 accounting feature are encouraged to change the mode of an existing 662 /var/account directory to 0750 or 0700. 663 66420190620: 665 Entropy collection and the /dev/random device are no longer optional 666 components. The "device random" option has been removed. 667 Implementations of distilling algorithms can still be made loadable 668 with "options RANDOM_LOADABLE" (e.g., random_fortuna.ko). 669 67020190612: 671 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 672 been upgraded to 8.0.1. Please see the 20141231 entry below for 673 information about prerequisites and upgrading, if you are not already 674 using clang 3.5.0 or higher. 675 67620190608: 677 A fix was applied to i386 kernel modules to avoid panics with 678 dpcpu or vnet. Users need to recompile i386 kernel modules 679 having pcpu or vnet sections or they will refuse to load. 680 68120190513: 682 User-wired pages now have their own counter, 683 vm.stats.vm.v_user_wire_count. The vm.max_wired sysctl was renamed 684 to vm.max_user_wired and changed from an unsigned int to an unsigned 685 long. bhyve VMs wired with the -S are now subject to the user 686 wiring limit; the vm.max_user_wired sysctl may need to be tuned to 687 avoid running into the limit. 688 68920190507: 690 The IPSEC option has been removed from GENERIC. Users requiring 691 ipsec(4) must now load the ipsec(4) kernel module. 692 69320190507: 694 The tap(4) driver has been folded into tun(4), and the module has been 695 renamed to tuntap. You should update any kld_list="if_tap" or 696 kld_list="if_tun" entries in /etc/rc.conf, if_tap_load="YES" or 697 if_tun_load="YES" entries in /boot/loader.conf to load the if_tuntap 698 module instead, and "device tap" or "device tun" entries in kernel 699 config files to select the tuntap device instead. 700 70120190418: 702 The following knobs have been added related to tradeoffs between 703 safe use of the random device and availability in the absence of 704 entropy: 705 706 kern.random.initial_seeding.bypass_before_seeding: tunable; set 707 non-zero to bypass the random device prior to seeding, or zero to 708 block random requests until the random device is initially seeded. 709 For now, set to 1 (unsafe) by default to restore pre-r346250 boot 710 availability properties. 711 712 kern.random.initial_seeding.read_random_bypassed_before_seeding: 713 read-only diagnostic sysctl that is set when bypass is enabled and 714 read_random(9) is bypassed, to enable programmatic handling of this 715 initial condition, if desired. 716 717 kern.random.initial_seeding.arc4random_bypassed_before_seeding: 718 Similar to the above, but for arc4random(9) initial seeding. 719 720 kern.random.initial_seeding.disable_bypass_warnings: tunable; set 721 non-zero to disable warnings in dmesg when the same conditions are 722 met as for the diagnostic sysctls above. Defaults to zero, i.e., 723 produce warnings in dmesg when the conditions are met. 724 72520190416: 726 The loadable random module KPI has changed; the random_infra_init() 727 routine now requires a 3rd function pointer for a bool (*)(void) 728 method that returns true if the random device is seeded (and 729 therefore unblocked). 730 73120190404: 732 r345895 reverts r320698. This implies that an nfsuserd(8) daemon 733 built from head sources between r320757 (July 6, 2017) and 734 r338192 (Aug. 22, 2018) will not work unless the "-use-udpsock" 735 is added to the command line. 736 nfsuserd daemons built from head sources that are post-r338192 are 737 not affected and should continue to work. 738 73920190320: 740 The fuse(4) module has been renamed to fusefs(4) for consistency with 741 other filesystems. You should update any kld_load="fuse" entries in 742 /etc/rc.conf, fuse_load="YES" entries in /boot/loader.conf, and 743 "options FUSE" entries in kernel config files. 744 74520190304: 746 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 747 8.0.0. Please see the 20141231 entry below for information about 748 prerequisites and upgrading, if you are not already using clang 3.5.0 749 or higher. 750 75120190226: 752 geom_uzip(4) depends on the new module xz. If geom_uzip is statically 753 compiled into your custom kernel, add 'device xz' statement to the 754 kernel config. 755 75620190219: 757 drm and drm2 have been removed from the tree. Please see 758 https://wiki.freebsd.org/Graphics for the latest information on 759 migrating to the drm ports. 760 76120190131: 762 Iflib is no longer unconditionally compiled into the kernel. Drivers 763 using iflib and statically compiled into the kernel, now require 764 the 'device iflib' config option. For the same drivers loaded as 765 modules on kernels not having 'device iflib', the iflib.ko module 766 is loaded automatically. 767 76820190125: 769 The IEEE80211_AMPDU_AGE and AH_SUPPORT_AR5416 kernel configuration 770 options no longer exist since r343219 and r343427 respectively; 771 nothing uses them, so they should be just removed from custom 772 kernel config files. 773 77420181230: 775 r342635 changes the way efibootmgr(8) works by requiring users to add 776 the -b (bootnum) parameter for commands where the bootnum was previously 777 specified with each option. For example 'efibootmgr -B 0001' is now 778 'efibootmgr -B -b 0001'. 779 78020181220: 781 r342286 modifies the NFSv4 server so that it obeys vfs.nfsd.nfs_privport 782 in the same as it is applied to NFSv2 and 3. This implies that NFSv4 783 servers that have vfs.nfsd.nfs_privport set will only allow mounts 784 from clients using a reserved port. Since both the FreeBSD and Linux 785 NFSv4 clients use reserved ports by default, this should not affect 786 most NFSv4 mounts. 787 78820181219: 789 The XLP config has been removed. We can't support 64-bit atomics in this 790 kernel because it is running in 32-bit mode. XLP users must transition 791 to running a 64-bit kernel (XLP64 or XLPN32). 792 793 The mips GXEMUL support has been removed from FreeBSD. MALTA* + qemu is 794 the preferred emulator today and we don't need two different ones. 795 796 The old sibyte / swarm / Broadcom BCM1250 support has been 797 removed from the mips port. 798 79920181211: 800 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 801 7.0.1. Please see the 20141231 entry below for information about 802 prerequisites and upgrading, if you are not already using clang 3.5.0 803 or higher. 804 80520181211: 806 Remove the timed and netdate programs from the base tree. Setting 807 the time with these daemons has been obsolete for over a decade. 808 80920181126: 810 On amd64, arm64 and armv7 (architectures that install LLVM's ld.lld 811 linker as /usr/bin/ld) GNU ld is no longer installed as ld.bfd, as 812 it produces broken binaries when ifuncs are in use. Users needing 813 GNU ld should install the binutils port or package. 814 81520181123: 816 The BSD crtbegin and crtend code has been enabled by default. It has 817 had extensive testing on amd64, arm64, and i386. It can be disabled 818 by building a world with -DWITHOUT_BSD_CRTBEGIN. 819 82020181115: 821 The set of CTM commands (ctm, ctm_smail, ctm_rmail, ctm_dequeue) 822 has been converted to a port (misc/ctm) and will be removed from 823 FreeBSD-13. It is available as a package (ctm) for all supported 824 FreeBSD versions. 825 82620181110: 827 The default newsyslog.conf(5) file has been changed to only include 828 files in /etc/newsyslog.conf.d/ and /usr/local/etc/newsyslog.conf.d/ if 829 the filenames end in '.conf' and do not begin with a '.'. 830 831 You should check the configuration files in these two directories match 832 this naming convention. You can verify which configuration files are 833 being included using the command: 834 $ newsyslog -Nrv 835 83620181015: 837 Ports for the DRM modules have been simplified. Now, amd64 users should 838 just install the drm-kmod port. All others should install 839 drm-legacy-kmod. 840 841 Graphics hardware that's newer than about 2010 usually works with 842 drm-kmod. For hardware older than 2013, however, some users will need 843 to use drm-legacy-kmod if drm-kmod doesn't work for them. Hardware older 844 than 2008 usually only works in drm-legacy-kmod. The graphics team can 845 only commit to hardware made since 2013 due to the complexity of the 846 market and difficulty to test all the older cards effectively. If you 847 have hardware supported by drm-kmod, you are strongly encouraged to use 848 that as you will get better support. 849 850 Other than KPI chasing, drm-legacy-kmod will not be updated. As outlined 851 elsewhere, the drm and drm2 modules will be eliminated from the src base 852 soon (with a limited exception for arm). Please update to the package 853 asap and report any issues to [email protected]. 854 855 Generally, anybody using the drm*-kmod packages should add 856 WITHOUT_DRM_MODULE=t and WITHOUT_DRM2_MODULE=t to avoid nasty 857 cross-threading surprises, especially with automatic driver 858 loading from X11 startup. These will become the defaults in 13-current 859 shortly. 860 86120181012: 862 The ixlv(4) driver has been renamed to iavf(4). As a consequence, 863 custom kernel and module loading configuration files must be updated 864 accordingly. Moreover, interfaces previous presented as ixlvN to the 865 system are now exposed as iavfN and network configuration files must 866 be adjusted as necessary. 867 86820181009: 869 OpenSSL has been updated to version 1.1.1. This update included 870 additional various API changes throughout the base system. It is 871 important to rebuild third-party software after upgrading. The value 872 of __FreeBSD_version has been bumped accordingly. 873 87420181006: 875 The legacy DRM modules and drivers have now been added to the loader's 876 module blacklist, in favor of loading them with kld_list in rc.conf(5). 877 The module blacklist may be overridden with the loader.conf(5) 878 'module_blacklist' variable, but loading them via rc.conf(5) is strongly 879 encouraged. 880 88120181002: 882 The cam(4) based nda(4) driver will be used over nvd(4) by default on 883 powerpc64. You may set 'options NVME_USE_NVD=1' in your kernel conf or 884 loader tunable 'hw.nvme.use_nvd=1' if you wish to use the existing 885 driver. Make sure to edit /boot/etc/kboot.conf and fstab to use the 886 nda device name. 887 88820180913: 889 Reproducible build mode is now on by default, in preparation for 890 FreeBSD 12.0. This eliminates build metadata such as the user, 891 host, and time from the kernel (and uname), unless the working tree 892 corresponds to a modified checkout from a version control system. 893 The previous behavior can be obtained by setting the /etc/src.conf 894 knob WITHOUT_REPRODUCIBLE_BUILD. 895 89620180826: 897 The Yarrow CSPRNG has been removed from the kernel as it has not been 898 supported by its designers since at least 2003. Fortuna has been the 899 default since FreeBSD-11. 900 90120180822: 902 devctl freeze/thaw have gone into the tree, the rc scripts have been 903 updated to use them and devmatch has been changed. You should update 904 kernel, userland and rc scripts all at the same time. 905 90620180818: 907 The default interpreter has been switched from 4th to Lua. 908 LOADER_DEFAULT_INTERP, documented in build(7), will override the default 909 interpreter. If you have custom FORTH code you will need to set 910 LOADER_DEFAULT_INTERP=4th (valid values are 4th, lua or simp) in 911 src.conf for the build. This will create default hard links between 912 loader and loader_4th instead of loader and loader_lua, the new default. 913 If you are using UEFI it will create the proper hard link to loader.efi. 914 915 bhyve uses userboot.so. It remains 4th-only until some issues are solved 916 regarding coexisting with multiple versions of FreeBSD are resolved. 917 91820180815: 919 ls(1) now respects the COLORTERM environment variable used in other 920 systems and software to indicate that a colored terminal is both 921 supported and desired. If ls(1) is suddenly emitting colors, they may 922 be disabled again by either removing the unwanted COLORTERM from your 923 environment, or using `ls --color=never`. The ls(1) specific CLICOLOR 924 may not be observed in a future release. 925 92620180808: 927 The default pager for most commands has been changed to "less". To 928 restore the old behavior, set PAGER="more" and MANPAGER="more -s" in 929 your environment. 930 93120180731: 932 The jedec_ts(4) driver has been removed. A superset of its functionality 933 is available in the jedec_dimm(4) driver, and the manpage for that 934 driver includes migration instructions. If you have "device jedec_ts" 935 in your kernel configuration file, it must be removed. 936 93720180730: 938 amd64/GENERIC now has EFI runtime services, EFIRT, enabled by default. 939 This should have no effect if the kernel is booted via BIOS/legacy boot. 940 EFIRT may be disabled via a loader tunable, efi.rt.disabled, if a system 941 has a buggy firmware that prevents a successful boot due to use of 942 runtime services. 943 94420180727: 945 Atmel AT91RM9200 and AT91SAM9, Cavium CNS 11xx and XScale 946 support has been removed from the tree. These ports were 947 obsolete and/or known to be broken for many years. 948 94920180723: 950 loader.efi has been augmented to participate more fully in the 951 UEFI boot manager protocol. loader.efi will now look at the 952 BootXXXX environment variable to determine if a specific kernel 953 or root partition was specified. XXXX is derived from BootCurrent. 954 efibootmgr(8) manages these standard UEFI variables. 955 95620180720: 957 zfsloader's functionality has now been folded into loader. 958 zfsloader is no longer necessary once you've updated your 959 boot blocks. For a transition period, we will install a 960 hardlink for zfsloader to loader to allow a smooth transition 961 until the boot blocks can be updated (hard link because old 962 zfs boot blocks don't understand symlinks). 963 96420180719: 965 ARM64 now have efifb support, if you want to have serial console 966 on your arm64 board when an screen is connected and the bootloader 967 setup a frame buffer for us to use, just add : 968 boot_serial=YES 969 boot_multicons=YES 970 in /boot/loader.conf 971 For Raspberry Pi 3 (RPI) users, this is needed even if you don't have 972 an screen connected as the firmware will setup a frame buffer are that 973 u-boot will expose as an EFI frame buffer. 974 97520180719: 976 New uid:gid added, ntpd:ntpd (123:123). Be sure to run mergemaster 977 or take steps to update /etc/passwd before doing installworld on 978 existing systems. Do not skip the "mergemaster -Fp" step before 979 installworld, as described in the update procedures near the bottom 980 of this document. Also, rc.d/ntpd now starts ntpd(8) as user ntpd 981 if the new mac_ntpd(4) policy is available, unless ntpd_flags or 982 the ntp config file contain options that change file/dir locations. 983 When such options (e.g., "statsdir" or "crypto") are used, ntpd can 984 still be run as non-root by setting ntpd_user=ntpd in rc.conf, after 985 taking steps to ensure that all required files/dirs are accessible 986 by the ntpd user. 987 98820180717: 989 Big endian arm support has been removed. 990 99120180711: 992 The static environment setup in kernel configs is no longer mutually 993 exclusive with the loader(8) environment by default. In order to 994 restore the previous default behavior of disabling the loader(8) 995 environment if a static environment is present, you must specify 996 loader_env.disabled=1 in the static environment. 997 99820180705: 999 The ABI of syscalls used by management tools like sockstat and 1000 netstat has been broken to allow 32-bit binaries to work on 1001 64-bit kernels without modification. These programs will need 1002 to match the kernel in order to function. External programs may 1003 require minor modifications to accommodate a change of type in 1004 structures from pointers to 64-bit virtual addresses. 1005 100620180702: 1007 On i386 and amd64 atomics are now inlined. Out of tree modules using 1008 atomics will need to be rebuilt. 1009 101020180701: 1011 The '%I' format in the kern.corefile sysctl limits the number of 1012 core files that a process can generate to the number stored in the 1013 debug.ncores sysctl. The '%I' format is replaced by the single digit 1014 index. Previously, if all indexes were taken the kernel would overwrite 1015 only a core file with the highest index in a filename. 1016 Currently the system will create a new core file if there is a free 1017 index or if all slots are taken it will overwrite the oldest one. 1018 101920180630: 1020 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1021 6.0.1. Please see the 20141231 entry below for information about 1022 prerequisites and upgrading, if you are not already using clang 3.5.0 1023 or higher. 1024 102520180628: 1026 r335753 introduced a new quoting method. However, etc/devd/devmatch.conf 1027 needed to be changed to work with it. This change was made with r335763 1028 and requires a mergemaster / etcupdate / etc to update the installed 1029 file. 1030 103120180612: 1032 r334930 changed the interface between the NFS modules, so they all 1033 need to be rebuilt. r335018 did a __FreeBSD_version bump for this. 1034 103520180530: 1036 As of r334391 lld is the default amd64 system linker; it is installed 1037 as /usr/bin/ld. Kernel build workarounds (see 20180510 entry) are no 1038 longer necessary. 1039 104020180530: 1041 The kernel / userland interface for devinfo changed, so you'll 1042 need a new kernel and userland as a pair for it to work (rebuilding 1043 lib/libdevinfo is all that's required). devinfo and devmatch will 1044 not work, but everything else will when there's a mismatch. 1045 104620180523: 1047 The on-disk format for hwpmc callchain records has changed to include 1048 threadid corresponding to a given record. This changes the field offsets 1049 and thus requires that libpmcstat be rebuilt before using a kernel 1050 later than r334108. 1051 105220180517: 1053 The vxge(4) driver has been removed. This driver was introduced into 1054 HEAD one week before the Exar left the Ethernet market and is not 1055 known to be used. If you have device vxge in your kernel config file 1056 it must be removed. 1057 105820180510: 1059 The amd64 kernel now requires a ld that supports ifunc to produce a 1060 working kernel, either lld or a newer binutils. lld is built by default 1061 on amd64, and the 'buildkernel' target uses it automatically. However, 1062 it is not the default linker, so building the kernel the traditional 1063 way requires LD=ld.lld on the command line (or LD=/usr/local/bin/ld for 1064 binutils port/package). lld will soon be default, and this requirement 1065 will go away. 1066 1067 NOTE: As of r334391 lld is the default system linker on amd64, and no 1068 workaround is necessary. 1069 107020180508: 1071 The nxge(4) driver has been removed. This driver was for PCI-X 10g 1072 cards made by s2io/Neterion. The company was acquired by Exar and 1073 no longer sells or supports Ethernet products. If you have device 1074 nxge in your kernel config file it must be removed. 1075 107620180504: 1077 The tz database (tzdb) has been updated to 2018e. This version more 1078 correctly models time stamps in time zones with negative DST such as 1079 Europe/Dublin (from 1971 on), Europe/Prague (1946/7), and 1080 Africa/Windhoek (1994/2017). This does not affect the UT offsets, only 1081 time zone abbreviations and the tm_isdst flag. 1082 108320180502: 1084 The ixgb(4) driver has been removed. This driver was for an early and 1085 uncommon legacy PCI 10GbE for a single ASIC, Intel 82597EX. Intel 1086 quickly shifted to the long lived ixgbe family. If you have device 1087 ixgb in your kernel config file it must be removed. 1088 108920180501: 1090 The lmc(4) driver has been removed. This was a WAN interface 1091 card that was already reportedly rare in 2003, and had an ambiguous 1092 license. If you have device lmc in your kernel config file it must 1093 be removed. 1094 109520180413: 1096 Support for Arcnet networks has been removed. If you have device 1097 arcnet or device cm in your kernel config file they must be 1098 removed. 1099 110020180411: 1101 Support for FDDI networks has been removed. If you have device 1102 fddi or device fpa in your kernel config file they must be 1103 removed. 1104 110520180406: 1106 In addition to supporting RFC 3164 formatted messages, the 1107 syslogd(8) service is now capable of parsing RFC 5424 formatted 1108 log messages. The main benefit of using RFC 5424 is that clients 1109 may now send log messages with timestamps containing year numbers, 1110 microseconds and time zone offsets. 1111 1112 Similarly, the syslog(3) C library function has been altered to 1113 send RFC 5424 formatted messages to the local system logging 1114 daemon. On systems using syslogd(8), this change should have no 1115 negative impact, as long as syslogd(8) and the C library are 1116 updated at the same time. On systems using a different system 1117 logging daemon, it may be necessary to make configuration 1118 adjustments, depending on the software used. 1119 1120 When using syslog-ng, add the 'syslog-protocol' flag to local 1121 input sources to enable parsing of RFC 5424 formatted messages: 1122 1123 source src { 1124 unix-dgram("/var/run/log" flags(syslog-protocol)); 1125 } 1126 1127 When using rsyslog, disable the 'SysSock.UseSpecialParser' option 1128 of the 'imuxsock' module to let messages be processed by the 1129 regular RFC 3164/5424 parsing pipeline: 1130 1131 module(load="imuxsock" SysSock.UseSpecialParser="off") 1132 1133 Do note that these changes only affect communication between local 1134 applications and syslogd(8). The format that syslogd(8) uses to 1135 store messages on disk or forward messages to other systems 1136 remains unchanged. syslogd(8) still uses RFC 3164 for these 1137 purposes. Options to customize this behaviour will be added in the 1138 future. Utilities that process log files stored in /var/log are 1139 thus expected to continue to function as before. 1140 1141 __FreeBSD_version has been incremented to 1200061 to denote this 1142 change. 1143 114420180328: 1145 Support for token ring networks has been removed. If you 1146 have "device token" in your kernel config you should remove 1147 it. No device drivers supported token ring. 1148 114920180323: 1150 makefs was modified to be able to tag ISO9660 El Torito boot catalog 1151 entries as EFI instead of overloading the i386 tag as done previously. 1152 The amd64 mkisoimages.sh script used to build amd64 ISO images for 1153 release was updated to use this. This may mean that makefs must be 1154 updated before "make cdrom" can be run in the release directory. This 1155 should be as simple as: 1156 1157 $ cd $SRCDIR/usr.sbin/makefs 1158 $ make depend all install 1159 116020180212: 1161 FreeBSD boot loader enhanced with Lua scripting. It's purely opt-in for 1162 now by building WITH_LOADER_LUA and WITHOUT_FORTH in /etc/src.conf. 1163 Co-existence for the transition period will come shortly. Booting is a 1164 complex environment and test coverage for Lua-enabled loaders has been 1165 thin, so it would be prudent to assume it might not work and make 1166 provisions for backup boot methods. 1167 116820180211: 1169 devmatch functionality has been turned on in devd. It will automatically 1170 load drivers for unattached devices. This may cause unexpected drivers 1171 to be loaded. Please report any problems to current@ and 1172 [email protected]. 1173 117420180114: 1175 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1176 6.0.0. Please see the 20141231 entry below for information about 1177 prerequisites and upgrading, if you are not already using clang 3.5.0 1178 or higher. 1179 118020180110: 1181 LLVM's lld linker is now used as the FreeBSD/amd64 bootstrap linker. 1182 This means it is used to link the kernel and userland libraries and 1183 executables, but is not yet installed as /usr/bin/ld by default. 1184 1185 To revert to ld.bfd as the bootstrap linker, in /etc/src.conf set 1186 WITHOUT_LLD_BOOTSTRAP=yes 1187 118820180110: 1189 On i386, pmtimer has been removed. Its functionality has been folded 1190 into apm. It was a no-op on ACPI in current for a while now (but was 1191 still needed on i386 in FreeBSD 11 and earlier). Users may need to 1192 remove it from kernel config files. 1193 119420180104: 1195 The use of RSS hash from the network card aka flowid has been 1196 disabled by default for lagg(4) as it's currently incompatible with 1197 the lacp and loadbalance protocols. 1198 1199 This can be re-enabled by setting the following in loader.conf: 1200 net.link.lagg.default_use_flowid="1" 1201 120220180102: 1203 The SW_WATCHDOG option is no longer necessary to enable the 1204 hardclock-based software watchdog if no hardware watchdog is 1205 configured. As before, SW_WATCHDOG will cause the software 1206 watchdog to be enabled even if a hardware watchdog is configured. 1207 120820171215: 1209 r326887 fixes the issue described in the 20171214 UPDATING entry. 1210 r326888 flips the switch back to building GELI support always. 1211 121220171214: 1213 r362593 broke ZFS + GELI support for reasons unknown. However, 1214 it also broke ZFS support generally, so GELI has been turned off 1215 by default as the lesser evil in r326857. If you boot off ZFS and/or 1216 GELI, it might not be a good time to update. 1217 121820171125: 1219 PowerPC users must update loader(8) by rebuilding world before 1220 installing a new kernel, as the protocol connecting them has 1221 changed. Without the update, loader metadata will not be passed 1222 successfully to the kernel and users will have to enter their 1223 root partition at the kernel mountroot prompt to continue booting. 1224 Newer versions of loader can boot old kernels without issue. 1225 122620171110: 1227 The LOADER_FIREWIRE_SUPPORT build variable has been renamed to 1228 WITH/OUT_LOADER_FIREWIRE. LOADER_{NO_,}GELI_SUPPORT has been renamed 1229 to WITH/OUT_LOADER_GELI. 1230 123120171106: 1232 The naive and non-compliant support of posix_fallocate(2) in ZFS 1233 has been removed as of r325320. The system call now returns EINVAL 1234 when used on a ZFS file. Although the new behavior complies with the 1235 standard, some consumers are not prepared to cope with it. 1236 One known victim is lld prior to r325420. 1237 123820171102: 1239 Building in a FreeBSD src checkout will automatically create object 1240 directories now rather than store files in the current directory if 1241 'make obj' was not ran. Calling 'make obj' is no longer necessary. 1242 This feature can be disabled by setting WITHOUT_AUTO_OBJ=yes in 1243 /etc/src-env.conf (not /etc/src.conf), or passing the option in the 1244 environment. 1245 124620171101: 1247 The default MAKEOBJDIR has changed from /usr/obj/<srcdir> for native 1248 builds, and /usr/obj/<arch>/<srcdir> for cross-builds, to a unified 1249 /usr/obj/<srcdir>/<arch>. This behavior can be changed to the old 1250 format by setting WITHOUT_UNIFIED_OBJDIR=yes in /etc/src-env.conf, 1251 the environment, or with -DWITHOUT_UNIFIED_OBJDIR when building. 1252 The UNIFIED_OBJDIR option is a transitional feature that will be 1253 removed for 12.0 release; please migrate to the new format for any 1254 tools by looking up the OBJDIR used by 'make -V .OBJDIR' means rather 1255 than hardcoding paths. 1256 125720171028: 1258 The native-xtools target no longer installs the files by default to the 1259 OBJDIR. Use the native-xtools-install target with a DESTDIR to install 1260 to ${DESTDIR}/${NXTP} where NXTP defaults to /nxb-bin. 1261 126220171021: 1263 As part of the boot loader infrastructure cleanup, LOADER_*_SUPPORT 1264 options are changing from controlling the build if defined / undefined 1265 to controlling the build with explicit 'yes' or 'no' values. They will 1266 shift to WITH/WITHOUT options to match other options in the system. 1267 126820171010: 1269 libstand has turned into a private library for sys/boot use only. 1270 It is no longer supported as a public interface outside of sys/boot. 1271 127220171005: 1273 The arm port has split armv6 into armv6 and armv7. armv7 is now 1274 a valid TARGET_ARCH/MACHINE_ARCH setting. If you have an armv7 system 1275 and are running a kernel from before r324363, you will need to add 1276 MACHINE_ARCH=armv7 to 'make buildworld' to do a native build. 1277 127820171003: 1279 When building multiple kernels using KERNCONF, non-existent KERNCONF 1280 files will produce an error and buildkernel will fail. Previously 1281 missing KERNCONF files silently failed giving no indication as to 1282 why, only to subsequently discover during installkernel that the 1283 desired kernel was never built in the first place. 1284 128520170912: 1286 The default serial number format for CTL LUNs has changed. This will 1287 affect users who use /dev/diskid/* device nodes, or whose FibreChannel 1288 or iSCSI clients care about their LUNs' serial numbers. Users who 1289 require serial number stability should hardcode serial numbers in 1290 /etc/ctl.conf . 1291 129220170912: 1293 For 32-bit arm compiled for hard-float support, soft-floating point 1294 binaries now always get their shared libraries from 1295 LD_SOFT_LIBRARY_PATH (in the past, this was only used if 1296 /usr/libsoft also existed). Only users with a hard-float ld.so, but 1297 soft-float everything else should be affected. 1298 129920170826: 1300 The geli password typed at boot is now hidden. To restore the previous 1301 behavior, see geli(8) for configuration options. 1302 130320170825: 1304 Move PMTUD blackhole counters to TCPSTATS and remove them from bare 1305 sysctl values. Minor nit, but requires a rebuild of both world/kernel 1306 to complete. 1307 130820170814: 1309 "make check" behavior (made in ^/head@r295380) has been changed to 1310 execute from a limited sandbox, as opposed to executing from 1311 ${TESTSDIR}. 1312 1313 Behavioral changes: 1314 - The "beforecheck" and "aftercheck" targets are now specified. 1315 - ${CHECKDIR} (added in commit noted above) has been removed. 1316 - Legacy behavior can be enabled by setting 1317 WITHOUT_MAKE_CHECK_USE_SANDBOX in src.conf(5) or the environment. 1318 1319 If the limited sandbox mode is enabled, "make check" will execute 1320 "make distribution", then install, execute the tests, and clean up the 1321 sandbox if successful. 1322 1323 The "make distribution" and "make install" targets are typically run as 1324 root to set appropriate permissions and ownership at installation time. 1325 The end-user should set "WITH_INSTALL_AS_USER" in src.conf(5) or the 1326 environment if executing "make check" with limited sandbox mode using 1327 an unprivileged user. 1328 132920170808: 1330 Since the switch to GPT disk labels, fsck for UFS/FFS has been 1331 unable to automatically find alternate superblocks. As of r322297, 1332 the information needed to find alternate superblocks has been 1333 moved to the end of the area reserved for the boot block. 1334 Filesystems created with a newfs of this vintage or later 1335 will create the recovery information. If you have a filesystem 1336 created prior to this change and wish to have a recovery block 1337 created for your filesystem, you can do so by running fsck in 1338 foreground mode (i.e., do not use the -p or -y options). As it 1339 starts, fsck will ask ``SAVE DATA TO FIND ALTERNATE SUPERBLOCKS'' 1340 to which you should answer yes. 1341 134220170728: 1343 As of r321665, an NFSv4 server configuration that services 1344 Kerberos mounts or clients that do not support the uid/gid in 1345 owner/owner_group string capability, must explicitly enable 1346 the nfsuserd daemon by adding nfsuserd_enable="YES" to the 1347 machine's /etc/rc.conf file. 1348 134920170722: 1350 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 5.0.0. 1351 Please see the 20141231 entry below for information about prerequisites 1352 and upgrading, if you are not already using clang 3.5.0 or higher. 1353 135420170701: 1355 WITHOUT_RCMDS is now the default. Set WITH_RCMDS if you need the 1356 r-commands (rlogin, rsh, etc.) to be built with the base system. 1357 135820170625: 1359 The FreeBSD/powerpc platform now uses a 64-bit type for time_t. This is 1360 a very major ABI incompatible change, so users of FreeBSD/powerpc must 1361 be careful when performing source upgrades. It is best to run 1362 'make installworld' from an alternate root system, either a live 1363 CD/memory stick, or a temporary root partition. Additionally, all ports 1364 must be recompiled. powerpc64 is largely unaffected, except in the case 1365 of 32-bit compatibility. All 32-bit binaries will be affected. 1366 136720170623: 1368 Forward compatibility for the "ino64" project have been committed. This 1369 will allow most new binaries to run on older kernels in a limited 1370 fashion. This prevents many of the common foot-shooting actions in the 1371 upgrade as well as the limited ability to roll back the kernel across 1372 the ino64 upgrade. Complicated use cases may not work properly, though 1373 enough simpler ones work to allow recovery in most situations. 1374 137520170620: 1376 Switch back to the BSDL dtc (Device Tree Compiler). Set WITH_GPL_DTC 1377 if you require the GPL compiler. 1378 137920170618: 1380 The internal ABI used for communication between the NFS kernel modules 1381 was changed by r320085, so __FreeBSD_version was bumped to 1382 ensure all the NFS related modules are updated together. 1383 138420170617: 1385 The ABI of struct event was changed by extending the data 1386 member to 64bit and adding ext fields. For upgrade, same 1387 precautions as for the entry 20170523 "ino64" must be 1388 followed. 1389 139020170531: 1391 The GNU roff toolchain has been removed from base. To render manpages 1392 which are not supported by mandoc(1), man(1) can fallback on GNU roff 1393 from ports (and recommends to install it). 1394 To render roff(7) documents, consider using GNU roff from ports or the 1395 heirloom doctools roff toolchain from ports via pkg install groff or 1396 via pkg install heirloom-doctools. 1397 139820170524: 1399 The ath(4) and ath_hal(4) modules now build piecemeal to allow for 1400 smaller runtime footprint builds. This is useful for embedded systems 1401 which only require one chipset support. 1402 1403 If you load it as a module, make sure this is in /boot/loader.conf: 1404 1405 if_ath_load="YES" 1406 1407 This will load the HAL, all chip/RF backends and if_ath_pci. 1408 If you have if_ath_pci in /boot/loader.conf, ensure it is after 1409 if_ath or it will not load any HAL chipset support. 1410 1411 If you want to selectively load things (eg on cheaper ARM/MIPS 1412 platforms where RAM is at a premium) you should: 1413 1414 * load ath_hal 1415 * load the chip modules in question 1416 * load ath_rate, ath_dfs 1417 * load ath_main 1418 * load if_ath_pci and/or if_ath_ahb depending upon your particular 1419 bus bind type - this is where probe/attach is done. 1420 1421 For further comments/feedback, poke adrian@ . 1422 142320170523: 1424 The "ino64" 64-bit inode project has been committed, which extends 1425 a number of types to 64 bits. Upgrading in place requires care and 1426 adherence to the documented upgrade procedure. 1427 1428 If using a custom kernel configuration ensure that the 1429 COMPAT_FREEBSD11 option is included (as during the upgrade the 1430 system will be running the ino64 kernel with the existing world). 1431 1432 For the safest in-place upgrade begin by removing previous build 1433 artifacts via "rm -rf /usr/obj/*". Then, carefully follow the full 1434 procedure documented below under the heading "To rebuild everything and 1435 install it on the current system." Specifically, a reboot is required 1436 after installing the new kernel before installing world. While an 1437 installworld normally works by accident from multiuser after rebooting 1438 the proper kernel, there are many cases where this will fail across this 1439 upgrade and installworld from single user is required. 1440 144120170424: 1442 The NATM framework including the en(4), fatm(4), hatm(4), and 1443 patm(4) devices has been removed. Consumers should plan a 1444 migration before the end-of-life date for FreeBSD 11. 1445 144620170420: 1447 GNU diff has been replaced by a BSD licensed diff. Some features of GNU 1448 diff has not been implemented, if those are needed a newer version of 1449 GNU diff is available via the diffutils package under the gdiff name. 1450 145120170413: 1452 As of r316810 for ipfilter, keep frags is no longer assumed when 1453 keep state is specified in a rule. r316810 aligns ipfilter with 1454 documentation in man pages separating keep frags from keep state. 1455 This allows keep state to be specified without forcing keep frags 1456 and allows keep frags to be specified independently of keep state. 1457 To maintain previous behaviour, also specify keep frags with 1458 keep state (as documented in ipf.conf.5). 1459 146020170407: 1461 arm64 builds now use the base system LLD 4.0.0 linker by default, 1462 instead of requiring that the aarch64-binutils port or package be 1463 installed. To continue using aarch64-binutils, set 1464 CROSS_BINUTILS_PREFIX=/usr/local/aarch64-freebsd/bin . 1465 146620170405: 1467 The UDP optimization in entry 20160818 that added the sysctl 1468 net.inet.udp.require_l2_bcast has been reverted. L2 broadcast 1469 packets will no longer be treated as L3 broadcast packets. 1470 147120170331: 1472 Binds and sends to the loopback addresses, IPv6 and IPv4, will now 1473 use any explicitly assigned loopback address available in the jail 1474 instead of using the first assigned address of the jail. 1475 147620170329: 1477 The ctl.ko module no longer implements the iSCSI target frontend: 1478 cfiscsi.ko does instead. 1479 1480 If building cfiscsi.ko as a kernel module, the module can be loaded 1481 via one of the following methods: 1482 - `cfiscsi_load="YES"` in loader.conf(5). 1483 - Add `cfiscsi` to `$kld_list` in rc.conf(5). 1484 - ctladm(8)/ctld(8), when compiled with iSCSI support 1485 (`WITH_ISCSI=yes` in src.conf(5)) 1486 1487 Please see cfiscsi(4) for more details. 1488 148920170316: 1490 The mmcsd.ko module now additionally depends on geom_flashmap.ko. 1491 Also, mmc.ko and mmcsd.ko need to be a matching pair built from the 1492 same source (previously, the dependency of mmcsd.ko on mmc.ko was 1493 missing, but mmcsd.ko now will refuse to load if it is incompatible 1494 with mmc.ko). 1495 149620170315: 1497 The syntax of ipfw(8) named states was changed to avoid ambiguity. 1498 If you have used named states in the firewall rules, you need to modify 1499 them after installworld and before rebooting. Now named states must 1500 be prefixed with colon. 1501 150220170311: 1503 The old drm (sys/dev/drm/) drivers for i915 and radeon have been 1504 removed as the userland we provide cannot use them. The KMS version 1505 (sys/dev/drm2) supports the same hardware. 1506 150720170302: 1508 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 4.0.0. 1509 Please see the 20141231 entry below for information about prerequisites 1510 and upgrading, if you are not already using clang 3.5.0 or higher. 1511 151220170221: 1513 The code that provides support for ZFS .zfs/ directory functionality 1514 has been reimplemented. It's not possible now to create a snapshot 1515 by mkdir under .zfs/snapshot/. That should be the only user visible 1516 change. 1517 151820170216: 1519 EISA bus support has been removed. The WITH_EISA option is no longer 1520 valid. 1521 152220170215: 1523 MCA bus support has been removed. 1524 152520170127: 1526 The WITH_LLD_AS_LD / WITHOUT_LLD_AS_LD build knobs have been renamed 1527 WITH_LLD_IS_LD / WITHOUT_LLD_IS_LD, for consistency with CLANG_IS_CC. 1528 152920170112: 1530 The EM_MULTIQUEUE kernel configuration option is deprecated now that 1531 the em(4) driver conforms to iflib specifications. 1532 153320170109: 1534 The igb(4), em(4) and lem(4) ethernet drivers are now implemented via 1535 IFLIB. If you have a custom kernel configuration that excludes em(4) 1536 but you use igb(4), you need to re-add em(4) to your custom 1537 configuration. 1538 153920161217: 1540 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 3.9.1. 1541 Please see the 20141231 entry below for information about prerequisites 1542 and upgrading, if you are not already using clang 3.5.0 or higher. 1543 154420161124: 1545 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 3.9.0. 1546 Please see the 20141231 entry below for information about prerequisites 1547 and upgrading, if you are not already using clang 3.5.0 or higher. 1548 154920161119: 1550 The layout of the pmap structure has changed for powerpc to put the pmap 1551 statistics at the front for all CPU variations. libkvm(3) and all tools 1552 that link against it need to be recompiled. 1553 155420161030: 1555 isl(4) and cyapa(4) drivers now require a new driver, 1556 chromebook_platform(4), to work properly on Chromebook-class hardware. 1557 On other types of hardware the drivers may need to be configured using 1558 device hints. Please see the corresponding manual pages for details. 1559 156020161017: 1561 The urtwn(4) driver was merged into rtwn(4) and now consists of 1562 rtwn(4) main module + rtwn_usb(4) and rtwn_pci(4) bus-specific 1563 parts. 1564 Also, firmware for RTL8188CE was renamed due to possible name 1565 conflict (rtwnrtl8192cU(B) -> rtwnrtl8192cE(B)) 1566 156720161015: 1568 GNU rcs has been removed from base. It is available as packages: 1569 - rcs: Latest GPLv3 GNU rcs version. 1570 - rcs57: Copy of the latest version of GNU rcs (GPLv2) before it was 1571 removed from base. 1572 157320161008: 1574 Use of the cc_cdg, cc_chd, cc_hd, or cc_vegas congestion control 1575 modules now requires that the kernel configuration contain the 1576 TCP_HHOOK option. (This option is included in the GENERIC kernel.) 1577 157820161003: 1579 The WITHOUT_ELFCOPY_AS_OBJCOPY src.conf(5) knob has been retired. 1580 ELF Tool Chain's elfcopy is always installed as /usr/bin/objcopy. 1581 158220160924: 1583 Relocatable object files with the extension of .So have been renamed 1584 to use an extension of .pico instead. The purpose of this change is 1585 to avoid a name clash with shared libraries on case-insensitive file 1586 systems. On those file systems, foo.So is the same file as foo.so. 1587 158820160918: 1589 GNU rcs has been turned off by default. It can (temporarily) be built 1590 again by adding WITH_RCS knob in src.conf. 1591 Otherwise, GNU rcs is available from packages: 1592 - rcs: Latest GPLv3 GNU rcs version. 1593 - rcs57: Copy of the latest version of GNU rcs (GPLv2) from base. 1594 159520160918: 1596 The backup_uses_rcs functionality has been removed from rc.subr. 1597 159820160908: 1599 The queue(3) debugging macro, QUEUE_MACRO_DEBUG, has been split into 1600 two separate components, QUEUE_MACRO_DEBUG_TRACE and 1601 QUEUE_MACRO_DEBUG_TRASH. Define both for the original 1602 QUEUE_MACRO_DEBUG behavior. 1603 160420160824: 1605 r304787 changed some ioctl interfaces between the iSCSI userspace 1606 programs and the kernel. ctladm, ctld, iscsictl, and iscsid must be 1607 rebuilt to work with new kernels. __FreeBSD_version has been bumped 1608 to 1200005. 1609 161020160818: 1611 The UDP receive code has been updated to only treat incoming UDP 1612 packets that were addressed to an L2 broadcast address as L3 1613 broadcast packets. It is not expected that this will affect any 1614 standards-conforming UDP application. The new behaviour can be 1615 disabled by setting the sysctl net.inet.udp.require_l2_bcast to 1616 0. 1617 161820160818: 1619 Remove the openbsd_poll system call. 1620 __FreeBSD_version has been bumped because of this. 1621 162220160708: 1623 The stable/11 branch has been created from head@r302406. 1624 162520160622: 1626 The libc stub for the pipe(2) system call has been replaced with 1627 a wrapper that calls the pipe2(2) system call and the pipe(2) 1628 system call is now only implemented by the kernels that include 1629 "options COMPAT_FREEBSD10" in their config file (this is the 1630 default). Users should ensure that this option is enabled in 1631 their kernel or upgrade userspace to r302092 before upgrading their 1632 kernel. 1633 163420160527: 1635 CAM now strips the leading spaces from each SCSI disk's serial number. 1636 This will affect users who create UFS filesystems on SCSI disks using 1637 those disk's diskid device nodes. For example, if /etc/fstab 1638 previously contained a line like 1639 "/dev/diskid/DISK-%20%20%20%20%20%20%20ABCDEFG0123456", you should 1640 change it to "/dev/diskid/DISK-ABCDEFG0123456". Users of geom 1641 transforms like gmirror may also be affected. ZFS users should 1642 generally be fine. 1643 164420160523: 1645 The bitstring(3) API has been updated with new functionality and 1646 improved performance. But it is binary-incompatible with the old API. 1647 Objects built with the new headers may not be linked against objects 1648 built with the old headers. 1649 165020160520: 1651 The brk and sbrk functions have been removed from libc on arm64. 1652 Binutils from ports has been updated to not link to these 1653 functions and should be updated to the latest version before 1654 installing a new libc. 1655 165620160517: 1657 The armv6 port now defaults to hard float ABI. Limited support 1658 for running both hardfloat and soft float on the same system 1659 is available using the libraries installed with -DWITH_LIBSOFT. 1660 This has only been tested as an upgrade path for installworld 1661 and packages may fail or need manual intervention to run. New 1662 packages will be needed. 1663 1664 To update an existing self-hosted armv6hf system, you must add 1665 TARGET_ARCH=armv6 on the make command line for both the build 1666 and the install steps. 1667 166820160510: 1669 Kernel modules compiled outside of a kernel build now default to 1670 installing to /boot/modules instead of /boot/kernel. Many kernel 1671 modules built this way (such as those in ports) already overrode 1672 KMODDIR explicitly to install into /boot/modules. However, 1673 manually building and installing a module from /sys/modules will 1674 now install to /boot/modules instead of /boot/kernel. 1675 167620160414: 1677 The CAM I/O scheduler has been committed to the kernel. There should be 1678 no user visible impact. This does enable NCQ Trim on ada SSDs. While the 1679 list of known rogues that claim support for this but actually corrupt 1680 data is believed to be complete, be on the lookout for data 1681 corruption. The known rogue list is believed to be complete: 1682 1683 o Crucial MX100, M550 drives with MU01 firmware. 1684 o Micron M510 and M550 drives with MU01 firmware. 1685 o Micron M500 prior to MU07 firmware 1686 o Samsung 830, 840, and 850 all firmwares 1687 o FCCT M500 all firmwares 1688 1689 Crucial has firmware http://www.crucial.com/usa/en/support-ssd-firmware 1690 with working NCQ TRIM. For Micron branded drives, see your sales rep for 1691 updated firmware. Black listed drives will work correctly because these 1692 drives work correctly so long as no NCQ TRIMs are sent to them. Given 1693 this list is the same as found in Linux, it's believed there are no 1694 other rogues in the market place. All other models from the above 1695 vendors work. 1696 1697 To be safe, if you are at all concerned, you can quirk each of your 1698 drives to prevent NCQ from being sent by setting: 1699 kern.cam.ada.X.quirks="0x2" 1700 in loader.conf. If the drive requires the 4k sector quirk, set the 1701 quirks entry to 0x3. 1702 170320160330: 1704 The FAST_DEPEND build option has been removed and its functionality is 1705 now the one true way. The old mkdep(1) style of 'make depend' has 1706 been removed. See 20160311 for further details. 1707 170820160317: 1709 Resource range types have grown from unsigned long to uintmax_t. All 1710 drivers, and anything using libdevinfo, need to be recompiled. 1711 171220160311: 1713 WITH_FAST_DEPEND is now enabled by default for in-tree and out-of-tree 1714 builds. It no longer runs mkdep(1) during 'make depend', and the 1715 'make depend' stage can safely be skipped now as it is auto ran 1716 when building 'make all' and will generate all SRCS and DPSRCS before 1717 building anything else. Dependencies are gathered at compile time with 1718 -MF flags kept in separate .depend files per object file. Users should 1719 run 'make cleandepend' once if using -DNO_CLEAN to clean out older 1720 stale .depend files. 1721 172220160306: 1723 On amd64, clang 3.8.0 can now insert sections of type AMD64_UNWIND into 1724 kernel modules. Therefore, if you load any kernel modules at boot time, 1725 please install the boot loaders after you install the kernel, but before 1726 rebooting, e.g.: 1727 1728 make buildworld 1729 make buildkernel KERNCONF=YOUR_KERNEL_HERE 1730 make installkernel KERNCONF=YOUR_KERNEL_HERE 1731 make -C sys/boot install 1732 <reboot in single user> 1733 1734 Then follow the usual steps, described in the General Notes section, 1735 below. 1736 173720160305: 1738 Clang, llvm, lldb and compiler-rt have been upgraded to 3.8.0. Please 1739 see the 20141231 entry below for information about prerequisites and 1740 upgrading, if you are not already using clang 3.5.0 or higher. 1741 174220160301: 1743 The AIO subsystem is now a standard part of the kernel. The 1744 VFS_AIO kernel option and aio.ko kernel module have been removed. 1745 Due to stability concerns, asynchronous I/O requests are only 1746 permitted on sockets and raw disks by default. To enable 1747 asynchronous I/O requests on all file types, set the 1748 vfs.aio.enable_unsafe sysctl to a non-zero value. 1749 175020160226: 1751 The ELF object manipulation tool objcopy is now provided by the 1752 ELF Tool Chain project rather than by GNU binutils. It should be a 1753 drop-in replacement, with the addition of arm64 support. The 1754 (temporary) src.conf knob WITHOUT_ELFCOPY_AS_OBJCOPY knob may be set 1755 to obtain the GNU version if necessary. 1756 175720160129: 1758 Building ZFS pools on top of zvols is prohibited by default. That 1759 feature has never worked safely; it's always been prone to deadlocks. 1760 Using a zvol as the backing store for a VM guest's virtual disk will 1761 still work, even if the guest is using ZFS. Legacy behavior can be 1762 restored by setting vfs.zfs.vol.recursive=1. 1763 176420160119: 1765 The NONE and HPN patches has been removed from OpenSSH. They are 1766 still available in the security/openssh-portable port. 1767 176820160113: 1769 With the addition of ypldap(8), a new _ypldap user is now required 1770 during installworld. "mergemaster -p" can be used to add the user 1771 prior to installworld, as documented in the handbook. 1772 177320151216: 1774 The tftp loader (pxeboot) now uses the option root-path directive. As a 1775 consequence it no longer looks for a pxeboot.4th file on the tftp 1776 server. Instead it uses the regular /boot infrastructure as with the 1777 other loaders. 1778 177920151211: 1780 The code to start recording plug and play data into the modules has 1781 been committed. While the old tools will properly build a new kernel, 1782 a number of warnings about "unknown metadata record 4" will be produced 1783 for an older kldxref. To avoid such warnings, make sure to rebuild 1784 the kernel toolchain (or world). Make sure that you have r292078 or 1785 later when trying to build 292077 or later before rebuilding. 1786 178720151207: 1788 Debug data files are now built by default with 'make buildworld' and 1789 installed with 'make installworld'. This facilitates debugging but 1790 requires more disk space both during the build and for the installed 1791 world. Debug files may be disabled by setting WITHOUT_DEBUG_FILES=yes 1792 in src.conf(5). 1793 179420151130: 1795 r291527 changed the internal interface between the nfsd.ko and 1796 nfscommon.ko modules. As such, they must both be upgraded to-gether. 1797 __FreeBSD_version has been bumped because of this. 1798 179920151108: 1800 Add support for unicode collation strings leads to a change of 1801 order of files listed by ls(1) for example. To get back to the old 1802 behaviour, set LC_COLLATE environment variable to "C". 1803 1804 Databases administrators will need to reindex their databases given 1805 collation results will be different. 1806 1807 Due to a bug in install(1) it is recommended to remove the ancient 1808 locales before running make installworld. 1809 1810 rm -rf /usr/share/locale/* 1811 181220151030: 1813 The OpenSSL has been upgraded to 1.0.2d. Any binaries requiring 1814 libcrypto.so.7 or libssl.so.7 must be recompiled. 1815 181620151020: 1817 Qlogic 24xx/25xx firmware images were updated from 5.5.0 to 7.3.0. 1818 Kernel modules isp_2400_multi and isp_2500_multi were removed and 1819 should be replaced with isp_2400 and isp_2500 modules respectively. 1820 182120151017: 1822 The build previously allowed using 'make -n' to not recurse into 1823 sub-directories while showing what commands would be executed, and 1824 'make -n -n' to recursively show commands. Now 'make -n' will recurse 1825 and 'make -N' will not. 1826 182720151012: 1828 If you specify SENDMAIL_MC or SENDMAIL_CF in make.conf, mergemaster 1829 and etcupdate will now use this file. A custom sendmail.cf is now 1830 updated via this mechanism rather than via installworld. If you had 1831 excluded sendmail.cf in mergemaster.rc or etcupdate.conf, you may 1832 want to remove the exclusion or change it to "always install". 1833 /etc/mail/sendmail.cf is now managed the same way regardless of 1834 whether SENDMAIL_MC/SENDMAIL_CF is used. If you are not using 1835 SENDMAIL_MC/SENDMAIL_CF there should be no change in behavior. 1836 183720151011: 1838 Compatibility shims for legacy ATA device names have been removed. 1839 It includes ATA_STATIC_ID kernel option, kern.cam.ada.legacy_aliases 1840 and kern.geom.raid.legacy_aliases loader tunables, kern.devalias.* 1841 environment variables, /dev/ad* and /dev/ar* symbolic links. 1842 184320151006: 1844 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 3.7.0. 1845 Please see the 20141231 entry below for information about prerequisites 1846 and upgrading, if you are not already using clang 3.5.0 or higher. 1847 184820150924: 1849 Kernel debug files have been moved to /usr/lib/debug/boot/kernel/, 1850 and renamed from .symbols to .debug. This reduces the size requirements 1851 on the boot partition or file system and provides consistency with 1852 userland debug files. 1853 1854 When using the supported kernel installation method the 1855 /usr/lib/debug/boot/kernel directory will be renamed (to kernel.old) 1856 as is done with /boot/kernel. 1857 1858 Developers wishing to maintain the historical behavior of installing 1859 debug files in /boot/kernel/ can set KERN_DEBUGDIR="" in src.conf(5). 1860 186120150827: 1862 The wireless drivers had undergone changes that remove the 'parent 1863 interface' from the ifconfig -l output. The rc.d network scripts 1864 used to check presence of a parent interface in the list, so old 1865 scripts would fail to start wireless networking. Thus, etcupdate(3) 1866 or mergemaster(8) run is required after kernel update, to update your 1867 rc.d scripts in /etc. 1868 186920150827: 1870 pf no longer supports 'scrub fragment crop' or 'scrub fragment drop-ovl' 1871 These configurations are now automatically interpreted as 1872 'scrub fragment reassemble'. 1873 187420150817: 1875 Kernel-loadable modules for the random(4) device are back. To use 1876 them, the kernel must have 1877 1878 device random 1879 options RANDOM_LOADABLE 1880 1881 kldload(8) can then be used to load random_fortuna.ko 1882 or random_yarrow.ko. Please note that due to the indirect 1883 function calls that the loadable modules need to provide, 1884 the build-in variants will be slightly more efficient. 1885 1886 The random(4) kernel option RANDOM_DUMMY has been retired due to 1887 unpopularity. It was not all that useful anyway. 1888 188920150813: 1890 The WITHOUT_ELFTOOLCHAIN_TOOLS src.conf(5) knob has been retired. 1891 Control over building the ELF Tool Chain tools is now provided by 1892 the WITHOUT_TOOLCHAIN knob. 1893 189420150810: 1895 The polarity of Pulse Per Second (PPS) capture events with the 1896 uart(4) driver has been corrected. Prior to this change the PPS 1897 "assert" event corresponded to the trailing edge of a positive PPS 1898 pulse and the "clear" event was the leading edge of the next pulse. 1899 1900 As the width of a PPS pulse in a typical GPS receiver is on the 1901 order of 1 millisecond, most users will not notice any significant 1902 difference with this change. 1903 1904 Anyone who has compensated for the historical polarity reversal by 1905 configuring a negative offset equal to the pulse width will need to 1906 remove that workaround. 1907 190820150809: 1909 The default group assigned to /dev/dri entries has been changed 1910 from 'wheel' to 'video' with the id of '44'. If you want to have 1911 access to the dri devices please add yourself to the video group 1912 with: 1913 1914 # pw groupmod video -m $USER 1915 191620150806: 1917 The menu.rc and loader.rc files will now be replaced during 1918 upgrades. Please migrate local changes to menu.rc.local and 1919 loader.rc.local instead. 1920 192120150805: 1922 GNU Binutils versions of addr2line, c++filt, nm, readelf, size, 1923 strings and strip have been removed. The src.conf(5) knob 1924 WITHOUT_ELFTOOLCHAIN_TOOLS no longer provides the binutils tools. 1925 192620150728: 1927 As ZFS requires more kernel stack pages than is the default on some 1928 architectures e.g. i386, it now warns if KSTACK_PAGES is less than 1929 ZFS_MIN_KSTACK_PAGES (which is 4 at the time of writing). 1930 1931 Please consider using 'options KSTACK_PAGES=X' where X is greater 1932 than or equal to ZFS_MIN_KSTACK_PAGES i.e. 4 in such configurations. 1933 193420150706: 1935 sendmail has been updated to 8.15.2. Starting with FreeBSD 11.0 1936 and sendmail 8.15, sendmail uses uncompressed IPv6 addresses by 1937 default, i.e., they will not contain "::". For example, instead 1938 of ::1, it will be 0:0:0:0:0:0:0:1. This permits a zero subnet 1939 to have a more specific match, such as different map entries for 1940 IPv6:0:0 vs IPv6:0. This change requires that configuration 1941 data (including maps, files, classes, custom ruleset, etc.) must 1942 use the same format, so make certain such configuration data is 1943 upgrading. As a very simple check search for patterns like 1944 'IPv6:[0-9a-fA-F:]*::' and 'IPv6::'. To return to the old 1945 behavior, set the m4 option confUSE_COMPRESSED_IPV6_ADDRESSES or 1946 the cf option UseCompressedIPv6Addresses. 1947 194820150630: 1949 The default kernel entropy-processing algorithm is now 1950 Fortuna, replacing Yarrow. 1951 1952 Assuming you have 'device random' in your kernel config 1953 file, the configurations allow a kernel option to override 1954 this default. You may choose *ONE* of: 1955 1956 options RANDOM_YARROW # Legacy /dev/random algorithm. 1957 options RANDOM_DUMMY # Blocking-only driver. 1958 1959 If you have neither, you get Fortuna. For most people, 1960 read no further, Fortuna will give a /dev/random that works 1961 like it always used to, and the difference will be irrelevant. 1962 1963 If you remove 'device random', you get *NO* kernel-processed 1964 entropy at all. This may be acceptable to folks building 1965 embedded systems, but has complications. Carry on reading, 1966 and it is assumed you know what you need. 1967 1968 *PLEASE* read random(4) and random(9) if you are in the 1969 habit of tweaking kernel configs, and/or if you are a member 1970 of the embedded community, wanting specific and not-usual 1971 behaviour from your security subsystems. 1972 1973 NOTE!! If you use RANDOM_DUMMY and/or have no 'device 1974 random', you will NOT have a functioning /dev/random, and 1975 many cryptographic features will not work, including SSH. 1976 You may also find strange behaviour from the random(3) set 1977 of library functions, in particular sranddev(3), srandomdev(3) 1978 and arc4random(3). The reason for this is that the KERN_ARND 1979 sysctl only returns entropy if it thinks it has some to 1980 share, and with RANDOM_DUMMY or no 'device random' this 1981 will never happen. 1982 198320150623: 1984 An additional fix for the issue described in the 20150614 sendmail 1985 entry below has been committed in revision 284717. 1986 198720150616: 1988 FreeBSD's old make (fmake) has been removed from the system. It is 1989 available as the devel/fmake port or via pkg install fmake. 1990 199120150615: 1992 The fix for the issue described in the 20150614 sendmail entry 1993 below has been committed in revision 284436. The work 1994 around described in that entry is no longer needed unless the 1995 default setting is overridden by a confDH_PARAMETERS configuration 1996 setting of '5' or pointing to a 512 bit DH parameter file. 1997 199820150614: 1999 ALLOW_DEPRECATED_ATF_TOOLS/ATFFILE support has been removed from 2000 atf.test.mk (included from bsd.test.mk). Please upgrade devel/atf 2001 and devel/kyua to version 0.20+ and adjust any calling code to work 2002 with Kyuafile and kyua. 2003 200420150614: 2005 The import of openssl to address the FreeBSD-SA-15:10.openssl 2006 security advisory includes a change which rejects handshakes 2007 with DH parameters below 768 bits. sendmail releases prior 2008 to 8.15.2 (not yet released), defaulted to a 512 bit 2009 DH parameter setting for client connections. To work around 2010 this interoperability, sendmail can be configured to use a 2011 2048 bit DH parameter by: 2012 2013 1. Edit /etc/mail/`hostname`.mc 2014 2. If a setting for confDH_PARAMETERS does not exist or 2015 exists and is set to a string beginning with '5', 2016 replace it with '2'. 2017 3. If a setting for confDH_PARAMETERS exists and is set to 2018 a file path, create a new file with: 2019 openssl dhparam -out /path/to/file 2048 2020 4. Rebuild the .cf file: 2021 cd /etc/mail/; make; make install 2022 5. Restart sendmail: 2023 cd /etc/mail/; make restart 2024 2025 A sendmail patch is coming, at which time this file will be 2026 updated. 2027 202820150604: 2029 Generation of legacy formatted entries have been disabled by default 2030 in pwd_mkdb(8), as all base system consumers of the legacy formatted 2031 entries were converted to use the new format by default when the new, 2032 machine independent format have been added and supported since FreeBSD 2033 5.x. 2034 2035 Please see the pwd_mkdb(8) manual page for further details. 2036 203720150525: 2038 Clang and llvm have been upgraded to 3.6.1 release. Please see the 2039 20141231 entry below for information about prerequisites and upgrading, 2040 if you are not already using 3.5.0 or higher. 2041 204220150521: 2043 TI platform code switched to using vendor DTS files and this update 2044 may break existing systems running on Beaglebone, Beaglebone Black, 2045 and Pandaboard: 2046 2047 - dtb files should be regenerated/reinstalled. Filenames are the 2048 same but content is different now 2049 - GPIO addressing was changed, now each GPIO bank (32 pins per bank) 2050 has its own /dev/gpiocX device, e.g. pin 121 on /dev/gpioc0 in old 2051 addressing scheme is now pin 25 on /dev/gpioc3. 2052 - Pandaboard: /etc/ttys should be updated, serial console device is 2053 now /dev/ttyu2, not /dev/ttyu0 2054 205520150501: 2056 soelim(1) from gnu/usr.bin/groff has been replaced by usr.bin/soelim. 2057 If you need the GNU extension from groff soelim(1), install groff 2058 from package: pkg install groff, or via ports: textproc/groff. 2059 206020150423: 2061 chmod, chflags, chown and chgrp now affect symlinks in -R mode as 2062 defined in symlink(7); previously symlinks were silently ignored. 2063 206420150415: 2065 The const qualifier has been removed from iconv(3) to comply with 2066 POSIX. The ports tree is aware of this from r384038 onwards. 2067 206820150416: 2069 Libraries specified by LIBADD in Makefiles must have a corresponding 2070 DPADD_<lib> variable to ensure correct dependencies. This is now 2071 enforced in src.libnames.mk. 2072 207320150324: 2074 From legacy ata(4) driver was removed support for SATA controllers 2075 supported by more functional drivers ahci(4), siis(4) and mvs(4). 2076 Kernel modules ataahci and ataadaptec were removed completely, 2077 replaced by ahci and mvs modules respectively. 2078 207920150315: 2080 Clang, llvm and lldb have been upgraded to 3.6.0 release. Please see 2081 the 20141231 entry below for information about prerequisites and 2082 upgrading, if you are not already using 3.5.0 or higher. 2083 208420150307: 2085 The 32-bit PowerPC kernel has been changed to a position-independent 2086 executable. This can only be booted with a version of loader(8) 2087 newer than January 31, 2015, so make sure to update both world and 2088 kernel before rebooting. 2089 209020150217: 2091 If you are running a -CURRENT kernel since r273872 (Oct 30th, 2014), 2092 but before r278950, the RNG was not seeded properly. Immediately 2093 upgrade the kernel to r278950 or later and regenerate any keys (e.g. 2094 ssh keys or openssl keys) that were generated w/ a kernel from that 2095 range. This does not affect programs that directly used /dev/random 2096 or /dev/urandom. All userland uses of arc4random(3) are affected. 2097 209820150210: 2099 The autofs(4) ABI was changed in order to restore binary compatibility 2100 with 10.1-RELEASE. The automountd(8) daemon needs to be rebuilt to work 2101 with the new kernel. 2102 210320150131: 2104 The powerpc64 kernel has been changed to a position-independent 2105 executable. This can only be booted with a new version of loader(8), 2106 so make sure to update both world and kernel before rebooting. 2107 210820150118: 2109 Clang and llvm have been upgraded to 3.5.1 release. This is a bugfix 2110 only release, no new features have been added. Please see the 20141231 2111 entry below for information about prerequisites and upgrading, if you 2112 are not already using 3.5.0. 2113 211420150107: 2115 ELF tools addr2line, elfcopy (strip), nm, size, and strings are now 2116 taken from the ELF Tool Chain project rather than GNU binutils. They 2117 should be drop-in replacements, with the addition of arm64 support. 2118 The WITHOUT_ELFTOOLCHAIN_TOOLS= knob may be used to obtain the 2119 binutils tools, if necessary. See 20150805 for updated information. 2120 212120150105: 2122 The default Unbound configuration now enables remote control 2123 using a local socket. Users who have already enabled the 2124 local_unbound service should regenerate their configuration 2125 by running "service local_unbound setup" as root. 2126 212720150102: 2128 The GNU texinfo and GNU info pages have been removed. 2129 To be able to view GNU info pages please install texinfo from ports. 2130 213120141231: 2132 Clang, llvm and lldb have been upgraded to 3.5.0 release. 2133 2134 As of this release, a prerequisite for building clang, llvm and lldb is 2135 a C++11 capable compiler and C++11 standard library. This means that to 2136 be able to successfully build the cross-tools stage of buildworld, with 2137 clang as the bootstrap compiler, your system compiler or cross compiler 2138 should either be clang 3.3 or later, or gcc 4.8 or later, and your 2139 system C++ library should be libc++, or libdstdc++ from gcc 4.8 or 2140 later. 2141 2142 On any standard FreeBSD 10.x or 11.x installation, where clang and 2143 libc++ are on by default (that is, on x86 or arm), this should work out 2144 of the box. 2145 2146 On 9.x installations where clang is enabled by default, e.g. on x86 and 2147 powerpc, libc++ will not be enabled by default, so libc++ should be 2148 built (with clang) and installed first. If both clang and libc++ are 2149 missing, build clang first, then use it to build libc++. 2150 2151 On 8.x and earlier installations, upgrade to 9.x first, and then follow 2152 the instructions for 9.x above. 2153 2154 Sparc64 and mips users are unaffected, as they still use gcc 4.2.1 by 2155 default, and do not build clang. 2156 2157 Many embedded systems are resource constrained, and will not be able to 2158 build clang in a reasonable time, or in some cases at all. In those 2159 cases, cross building bootable systems on amd64 is a workaround. 2160 2161 This new version of clang introduces a number of new warnings, of which 2162 the following are most likely to appear: 2163 2164 -Wabsolute-value 2165 2166 This warns in two cases, for both C and C++: 2167 * When the code is trying to take the absolute value of an unsigned 2168 quantity, which is effectively a no-op, and almost never what was 2169 intended. The code should be fixed, if at all possible. If you are 2170 sure that the unsigned quantity can be safely cast to signed, without 2171 loss of information or undefined behavior, you can add an explicit 2172 cast, or disable the warning. 2173 2174 * When the code is trying to take an absolute value, but the called 2175 abs() variant is for the wrong type, which can lead to truncation. 2176 If you want to disable the warning instead of fixing the code, please 2177 make sure that truncation will not occur, or it might lead to unwanted 2178 side-effects. 2179 2180 -Wtautological-undefined-compare and 2181 -Wundefined-bool-conversion 2182 2183 These warn when C++ code is trying to compare 'this' against NULL, while 2184 'this' should never be NULL in well-defined C++ code. However, there is 2185 some legacy (pre C++11) code out there, which actively abuses this 2186 feature, which was less strictly defined in previous C++ versions. 2187 2188 Squid and openjdk do this, for example. The warning can be turned off 2189 for C++98 and earlier, but compiling the code in C++11 mode might result 2190 in unexpected behavior; for example, the parts of the program that are 2191 unreachable could be optimized away. 2192 219320141222: 2194 The old NFS client and server (kernel options NFSCLIENT, NFSSERVER) 2195 kernel sources have been removed. The .h files remain, since some 2196 utilities include them. This will need to be fixed later. 2197 If "mount -t oldnfs ..." is attempted, it will fail. 2198 If the "-o" option on mountd(8), nfsd(8) or nfsstat(1) is used, 2199 the utilities will report errors. 2200 220120141121: 2202 The handling of LOCAL_LIB_DIRS has been altered to skip addition of 2203 directories to top level SUBDIR variable when their parent 2204 directory is included in LOCAL_DIRS. Users with build systems with 2205 such hierarchies and without SUBDIR entries in the parent 2206 directory Makefiles should add them or add the directories to 2207 LOCAL_DIRS. 2208 220920141109: 2210 faith(4) and faithd(8) have been removed from the base system. Faith 2211 has been obsolete for a very long time. 2212 221320141104: 2214 vt(4), the new console driver, is enabled by default. It brings 2215 support for Unicode and double-width characters, as well as 2216 support for UEFI and integration with the KMS kernel video 2217 drivers. 2218 2219 You may need to update your console settings in /etc/rc.conf, 2220 most probably the keymap. During boot, /etc/rc.d/syscons will 2221 indicate what you need to do. 2222 2223 vt(4) still has issues and lacks some features compared to 2224 syscons(4). See the wiki for up-to-date information: 2225 https://wiki.freebsd.org/Newcons 2226 2227 If you want to keep using syscons(4), you can do so by adding 2228 the following line to /boot/loader.conf: 2229 kern.vty=sc 2230 223120141102: 2232 pjdfstest has been integrated into kyua as an opt-in test suite. 2233 Please see share/doc/pjdfstest/README for more details on how to 2234 execute it. 2235 223620141009: 2237 gperf has been removed from the base system for architectures 2238 that use clang. Ports that require gperf will obtain it from the 2239 devel/gperf port. 2240 224120140923: 2242 pjdfstest has been moved from tools/regression/pjdfstest to 2243 contrib/pjdfstest . 2244 224520140922: 2246 At svn r271982, The default linux compat kernel ABI has been adjusted 2247 to 2.6.18 in support of the linux-c6 compat ports infrastructure 2248 update. If you wish to continue using the linux-f10 compat ports, 2249 add compat.linux.osrelease=2.6.16 to your local sysctl.conf. Users are 2250 encouraged to update their linux-compat packages to linux-c6 during 2251 their next update cycle. 2252 225320140729: 2254 The ofwfb driver, used to provide a graphics console on PowerPC when 2255 using vt(4), no longer allows mmap() of all physical memory. This 2256 will prevent Xorg on PowerPC with some ATI graphics cards from 2257 initializing properly unless x11-servers/xorg-server is updated to 2258 1.12.4_8 or newer. 2259 226020140723: 2261 The xdev targets have been converted to using TARGET and 2262 TARGET_ARCH instead of XDEV and XDEV_ARCH. 2263 226420140719: 2265 The default unbound configuration has been modified to address 2266 issues with reverse lookups on networks that use private 2267 address ranges. If you use the local_unbound service, run 2268 "service local_unbound setup" as root to regenerate your 2269 configuration, then "service local_unbound reload" to load the 2270 new configuration. 2271 227220140709: 2273 The GNU texinfo and GNU info pages are not built and installed 2274 anymore, WITH_INFO knob has been added to allow to built and install 2275 them again. 2276 UPDATE: see 20150102 entry on texinfo's removal 2277 227820140708: 2279 The GNU readline library is now an INTERNALLIB - that is, it is 2280 statically linked into consumers (GDB and variants) in the base 2281 system, and the shared library is no longer installed. The 2282 devel/readline port is available for third party software that 2283 requires readline. 2284 228520140702: 2286 The Itanium architecture (ia64) has been removed from the list of 2287 known architectures. This is the first step in the removal of the 2288 architecture. 2289 229020140701: 2291 Commit r268115 has added NFSv4.1 server support, merged from 2292 projects/nfsv4.1-server. Since this includes changes to the 2293 internal interfaces between the NFS related modules, a full 2294 build of the kernel and modules will be necessary. 2295 __FreeBSD_version has been bumped. 2296 229720140629: 2298 The WITHOUT_VT_SUPPORT kernel config knob has been renamed 2299 WITHOUT_VT. (The other _SUPPORT knobs have a consistent meaning 2300 which differs from the behaviour controlled by this knob.) 2301 230220140619: 2303 Maximal length of the serial number in CTL was increased from 16 to 2304 64 chars, that breaks ABI. All CTL-related tools, such as ctladm 2305 and ctld, need to be rebuilt to work with a new kernel. 2306 230720140606: 2308 The libatf-c and libatf-c++ major versions were downgraded to 0 and 2309 1 respectively to match the upstream numbers. They were out of 2310 sync because, when they were originally added to FreeBSD, the 2311 upstream versions were not respected. These libraries are private 2312 and not yet built by default, so renumbering them should be a 2313 non-issue. However, unclean source trees will yield broken test 2314 programs once the operator executes "make delete-old-libs" after a 2315 "make installworld". 2316 2317 Additionally, the atf-sh binary was made private by moving it into 2318 /usr/libexec/. Already-built shell test programs will keep the 2319 path to the old binary so they will break after "make delete-old" 2320 is run. 2321 2322 If you are using WITH_TESTS=yes (not the default), wipe the object 2323 tree and rebuild from scratch to prevent spurious test failures. 2324 This is only needed once: the misnumbered libraries and misplaced 2325 binaries have been added to OptionalObsoleteFiles.inc so they will 2326 be removed during a clean upgrade. 2327 232820140512: 2329 Clang and llvm have been upgraded to 3.4.1 release. 2330 233120140508: 2332 We bogusly installed src.opts.mk in /usr/share/mk. This file should 2333 be removed to avoid issues in the future (and has been added to 2334 ObsoleteFiles.inc). 2335 233620140505: 2337 /etc/src.conf now affects only builds of the FreeBSD src tree. In the 2338 past, it affected all builds that used the bsd.*.mk files. The old 2339 behavior was a bug, but people may have relied upon it. To get this 2340 behavior back, you can .include /etc/src.conf from /etc/make.conf 2341 (which is still global and isn't changed). This also changes the 2342 behavior of incremental builds inside the tree of individual 2343 directories. Set MAKESYSPATH to ".../share/mk" to do that. 2344 Although this has survived make universe and some upgrade scenarios, 2345 other upgrade scenarios may have broken. At least one form of 2346 temporary breakage was fixed with MAKESYSPATH settings for buildworld 2347 as well... In cases where MAKESYSPATH isn't working with this 2348 setting, you'll need to set it to the full path to your tree. 2349 2350 One side effect of all this cleaning up is that bsd.compiler.mk 2351 is no longer implicitly included by bsd.own.mk. If you wish to 2352 use COMPILER_TYPE, you must now explicitly include bsd.compiler.mk 2353 as well. 2354 235520140430: 2356 The lindev device has been removed since /dev/full has been made a 2357 standard device. __FreeBSD_version has been bumped. 2358 235920140424: 2360 The knob WITHOUT_VI was added to the base system, which controls 2361 building ex(1), vi(1), etc. Older releases of FreeBSD required ex(1) 2362 in order to reorder files share/termcap and didn't build ex(1) as a 2363 build tool, so building/installing with WITH_VI is highly advised for 2364 build hosts for older releases. 2365 2366 This issue has been fixed in stable/9 and stable/10 in r277022 and 2367 r276991, respectively. 2368 236920140418: 2370 The YES_HESIOD knob has been removed. It has been obsolete for 2371 a decade. Please move to using WITH_HESIOD instead or your builds 2372 will silently lack HESIOD. 2373 237420140405: 2375 The uart(4) driver has been changed with respect to its handling 2376 of the low-level console. Previously the uart(4) driver prevented 2377 any process from changing the baudrate or the CLOCAL and HUPCL 2378 control flags. By removing the restrictions, operators can make 2379 changes to the serial console port without having to reboot. 2380 However, when getty(8) is started on the serial device that is 2381 associated with the low-level console, a misconfigured terminal 2382 line in /etc/ttys will now have a real impact. 2383 Before upgrading the kernel, make sure that /etc/ttys has the 2384 serial console device configured as 3wire without baudrate to 2385 preserve the previous behaviour. E.g: 2386 ttyu0 "/usr/libexec/getty 3wire" vt100 on secure 2387 238820140306: 2389 Support for libwrap (TCP wrappers) in rpcbind was disabled by default 2390 to improve performance. To re-enable it, if needed, run rpcbind 2391 with command line option -W. 2392 239320140226: 2394 Switched back to the GPL dtc compiler due to updates in the upstream 2395 dts files not being supported by the BSDL dtc compiler. You will need 2396 to rebuild your kernel toolchain to pick up the new compiler. Core dumps 2397 may result while building dtb files during a kernel build if you fail 2398 to do so. Set WITHOUT_GPL_DTC if you require the BSDL compiler. 2399 240020140216: 2401 Clang and llvm have been upgraded to 3.4 release. 2402 240320140216: 2404 The nve(4) driver has been removed. Please use the nfe(4) driver 2405 for NVIDIA nForce MCP Ethernet adapters instead. 2406 240720140212: 2408 An ABI incompatibility crept into the libc++ 3.4 import in r261283. 2409 This could cause certain C++ applications using shared libraries built 2410 against the previous version of libc++ to crash. The incompatibility 2411 has now been fixed, but any C++ applications or shared libraries built 2412 between r261283 and r261801 should be recompiled. 2413 241420140204: 2415 OpenSSH will now ignore errors caused by kernel lacking of Capsicum 2416 capability mode support. Please note that enabling the feature in 2417 kernel is still highly recommended. 2418 241920140131: 2420 OpenSSH is now built with sandbox support, and will use sandbox as 2421 the default privilege separation method. This requires Capsicum 2422 capability mode support in kernel. 2423 242420140128: 2425 The libelf and libdwarf libraries have been updated to newer 2426 versions from upstream. Shared library version numbers for 2427 these two libraries were bumped. Any ports or binaries 2428 requiring these two libraries should be recompiled. 2429 __FreeBSD_version is bumped to 1100006. 2430 243120140110: 2432 If a Makefile in a tests/ directory was auto-generating a Kyuafile 2433 instead of providing an explicit one, this would prevent such 2434 Makefile from providing its own Kyuafile in the future during 2435 NO_CLEAN builds. This has been fixed in the Makefiles but manual 2436 intervention is needed to clean an objdir if you use NO_CLEAN: 2437 # find /usr/obj -name Kyuafile | xargs rm -f 2438 243920131213: 2440 The behavior of gss_pseudo_random() for the krb5 mechanism 2441 has changed, for applications requesting a longer random string 2442 than produced by the underlying enctype's pseudo-random() function. 2443 In particular, the random string produced from a session key of 2444 enctype aes256-cts-hmac-sha1-96 or aes256-cts-hmac-sha1-96 will 2445 be different at the 17th octet and later, after this change. 2446 The counter used in the PRF+ construction is now encoded as a 2447 big-endian integer in accordance with RFC 4402. 2448 __FreeBSD_version is bumped to 1100004. 2449 245020131108: 2451 The WITHOUT_ATF build knob has been removed and its functionality 2452 has been subsumed into the more generic WITHOUT_TESTS. If you were 2453 using the former to disable the build of the ATF libraries, you 2454 should change your settings to use the latter. 2455 245620131025: 2457 The default version of mtree is nmtree which is obtained from 2458 NetBSD. The output is generally the same, but may vary 2459 slightly. If you found you need identical output adding 2460 "-F freebsd9" to the command line should do the trick. For the 2461 time being, the old mtree is available as fmtree. 2462 246320131014: 2464 libbsdyml has been renamed to libyaml and moved to /usr/lib/private. 2465 This will break ports-mgmt/pkg. Rebuild the port, or upgrade to pkg 2466 1.1.4_8 and verify bsdyml not linked in, before running "make 2467 delete-old-libs": 2468 # make -C /usr/ports/ports-mgmt/pkg build deinstall install clean 2469 or 2470 # pkg install pkg; ldd /usr/local/sbin/pkg | grep bsdyml 2471 247220131010: 2473 The stable/10 branch has been created in subversion from head 2474 revision r256279. 2475 2476COMMON ITEMS: 2477 2478 General Notes 2479 ------------- 2480 Sometimes, obscure build problems are the result of environment 2481 poisoning. This can happen because the make utility reads its 2482 environment when searching for values for global variables. To run 2483 your build attempts in an "environmental clean room", prefix all make 2484 commands with 'env -i '. See the env(1) manual page for more details. 2485 Occasionally a build failure will occur with "make -j" due to a race 2486 condition. If this happens try building again without -j, and please 2487 report a bug if it happens consistently. 2488 2489 When upgrading from one major version to another it is generally best to 2490 upgrade to the latest code in the currently installed branch first, then 2491 do an upgrade to the new branch. This is the best-tested upgrade path, 2492 and has the highest probability of being successful. Please try this 2493 approach if you encounter problems with a major version upgrade. Since 2494 the stable 4.x branch point, one has generally been able to upgrade from 2495 anywhere in the most recent stable branch to head / current (or even the 2496 last couple of stable branches). See the top of this file when there's 2497 an exception. 2498 2499 The update process will emit an error on an attempt to perform a build 2500 or install from a FreeBSD version below the earliest supported version. 2501 When updating from an older version the update should be performed one 2502 major release at a time, including running `make delete-old` at each 2503 step. 2504 2505 When upgrading a live system, having a root shell around before 2506 installing anything can help undo problems. Not having a root shell 2507 around can lead to problems if pam has changed too much from your 2508 starting point to allow continued authentication after the upgrade. 2509 2510 This file should be read as a log of events. When a later event changes 2511 information of a prior event, the prior event should not be deleted. 2512 Instead, a pointer to the entry with the new information should be 2513 placed in the old entry. Readers of this file should also sanity check 2514 older entries before relying on them blindly. Authors of new entries 2515 should write them with this in mind. 2516 2517 ZFS notes 2518 --------- 2519 When upgrading the boot ZFS pool to a new version, always follow 2520 these two steps: 2521 2522 1.) recompile and reinstall the ZFS boot loader and boot block 2523 (this is part of "make buildworld" and "make installworld") 2524 2525 2.) update the ZFS boot block on your boot drive 2526 2527 The following example updates the ZFS boot block on the 2528 freebsd-boot partition of a GPT partitioned drive ada0: 2529 "gpart bootcode -p /boot/gptzfsboot -i $N ada0" 2530 The value $N will typically be 1 (if booting from BIOS) or 2 (if 2531 booting from EFI). 2532 2533 Non-boot pools do not need these updates. 2534 2535 To build a kernel 2536 ----------------- 2537 If you are updating from a prior version of FreeBSD (even one just 2538 a few days old), you should follow this procedure. It is the most 2539 failsafe as it uses a /usr/obj tree with a fresh mini-buildworld, 2540 2541 make kernel-toolchain 2542 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE 2543 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE 2544 2545 To test a kernel once 2546 --------------------- 2547 If you just want to boot a kernel once (because you are not sure 2548 if it works, or if you want to boot a known bad kernel to provide 2549 debugging information) run 2550 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel 2551 nextboot -k testkernel 2552 2553 To rebuild everything and install it on the current system. 2554 ----------------------------------------------------------- 2555 # Note: sometimes if you are running current you gotta do more than 2556 # is listed here if you are upgrading from a really old current. 2557 2558 <make sure you have good level 0 dumps> 2559 make buildworld 2560 make buildkernel KERNCONF=YOUR_KERNEL_HERE 2561 make installkernel KERNCONF=YOUR_KERNEL_HERE 2562 [1] 2563 <reboot in single user> [3] 2564 etcupdate -p [5] 2565 make installworld 2566 etcupdate -B [4] 2567 make delete-old [6] 2568 <reboot> 2569 2570 To cross-install current onto a separate partition 2571 -------------------------------------------------- 2572 # In this approach we use a separate partition to hold 2573 # current's root, 'usr', and 'var' directories. A partition 2574 # holding "/", "/usr" and "/var" should be about 2GB in 2575 # size. 2576 2577 <make sure you have good level 0 dumps> 2578 <boot into -stable> 2579 make buildworld 2580 make buildkernel KERNCONF=YOUR_KERNEL_HERE 2581 <maybe newfs current's root partition> 2582 <mount current's root partition on directory ${CURRENT_ROOT}> 2583 make installworld DESTDIR=${CURRENT_ROOT} -DDB_FROM_SRC 2584 make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd 2585 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} 2586 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd 2587 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> 2588 <reboot into current> 2589 <do a "native" rebuild/install as described in the previous section> 2590 <maybe install compatibility libraries from ports/misc/compat*> 2591 <reboot> 2592 2593 2594 To upgrade in-place from stable to current 2595 ---------------------------------------------- 2596 <make sure you have good level 0 dumps> 2597 make buildworld [9] 2598 make buildkernel KERNCONF=YOUR_KERNEL_HERE [8] 2599 make installkernel KERNCONF=YOUR_KERNEL_HERE 2600 [1] 2601 <reboot in single user> [3] 2602 etcupdate -p [5] 2603 make installworld 2604 etcupdate -B [4] 2605 make delete-old [6] 2606 <reboot> 2607 2608 Make sure that you've read the UPDATING file to understand the 2609 tweaks to various things you need. At this point in the life 2610 cycle of current, things change often and you are on your own 2611 to cope. The defaults can also change, so please read ALL of 2612 the UPDATING entries. 2613 2614 Also, if you are tracking -current, you must be subscribed to 2615 [email protected]. Make sure that before you update 2616 your sources that you have read and understood all the recent 2617 messages there. If in doubt, please track -stable which has 2618 much fewer pitfalls. 2619 2620 [1] If you have third party modules, such as vmware, you should disable 2621 them at this point so they don't crash your system on 2622 reboot. Alternatively, you should rebuild all the modules you have in 2623 your system and install them as well. If you are running -current, you 2624 should seriously consider placing all sources to all the modules for 2625 your system (or symlinks to them) in /usr/local/sys/modules so this 2626 happens automatically. If all your modules come from ports, then adding 2627 the port origin directories to PORTS_MODULES instead is also automatic 2628 and effective, eg: 2629 PORTS_MODULES+=x11/nvidia-driver 2630 2631 [3] From the bootblocks, boot -s, and then do 2632 fsck -p 2633 mount -u / 2634 mount -a 2635 sh /etc/rc.d/zfs start # mount zfs filesystem, if needed 2636 cd src # full path to source 2637 adjkerntz -i # if CMOS is wall time 2638 Also, when doing a major release upgrade, it is required that you boot 2639 into single user mode to do the installworld. 2640 2641 [4] Note: This step is non-optional. Failure to do this step 2642 can result in a significant reduction in the functionality of the 2643 system. Attempting to do it by hand is not recommended and those 2644 that pursue this avenue should read this file carefully, as well 2645 as the archives of freebsd-current and freebsd-hackers mailing lists 2646 for potential gotchas. See etcupdate(8) for more information. 2647 2648 [5] Usually this step is a no-op. However, from time to time 2649 you may need to do this if you get unknown user in the following 2650 step. 2651 2652 [6] This only deletes old files and directories. Old libraries 2653 can be deleted by "make delete-old-libs", but you have to make 2654 sure that no program is using those libraries anymore. 2655 2656 [8] The new kernel must be able to run existing binaries used by an 2657 installworld. When upgrading across major versions, the new kernel's 2658 configuration must include the correct COMPAT_FREEBSD<n> option for 2659 existing binaries (e.g. COMPAT_FREEBSD11 to run 11.x binaries). Failure 2660 to do so may leave you with a system that is hard to boot to recover. A 2661 GENERIC kernel will include suitable compatibility options to run 2662 binaries from older branches. Note that the ability to run binaries 2663 from unsupported branches is not guaranteed. 2664 2665 Make sure that you merge any new devices from GENERIC since the 2666 last time you updated your kernel config file. Options also 2667 change over time, so you may need to adjust your custom kernels 2668 for these as well. 2669 2670 [9] If CPUTYPE is defined in your /etc/make.conf, make sure to use the 2671 "?=" instead of the "=" assignment operator, so that buildworld can 2672 override the CPUTYPE if it needs to. 2673 2674 MAKEOBJDIRPREFIX must be defined in an environment variable, and 2675 not on the command line, or in /etc/make.conf. buildworld will 2676 warn if it is improperly defined. 2677FORMAT: 2678 2679This file contains a list, in reverse chronological order, of major 2680breakages in tracking -current. It is not guaranteed to be a complete 2681list of such breakages, and only contains entries since September 23, 2011. 2682If you need to see UPDATING entries from before that date, you will need 2683to fetch an UPDATING file from an older FreeBSD release. 2684 2685Copyright information: 2686 2687Copyright 1998-2009 M. Warner Losh <[email protected]> 2688 2689Redistribution, publication, translation and use, with or without 2690modification, in full or in part, in any form or format of this 2691document are permitted without further permission from the author. 2692 2693THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR 2694IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2695WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2696DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, 2697INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2698(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2699SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2700HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2701STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 2702IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2703POSSIBILITY OF SUCH DAMAGE. 2704 2705Contact Warner Losh if you have any questions about your use of 2706this document. 2707 2708$FreeBSD$ 2709