Bring in vmx(4) (VMware virtual network driver, aka vmxnet3).
[dragonfly.git] / UPDATING
1 # Updating Information for DragonFly users.
2 #
3 #
4 # This file should warn you of any pitfalls which you might need to work around
5 # when trying to update your DragonFly system.  The information below is
6 # in reverse-time order, with the latest information at the top.
7 #
8 # If you discover any problem, please contact the bugs@lists.dragonflybsd.org
9 # mailing list with the details.
10
11 +-----------------------------------------------------------------------+
12 +         UPGRADING DRAGONFLY FROM 4.8 TO LATER VERSIONS                +
13 +-----------------------------------------------------------------------+
14
15 FFS_ROOT OPTION DISABLED
16 ------------------------
17
18 The FFS_ROOT option has been made a no-op and will be completely removed
19 at some point in the future. Users with a custom kernel configuration
20 can remove this option from it now.
21
22 +-----------------------------------------------------------------------+
23 +         UPGRADING DRAGONFLY FROM 4.6 TO LATER VERSIONS                +
24 +-----------------------------------------------------------------------+
25
26 AHC, AHD, AIC, NCV, NSP AND STG DRIVERS REMOVED
27 -----------------------------------------------
28
29 They were all in our X86_64_GENERIC kernel configuration file, along with
30 the AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT options, so any custom
31 configuration files derived from it need adjustment.
32
33 PORTAL FILE SYSTEM REMOVED
34 --------------------------
35
36 It has been broken for a long time now.
37
38 BINUTILS 2.27 REPLACES 2.24, PRIMARY
39 ------------------------------------
40
41 The oldest of the two versions of Binutils, version 2.24, was removed
42 and replaced with Binutils 2.27.  It becomes the primary version version
43 of binutils and version 2.25 becomes the alternate.
44
45 The accepted values of BINUTILSVER are now "binutils227" (default) and
46 "binutils225".  The building of Binutils 2.25 can be prevented by setting
47 NO_ALTBINUTILS=yes in make.conf.
48
49 COMPAT_43 KERNEL OPTION REMOVED
50 -------------------------------
51
52 It was commented out in our default configs for several years now, but
53 might still be present in custom configs created before Nov. 2011.
54
55 OPENSSL REMOVED
56 ---------------
57
58 OpenSSL has been removed from base and replaced with a private version of
59 LibreSSL.  The previously installed OpenSSL libraries, headers, and man
60 pages will remain on the system unless the "make upgrade" command is
61 specifically instructed to remove them.  To do this, define
62 REMOVE_OPENSSL_FILES for the upgrade command, e.g.
63 "make upgrade REMOVE_OPENSSL_FILES=yes"
64
65 28-Oct-2016: openssl has been replaced by ressl.  It is recommended that any
66 stale OpenSSL files be removed to avoid configuration scripts from using
67 the stale and potentially vulnerable version, but all binaries that are
68 dynamically linked to the OpenSSL libraries should be rebuilt first to
69 avoid breakage.
70
71 OPENSSH HPN REMOVED
72 -------------------
73
74 It has become too cumbersome to maintain HPN patches in OpenSSH in base.
75 To use OpenSSH in base remove HPN config, if you have added it.
76 Check files below for HPN config, see a few lines below.
77   /etc/ssh/ssh_config, /etc/ssh/sshd_config, ~/.ssh/config
78 sshd(8) will fail to start if HPN config is used.
79
80 NOTE: HPN config in sshd_config will prohibit remote access to host using ssh.
81
82 HPN config:
83 HPNDisabled
84 HPNBufferSize
85 TcpRcvBuf
86 TcpRcvBufPoll
87 NoneEnabled
88 NoneSwitch
89 cipher MTR-AES-CTR
90 cipher NONE
91
92 OpenSSH HPN is a patch set to OpenSSH providing higher performance under some
93 circumstances, especially for networking.
94 If HPN functionality is needed, install security/openssh from dports.
95
96 CS, EX AND VX DRIVERS REMOVED
97 -----------------------------
98
99 The cs(4), ex(4) and vx(4) drivers have been removed. They were very
100 old and its doubtful they ever worked properly in x86_64 but they were
101 in X86_64_GENERIC, so custom configurations derived from it have to be
102 adjusted.
103
104 +-----------------------------------------------------------------------+
105 +         UPGRADING DRAGONFLY FROM 4.4 TO LATER VERSIONS                +
106 +-----------------------------------------------------------------------+
107
108 AMD REMOVED
109 -----------
110
111 The am-utils automounter suite has been removed. It stopped working
112 at some point and was never fixed. autofs(5) and the associated
113 userland has been brought in from FreeBSD and replaces it.
114
115 AN DRIVER REMOVED
116 -----------------
117
118 The an(4) driver has been removed. It was in the X86_64_GENERIC kernel
119 config file, so any configurations derived from it have to be adjusted.
120
121 /DEV/DRI GROUP CHANGED
122 ----------------------
123
124 The default group assigned to /dev/dri entries has been changed
125 from 'wheel' to 'video' with the id of '44'. If you want to have
126 access to the dri devices please add yourself to the video group
127 with:
128
129 # pw groupmod video -m $USER
130
131 +-----------------------------------------------------------------------+
132 +         UPGRADING DRAGONFLY FROM 4.2 TO LATER VERSIONS                +
133 +-----------------------------------------------------------------------+
134
135 DSCHED REMOVED
136 --------------
137
138 dsched(4) has been removed and one of its kernel options, DSCHED_FQ, was
139 in our default kernel config file. So the DSCHED_FQ option has been turned
140 into a no-op for now and can be removed from custom configurations.
141
142 EST DRIVER REMOVED, COMPILE_ET AND LIBCOM_ERR TOO
143 -------------------------------------------------
144
145 The est(4) driver has been removed. All CPUs it supported (except one)
146 were 32 bits only. Those who are still using the Core 2 Duo T7500 should
147 report back if there are any issues with this CPU and our regular ACPI
148 P-state support.
149
150 Also, compile_et(1) and com_err(3) have been removed as well. They
151 should have been removed along with kerberos support, back in 2009.
152
153 SEVERAL LOCALES RENAMED
154 -----------------------
155
156 Several locales were using obsolete and misleading names, and thus have
157 been adjusted to current standards. Any users of the following locales
158 need to select alternates:
159
160 DFLY 4.2 locale            DFLY 4.4 alterative locale
161 ---------------            ------------------------------------
162 mn_MN.UTF-8                mn_Cyrl_MN.UTF-8
163 no_NO.UTF-8                nb_NO.UTF-8      or nn_NO.UTF-8
164 no_NO.ISO8859-1            nb_NO.ISO8869-1  or nn_NO.ISO8859-1
165 no_NO.ISO8859-15           nb_NO.ISO8859-15 or nn_NO.ISO8859-15
166 sr_YU.UTF-8                sr_Cyrl_RS.UTF-8 or sr_Latn_RS.UTF-8
167 sr_YU.ISO8859-5            sr_Cyrl_RS.ISO8859-5
168 sr_YU.ISO8859-2            sr_Latn_RS.ISO8859-2
169 zh_CN.GBK                  zh_Hans_CN.GBK
170 zh_CN.UTF-8                zh_Hans_CN.UTF-8
171 zh_CN.eucCN                zh_Hans_CN.eucCN
172 zh_CN.GB2312               zh_Hans_CH.GB2312
173 zh_CN.GB18030              zh_Hans_CH.GB18030
174 zh_HK.Big5HKSCS            zh_Hant_HK.Big5HKSCS
175 zh_HK.UTF_8                zh_Hant_HK.UTF-8
176 zh_TW.Big5                 zh_Hant_TW.Big5
177 zh_TW.UTF-8                zh_Hant_TW.UTF-8
178
179 +-----------------------------------------------------------------------+
180 +         UPGRADING DRAGONFLY FROM 4.0 TO LATER VERSIONS                +
181 +-----------------------------------------------------------------------+
182
183 BINUTILS 2.25 REPLACES 2.22, PRIMARY
184 ------------------------------------
185
186 The oldest of the two versions of Binutils, version 2.22, was removed
187 and replaced with Binutils 2.25.  It becomes the primary version version
188 of binutils and version 2.24 becomes the alternate.  There are 8 current
189 CVE written against 2.24, so for security reasons version 2.25 should
190 always be used.
191
192 The accepted values of BINUTILSVER are now "binutils225" (default) and
193 "binutils224".  The building of Binutils 2.24 can be prevented by setting
194 NO_ALTBINUTILS=yes in make.conf.
195
196 LOADER OPTIONS CHANGED
197 ----------------------
198
199 Right after the development branch started, the Fred art accompanying the
200 loader menu was improved.  The line between Fred and the menu was removed
201 by default (but can optionally be returned) and the placement shifted as
202 a result.  The drawing was improved, and the colored version was improved,
203 changing the eyes and wing color from white to red.  A new color version
204 of Fred was added, one with a blue scheme.
205
206 The loader menu defaults have changed since release 4.0:  The vertical
207 line was removed, the loader is displayed in color by default*, and the
208 blue scheme is used.
209
210 The loader.conf changes are:
211 loader_color:   option has been removed
212 loader_plain:   option has been added, it changed menu to monochrome
213 fred_is_red:    changes color scheme from blue to red
214 fred_is_blue:   option existed only on 4.1, it has been removed
215 fred_separated: Adds line between Fred and menu (as seen previously)
216
217 * If loader.conf defines "console" as "comconsole" or "console" is defined
218   in the environment as "comconsole" then color will not be displayed,
219   even if loader_plain value is "NO".
220
221 SENDMAIL REMOVED FROM BASE
222 --------------------------
223
224 The only Mail Transfer Agent provided now is DragonFly Mail Agent (dma).
225 If the system being upgraded is still configured to use the sendmail
226 binaries from base, the "make upgrade" command will fail.
227
228 The administrator must change /etc/mail/mailer.conf to switch the
229 mailwrapper to dma or a DPorts-based MTA prior to running the upgrade
230 command that permanently removes sendmail executables and could
231 potentially break a running mail server.
232
233 Refer: http://www.dragonflybsd.com/docs/docs/newhandbook/mta/ for
234 detailed instructions on how to configure the MTA selection.
235
236 _KPOSIX_VERSION and P1003_1B OPTIONS REMOVED
237 --------------------------------------------
238
239 The _KPOSIX_VERSION and P1003_1B kernel options have been changed to
240 no-ops. They can be removed from custom kernel configurations.
241
242 SOUND SYSTEM UPDATED FROM FreeBSD 11-CURRENT
243 --------------------------------------------
244
245 Many more sound devices may be detected.
246
247 If the default device choosen isn't to your liking, setting the sysctl
248 hw.snd.default_unit to a different number will change it.
249
250 SCTP SUPPORT DROPPED
251 --------------------
252
253 Support for the SCTP protocol has been removed.
254
255 OLD USB DRIVERS REMOVED
256 -----------------------
257
258 The old USB stack, along with the kernel config option "device oldusb"
259 and the make.conf variable "WANT_OLDUSB" have been removed. This means
260 that for custom kernel configuration files which were derived from a
261 GENERIC or X86_64_GENERIC file prior to making the usb4bsd stack default,
262 various (old USB stack specific) devices will now complain about being
263 unknown:
264
265   * oldusb      (obviously)
266   * natausb     (not yet ported to usb4bsd)
267   * rue         (not yet ported to usb4bsd)
268   * ugen        (no longer needed in usb4bsd)
269   * urio        (not yet ported to usb4bsd)
270   * uscanner    (no longer needed in usb4bsd)
271
272 They should be removed or commented out in such custom kernel configs.
273
274 GCC 5
275 -----
276
277 The GCC 4.4 compiler has been retired.  It has been replaced by a GCC 5.1.
278 The following make.conf variables no longer work: NO_GCC44, NO_OBJC, and
279 NO_CXX.  The latter was never documented and the latest versions of GCC are
280 partially written in C++ so a C++ compiler is no longer optional.  In
281 practical terms it has not been optional for many years as other base
282 components are also written in C++.  The resource savings by avoiding
283 building Objective-C compiler is so small, the complexity added by NO_OBJC
284 internally was deemed a bad tradeoff so that is the reason for its removal.
285 Also note that no "info" pages are installed with GCC 5.  After this entry
286 was originally written, all info pages were removed from DragonFly.
287
288 GCC 5.1 has been designated as the primary compiler.  As such, there is a
289 new make.conf variable, NO_ALTCOMPILER.  It will block the rebuilding of
290 the designated secondary compiler, GCC 4.7.  However, while DPorts
291 primarily uses GCC 5 to build ports now, it still uses GCC 4.7 as well, so
292 if building ports from source is desired, don't block building of the
293 secondary compiler.
294
295 +-----------------------------------------------------------------------+
296 +         UPGRADING DRAGONFLY FROM 3.8 TO LATER VERSIONS                +
297 +-----------------------------------------------------------------------+
298
299 SMP AND DEVICE_POLLING OPTIONS MADE UNKNOWN
300 -------------------------------------------
301
302 DEVICE_POLLING was replaced by IFPOLL_ENABLE and the former SMP code is
303 the default now (even on single-core systems), both for, like, 21 months.
304 We kept the options around as no-ops as a convenience, to allow people
305 using the same config for the then current release and the then current
306 master. That period is now over, so any configs still having those
307 options have to be adjusted.
308
309 SYSVIPC SYSCALLS MADE NON-OPTIONAL
310 ----------------------------------
311
312 The code related to the SYSVMSG, SYSVSEM and SYSVSHM kernel options is
313 now compiled in by default. The options are no-ops for now.
314
315 DEFAULT DRIVER CHANGED FOR LSI "THUNDERBOLT" SERIES RAID CONTROLLERS
316 --------------------------------------------------------------------
317
318 The default driver for those controllers is now mrsas(4) due to reports
319 of file system corruption using the mfi(4) driver. The whole issue (and
320 how to deal with potential problems when switching) was explained here:
321
322 http://lists.dragonflybsd.org/pipermail/users/2014-July/128703.html
323
324 A tunable is provided for letting those controllers still attach via
325 the mfi(4) driver, hw.mrsas.mfi_enable (see mrsas(4) manual page).
326
327 OLDER NETWORK DRIVERS MOVED TO I386 ONLY
328 ----------------------------------------
329
330 The following drivers have been made i386 only: ed(4), sr(4), ng_sync_ar
331 and ng_sync_sr. ed(4) used to be in X86_64_GENERIC, so it has to be
332 removed in kernel configs derived from X86_64_GENERIC.
333
334 +-----------------------------------------------------------------------+
335 +         UPGRADING DRAGONFLY FROM 3.6 TO LATER VERSIONS                +
336 +-----------------------------------------------------------------------+
337
338 UPDATE FROM MOST RECENT 3.6
339 ---------------------------
340
341 Versions of 3.6 built before June 25th have a bug where installworld might 
342 crash during installation of the new initrd.  Upgrade to the latest version
343 of 3.6 before updating to 3.8 or later.
344
345 ATM, IPX, NCP AND NWFS SUPPORT DROPPED
346 --------------------------------------
347
348 Support for the IPX and NCP network protocols and for mouting NetWare
349 file systems has been dropped. Dito for ATM protocol support.
350
351 INITRD IMAGES NOW INSTALLED BY DEFAULT
352 --------------------------------------
353
354 An initial ramdisk image is now installed in /boot/kernel/initrd.img.gz
355
356 Older images installed under the file name of initrd.img will be removed
357 automatically by the make upgrade process.
358
359 USB4BSD IS NOW THE DEFAULT USB STACK
360 ------------------------------------
361
362 To get back to the old stack, put "WANT_OLDUSB=yes" in /etc/make.conf and
363 replace "device usb" with "device oldusb" in the kernel configuration.
364
365 MORE ISA SUPPORT DROPPED
366 ------------------------
367
368 ISA support has been dropped from the following drivers: adv(4), an(4),
369 ar(4), cs(4), digi(4), ed(4), ep(4), ex(4), fe(4), lnc(4), sbni(4),
370 si(4), sn(4), and stg(4).
371
372 +-----------------------------------------------------------------------+
373 +         UPGRADING DRAGONFLY FROM 3.4 TO LATER VERSIONS                +
374 +-----------------------------------------------------------------------+
375
376 ABI CHANGE
377 ----------
378
379 Installed third-party software (dports) will have to be rebuilt after upgrade,
380 or reinstalled from binary packages.
381
382 UPDATING FROM 3.4 TO 3.6
383 ------------------------
384
385 This only applies for this specific upgrade due to locale changes; it is 
386 not needed for upgrades after 3.6.  Please update in this order:
387
388 make buildworld
389 make buildkernel
390 make installworld
391 make installkernel
392 *reboot*
393 make upgrade
394
395 See this mailing list post for details:
396 http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html
397
398 CYRIX OPTIONS REMOVED
399 ---------------------
400
401 The following Cyrix related options have been removed: CPU_BTB_EN,
402 CPU_CYRIX_NO_LOCK, CPU_DIRECT_MAPPED_CACHE, CPU_DISABLE_5X86_LSSER,
403 CPU_FASTER_5X86_FPU, CPU_IORT, CPU_LOOP_EN, CPU_RSTK_EN, CPU_SUSP_HLT,
404 CYRIX_CACHE_WORKS, and CYRIX_CACHE_REALLY_WORKS
405
406 ISA SUPPORT REMOVED FROM RP(4)
407 ------------------------------
408
409 ISA support has been removed from the rp(4) driver. It is now PCI only.
410
411 +-----------------------------------------------------------------------+
412 +         UPGRADING DRAGONFLY FROM 3.2 TO LATER VERSIONS                +
413 +-----------------------------------------------------------------------+
414
415 COMPAT_SUNOS OPTION REMOVED
416 ---------------------------
417
418 The COMPAT_SUNOS option has been removed. It was meant to provide binary
419 compatibility with SunOS 4.x for the sparc32 port of 4.4BSD.
420
421 ISA SOUND CARD SUPPORT REMOVED
422 ------------------------------
423
424 The following modules have been removed (all for ISA sound cards):
425 snd_ad1816.ko, snd_ess.ko, snd_mss.ko, snd_sb8.ko, snd_sb16.ko, snd_sbc.ko
426
427 GCC 4.7
428 -------
429
430 DragonFly has switched base compilers.  GCC 4.7 is now the default
431 compiler and GCC 4.4 is the alternative compiler.  The "NO_GCC47" make
432 variable ceases to work now.
433
434 Users who wish to build only GCC 4.7 have to use NO_GCC44 in the
435 /etc/make.conf to prohibit GCC 4.4 from building.  However, using it is
436 highly discouraged.  There are a few packages in pkgsrc that do not build
437 with GCC 4.7 and the new "DPorts" system uses GCC 4.4 by default.  At
438 this time, it is recommended to keep both compilers on the base system.
439
440 SMP OPTION REMOVED
441 ------------------
442
443 The SMP kernel option has been made a no-op. All kernels now feature SMP
444 support. If you have 'options SMP' in your kernel config, you can as well
445 remove it.
446
447 DEVICE_POLLING OPTION REPLACED BY IFPOLL_ENABLE OPTION, KTR_POLLING REMOVED
448 ---------------------------------------------------------------------------
449
450 The DEVICE_POLLING kernel option has been made a no-op and it has been
451 replaced by IFPOLL_ENABLE.  If you have 'options DEVICE_POLLING' in your
452 kernel config, you need to change it to IFPOLL_ENABLE.
453
454 Also, the KTR_POLLING kernel option has been removed, so it must be
455 removed from kernel configs that have it.
456
457 BUSLOGIC, CYCLADES AND STALLION ISA SUPPORT REMOVED
458 ---------------------------------------------------
459
460 The bt(4) driver for Buslogic SCSI adapters has been made PCI only. ISA
461 cards will no longer be detected.
462
463 The same has been done for Stallion multiport serial controllers. stli(4)
464 has been completely removed (along with the stlload(8) and stlstty(8)
465 utilities) and stl(4) was changed to support only PCI cards. Similarly,
466 ISA support was removed from cy(4) too. All these drivers are i386 only.
467
468 COMPAT_OLDISA OPTION GONE
469 -------------------------
470
471 The i386 specific COMPAT_OLDISA kernel option has been removed, since
472 nothing needs it anymore.
473
474 +-----------------------------------------------------------------------+
475 +         UPGRADING DRAGONFLY FROM 3.0 TO LATER VERSIONS                +
476 +-----------------------------------------------------------------------+
477
478 APIC_IO OPTION REMOVED
479 ----------------------
480
481 The APIC_IO kernel option is no longer accepted after having been without
482 effect for a while. The hw.ioapic_enable tunable now serves its purpose.
483 If you have 'options APIC_IO' in your kernel config, you'll have to
484 remove it.
485
486 WATCHDOG_ENABLE & HW_WDOG OPTIONS REMOVED
487 -----------------------------------------
488
489 The wdog framework is now compiled into our kernels by default, so the
490 options are no longer needed.
491
492 DOSCMD(1) REMOVED
493 -----------------
494
495 doscmd(1) has been removed. It was i386 only. The doscmd(1) specific
496 NO_X make.conf option was removed too.
497
498 GCC 4.7
499 -------
500
501 GCC 4.7 has been brought in and replaces GCC 4.1 as DragonFly's non-
502 default compiler in base (default is still GCC 4.4).
503
504 Users who wish to build only GCC 4.4 have to replace NO_GCC41 with
505 NO_GCC47 in /etc/make.conf.
506
507 USB4BSD
508 -------
509
510 A new USB stack (from FreeBSD) has been brought in. The following
511 modules have been ported so far: usb, uhci, ohci, ehci, xhci, umass,
512 usfs, uether, if_axe, if_udav, ukbd, ums, uep, uhid, usb_quirk,
513 and uaudio.
514
515 It is not yet the default. To activate it, WANT_USB4BSD=yes has to
516 be put in make.conf and device "usb4bsd" (quotes needed) has to
517 replace device usb in the kernel config. After that, a full
518 build/install/upgrade cycle is needed.
519
520 Note that this is experimental and incomplete, but we are interested
521 in hearing about issues with it, of course.
522
523 ISA SUPPORT REMOVED FROM AIC-6260/6360 DRIVER
524 ---------------------------------------------
525
526 ISA adapter support was dropped from the aic(4) driver.
527
528 +-----------------------------------------------------------------------+
529 +         UPGRADING DRAGONFLY FROM 2.10 TO LATER VERSIONS               +
530 +-----------------------------------------------------------------------+
531
532 SEVERAL ISA DRIVERS REMOVED
533 ---------------------------
534
535 The following ISA only drivers have been removed along with a couple of
536 associated userland tools:
537
538 aha(4)
539 asc(4) & sasc(1)
540 ctx
541 dgb(4)
542 el(4)
543 gpib
544 gsc(4) & sgsc(1)
545 ie(4)
546 labpc(4)
547 le(4)
548 mse(4)
549 rc(4)
550 rdp(4)
551 spigot
552 tw(4) & xten(1) & xtend(8)
553 wl(4) & wlconfig(8)
554 wt(4)
555
556 Note that two of these drivers (aha(4) and ie(4)) are in our GENERIC
557 config and one (aha(4)) is in our X86_64_GENERIC kernel configuration
558 file.
559
560 If buildkernel complains about any of these drivers, just remove them
561 from your kernel configuration.
562
563 BINUTILS 2.20
564 -------------
565 Binutils 2.20 has been removed in favor of Binutils 2.22.  The accepted
566 values of BINUTILSVERS are now binutils221 and binutils222 (default).
567
568 BUILDWORLD/-KERNEL PARALLELIZATION WORK
569 ---------------------------------------
570 Due to changes in the way we build with more than one make job, you
571 will have to update install(1) and mkdir(1) prior to buildworld if you
572 want to build with 'make -j':
573
574 cd /usr/src/usr.bin/xinstall; make; make install; make clean
575 cd /usr/src/bin/mkdir; make; make install; make clean
576
577 DMA(8) UPGRADE
578 --------------
579 dma(8) has been upgraded to v0.7 which no longer supports the
580 /etc/dma/virtusertable. Some of its functionality has been replaced
581 with the MASQUERADE keyword and the EMAIL environment variable (see
582 the dma(8) manual page).
583
584 +-----------------------------------------------------------------------+
585 +         UPGRADING DRAGONFLY FROM 2.8 TO LATER VERSIONS                +
586 +-----------------------------------------------------------------------+
587
588 GCC 4.4 & BINUTILS 2.21
589 -----------------------
590
591 GCC 4.4 has been made DragonFly's default compiler and Binutils 2.21 has
592 been made DragonFly's default Binutils.
593
594 That means that any settings that set CCVER to 'gcc44' are not needed
595 anymore. Instead, CCVER can be set to 'gcc41' to go back to using
596 GCC 4.1.
597
598 It also means that 'binutils221' as a value for BINUTILSVER has no
599 effect anymore. 2.17 has been removed and 'binutils220' is available
600 as an option.
601
602 The NO_GCC44 option has been removed and will not affect the build
603 anymore. There is now a NO_GCC41 option that will prevent GCC 4.1 from
604 building in a similar fashion.
605
606 Note that you must do a full buildworld/buildkernel for upgrading.
607
608 pkg_radd settings
609 -----------------
610
611 The config file for pkg_radd has moved from /etc/settings.conf to 
612 /etc/pkg_radd.conf.  Save the contents of settings.conf before upgrading
613 if this is needed.  This warning only applies if /etc/settings.conf 
614 exists.  pkg_radd will continue to work with defaults.
615
616 +-----------------------------------------------------------------------+
617 +         20100927                                                      +
618 +         UPGRADING DRAGONFLY FROM 2.6 to 2.8 or HEAD                   +
619 +-----------------------------------------------------------------------+
620
621 OpenSSL
622 --------
623
624 OpenSSL has been upgraded, and SHLIB_MAJOR was bumped for libssh and libcrypto.
625 This shouldn't break any 3rd-party software, but you'll need to recompile your
626 3rd-party software if you want it to link against the new version of OpenSSL.
627
628 Loader
629 -------
630
631 A new loader (dloader) has been added which better handles booting from
632 multiple kernel/module versions.
633
634 To upgrade (Only for this upgrade, for post 2.8 upgrades see GENERAL below)
635
636         cd /usr/src
637         make buildworld
638         make installworld
639         make upgrade
640         make buildkernel KERNCONF=<KERNELNAME>
641         make installkernel KERNCONF=<KERNELNAME>
642
643 Note that you must installworld and run the 'upgrade' target before
644 installing the new kernel.
645
646 BIND
647 -----
648
649 BIND has been removed from the base system.  The ldns and drill tools have 
650 been added for basic functionality.  Use 'drill' where you would normally 
651 use nslookup or dig, or install BIND from pkgsrc.  It's available as 
652 net/bind95, net/bind96, or net/bind97 as of this writing.
653
654 This only affects older systems upgrading to 2.8.  New 2.8+ installs 
655 include BIND as a pkgsrc package.
656
657 +-----------------------------------------------------------------------+
658 +         UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM           +
659 +                               GENERAL                                 +
660 +-----------------------------------------------------------------------+
661
662 Instructions on how to obtain and maintain DragonFly source code using git
663 are in the development(7) manual page.
664
665 To upgrade a DragonFly system from sources you run the following sequence:
666
667         cd /usr/src
668         make buildworld
669         make buildkernel KERNCONF=<KERNELNAME>
670         make installkernel KERNCONF=<KERNELNAME>
671         make installworld
672
673 You will also want to run the 'upgrade' target to upgrade your /etc and the
674 rest of your system.  The upgrade target is aware of stale files created by
675 older DragonFly installations and should delete them automatically.
676
677         make upgrade
678
679 See the build(7) manual page for further information.
680
681 Once you've done a full build of the world and kernel you can do incremental
682 upgrades of either by using the 'quickworld' and 'quickkernel' targets
683 instead of 'buildworld' and 'buildkernel'.  If you have any problems with
684 the quick targets, try updating your repo first, and then a full buildworld
685 and buildkernel as shown above, before asking for help.
686
687 +-----------------------------------------------------------------------+
688 +         UPGRADING FROM DRAGONFLY <= 2.0 TO DRAGONFLY >= 2.1           +
689 +-----------------------------------------------------------------------+
690
691 In 2.1 kernel and modules has moved to boot directory.  For most cases
692 this is handled automatically by 'make upgrade'.  A few cases needs manual
693 intervention:
694
695  * When installing a kernel without first doing a make buildworld,
696    installworld and upgrade to the same DESTDIR as kernel:
697    make DESTDIR/boot directory and move kernel and modules into this boot
698    directory; also move kernel.old and modules.old.
699    Typical example is vkernel(7), use (no modules used):
700
701         cd /var/vkernel
702         mkdir boot
703         chflags noschg kernel
704         mv kernel kernel.old boot
705         chflags schg boot/kernel
706         
707  * When using a boot-only partition, /boot/loader.rc needs to be edited:
708    delete occurrences of '/boot/'.
709    These occurences can normally be deleted in any case, see loader(8).
710
711 +-----------------------------------------------------------------------+
712 +         UPGRADING FROM DRAGONFLY <= 1.8 TO DRAGONFLY >= 1.9           +
713 +-----------------------------------------------------------------------+
714
715 In 1.9 major changes to the disk management infrastructure have taken
716 place.  make upgrade may not catch all of your disk devices in /dev,
717 so after upgrading be sure to cd /dev; ./MAKEDEV <blah> where <blah>
718 are all of your disk devices.  HOWEVER, from late 2.3 on we run devfs
719 and MAKEDEV no longer exists.
720
721 The biggest changes in 1.9 are:
722
723 (1) That whole-slice devices such as da0s1 no longer share the same device
724     id as partition c devices such as da0s1c.
725
726 (2) The whole-disk device (e.g. da0) is full raw access to the disk,
727     with no snooping or reserved sectors.  Consequently you cannot run
728     disklabel on this device.  Instead you must run disklabel on a
729     whole-slice device.
730
731 (3) The 'compatibility' partitions now use slice 0 in the device name,
732     so instead of da0a you must specify da0s0a.  Also, as per (1) above,
733     accessing the disklabel for the compatibility partitions must be
734     done via slice 0 (da0s0).
735
736 (4) Many device drivers that used to fake up labels, such as CD, ACD, VN,
737     and CCD now run through the disk management layer and are assigned
738     real disk management devices.   VN and CCD in particular do not usually
739     use a MBR and disklabels must be accessed through the compatibility
740     slice 0.  Your /etc/ccd.conf file still specifies 'ccd0', though, you
741     don't name it 'ccd0s0' in the config file.
742
743 Generally speaking, you have to get used to running fdisk and disklabel on
744 the correctly specified device names.  A lot of the wiggle, such as running
745 disklabel on a partition, has been removed.
746
747 +-----------------------------------------------------------------------+
748 +         UPGRADING FROM OLDER VERSIONS OF DRAGONFLY OR FREEBSD         +
749 +-----------------------------------------------------------------------+
750
751 > Kerberos IV
752 -------------
753
754 Kerberos IV (eBones) was removed from the tree, please consider moving to
755 Kerberos 5 (Heimdal).
756
757 > Package Management System
758 ---------------------------
759
760 Starting with the 1.4 release, DragonFly uses NetBSD's pkgsrc package
761 management system.  The necessary tools to build and maintain packages
762 are provided in /usr/pkg/bin and /usr/pkg/sbin.  Make sure that these
763 directories are in your PATH variable.
764
765 In order to obtain a reasonably current snapshot of the pkgsrc tree, use
766 the tarball from NetBSD:
767
768         fetch -o /tmp/pkgsrc.tar.gz ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc.tar.gz
769         cd /usr; tar -xzf /tmp/pkgsrc.tar.gz; chown -R root:wheel pkgsrc
770
771 This tree can then be kept up to date with cvs update:
772
773         cd /usr/pkgsrc; cvs up
774
775 NOTE! If you upgraded from a pre-1.4 system to 1.4 or later, you need to
776 build and install the pkgsrc bootstrap manually:
777
778         cd /usr/pkgsrc/bootstrap
779         ./bootstrap --pkgdbdir /var/db/pkg --prefix /usr/pkg
780
781 +-----------------------------------------------------------------------+
782 +         UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM           +
783 +         UPDATING FROM PRE-1.2 SYSTEMS OR FreeBSD 4.x TO               +
784 +         DRAGONFLY 1.3+ (EITHER PREVIEW or HEAD)                       +
785 +-----------------------------------------------------------------------+
786
787 The compatibility shims for the build environment have been removed, you
788 have to update to DragonFly 1.2 release branch first.
789
790 The default PAM configuration has moved from /etc/pam.conf to /etc/pam.d/.
791 The existing configuration can be converted using /etc/pam.d/convert.sh.
792 Entries in /etc/pam.d/ override entries in /etc/pam.conf. In addition
793 the pam_skey.so module was retired, you have to remove it manually from
794 your configuration, when you convert it.
795
796 > Required user and group IDs when upgrading from either FreeBSD or DragonFly
797 ---------------------
798
799 The following users may be missing from your password file.  Use vipw and
800 add any that are missing:
801
802 smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin
803 _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/sbin/nologin
804
805 The following groups may be missing from your group file.  Use vi /etc/group
806 and add any that are missing:
807
808 smmsp:*:25:
809 authpf:*:63:
810 _pflogd:*:64:
811
812
813 > Upgrading to DragonFly from FreeBSD
814 ---------------------
815
816 You can build the DragonFly world and DragonFly kernels on a FreeBSD-4.x or
817 FreeBSD-5.x machine and then install DragonFly over FreeBSD, replacing
818 FreeBSD.  Note that the DragonFly buildworld target does not try to reuse
819 make depend information, it starts from scratch, so no pre-cleaning of the
820 object hierarchy is necessary.
821
822         # get the CVS repository (it is placed in /home/dcvs, 500MB).
823         # Please use the -h option and a mirror site to pull the 
824         # initial repository, but feel free to use the main repository
825         # machine to pull updates.
826         cvsup /usr/share/examples/cvsup/DragonFly-cvs-supfile
827         # install the source from the CVS hierarchy (remove preexisting
828         # FreeBSD src first) (500MB)
829         cd /usr
830         rm -rf src
831         cvs -R -d /home/dcvs checkout -P src
832
833         # build it (500MB used in /usr/obj)
834         #
835         cd /usr/src
836         make buildworld
837         make buildkernel KERNCONF=<KERNELNAME>
838
839 Once you have built DragonFly you have to install it over FreeBSD.  Since
840 DragonFly does not track changes made by FreeBSD to its include file 
841 hierarchy and include file pollution can cause all sorts of unexpected
842 compilation issues to come up, it is best to wipe your include hierarchy
843 prior to installing DragonFly.  Note that you should not wipe any installed
844 FreeBSD header files or binaries until after you have successfully completed
845 the build steps above.
846
847         rm -rf /usr/include
848         mkdir /usr/include
849         make installkernel KERNCONF=<KERNELNAME>
850         make installworld
851
852 Then you need to upgrade your system.  DragonFly's 'make upgrade' target 
853 will unconditionally upgrade the /etc files that sysops do not usually
854 mess around with, such as the files in /etc/rc.d.  It will also remove any
855 obsolete files such as utilities and manpages that have been removed from
856 the system since the version you're coming from.  If you are unsure we 
857 recommend that you make a backup of at least your /etc before applying
858 this step.  Note that DragonFly's RC system is basically RCNG from
859 FreeBSD-5, but there are some differences in the contents of the RC files.
860
861         make upgrade
862
863 NOTE! Never do a 'make upgrade' before 'make installworld' has been run.
864 Doing so might leave your system in an unusable state.
865
866 Finally we recommend that you do an 'ls -lta BLAH' for /bin, /sbin, /usr/bin,
867 /usr/bin, and /usr/lib, and remove any stale files that you find.  Please
868 report these files to the DragonFly developers so that they can be added to
869 the 'upgrade' target.
870