ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3672
Committed: Thu Feb 3 14:31:14 2011 UTC (13 years, 4 months ago) by laffer1
File size: 28073 byte(s)
Log Message:
sqlite 3.7.5 imported.

File Contents

# Content
1 Updating Information for MidnightBSD users
2
3 20110203:
4 one true awk 20100523 imported
5
6 sqlite 3.7.5
7
8 20110202:
9 tcsh 6.17.00
10
11 file 5.05
12
13 20110122:
14 Import it(4) and lm(4), with support for Super I/O hardware monitors. This
15 uses the sensors framework ported by Constantine A. Murenin (GSOC2007)
16
17 20110120:
18 BIND 9.6.2-P3
19
20 sudo 1.7.4-p6
21
22 20110115:
23 Add experimental jme(4) for Jmicron ethernet devices.
24
25 20101130:
26 A double free exists in the SSL client ECDH handling code, when
27 processing specially crafted public keys with invalid prime
28 numbers. [CVE-2010-2939]
29
30 20101120:
31 Several portions of the kernel and userland code related to UFS file
32 systems (and UFS2) cannot properly handle inode counts above 2^31 due
33 to use of int types. Based on a patch from FreeBSD, I've modified
34 our UFS2 implementation to handle unsigned values for inode counts
35 which should allow for file systems greater than 16TB.
36
37 newfs and growfs was also modified.
38
39 20101110:
40 Fix a security issue with pseudofs which could result in running code in kernel
41 context or a kernel panic depending on system configuration. This affects file
42 systems such as procfs for instance.
43
44 20101021:
45 sysrc is a utility to print and modify name/value pairs in /etc/rc.conf easily.
46 This is similar to functions present in many linux distros. The utility was
47 written by Devin Teske for FreeBSD.
48
49 20100920:
50 bzip2 security patch for integer overflow.
51
52 20100905:
53 MidnightBSD RELENG_0_3 branch created. Aggressive development continues here
54 for 0.4.
55
56 20100902:
57 Fix a security issue with libutil that allows users to bypass cpu limits in
58 login.conf in some cases. This combined with OpenSSH for example can allow
59 the user to get more resources than they're allowed.
60
61 20100822:
62 Import Apple's mDNSResponder (mdnsd).
63
64 20100814:
65 libdispatch added to MidnightBSD. This provides functionality found in
66 Mac OS X's GCD. We do not have blocks support yet. As this code is
67 licensed under Apache 2, we create a new MK_APACHE option so that
68 it's not required for all users to run code under a license they
69 may not like.
70
71 20100713:
72 mbuf readonly fix related to sendfile(2) data corruption.
73
74 20100704:
75 brainfuck(1) imported from MirBSD.
76
77 20100505:
78 zlib 1.2.5
79
80 20100430:
81 Sudo 1.7.2p6 imported
82
83 20100321:
84 Update zlib to 1.2.4
85
86 20100319:
87 Removed i586 from default i386 generic kernel.
88
89 20100317:
90 Update to tzdata2010e (time zones). This includes changes in
91 Mexico.
92
93 Add support for several newer sound cards via hda including
94 ATI and Realtek chipsets.
95
96 20100313:
97 CPU detection has been changed. VIA Padlock detection added.
98
99 20100312:
100 Fix a number of bugs and compiler warnings in libmport. Handle
101 plus signs in paths for mport.check-fake
102
103 20100311:
104 mksh R39c
105
106 20100309:
107 Sudo 1.7.2p5
108
109 sqlite3 3.6.23
110
111 mksh R39b
112
113 libffi (ffi) 3.0.9
114
115 20100206:
116 WITHOUT_LIB32 is no longer needed on AMD64. GCC was fixed to
117 properly pass arguments to ld.
118
119 re(4) and rl(4) have been updated to support several new
120 realtek chipsets. Performance has been improved on re(4).
121
122 20100204:
123 Fix a bug cropping up on AMD64 MidnightBSD with sftp
124 segfaulting.
125
126 20100116:
127 Import ash changes from FreeBSD (bin/sh) 8-Stable.
128
129 BIND 9.6.1-P2
130
131 20100110:
132 Import Sendmail 8.14.4. Fix for SSL vulnerability.
133
134 posix_spawn(3) added to MidnightBSD libc. Users may need to build and
135 install libc before doing a full buildworld when upating from 0.2 or
136 older current systems.
137
138 kqueue(2) was modified to support portions of libdispatch functionality.
139
140 20100106:
141 Bind security update. Fix a bug with DNSSEC that causes negative
142 cache entries and thus a possible DNS cache poisoning attack.
143
144 Fix a bug in ZFS that can reset permissions on system crashes.
145
146 20091228:
147 amdtemp(4) was added. It allows one to monitor to the temperature
148 of an AMD CPU such as a Phenom.
149
150 20091205:
151 OpenSSL security fix
152
153 The SSL version 3 and TLS protocols support session renegotiation without
154 cryptographically tying the new session parameters to the old parameters.
155
156 20091128:
157 OpenBSD sensors framework imported including sensorsd(8)
158
159 20091126:
160 OpenNTPD 4.4 import
161
162 Update OpenSSH to 5.3p1
163
164 mksh R39
165
166 20091124:
167 cpdup updated from DragonFly to 1.15
168
169 tzdata2009s updated with latest timezone data for November 2009.
170
171 20091010:
172 amd64 users should use WITHOUT_LIB32=yes in /etc/make.conf for now
173 to test current.
174
175 Revert unicode filename fixes from ntfs code. This was causing chaos
176 on amd64 systems.
177
178 20091006:
179 Update timezone data with tzdata2009n with the Pakistan and
180 Argentina changes.
181
182 Sync several userland utilities with versions from FreeBSD 7.0 in
183 sbin and usr.sbin.
184
185 20090919:
186 Update timezone data with tzdate2009m from September 2009.
187
188 20090729:
189 Patch for Bind 9 security vulnerability. a dynmaic update packet
190 can trigger an assertion and cause named to exit
191
192 20090606:
193 Remove PCC from the base system. This compiler will not work
194 as a system compiler for us as we've got some userland investment
195 in C++ code and may have Objective-C in the future. We're stuck
196 with a solution that supports these three languages at a minimum.
197
198 I had wanted to keep it as an optional compiler because it is
199 fast, however too many users want to try to use it for the base
200 system which makes no sense.
201
202 A hack was added for Cypress based usb hard drive enclosures to
203 the kernel. This should cut down on commands it claims to support
204 but does not (at the cam layer). Found while testing ZFS on
205 an external device.
206
207 20090520:
208 The powerd daemon no longer starts automatically to improve
209 compatibility with many systems. However, there is a new
210 installer option in the startup section to enable it. This
211 makes it easier to enable for users that have working systems. I thought it was only a problem on older hardware, but it freaks
212 out my new Phenom too.
213
214 20090502:
215 OpenSSH 5.2p1 import
216
217 ale(4) connected to the build. (kernel module only)
218
219 20090501:
220 Imported makefs utility from NetBSD/FreeBSD
221
222 20090422:
223 OpenSSL security update
224
225 The function ASN1_STRING_print_ex does not properly validate the lengths
226 of BMPString or UniversalString objects before attempting to print them.
227
228 20090415:
229 Created a Symbol.map for libc/ohash symbols
230
231 Updated several usr/bin usr/sbin utilities.
232
233 Corrected a bug with Makefile.inc1 causing the bootstrap
234 tools to fail.
235
236 20090405:
237 xorg 7.4 wants to configure its input devices via hald which does not
238 yet work with USB. If the keyboard/mouse does not work in xorg then
239 add
240 Option "AllowEmptyInput" "off"
241 to your ServerLayout section. This will cause X to use the configured
242 kbd and mouse sections from your xorg.conf
243
244 20090403:
245 mksh was disconnected a few day ago do to bugs with
246 buildworld and mports. Now, connect it back
247 for use as /bin/sh with a conditional called
248 MK_ASH. By default, ash is the standard /bin/sh
249 but we may change this later. This will allow further
250 testing by users and developers of mksh without
251 causing an unpleasant default experience. In the
252 long run, we need to fix mksh compatibility.
253
254 20090328:
255 Bring in mksh R37 from CVS. The dot.mkshrc files for root
256 and skel were changed. mksh(1) now replaces ash aka sh(1)
257 as the default /bin/sh. Please report bugs with
258 ports, etc. The ash code will remain in the repo for awhile
259 as I decide if we'll add something like MK_SHELL_ASH as
260 an optional build parameter.
261
262 ahd was disconnected from the lint environment until
263 the compiler bug is sorted (by updating gcc?)
264
265 Remove freebsd-tips from fortune files and change the
266 default for login and profile.
267
268 20090327:
269 Update libarchive to 2.5.5, tar, and add bsdcpio.
270
271 Also previously, ctriv has been connecting Perl 5.10
272 to the build (part of os). This will have an impact
273 on mports.
274
275 20090325:
276 Update Bind to 9.4.3-P1
277
278 Update mksh to R36b
279
280 Update tcpdump to 3.9.8, fix libpcap to work with current.
281
282 Update pnpinfo, sync with FreeBSD.
283
284 20090115:
285 Fix a problem with DNSSEC and BIND.
286
287 20090110:
288 For applications using OpenSSL for SSL connections, an invalid SSL
289 certificate may be interpreted as valid. This could for example be
290 used by an attacker to perform a man-in-the-middle attack.
291
292 Other applications which use the OpenSSL EVP API may similarly be
293 affected.
294
295 Stop cross site request forgery attacks in lukemftpd
296
297 20090104:
298 Import GNU libreadline 5.2
299
300 20090101:
301 Update time zone data to 2008i.
302
303 20081231:
304 Correct a problem where bluetooth and netgraph sockets are not
305 properly initialized.
306
307 Happy 2009.
308
309 20081206:
310 Due to the massive change in the underlying system under way,
311 we're naming the next release 1.0. The sys/sys/param.h was
312 changed accordingly. ipfilter and ncurses were corrected
313 using __MidnightBSD__ tests in the code.
314
315 The GENERIC kernel config was caught up on i386 today. Consider
316 i386 still broken, but amd64 is running again.
317
318 mdoc.local was updated with the new MidnightBSD version info.
319
320 batt(1) was rewritten in C. It now supports several flags and
321 runs about 8 times faster on my laptop. The default output
322 shows the number of minutes of battery life remaining and the
323 percentage. You can use -u to display the number of batteries or
324 -c to get script friendly output. Consult the man page for more.
325
326 20081204:
327 Work has completed on importing ZFS, jemalloc, several
328 new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel
329 support, improved locking for file desc., audit (openbsm),
330 openssl .98e, nfe, imporved intel high def audio, midi, updated
331 intel gigabit (em), support for several wifi cards (intel), ...
332
333 Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version
334 data from param.h instead of the FreeBSD version. This means
335 testing is now possible in the ports tree for the version
336 and that any ports or code relying on the FreeBSD version from
337 sys/sys/param.h will need to be fixed.
338
339 20080905:
340 update nve(4) to support new hardware.
341
342 20080801:
343 Import OpenBSM 1.0
344
345 Modify src/release to create 3 isos instead of 2 for packages.
346
347 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
348
349 Many ia64, alpha, powerpc items were removed.
350
351 The recent diffutils 2.8.7 import was fixed.
352
353 20080703:
354 pcc was not installed properly when setting DESTDIR for live cds,
355 or posibly jails.
356
357 20080627:
358 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
359
360 Add glabel to GENERIC.
361
362 Intel ICH8 mobile chipset used on some iMacs included with ata.
363
364 pcc connected to the build on i386. (alternative compiler)
365
366 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
367
368 20080528:
369 Sendmail 8.14.3
370
371 20080516:
372 ssh-vulnkey allows you to look for vulnerable ssh keys that
373 were generated on Debian and Ubuntu hosts over the last
374 few years. sshd can block offending keys with a configuration
375 option.
376
377 The elf note on binaries is now set to MidnightBSD.
378
379 20080514:
380 Fixed a number of problems with pcc. It is not yet connected
381 to the build, but usable on i386 hosts. You may use it
382 by make; make install in /usr/src/usr.bin/pcc. It will
383 install in /usr/local as some of the files conflict with
384 GCC versions. __MidnightBSD__ is defined in PCC as well.
385
386 System headers were fixed to allow pcc to compile many binaries
387 on MidnightBSD. bin/cp will work now for instance.
388
389 20080430:
390 __MidnightBSD__ is now defined via gcc. This can be tested
391 to determine we're running on MidnightBSD in the preprocessor.
392
393 20080429:
394 Import bind 9.4.2 with threading
395
396 libpthread (KSE) and libthr are built earlier
397
398 pcvt(4) removed!
399
400 Alias added for core2 cpus.
401
402 Alpha and PC98 only utilities removed from usr/sbin
403
404 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
405 improved. See the man pages for info.
406
407 periodic scripts will not send emails with empty message bodies.
408 See mailwrapper fix.
409
410 20080410:
411 Sync cpdup with DragonFly. Add parallel transaction support and
412 -l flag to line-buffer stdout and stderr.
413
414 20080406:
415 Import bzip2 1.05
416 Import OpenSSH 4.9p1
417
418 20080322:
419 The default umask was changed to 022.
420
421 /usr/X11R6 paths were removed from several config files.
422
423 .mkshrc files are now installed for root.
424
425 20080316:
426 FIx a problem with gif0 tunnels and neighbors with IPV6.
427
428 20080312:
429 Add lndir from X.org. This aides in the porting of MirPorts.
430
431 New OS versions were added to the mapage code (groff)
432
433 20080310:
434 Correct a buffer overflow in ppp.
435
436 20080308:
437 Remove /usr/X11R6 from manpath config.
438
439 20080307:
440 Atheros driver no longer has several options set
441 which corrects building in tinderbox on all three platforms.
442
443 Added a new macro to sx.h which returns true if the current
444 thread holds an exclusive lock on a specifix sx.
445
446 Removed OS/2's HPFS file system. It's not maintained and
447 I don't know anyone using OS/2 or ecomstation these days.
448 My copy is in the closet collecting dust.
449
450 20080306:
451 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
452 Developers can now use it to check src builds.
453
454 20080303:
455 Add mksh to /etc/shells, made some adjustments to options
456 for mksh builds per suggestion upstream.
457
458 USB HID table updated with modern hardware list.
459
460 Updated BSD family true (we're not in there yet)
461
462 iso3166 file updated and import of tzdata2007k for
463 new time zones.
464
465 Updated mksh to latest version R33.
466
467 20080228:
468 Remplaced the random IP id generation code with a new
469 version by Amit Klein.
470
471 20080221:
472 Sendfile write only permissions fix.
473
474 Removed some HPFS and PC98 code.
475
476 iso639 file sycned with DragonFly.
477
478 20080128:
479 Changed NTP configuration so that ips aren't cached
480 so multiple servers are used.
481
482 Fix an issue with fork() in libpthread.
483
484 20080121:
485 Add virtualization detection to set the HZ rate
486 according to a VM present. VMWare and Parallels
487 should work better like this.
488
489 Change to full x11 install in sysinstall. Add
490 xorg 7 support.
491
492 20080115:
493 Fix the handling of PTY's. CVE-2008-0216
494
495 20080105:
496 mport delete code added, USE_MPORT_TOOLS knob aded.
497
498 20080101:
499 Happy New Year
500
501 20071123:
502 Update sendmail to 8.14.2
503
504 20071120:
505 Update system compiler to gcc 3.4.6.
506
507 20071023:
508 Updated mksh to R31d.
509
510 20070911:
511 Updated mksh to version R31b.
512
513 Fixed stderr output in libpthread. Previously it was
514 written to stdout.
515
516 20070831:
517 Added dot.mkshrc file to support the recent change to
518 mksh from OpenBSD's ksh derived from pdksh.
519
520 Added new firewall configuration. ipfw is enabled by default
521 with a "desktop" configuration. Consult /etc/rc.firewall
522 or ipfw show to see the ruleset used. You can disable
523 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
524 change only effects IPv4. IPv6 does not have a firewall
525 enabled by default.
526
527 20070814:
528 Removed GNU tar source. We've been using BSD tar
529 for awhile.
530
531 20070806:
532 Finished removing umapfs and autofs from the tree.
533
534 20070804:
535 BIND and Tcpdump have been patched for recent vulnerabilities.
536
537 We switched to BSD cpio (pax).
538
539 20070719:
540 Imported cpdup from DragonFly as /bin/cpdup
541
542 20070716:
543 Update GNU cpio to 2.8.
544
545 20070410:
546 cvs was updated to 1.12.13. cvsbug was removed.
547 cvs now behaves similarly to DragonFly's cvs with
548 most of their local changes.
549
550 20070409:
551 RELENG_0_1 was created. More aggresive changes will
552 continue here.
553
554 20070406:
555 Back out propolice. propolice caused several problems
556 with our threading libraries libthr and libpthread.
557 curthread was often NULL after the patch and many
558 multithreaded applications would crash. We plan to
559 work on either bringing in gcc 4.1 or developing a new
560 patch which also corrects our threading issues later.
561
562 It is more important to have a stable system for our
563 mport work and other projects at this time.
564
565 This is not a clean removal. It is recommended that you
566 have a recently SNAP CD handy. You can either reinstall
567 or perform a make buildworld and make buildkernel and
568 make installkernel. Reboot on the cd and copy the contents
569 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
570 /usr/lib, and /usr/libexec to the respective directories on
571 your disk. Then you should be able to boot into single user
572 mode and run make installworld. You will need to run
573 chflags noschg on some of the files if you can't overwrite
574 them.
575
576 You will get __guard missing errors since we had to remove
577 this from libc.
578
579 You will need to rebuild any ports built while propolice was
580 installed.
581
582 20070401:
583 Importing propolice into MidnightBSD. Propolice is going to
584 provide us with much greater security and stability in the
585 long run. If upgrading from a pre-propolice system, please
586 follow the these instructions:
587
588 cd /usr/src/lib/libc && make obj && make && make install
589 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
590 cd /usr/src/lib/libpthread && make obj && make && make install
591 cd /usr/src/lib/libthr && make obj && make && make install
592 buildworld and kernel
593
594 It is adviced that any mports which were installed and/or built
595 prior to the propolice update also be updated. If any errors
596 or issue are encounted, please contact security@midnightbsd.org
597 and we will be sure to investigate and come up with an expeditious
598 fix.
599
600 20070314:
601 Remove send-pr from src.
602
603 Switch to NetBSD's gzip.
604
605 Bump MBSD minor revision.
606
607 20070313:
608 Imported OpenSSH 4.6p1.
609
610 Imported FreeBSD's libarchive and updated tar to work with it.
611
612 Disabled debug statements cluttering up /var/log/messages for
613 the tcp autobuf patch applied previously.
614
615 20070312:
616 Synced several audio changes from FreeBSD 6.1. Removed the
617 BSD Daemon files from src/share.
618
619 20070308:
620 Added mfi which supports LSI Logic MegaRAID SAS devices including
621 the Dell perc5i.
622
623 20070206:
624 Imported OpenBSD's sudo into source. Please install
625 /usr/src/usr.bin/sudo/lib first before building.
626
627 Those who install from a snapshot after this date
628 will not be effected.
629
630 20070119:
631 Added audit group. Be sure to add audit to your /etc/group file
632 before installing world.
633
634 hostapd was updated to 0.4.8.
635
636 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
637 unbreak world.
638
639 wpa_supplicant was updated.
640
641 For stability and compatibility reasons, it was decided that MidnightBSD
642 sync with FreeBSD 6.1 Release. Nearly every change between the original
643 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
644 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
645 will not sync every little change with FreeBSD.
646
647 20061231:
648 Updated COPYRIGHT for 2007.
649
650 Updated and bumped libutil after importing NetBSD efun(3) functions.
651
652 Added MidnightBSD_version and bumped the FreeBSD version as we've
653 synced all commits between the fork and that version. It is now safe
654 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
655 Feb 26, 2006.
656
657 Added spell(1) and deroff(1) from NetBSD. Also added additional
658 dict files to work with it. /usr/share/dict/american,
659 /usr/share/dict/british and /usr/share/dict/special/math
660
661 Numerous man page and bug fixes.
662
663 20061226:
664 Setup /usr/share/examples/cvsup SUPfiles for the new
665 MidnightBSD CVSup server.
666
667 Fix a bug in burncd where it would continue forever while
668 erasing CDRW media.
669
670 Add csup to /usr/bin. csup is a CVSup replacement written
671 in C.
672
673 Fixed a bug with bsnmpd build from Oct 30.
674
675 Corrected some race conditions and fixed a few bugs in
676 geom. Imported changes from FreeBSD RELENG_6.
677
678 20061225:
679 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
680 that caused long double to long and long long
681 conversion of negative numbers to always result in -1.
682
683 20061221:
684 Fixed acpi_battery.c to not report an ERROR if no
685 batteries are present.
686
687 Performed some minor updates on the RL and RE NIC drivers.
688 RL should no longer panic when trying to print errors.
689
690 Corrected a bug with TTY.
691
692 20061218:
693 Corrected a bug with libpthread where newly created suspended
694 threads don't get scheduled.
695
696 20061206:
697 Fixed a typo with the firewire security patch.
698
699 20061129:
700 Minor cleanups to utilities in bin.
701
702 Fixed msdos file system short file name behavior to match
703 FreeBSD.
704
705 20061031:
706 Updated man pages in section 7.
707
708 20061030:
709 Updated sys/dev/drm to support intel 915 and radeon
710 r300 cards properly.
711
712 Synced snmpd with FreeBSD-stable.
713
714 Fixed a bug in rm which could cause data loss.
715
716 20061027:
717 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
718 random, kbdmux, atkbd, and usb were updated. Changes
719 to clearing registers on SSE enabled processors (i386)
720 commited.
721
722 lukemftpd updated.
723
724 openssh rc script was altered which effects initial
725 seeding.
726
727 20061014:
728 Workaround for em driver problem on shared IRQ.
729
730 Started removal of alpha support.
731
732 20061013:
733 ATA driver was updated. USB/USB1/USB2 types added.
734
735 20061010:
736 OpenSSH was updated to 4.4p1.
737
738 20060909:
739 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
740 the old ntpd daemon.
741
742 cat has a new option -D which allows you to timestamp output
743 on a per line basis.
744
745 The kernel has a keyboard mux which allows you to have multiple
746 keyboard connected simultaneously. USB keyboard support was also
747 improved with this patch.
748
749 The Intel em driver was updated. Network performance was greatly
750 increased on many systems. Additional models are supported.
751
752 The ATA driver was patched to fix a potential deadlock.
753
754 Bind was patched to fix a potential denial of service condition.
755
756 20060817:
757 ksh has been added to the base system. If you previously had
758 the port installed, it will be overwritten on the next buildworld.
759
760
761
762 To build a kernel
763 -----------------
764 If you are updating from a prior version of MidnightBSD (even one just
765 a few days old), you should follow this procedure. With a
766 /usr/obj tree with a fresh buildworld,
767 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
768 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
769
770 To test a kernel once
771 ---------------------
772 If you just want to boot a kernel once (because you are not sure
773 if it works, or if you want to boot a known bad kernel to provide
774 debugging information) run
775 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
776 nextboot -k testkernel
777
778 To just build a kernel when you know that it won't mess you up
779 --------------------------------------------------------------
780 This assumes you are already running a 6.X system. Replace
781 ${arch} with the architecture of your machine (e.g. "i386",
782 "amd64", "ia64", "pc98", "sparc64", etc).
783
784 cd src/sys/${arch}/conf
785 config KERNEL_NAME_HERE
786 cd ../compile/KERNEL_NAME_HERE
787 make depend
788 make
789 make install
790
791 If this fails, go to the "To build a kernel" section.
792
793 To rebuild everything and install it on the current system.
794 -----------------------------------------------------------
795 # Note: sometimes if you are running current you gotta do more than
796 # is listed here if you are upgrading from a really old current.
797
798 <make sure you have good level 0 dumps>
799 make buildworld
800 make kernel KERNCONF=YOUR_KERNEL_HERE
801 [1]
802 <reboot in single user> [3]
803 mergemaster -p [5]
804 make installworld
805 make delete-old
806 mergemaster [4]
807 <reboot>
808
809
810 To cross-install current onto a separate partition
811 --------------------------------------------------
812 # In this approach we use a separate partition to hold
813 # current's root, 'usr', and 'var' directories. A partition
814 # holding "/", "/usr" and "/var" should be about 2GB in
815 # size.
816
817 <make sure you have good level 0 dumps>
818 <boot into -stable>
819 make buildworld
820 make buildkernel KERNCONF=YOUR_KERNEL_HERE
821 <maybe newfs current's root partition>
822 <mount current's root partition on directory ${CURRENT_ROOT}>
823 make installworld DESTDIR=${CURRENT_ROOT}
824 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
825 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
826 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
827 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
828 <reboot into current>
829 <do a "native" rebuild/install as described in the previous section>
830 <maybe install compatibility libraries from src/lib/compat>
831 <reboot>
832
833
834 To upgrade in-place from 5.x-stable or higher to 6.x-stable
835 -----------------------------------------------------------
836 <make sure you have good level 0 dumps>
837 make buildworld [9]
838 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
839 [1]
840 <reboot in single user> [3]
841 mergemaster -p [5]
842 make installworld
843 make delete-old
844 mergemaster -i [4]
845 <reboot>
846
847 Make sure that you've read the UPDATING file to understand the
848 tweaks to various things you need. At this point in the life
849 cycle of current, things change often and you are on your own
850 to cope. The defaults can also change, so please read ALL of
851 the UPDATING entries.
852
853 Also, if you are tracking -current, you must be subscribed to
854 freebsd-current@freebsd.org. Make sure that before you update
855 your sources that you have read and understood all the recent
856 messages there. If in doubt, please track -stable which has
857 much fewer pitfalls.
858
859 [1] If you have third party modules, such as vmware, you
860 should disable them at this point so they don't crash your
861 system on reboot.
862
863 [3] From the bootblocks, boot -s, and then do
864 fsck -p
865 mount -u /
866 mount -a
867 cd src
868 adjkerntz -i # if CMOS is wall time
869 Also, when doing a major release upgrade, it is required that
870 you boot into single user mode to do the installworld.
871
872 [4] Note: This step is non-optional. Failure to do this step
873 can result in a significant reduction in the functionality of the
874 system. Attempting to do it by hand is not recommended and those
875 that pursue this avenue should read this file carefully, as well
876 as the archives of freebsd-current and freebsd-hackers mailing lists
877 for potential gotchas.
878
879 [5] Usually this step is a noop. However, from time to time
880 you may need to do this if you get unknown user in the following
881 step. It never hurts to do it all the time.
882
883 [8] In order to have a kernel that can run the 5.x binaries
884 needed to do an installworld, you must include the COMPAT_FREEBSD5
885 option in your kernel. Failure to do so may leave you with a system
886 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
887 is required to run the 5.x binaries on more recent kernels.
888
889 Make sure that you merge any new devices from GENERIC since the
890 last time you updated your kernel config file.
891
892 [9] When checking out sources, you must include the -P flag to have
893 cvs prune empty directories.
894
895 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
896 "?=" instead of the "=" assignment operator, so that buildworld can
897 override the CPUTYPE if it needs to.
898
899 MAKEOBJDIRPREFIX must be defined in an environment variable, and
900 not on the command line, or in /etc/make.conf. buildworld will
901 warn if it is improperly defined.
902
903 Copyright information:
904
905 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
906
907 Redistribution, publication, translation and use, with or without
908 modification, in full or in part, in any form or format of this
909 document are permitted without further permission from the author.
910
911 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
912 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
913 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
914 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
915 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
916 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
917 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
918 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
919 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
920 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
921 POSSIBILITY OF SUCH DAMAGE.
922
923 If you find this document useful, and you want to, you may buy the
924 author a beer.
925
926 Contact Warner Losh if you have any questions about your use of
927 this document.
928
929 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
930 $MidnightBSD: src/UPDATING,v 1.107 2011/02/03 14:12:53 laffer1 Exp $

Properties

Name Value
cvs2svn:cvs-rev 1.108