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