ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 7342
Committed: Sat Oct 3 02:19:48 2015 UTC (8 years, 7 months ago) by laffer1
File size: 49152 byte(s)
Log Message:
revise rpcbind patch

File Contents

# Content
1 Updating Information for MidnightBSD users.
2
3 20151002:
4 Revised rpcbind(8) patch to fix issues with NIS
5
6 20150930:
7 In rpcbind(8), netbuf structures are copied directly, which would result in
8 two netbuf structures that reference to one shared address buffer. When one
9 of the two netbuf structures is freed, access to the other netbuf structure
10 would result in an undefined result that may crash the rpcbind(8) daemon.
11
12 20150926:
13 libmport now supports @preexec, @postexec, @preunexec and @postunexec
14 to replace @exec and @unexec.
15
16 pre exec runs afer pre-install scripts but before actual installation
17
18 post exec runs after install but before post install scripts and
19 pkg message.
20
21 pre unexec runs before pre uninstall scripts
22
23 post unexec runs before de-install scripts and after file removal.
24
25 20150917:
26 Fix kqueue write events for files > 2GB
27
28 20150825:
29 kernel:
30 fix a security issue on amd64 where the GS segment CPU register can be changed via
31 userland value in kernel mode by using an IRET with #SS or #NP exceptions.
32
33 openssh:
34 A programming error in the privileged monitor process of the sshd(8)
35 service may allow the username of an already-authenticated user to be
36 overwritten by the unprivileged child process.
37
38 A use-after-free error in the privileged monitor process of he sshd(8)
39 service may be deterministically triggered by the actions of a
40 compromised unprivileged child process.
41
42 A use-after-free error in the session multiplexing code in the sshd(8)
43 service may result in unintended termination of the connection.
44
45 20150818:
46 expat security fix
47
48 20150815:
49 libc changes:
50 setmode(3) now returns errno consistently on error.
51 libc will compile without error using clang
52
53 20150814:
54 wait6 system call added.
55
56 date(1) now handles non numeric numbers passed to -r
57 like GNU coreutils for improved compatibility.
58
59 20150811:
60 ata(4) AMD Hudson2 SATA controller support.
61 Intel lynxpoint SATA.
62
63 Fix some const warnings when building several device drivers
64 with llvm/clang.
65
66 Sync cas(4) with FreeBSD 9-stable.
67
68 Fix some minor issues with ath(4).
69
70 20150809:
71 xz 5.0.8
72
73 20150808:
74 libmport now logs installation and removal of packages to syslog.
75
76 20150805:
77 routed - fix a potential security issue where traffic from outside
78 the network can disrupt routing.
79
80 bsd patch - fix a bug with ed(1) scripts allowing unsanitized input
81 to run.
82
83 20150802:
84 jansson 2.7 library added. (libjansson is a JSON library in C)
85
86 20150728:
87 Heimdal 1.5.2 (kerberos implementation)
88
89 OpenSSL 1.0.1o
90
91 cpucontrol(8) now supports VIA CPUs. Synced with FreeBSD 9.2.
92
93 TCP Resassemly resource exhaustion bug:
94 There is a mistake with the introduction of VNET, which converted the
95 global limit on the number of segments that could belong to reassembly
96 queues into a per-VNET limit. Because mbufs are allocated from a
97 global pool, in the presence of a sufficient number of VNETs, the
98 total number of mbufs attached to reassembly queues can grow to the
99 total number of mbufs in the system, at which point all network
100 traffic would cease.
101 Obtained from: FreeBSD 8
102
103 OpenSSH
104
105 Fix two security vulnerabilities:
106 OpenSSH clients does not correctly verify DNS SSHFP records when a server
107 offers a certificate. [CVE-2014-2653]
108
109 OpenSSH servers which are configured to allow password authentication
110 using PAM (default) would allow many password attempts. A bug allows
111 MaxAuthTries to be bypassed. [CVE-2015-5600]
112
113
114 Switch to bsdpatch (from FreeBSD & OpenBSD)
115
116 20150726:
117 BSD Sort updated
118
119 sqlite 3.8.10.2
120
121 20150725:
122 Import reallocarray from OpenBSD's libc.
123
124 The reallocarray() function is similar to realloc() except it operates on
125 nmemb members of size size and checks for integer overflow in the
126 calculation nmemb * size.
127
128 20150722:
129 Fix a bug where TCP connections transitioning to LAST_ACK
130 state can get stuck. This can result in a denial of service.
131
132 20150715:
133 libmport now supports @shell and @sample in plists. This means that
134 a shell port can automatically add an entry to /etc/shells and remove
135 it upon uninstallation. For sample files, a copy is made without the
136 .sample extension if one does not exist and it is removed automatically
137 only if the md5 hash of the two files is the same.
138
139 20150709:
140 flex 2.5.39
141
142 20150702:
143 ZFS in MidnightBSD now supports lz4 compression. You can enable it
144 with zfs set compression=lz4 pool/path.
145
146 Verify it's working with
147 zfs get compressratio pool/path
148 du -h -s *
149
150 Note you must write new data when turning on compression to see
151 changes. Existing files are not compressed.
152
153 Note: While we used the same basic implementation of lz4 that
154 FreeBSD and OpenZFS uses, we did not yet implement features support
155 and the zfs version still reports 28. This may come in a future update
156 to ZFS.
157
158 20150621:
159 libmport now automatically stops services when deleting packages.
160
161 The package must have installed an rc.d script in /usr/local/etc
162 for this to work. This is equivalent to running service <name> onestop
163
164 20150618:
165 Sendmail
166
167 With the recent changes to OpenSSL to block 512 bit certificates,
168 sendmail can't connect with TLS to some servers.
169
170 Increase the default size to 1024 bit for client connections to
171 match the server configuration.
172
173 ZFS
174
175 Added ZFS TRIM support which is enabled by default. To disable
176 ZFS TRIM support set vfs.zfs.trim.enabled=0 in loader.conf.
177
178 Creating new ZFS pools and adding new devices to existing pools
179 first performs a full device level TRIM which can take a significant
180 amount of time. The sysctl vfs.zfs.vdev.trim_on_init can be set to 0
181 to disable this behaviour.
182
183 ZFS TRIM requires the underlying device support BIO_DELETE which
184 is currently provided by methods such as ATA TRIM and SCSI UNMAP
185 via CAM, which are typically supported by SSD's.
186
187 Stats for ZFS TRIM can be monitored by looking at the sysctl's
188 under kstat.zfs.misc.zio_trim.
189
190 rc.d
191
192 Reworked handling of cleanvar and FILESYSTEMS so that FILESYSTEMS
193 implies everything is mounted and ready to go.
194
195 Changed how ip6addressctl maps IPv6 on startup.
196
197 20150613:
198 tzdata 2015d
199
200 20150612:
201 OpenSSL 0.9.8zg
202
203 20150419:
204 MidnightBSD 0.6 stable branch created. Continue 0.7
205 development.
206
207 20150418:
208 sqlite 3.8.9
209
210 20150407:
211 Fix two security vulnerabilities:
212
213 The previous fix for IGMP had an overflow issue. This has been corrected.
214
215 ipv6: The Neighbor Discover Protocol allows a local router to advertise a
216 suggested Current Hop Limit value of a link, which will replace
217 Current Hop Limit on an interface connected to the link on the MidnightBSD
218 system.
219
220 20150319:
221 OpenSSL 0.9.8.zf
222
223 mksh R50e
224
225 Apple mDNSResponder 561.1.1
226
227 20150306:
228 Upgrade OpenSSL to 0.9.8ze
229
230 20150225:
231 Fix two security vulnerabilities.
232
233 1. BIND servers which are configured to perform DNSSEC validation and which
234 are using managed keys (which occurs implicitly when using
235 "dnssec-validation auto;" or "dnssec-lookaside auto;") may exhibit
236 unpredictable behavior due to the use of an improperly initialized
237 variable.
238
239 CVE-2015-1349
240
241 2. An integer overflow in computing the size of IGMPv3 data buffer can result
242 in a buffer which is too small for the requested operation.
243
244 This can result in a DOS attack.
245
246 20141211:
247 Fix a security issue with file and libmagic that can allow
248 an attacker to create a denial of service attack on any
249 program that uses libmagic.
250
251 20141109:
252 Fix building perl during buildworld when the GDBM port is installed.
253
254 20141106:
255 tzdata 2014i
256
257 20141102:
258 serf 1.3.8
259
260 20141031:
261 tnftp 20141031 fixes a security vulnerability with tnftp,
262 CVE-2014-8517.
263
264 20141028:
265 OpenSSL 0.9.8zc
266
267 20141021:
268 Fix several security vulnerabilities in routed, rtsold,
269 and namei with respect to Capsicum sandboxes looking up
270 nonexistent path names and leaking memory.
271
272 The input path in routed(8) will accept queries from any source and
273 attempt to answer them. However, the output path assumes that the
274 destination address for the response is on a directly connected
275 network.
276
277 Due to a missing length check in the code that handles DNS parameters,
278 a malformed router advertisement message can result in a stack buffer
279 overflow in rtsold(8).
280
281 20141011:
282 mksh R50d - fix field splitting regression and null
283 pointer dereference
284
285 xz 5.0.7
286
287 OpenSSH 6.6p1
288
289 20141004:
290 mksh R50c - security update for environment var bug with
291 foo vs foo+
292
293 20141002:
294 sqlite 3.8.6
295
296 sudo 1.7.8 - some issues with the current version, but we're slowly
297 getting up to date.
298
299 20141001:
300 mksh R50b
301
302 libmport now supports plist commands @dir, @owner, @group, @mode.
303
304 sudo 1.7.6p2
305
306 20140916:
307 Fix a security issue with TCP SYN.
308
309 When a segment with the SYN flag for an already existing connection arrives,
310 the TCP stack tears down the connection, bypassing a check that the
311 sequence number in the segment is in the expected window.
312
313 20140909:
314 Fixed a bug with our clearenv(3) implementation that caused segfaults
315 with some programs including Dovecot.
316
317 OpenSSL security patch:
318
319 The receipt of a specifically crafted DTLS handshake message may cause OpenSSL
320 to consume large amounts of memory. [CVE-2014-3506]
321
322 The receipt of a specifically crafted DTLS packet could cause OpenSSL to leak
323 memory. [CVE-2014-3507]
324
325 A flaw in OBJ_obj2txt may cause pretty printing functions such as
326 X509_name_oneline, X509_name_print_ex et al. to leak some information from
327 the stack. [CVE-2014-3508]
328
329 OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject to
330 a denial of service attack. [CVE-2014-3510]
331
332 20140902:
333 We're now 0.6-CURRENT
334
335 Update USB quirks to support K70 Corsair keyboard, and several
336 other devices.
337
338 20140827:
339 Perl 5.18.2
340
341 20140728:
342 Jails now run shutdown scripts.
343
344 20140710:
345 Fix a vulnerability in the control message API. A buffer is not properly cleared
346 before sharing with userland.
347
348 20140701:
349 MKSH R50
350
351 20140630:
352 File 5.19
353
354 20140605:
355 Fix four security issues with OpenSSL
356
357 20140604:
358 Sendmail failed to properly set close-on-exec for open file descriptors.
359
360 ktrace page fault kernel trace entries were set to an incorrect size which resulted
361 in a leak of information.
362
363 20140430:
364 Fix a TCP reassembly bug that could result in a DOS attack
365 of the system. It may be possible to obtain portions
366 of kernel memory as well.
367
368 20140411:
369 Update zlib to 1.2.7
370
371 20140122:
372 Support for username with length 32. Previous limit was 16
373
374 20140114:
375 Fix two security vulnerabilities.
376
377 bsnmpd contains a stack overflow when sent certain queries.
378
379 bind 9.8 when using NSEC3-signed zones zones, will crash with special
380 crafted packets.
381
382 20131228:
383 Imported FreeBSD 9.2 usb stack (plus z87 patches from stable)
384
385 Updated em(4), igb(4) and ixgbe(4)
386
387 MidnightBSD now works with Z87 Intel chipsets.
388
389 20131207:
390 Remove sparc64 architecture. It hasn't been working for awhile
391 and it's not useful for desktops anymore.
392
393 20131205:
394 OpenSSH 6.4p1
395
396 20131203:
397 Perl 5.18.1 imported.
398
399 Update less to v458
400
401 20131130:
402 Remove named from base. We still include the client utilities for
403 now until replacements can be found.
404
405 20131004:
406 rarpd supports vlan(4) and has a pid flag. (from FreeBSD)
407
408 20130917:
409 Support for 65,536 routing tables was added. A new fib specific
410 field has been added to mbuf. This is an increase from 16.
411
412 20130910:
413 Security updates: (kern.osreldate 5001)
414
415 nullfs(5)
416
417 The nullfs(5) implementation of the VOP_LINK(9) VFS operation does not
418 check whether the source and target of the link are both in the same
419 nullfs instance. It is therefore possible to create a hardlink from a
420 location in one nullfs instance to a file in another, as long as the
421 underlying (source) filesystem is the same.
422
423 ifioctl
424
425 As is commonly the case, the IPv6 and ATM network layer ioctl request
426 handlers are written in such a way that an unrecognized request is
427 passed on unmodified to the link layer, which will either handle it or
428 return an error code.
429
430 Network interface drivers, however, assume that the SIOCSIFADDR,
431 SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK requests have been
432 handled at the network layer, and therefore do not perform input
433 validation or verify the caller's credentials. Typical link-layer
434 actions for these requests may include marking the interface as "up"
435 and resetting the underlying hardware.
436
437 20130824:
438 Fix a bug in sendmail 8.14.7 that interferes with how it
439 handles AAAA records interoperating with Microsoft DNS servers.
440 FreeBSD has already reported this to Sendmail and a fix
441 will be included in the next release.
442
443 Subversion 1.8.1 is now in the base system as a static
444 binary. It has limited functionality, but can be used to
445 checkout/commit code. It is named svnlite.
446
447 20130822:
448 Fix two security vulnerabilities.
449
450 Fix an integer overflow in IP_MSFILTER (IP MULTICAST).
451 This could be exploited to read memory by a user process.
452
453 When initializing the SCTP state cookie being sent in INIT-ACK chunks,
454 a buffer allocated from the kernel stack is not completely initialized.
455
456 Import xz 5.0.4
457
458 Import sqlite 3.7.17
459
460 Import BIND 9.8.5-P2
461
462 20130814:
463 mksh R48 imported.
464
465 Sendmail 8.14.7 imported.
466
467 20130717:
468 libmport bug was fixed causing hash verification to fail.
469
470 virtio(4) imported from FreeBSD 9-stable. SCSI support not
471 included.
472
473 20130612:
474 RELENG_0_4 created for 0.4. Development continues on 0.5.
475
476 20130402:
477 Update BIND and OpenSSL to resolve security advisories.
478
479 20130305:
480 MKSH R44 imported.
481
482 20130213:
483 MKSH R42b imported
484
485 20130211:
486 MKSH R42 imported
487
488 20130125:
489 MKSH R41 imported
490
491 20130122:
492 OpenSSH 5.8p2 imported
493
494 SQLite 3.7.15.2 imported
495
496 Fixed a longstanding bug in libmport extrating new index files.
497
498 20120710:
499 BSD licensed sort imported from FreeBSD-CURRENT
500
501 For now, GNU sort is installed as gnusort, but it will
502 go away in time.
503
504 20120708:
505 tcsh 6.18.01 imported.
506
507 NetBSD's iconv imported.
508
509 libc gains strnlen(3), memrchr(3), stpncpy(3).
510
511 20120612:
512 BIND security update related to CVE-2012-1667.
513
514 Zero length resource records can cause BIND to crash resulting
515 in a DOS attack or information disclosure.
516
517 20120407:
518 mksh R40f (fixes regression)
519
520 20120328:
521 mksh R40e
522
523 Perl 5.14.2
524
525 20120229:
526 cpucontrol(8) and cpuctl(4) added from FreeBSD 7-stable.
527
528 20120209:
529 mDNSResponder 333.10 imported
530
531 20111227:
532 import raid5 module for GEOM, graid5(8)
533
534 This is experimental and known to use a lot of kernel
535 memory.
536
537 20111223:
538 telnetd: fix a root exploit from a fixed buffer that was not checked
539
540 pam: don't allow escape from policy path. Exploitable in KDE, etc.
541
542 Fix pam_ssh module:
543
544 If the pam_ssh module is enabled, attackers may be able to gain access
545 to user accounts which have unencrypted SSH private keys.
546
547 This has to due with the way that openssl works. It ignores unencrpted data.
548
549 Fix security issue with chroot and ftpd.
550
551 nsdispatch(3) doesn't know it's working in a chroot and some
552 operations can cause files to get reloaded causing a security
553 hole in things like ftpd.
554
555 20111217:
556 libdialog/dialog upgraded to an lgpl version. As it's not
557 backwardly compatable, include the old libdialog as libodialog
558
559 20111212:
560 mksh r40d imported
561
562 20111210:
563 re(4) and rl(4) updated to support new chips.
564
565 GEOM synced with FreeBSD 7-stable.
566
567 MidnightBSD GPT partition types created in sys/gpt.h and
568 setup in boot loader and GEOM.
569
570 amdsbwd(4) (amd watchdog for south bridge) updated to support
571 8xx series chipset.
572
573 20111207:
574 import bsd grep from FreeBSD/OpenBSD.
575
576 MK_BSD_GREP controls which grep is installed
577 as grep with the other as bsdgrep or gnugrep.
578
579 20111122:
580 mksh vR40c imported.
581
582 20111117:
583 BIND 9.6 ESV R5 P1
584
585 20111107:
586 tzdata 2011n
587
588 20111026:
589 mDNSResponder v320
590
591 BIND 9.6 ESV R5
592
593 20111022:
594 cflow 0.0.6 imported
595
596 20111020:
597 less v436 imported
598
599 amdsbwd(4) AMD southbridge watchdog
600
601 20111019:
602 awk 20110810 imported
603
604 et(4) Agere Gigabit Ethernet/Fast Ethernet driver added, but
605 not included in GENERIC kernel. The kernel module needs
606 testing before we can include it in GENERIC.
607
608 intr_bind code ported to allow an IRQ to be bound to one
609 specific CPU core.
610
611 20111017:
612 Time Zone Data v. 2011l (Released 10 October 2011)
613
614 Updated list of countries (iso3166) to work with new timezone data.
615
616 20111015:
617 Introduce CPU Affinity in MidnightBSD. cpuset(1) can be used
618 to control which core or group of cores can be used for a given
619 process. Several new system calls were added to support this
620 functionality in the running kernel and for 32bit binary
621 compatibility on amd64.
622
623 The scheduler default has been changed to ULE in i386 and
624 amd64. Changes were made to both schedulers (4BSD AND ULE)
625 for this feature.
626
627 This work is based on Jeff Roberson's FreeBSD 7.1 patches.
628
629 20111004:
630 Fix a problem with unix socket handling caused by the recent
631 patch to unix socket path handling. This allows network
632 apps to work under the linuxolator again.
633
634 20111001:
635 Import libfetch & fetch(1) from FreeBSD 9. Passive FTP is
636 now default and an environment variable must be set to use
637 active.
638
639 20110930:
640 Introduce quirks handling for several umass devices including
641 USB cameras. Add workaround for Cyberpower UPS devices.
642
643 Bring in further bug fixes from FreeBSD and NetBSD for alc(4).
644 Stale ip/tcp header pointers are no longer used, lockups fixed
645 when network cable is unplugged on bootup, enable TX checksum
646 offloading.
647
648 Add a new man page for gcache(8), a useful geom class when
649 working with large raid3 sets.
650
651 Restore previous workaround for Cypress pata storage controller.
652
653 20110929:
654 Sync ath(4) with FreeBSD 7.3.
655
656 The following modules are no longer available, and should be
657 removed from loader.conf:
658 ath_hal ath_rate_amrr ath_rate_onoe ath_rate_sample
659
660 alc(4) would hibernate when a cable was unplugged and often
661 required bring the interface down and up to "wake up" so that
662 a connection could be established. Disable hibernation.
663
664 20110928:
665 Fix security issues with gzip and compress related to .Z
666 files that are corrupted.
667
668 Fix path validation with unix domain sockets.
669
670 20110917:
671 Remove dependance on mports perl for generating releases as
672 it's in the base system.
673
674 20110914:
675 Import xz 5.0.3 with liblzma 5.0.3
676
677 20110813:
678 synced the sparc64 GENERIC kernel configuration with amd64.
679
680 20110806:
681 sqlite 3.7.7.1 imported
682
683 msearch(1), libmsearch and msearch.import added. msearch(1) provides
684 a full text search command line tool. libmsearch can also be used
685 to build a graphical based search in the future. You can enable
686 index building for msearch in periodic.conf or manually run the
687 /usr/libexec/msearch.index tool. Full text indexes take considerable
688 space in /var. I'm using approximately 500MB currently.
689
690 Fix a long standing bug with the periodic script to check package
691 versions. This will be obsolete with mport though.
692
693 20110710:
694 kdb_enter_why added to MidnightBSD to allow the kernel debugger to
695 know why it's in use and thus script can be run.
696
697 Yet another problem with the perl manifest was fixed
698
699 20110709:
700 cpufreq(1) is a new utility to monitor CPU frequency which may change
701 with use of powerd(8) and cpufreq(4).
702
703 20110612:
704 Update mksh to R40
705
706 Catch up ObsoleteFiles.inc to remove Perl 5.10.x. Good to run when
707 updating current (cd /usr/src && make check-old)
708
709 20110528:
710 Fix CVE-2011-1910 in BIND 9.6.x. This affects caching resolvers.
711
712 20110526:
713 newfs:
714 Raised the default blocksize for UFS/FFS filesystems from
715 16K to 32K and the default fragment size from 2K to 4K.
716
717 This should slightly imporve performance on "advanced format"
718 hard drives such as the WD EARS drives. Drives of this type
719 have emulation modes that slow down with lower sizes. Of course
720 the drive must still be aligned properly when using fdisk.
721
722 20110521:
723 mport tool now has a deleteall command. This can be used to remove
724 all packages from a system.
725
726 A few bugs with the perl 5.14 import have been fixed.
727
728 20110518:
729 Perl 5.14.0
730
731 20110517:
732 Sendmail 8.14.5
733
734 20110314:
735 DRM/DRI code updated to support newer video cards. (FreeBSD 7.1)
736
737 cdevpriv wrappers added
738
739 nss_mdns hack introduced to work around linking problem.
740
741 dnsextd fixed after update to mDNSResponder code.
742
743 20110308:
744 Introduce liblzma & xz 5.0.1 to the base system
745
746 Patch for OpenSSL security issue CVE-2011-0014.
747
748 "OSREVISION 4004"
749
750 nsswitch module for multicast dns (nss_mdns) added.
751
752 tzdata2011c
753
754 20110220:
755 cam(4) syncronized with FreeBSD 7.3.
756
757 20110219:
758 amdtemp(4) updated to support sensors framework.
759
760 20110217:
761 Perl 5.10.1 imported
762
763 20110216:
764 Introduce igb(4) and split Intel Gigabit Ethernet adapters between
765 igb(4) and em(4). Newer devices use igb(4). The code has moved
766 to sys/dev/e1000 for both devices in the kernel. igb(4) has
767 been placed in GENERIC on i386 and amd64.
768
769 Update bfe(4) to support newer devices and WOL.
770
771 20110215:
772 age(4) added.
773
774 20110208:
775 BIND 9.6.3 which fixes a bug with DNSSEC records getting added.
776
777 20110206:
778 eeemon(4) added to monitor Asus Eee PC.
779
780 20110205:
781 OpenSSH 5.7p1
782
783 GNU sort 6.9 (coreutils)
784
785 20110203:
786 one true awk 20100523 imported
787
788 sqlite 3.7.5
789
790 OpenSSL 0.9.8q
791
792 20110202:
793 tcsh 6.17.00
794
795 file 5.05
796
797 20110122:
798 Import it(4) and lm(4), with support for Super I/O hardware monitors. This
799 uses the sensors framework ported by Constantine A. Murenin (GSOC2007)
800
801 20110120:
802 BIND 9.6.2-P3
803
804 sudo 1.7.4-p6
805
806 20110115:
807 Add experimental jme(4) for Jmicron ethernet devices.
808
809 20101130:
810 A double free exists in the SSL client ECDH handling code, when
811 processing specially crafted public keys with invalid prime
812 numbers. [CVE-2010-2939]
813
814 20101120:
815 Several portions of the kernel and userland code related to UFS file
816 systems (and UFS2) cannot properly handle inode counts above 2^31 due
817 to use of int types. Based on a patch from FreeBSD, I've modified
818 our UFS2 implementation to handle unsigned values for inode counts
819 which should allow for file systems greater than 16TB.
820
821 newfs and growfs was also modified.
822
823 20101110:
824 Fix a security issue with pseudofs which could result in running code in kernel
825 context or a kernel panic depending on system configuration. This affects file
826 systems such as procfs for instance.
827
828 20101021:
829 sysrc is a utility to print and modify name/value pairs in /etc/rc.conf easily.
830 This is similar to functions present in many linux distros. The utility was
831 written by Devin Teske for FreeBSD.
832
833 20100920:
834 bzip2 security patch for integer overflow.
835
836 20100905:
837 MidnightBSD RELENG_0_3 branch created. Aggressive development continues here
838 for 0.4.
839
840 20100902:
841 Fix a security issue with libutil that allows users to bypass cpu limits in
842 login.conf in some cases. This combined with OpenSSH for example can allow
843 the user to get more resources than they're allowed.
844
845 20100822:
846 Import Apple's mDNSResponder (mdnsd).
847
848 20100814:
849 libdispatch added to MidnightBSD. This provides functionality found in
850 Mac OS X's GCD. We do not have blocks support yet. As this code is
851 licensed under Apache 2, we create a new MK_APACHE option so that
852 it's not required for all users to run code under a license they
853 may not like.
854
855 20100713:
856 mbuf readonly fix related to sendfile(2) data corruption.
857
858 20100704:
859 brainfuck(1) imported from MirBSD.
860
861 20100505:
862 zlib 1.2.5
863
864 20100430:
865 Sudo 1.7.2p6 imported
866
867 20100321:
868 Update zlib to 1.2.4
869
870 20100319:
871 Removed i586 from default i386 generic kernel.
872
873 20100317:
874 Update to tzdata2010e (time zones). This includes changes in
875 Mexico.
876
877 Add support for several newer sound cards via hda including
878 ATI and Realtek chipsets.
879
880 20100313:
881 CPU detection has been changed. VIA Padlock detection added.
882
883 20100312:
884 Fix a number of bugs and compiler warnings in libmport. Handle
885 plus signs in paths for mport.check-fake
886
887 20100311:
888 mksh R39c
889
890 20100309:
891 Sudo 1.7.2p5
892
893 sqlite3 3.6.23
894
895 mksh R39b
896
897 libffi (ffi) 3.0.9
898
899 20100206:
900 WITHOUT_LIB32 is no longer needed on AMD64. GCC was fixed to
901 properly pass arguments to ld.
902
903 re(4) and rl(4) have been updated to support several new
904 realtek chipsets. Performance has been improved on re(4).
905
906 20100204:
907 Fix a bug cropping up on AMD64 MidnightBSD with sftp
908 segfaulting.
909
910 20100116:
911 Import ash changes from FreeBSD (bin/sh) 8-Stable.
912
913 BIND 9.6.1-P2
914
915 20100110:
916 Import Sendmail 8.14.4. Fix for SSL vulnerability.
917
918 posix_spawn(3) added to MidnightBSD libc. Users may need to build and
919 install libc before doing a full buildworld when upating from 0.2 or
920 older current systems.
921
922 kqueue(2) was modified to support portions of libdispatch functionality.
923
924 20100106:
925 Bind security update. Fix a bug with DNSSEC that causes negative
926 cache entries and thus a possible DNS cache poisoning attack.
927
928 Fix a bug in ZFS that can reset permissions on system crashes.
929
930 20091228:
931 amdtemp(4) was added. It allows one to monitor to the temperature
932 of an AMD CPU such as a Phenom.
933
934 20091205:
935 OpenSSL security fix
936
937 The SSL version 3 and TLS protocols support session renegotiation without
938 cryptographically tying the new session parameters to the old parameters.
939
940 20091128:
941 OpenBSD sensors framework imported including sensorsd(8)
942
943 20091126:
944 OpenNTPD 4.4 import
945
946 Update OpenSSH to 5.3p1
947
948 mksh R39
949
950 20091124:
951 cpdup updated from DragonFly to 1.15
952
953 tzdata2009s updated with latest timezone data for November 2009.
954
955 20091010:
956 amd64 users should use WITHOUT_LIB32=yes in /etc/make.conf for now
957 to test current.
958
959 Revert unicode filename fixes from ntfs code. This was causing chaos
960 on amd64 systems.
961
962 20091006:
963 Update timezone data with tzdata2009n with the Pakistan and
964 Argentina changes.
965
966 Sync several userland utilities with versions from FreeBSD 7.0 in
967 sbin and usr.sbin.
968
969 20090919:
970 Update timezone data with tzdate2009m from September 2009.
971
972 20090729:
973 Patch for Bind 9 security vulnerability. a dynmaic update packet
974 can trigger an assertion and cause named to exit
975
976 20090606:
977 Remove PCC from the base system. This compiler will not work
978 as a system compiler for us as we've got some userland investment
979 in C++ code and may have Objective-C in the future. We're stuck
980 with a solution that supports these three languages at a minimum.
981
982 I had wanted to keep it as an optional compiler because it is
983 fast, however too many users want to try to use it for the base
984 system which makes no sense.
985
986 A hack was added for Cypress based usb hard drive enclosures to
987 the kernel. This should cut down on commands it claims to support
988 but does not (at the cam layer). Found while testing ZFS on
989 an external device.
990
991 20090520:
992 The powerd daemon no longer starts automatically to improve
993 compatibility with many systems. However, there is a new
994 installer option in the startup section to enable it. This
995 makes it easier to enable for users that have working systems. I thought it was only a problem on older hardware, but it freaks
996 out my new Phenom too.
997
998 20090502:
999 OpenSSH 5.2p1 import
1000
1001 ale(4) connected to the build. (kernel module only)
1002
1003 20090501:
1004 Imported makefs utility from NetBSD/FreeBSD
1005
1006 20090422:
1007 OpenSSL security update
1008
1009 The function ASN1_STRING_print_ex does not properly validate the lengths
1010 of BMPString or UniversalString objects before attempting to print them.
1011
1012 20090415:
1013 Created a Symbol.map for libc/ohash symbols
1014
1015 Updated several usr/bin usr/sbin utilities.
1016
1017 Corrected a bug with Makefile.inc1 causing the bootstrap
1018 tools to fail.
1019
1020 20090405:
1021 xorg 7.4 wants to configure its input devices via hald which does not
1022 yet work with USB. If the keyboard/mouse does not work in xorg then
1023 add
1024 Option "AllowEmptyInput" "off"
1025 to your ServerLayout section. This will cause X to use the configured
1026 kbd and mouse sections from your xorg.conf
1027
1028 20090403:
1029 mksh was disconnected a few day ago do to bugs with
1030 buildworld and mports. Now, connect it back
1031 for use as /bin/sh with a conditional called
1032 MK_ASH. By default, ash is the standard /bin/sh
1033 but we may change this later. This will allow further
1034 testing by users and developers of mksh without
1035 causing an unpleasant default experience. In the
1036 long run, we need to fix mksh compatibility.
1037
1038 20090328:
1039 Bring in mksh R37 from CVS. The dot.mkshrc files for root
1040 and skel were changed. mksh(1) now replaces ash aka sh(1)
1041 as the default /bin/sh. Please report bugs with
1042 ports, etc. The ash code will remain in the repo for awhile
1043 as I decide if we'll add something like MK_SHELL_ASH as
1044 an optional build parameter.
1045
1046 ahd was disconnected from the lint environment until
1047 the compiler bug is sorted (by updating gcc?)
1048
1049 Remove freebsd-tips from fortune files and change the
1050 default for login and profile.
1051
1052 20090327:
1053 Update libarchive to 2.5.5, tar, and add bsdcpio.
1054
1055 Also previously, ctriv has been connecting Perl 5.10
1056 to the build (part of os). This will have an impact
1057 on mports.
1058
1059 20090325:
1060 Update Bind to 9.4.3-P1
1061
1062 Update mksh to R36b
1063
1064 Update tcpdump to 3.9.8, fix libpcap to work with current.
1065
1066 Update pnpinfo, sync with FreeBSD.
1067
1068 20090115:
1069 Fix a problem with DNSSEC and BIND.
1070
1071 20090110:
1072 For applications using OpenSSL for SSL connections, an invalid SSL
1073 certificate may be interpreted as valid. This could for example be
1074 used by an attacker to perform a man-in-the-middle attack.
1075
1076 Other applications which use the OpenSSL EVP API may similarly be
1077 affected.
1078
1079 Stop cross site request forgery attacks in lukemftpd
1080
1081 20090104:
1082 Import GNU libreadline 5.2
1083
1084 20090101:
1085 Update time zone data to 2008i.
1086
1087 20081231:
1088 Correct a problem where bluetooth and netgraph sockets are not
1089 properly initialized.
1090
1091 Happy 2009.
1092
1093 20081206:
1094 Due to the massive change in the underlying system under way,
1095 we're naming the next release 1.0. The sys/sys/param.h was
1096 changed accordingly. ipfilter and ncurses were corrected
1097 using __MidnightBSD__ tests in the code.
1098
1099 The GENERIC kernel config was caught up on i386 today. Consider
1100 i386 still broken, but amd64 is running again.
1101
1102 mdoc.local was updated with the new MidnightBSD version info.
1103
1104 batt(1) was rewritten in C. It now supports several flags and
1105 runs about 8 times faster on my laptop. The default output
1106 shows the number of minutes of battery life remaining and the
1107 percentage. You can use -u to display the number of batteries or
1108 -c to get script friendly output. Consult the man page for more.
1109
1110 20081204:
1111 Work has completed on importing ZFS, jemalloc, several
1112 new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel
1113 support, improved locking for file desc., audit (openbsm),
1114 openssl .98e, nfe, imporved intel high def audio, midi, updated
1115 intel gigabit (em), support for several wifi cards (intel), ...
1116
1117 Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version
1118 data from param.h instead of the FreeBSD version. This means
1119 testing is now possible in the ports tree for the version
1120 and that any ports or code relying on the FreeBSD version from
1121 sys/sys/param.h will need to be fixed.
1122
1123 20080905:
1124 update nve(4) to support new hardware.
1125
1126 20080801:
1127 Import OpenBSM 1.0
1128
1129 Modify src/release to create 3 isos instead of 2 for packages.
1130
1131 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
1132
1133 Many ia64, alpha, powerpc items were removed.
1134
1135 The recent diffutils 2.8.7 import was fixed.
1136
1137 20080703:
1138 pcc was not installed properly when setting DESTDIR for live cds,
1139 or posibly jails.
1140
1141 20080627:
1142 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
1143
1144 Add glabel to GENERIC.
1145
1146 Intel ICH8 mobile chipset used on some iMacs included with ata.
1147
1148 pcc connected to the build on i386. (alternative compiler)
1149
1150 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
1151
1152 20080528:
1153 Sendmail 8.14.3
1154
1155 20080516:
1156 ssh-vulnkey allows you to look for vulnerable ssh keys that
1157 were generated on Debian and Ubuntu hosts over the last
1158 few years. sshd can block offending keys with a configuration
1159 option.
1160
1161 The elf note on binaries is now set to MidnightBSD.
1162
1163 20080514:
1164 Fixed a number of problems with pcc. It is not yet connected
1165 to the build, but usable on i386 hosts. You may use it
1166 by make; make install in /usr/src/usr.bin/pcc. It will
1167 install in /usr/local as some of the files conflict with
1168 GCC versions. __MidnightBSD__ is defined in PCC as well.
1169
1170 System headers were fixed to allow pcc to compile many binaries
1171 on MidnightBSD. bin/cp will work now for instance.
1172
1173 20080430:
1174 __MidnightBSD__ is now defined via gcc. This can be tested
1175 to determine we're running on MidnightBSD in the preprocessor.
1176
1177 20080429:
1178 Import bind 9.4.2 with threading
1179
1180 libpthread (KSE) and libthr are built earlier
1181
1182 pcvt(4) removed!
1183
1184 Alias added for core2 cpus.
1185
1186 Alpha and PC98 only utilities removed from usr/sbin
1187
1188 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
1189 improved. See the man pages for info.
1190
1191 periodic scripts will not send emails with empty message bodies.
1192 See mailwrapper fix.
1193
1194 20080410:
1195 Sync cpdup with DragonFly. Add parallel transaction support and
1196 -l flag to line-buffer stdout and stderr.
1197
1198 20080406:
1199 Import bzip2 1.05
1200 Import OpenSSH 4.9p1
1201
1202 20080322:
1203 The default umask was changed to 022.
1204
1205 /usr/X11R6 paths were removed from several config files.
1206
1207 .mkshrc files are now installed for root.
1208
1209 20080316:
1210 FIx a problem with gif0 tunnels and neighbors with IPV6.
1211
1212 20080312:
1213 Add lndir from X.org. This aides in the porting of MirPorts.
1214
1215 New OS versions were added to the mapage code (groff)
1216
1217 20080310:
1218 Correct a buffer overflow in ppp.
1219
1220 20080308:
1221 Remove /usr/X11R6 from manpath config.
1222
1223 20080307:
1224 Atheros driver no longer has several options set
1225 which corrects building in tinderbox on all three platforms.
1226
1227 Added a new macro to sx.h which returns true if the current
1228 thread holds an exclusive lock on a specifix sx.
1229
1230 Removed OS/2's HPFS file system. It's not maintained and
1231 I don't know anyone using OS/2 or ecomstation these days.
1232 My copy is in the closet collecting dust.
1233
1234 20080306:
1235 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
1236 Developers can now use it to check src builds.
1237
1238 20080303:
1239 Add mksh to /etc/shells, made some adjustments to options
1240 for mksh builds per suggestion upstream.
1241
1242 USB HID table updated with modern hardware list.
1243
1244 Updated BSD family true (we're not in there yet)
1245
1246 iso3166 file updated and import of tzdata2007k for
1247 new time zones.
1248
1249 Updated mksh to latest version R33.
1250
1251 20080228:
1252 Remplaced the random IP id generation code with a new
1253 version by Amit Klein.
1254
1255 20080221:
1256 Sendfile write only permissions fix.
1257
1258 Removed some HPFS and PC98 code.
1259
1260 iso639 file sycned with DragonFly.
1261
1262 20080128:
1263 Changed NTP configuration so that ips aren't cached
1264 so multiple servers are used.
1265
1266 Fix an issue with fork() in libpthread.
1267
1268 20080121:
1269 Add virtualization detection to set the HZ rate
1270 according to a VM present. VMWare and Parallels
1271 should work better like this.
1272
1273 Change to full x11 install in sysinstall. Add
1274 xorg 7 support.
1275
1276 20080115:
1277 Fix the handling of PTY's. CVE-2008-0216
1278
1279 20080105:
1280 mport delete code added, USE_MPORT_TOOLS knob aded.
1281
1282 20080101:
1283 Happy New Year
1284
1285 20071123:
1286 Update sendmail to 8.14.2
1287
1288 20071120:
1289 Update system compiler to gcc 3.4.6.
1290
1291 20071023:
1292 Updated mksh to R31d.
1293
1294 20070911:
1295 Updated mksh to version R31b.
1296
1297 Fixed stderr output in libpthread. Previously it was
1298 written to stdout.
1299
1300 20070831:
1301 Added dot.mkshrc file to support the recent change to
1302 mksh from OpenBSD's ksh derived from pdksh.
1303
1304 Added new firewall configuration. ipfw is enabled by default
1305 with a "desktop" configuration. Consult /etc/rc.firewall
1306 or ipfw show to see the ruleset used. You can disable
1307 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
1308 change only effects IPv4. IPv6 does not have a firewall
1309 enabled by default.
1310
1311 20070814:
1312 Removed GNU tar source. We've been using BSD tar
1313 for awhile.
1314
1315 20070806:
1316 Finished removing umapfs and autofs from the tree.
1317
1318 20070804:
1319 BIND and Tcpdump have been patched for recent vulnerabilities.
1320
1321 We switched to BSD cpio (pax).
1322
1323 20070719:
1324 Imported cpdup from DragonFly as /bin/cpdup
1325
1326 20070716:
1327 Update GNU cpio to 2.8.
1328
1329 20070410:
1330 cvs was updated to 1.12.13. cvsbug was removed.
1331 cvs now behaves similarly to DragonFly's cvs with
1332 most of their local changes.
1333
1334 20070409:
1335 RELENG_0_1 was created. More aggresive changes will
1336 continue here.
1337
1338 20070406:
1339 Back out propolice. propolice caused several problems
1340 with our threading libraries libthr and libpthread.
1341 curthread was often NULL after the patch and many
1342 multithreaded applications would crash. We plan to
1343 work on either bringing in gcc 4.1 or developing a new
1344 patch which also corrects our threading issues later.
1345
1346 It is more important to have a stable system for our
1347 mport work and other projects at this time.
1348
1349 This is not a clean removal. It is recommended that you
1350 have a recently SNAP CD handy. You can either reinstall
1351 or perform a make buildworld and make buildkernel and
1352 make installkernel. Reboot on the cd and copy the contents
1353 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
1354 /usr/lib, and /usr/libexec to the respective directories on
1355 your disk. Then you should be able to boot into single user
1356 mode and run make installworld. You will need to run
1357 chflags noschg on some of the files if you can't overwrite
1358 them.
1359
1360 You will get __guard missing errors since we had to remove
1361 this from libc.
1362
1363 You will need to rebuild any ports built while propolice was
1364 installed.
1365
1366 20070401:
1367 Importing propolice into MidnightBSD. Propolice is going to
1368 provide us with much greater security and stability in the
1369 long run. If upgrading from a pre-propolice system, please
1370 follow the these instructions:
1371
1372 cd /usr/src/lib/libc && make obj && make && make install
1373 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
1374 cd /usr/src/lib/libpthread && make obj && make && make install
1375 cd /usr/src/lib/libthr && make obj && make && make install
1376 buildworld and kernel
1377
1378 It is adviced that any mports which were installed and/or built
1379 prior to the propolice update also be updated. If any errors
1380 or issue are encounted, please contact security@midnightbsd.org
1381 and we will be sure to investigate and come up with an expeditious
1382 fix.
1383
1384 20070314:
1385 Remove send-pr from src.
1386
1387 Switch to NetBSD's gzip.
1388
1389 Bump MBSD minor revision.
1390
1391 20070313:
1392 Imported OpenSSH 4.6p1.
1393
1394 Imported FreeBSD's libarchive and updated tar to work with it.
1395
1396 Disabled debug statements cluttering up /var/log/messages for
1397 the tcp autobuf patch applied previously.
1398
1399 20070312:
1400 Synced several audio changes from FreeBSD 6.1. Removed the
1401 BSD Daemon files from src/share.
1402
1403 20070308:
1404 Added mfi which supports LSI Logic MegaRAID SAS devices including
1405 the Dell perc5i.
1406
1407 20070206:
1408 Imported OpenBSD's sudo into source. Please install
1409 /usr/src/usr.bin/sudo/lib first before building.
1410
1411 Those who install from a snapshot after this date
1412 will not be effected.
1413
1414 20070119:
1415 Added audit group. Be sure to add audit to your /etc/group file
1416 before installing world.
1417
1418 hostapd was updated to 0.4.8.
1419
1420 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
1421 unbreak world.
1422
1423 wpa_supplicant was updated.
1424
1425 For stability and compatibility reasons, it was decided that MidnightBSD
1426 sync with FreeBSD 6.1 Release. Nearly every change between the original
1427 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
1428 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
1429 will not sync every little change with FreeBSD.
1430
1431 20061231:
1432 Updated COPYRIGHT for 2007.
1433
1434 Updated and bumped libutil after importing NetBSD efun(3) functions.
1435
1436 Added MidnightBSD_version and bumped the FreeBSD version as we've
1437 synced all commits between the fork and that version. It is now safe
1438 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
1439 Feb 26, 2006.
1440
1441 Added spell(1) and deroff(1) from NetBSD. Also added additional
1442 dict files to work with it. /usr/share/dict/american,
1443 /usr/share/dict/british and /usr/share/dict/special/math
1444
1445 Numerous man page and bug fixes.
1446
1447 20061226:
1448 Setup /usr/share/examples/cvsup SUPfiles for the new
1449 MidnightBSD CVSup server.
1450
1451 Fix a bug in burncd where it would continue forever while
1452 erasing CDRW media.
1453
1454 Add csup to /usr/bin. csup is a CVSup replacement written
1455 in C.
1456
1457 Fixed a bug with bsnmpd build from Oct 30.
1458
1459 Corrected some race conditions and fixed a few bugs in
1460 geom. Imported changes from FreeBSD RELENG_6.
1461
1462 20061225:
1463 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
1464 that caused long double to long and long long
1465 conversion of negative numbers to always result in -1.
1466
1467 20061221:
1468 Fixed acpi_battery.c to not report an ERROR if no
1469 batteries are present.
1470
1471 Performed some minor updates on the RL and RE NIC drivers.
1472 RL should no longer panic when trying to print errors.
1473
1474 Corrected a bug with TTY.
1475
1476 20061218:
1477 Corrected a bug with libpthread where newly created suspended
1478 threads don't get scheduled.
1479
1480 20061206:
1481 Fixed a typo with the firewire security patch.
1482
1483 20061129:
1484 Minor cleanups to utilities in bin.
1485
1486 Fixed msdos file system short file name behavior to match
1487 FreeBSD.
1488
1489 20061031:
1490 Updated man pages in section 7.
1491
1492 20061030:
1493 Updated sys/dev/drm to support intel 915 and radeon
1494 r300 cards properly.
1495
1496 Synced snmpd with FreeBSD-stable.
1497
1498 Fixed a bug in rm which could cause data loss.
1499
1500 20061027:
1501 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
1502 random, kbdmux, atkbd, and usb were updated. Changes
1503 to clearing registers on SSE enabled processors (i386)
1504 commited.
1505
1506 lukemftpd updated.
1507
1508 openssh rc script was altered which effects initial
1509 seeding.
1510
1511 20061014:
1512 Workaround for em driver problem on shared IRQ.
1513
1514 Started removal of alpha support.
1515
1516 20061013:
1517 ATA driver was updated. USB/USB1/USB2 types added.
1518
1519 20061010:
1520 OpenSSH was updated to 4.4p1.
1521
1522 20060909:
1523 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
1524 the old ntpd daemon.
1525
1526 cat has a new option -D which allows you to timestamp output
1527 on a per line basis.
1528
1529 The kernel has a keyboard mux which allows you to have multiple
1530 keyboard connected simultaneously. USB keyboard support was also
1531 improved with this patch.
1532
1533 The Intel em driver was updated. Network performance was greatly
1534 increased on many systems. Additional models are supported.
1535
1536 The ATA driver was patched to fix a potential deadlock.
1537
1538 Bind was patched to fix a potential denial of service condition.
1539
1540 20060817:
1541 ksh has been added to the base system. If you previously had
1542 the port installed, it will be overwritten on the next buildworld.
1543
1544
1545
1546 To build a kernel
1547 -----------------
1548 If you are updating from a prior version of MidnightBSD (even one just
1549 a few days old), you should follow this procedure. With a
1550 /usr/obj tree with a fresh buildworld,
1551 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
1552 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
1553
1554 To test a kernel once
1555 ---------------------
1556 If you just want to boot a kernel once (because you are not sure
1557 if it works, or if you want to boot a known bad kernel to provide
1558 debugging information) run
1559 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
1560 nextboot -k testkernel
1561
1562 To just build a kernel when you know that it won't mess you up
1563 --------------------------------------------------------------
1564 This assumes you are already running a 6.X system. Replace
1565 ${arch} with the architecture of your machine (e.g. "i386",
1566 "amd64", "ia64", "pc98", "sparc64", etc).
1567
1568 cd src/sys/${arch}/conf
1569 config KERNEL_NAME_HERE
1570 cd ../compile/KERNEL_NAME_HERE
1571 make depend
1572 make
1573 make install
1574
1575 If this fails, go to the "To build a kernel" section.
1576
1577 To rebuild everything and install it on the current system.
1578 -----------------------------------------------------------
1579 # Note: sometimes if you are running current you gotta do more than
1580 # is listed here if you are upgrading from a really old current.
1581
1582 <make sure you have good level 0 dumps>
1583 make buildworld
1584 make kernel KERNCONF=YOUR_KERNEL_HERE
1585 [1]
1586 <reboot in single user> [3]
1587 mergemaster -p [5]
1588 make installworld
1589 make delete-old
1590 mergemaster [4]
1591 <reboot>
1592
1593
1594 To cross-install current onto a separate partition
1595 --------------------------------------------------
1596 # In this approach we use a separate partition to hold
1597 # current's root, 'usr', and 'var' directories. A partition
1598 # holding "/", "/usr" and "/var" should be about 2GB in
1599 # size.
1600
1601 <make sure you have good level 0 dumps>
1602 <boot into -stable>
1603 make buildworld
1604 make buildkernel KERNCONF=YOUR_KERNEL_HERE
1605 <maybe newfs current's root partition>
1606 <mount current's root partition on directory ${CURRENT_ROOT}>
1607 make installworld DESTDIR=${CURRENT_ROOT}
1608 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
1609 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
1610 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
1611 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
1612 <reboot into current>
1613 <do a "native" rebuild/install as described in the previous section>
1614 <maybe install compatibility libraries from src/lib/compat>
1615 <reboot>
1616
1617
1618 To upgrade in-place from 5.x-stable or higher to 6.x-stable
1619 -----------------------------------------------------------
1620 <make sure you have good level 0 dumps>
1621 make buildworld [9]
1622 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
1623 [1]
1624 <reboot in single user> [3]
1625 mergemaster -p [5]
1626 make installworld
1627 make delete-old
1628 mergemaster -i [4]
1629 <reboot>
1630
1631 Make sure that you've read the UPDATING file to understand the
1632 tweaks to various things you need. At this point in the life
1633 cycle of current, things change often and you are on your own
1634 to cope. The defaults can also change, so please read ALL of
1635 the UPDATING entries.
1636
1637 Also, if you are tracking -current, you must be subscribed to
1638 freebsd-current@freebsd.org. Make sure that before you update
1639 your sources that you have read and understood all the recent
1640 messages there. If in doubt, please track -stable which has
1641 much fewer pitfalls.
1642
1643 [1] If you have third party modules, such as vmware, you
1644 should disable them at this point so they don't crash your
1645 system on reboot.
1646
1647 [3] From the bootblocks, boot -s, and then do
1648 fsck -p
1649 mount -u /
1650 mount -a
1651 cd src
1652 adjkerntz -i # if CMOS is wall time
1653 Also, when doing a major release upgrade, it is required that
1654 you boot into single user mode to do the installworld.
1655
1656 [4] Note: This step is non-optional. Failure to do this step
1657 can result in a significant reduction in the functionality of the
1658 system. Attempting to do it by hand is not recommended and those
1659 that pursue this avenue should read this file carefully, as well
1660 as the archives of freebsd-current and freebsd-hackers mailing lists
1661 for potential gotchas.
1662
1663 [5] Usually this step is a noop. However, from time to time
1664 you may need to do this if you get unknown user in the following
1665 step. It never hurts to do it all the time.
1666
1667 [8] In order to have a kernel that can run the 5.x binaries
1668 needed to do an installworld, you must include the COMPAT_FREEBSD5
1669 option in your kernel. Failure to do so may leave you with a system
1670 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
1671 is required to run the 5.x binaries on more recent kernels.
1672
1673 Make sure that you merge any new devices from GENERIC since the
1674 last time you updated your kernel config file.
1675
1676 [9] When checking out sources, you must include the -P flag to have
1677 cvs prune empty directories.
1678
1679 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
1680 "?=" instead of the "=" assignment operator, so that buildworld can
1681 override the CPUTYPE if it needs to.
1682
1683 MAKEOBJDIRPREFIX must be defined in an environment variable, and
1684 not on the command line, or in /etc/make.conf. buildworld will
1685 warn if it is improperly defined.
1686
1687 Copyright information:
1688
1689 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
1690
1691 Redistribution, publication, translation and use, with or without
1692 modification, in full or in part, in any form or format of this
1693 document are permitted without further permission from the author.
1694
1695 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
1696 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1697 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1698 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
1699 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1700 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1701 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1702 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1703 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1704 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1705 POSSIBILITY OF SUCH DAMAGE.
1706
1707 If you find this document useful, and you want to, you may buy the
1708 author a beer.
1709
1710 Contact Warner Losh if you have any questions about your use of
1711 this document.
1712
1713 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
1714 $MidnightBSD$

Properties

Name Value
svn:keywords MidnightBSD=%H