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