ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 2702
Committed: Sun Mar 29 03:12:45 2009 UTC (15 years, 1 month ago) by laffer1
File size: 21120 byte(s)
Log Message:
mksh update, new /bin/sh, fortune and ahd

File Contents

# Content
1 Updating Information for MidnightBSD users
2
3 Items affecting the mports and packages system can be found in
4 /usr/mports/UPDATING.
5
6 20090328:
7 Bring in mksh R37 from CVS. The dot.mkshrc files for root
8 and skel were changed. mksh(1) now replaces ash aka sh(1)
9 as the default /bin/sh. Please report bugs with
10 ports, etc. The ash code will remain in the repo for awhile
11 as I decide if we'll add something like MK_SHELL_ASH as
12 an optional build parameter.
13
14 ahd was disconnected from the lint environment until
15 the compiler bug is sorted (by updating gcc?)
16
17 Remove freebsd-tips from fortune files and change the
18 default for login and profile.
19
20 20090327:
21 Update libarchive to 2.5.5, tar, and add bsdcpio.
22
23 Also previously, ctriv has been connecting Perl 5.10
24 to the build (part of os). This will have an impact
25 on mports.
26
27 20090325:
28 Update Bind to 9.4.3-P1
29
30 Update mksh to R36b
31
32 Update tcpdump to 3.9.8, fix libpcap to work with current.
33
34 Update pnpinfo, sync with FreeBSD.
35
36 20090115:
37 Fix a problem with DNSSEC and BIND.
38
39 20090110:
40 For applications using OpenSSL for SSL connections, an invalid SSL
41 certificate may be interpreted as valid. This could for example be
42 used by an attacker to perform a man-in-the-middle attack.
43
44 Other applications which use the OpenSSL EVP API may similarly be
45 affected.
46
47 Stop cross site request forgery attacks in lukemftpd
48
49 20090104:
50 Import GNU libreadline 5.2
51
52 20090101:
53 Update time zone data to 2008i.
54
55 20081231:
56 Correct a problem where bluetooth and netgraph sockets are not
57 properly initialized.
58
59 Happy 2009.
60
61 20081206:
62 Due to the massive change in the underlying system under way,
63 we're naming the next release 1.0. The sys/sys/param.h was
64 changed accordingly. ipfilter and ncurses were corrected
65 using __MidnightBSD__ tests in the code.
66
67 The GENERIC kernel config was caught up on i386 today. Consider
68 i386 still broken, but amd64 is running again.
69
70 mdoc.local was updated with the new MidnightBSD version info.
71
72 batt(1) was rewritten in C. It now supports several flags and
73 runs about 8 times faster on my laptop. The default output
74 shows the number of minutes of battery life remaining and the
75 percentage. You can use -u to display the number of batteries or
76 -c to get script friendly output. Consult the man page for more.
77
78 20081204:
79 Work has completed on importing ZFS, jemalloc, several
80 new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel
81 support, improved locking for file desc., audit (openbsm),
82 openssl .98e, nfe, imporved intel high def audio, midi, updated
83 intel gigabit (em), support for several wifi cards (intel), ...
84
85 Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version
86 data from param.h instead of the FreeBSD version. This means
87 testing is now possible in the ports tree for the version
88 and that any ports or code relying on the FreeBSD version from
89 sys/sys/param.h will need to be fixed.
90
91 20080905:
92 update nve(4) to support new hardware.
93
94 20080801:
95 Import OpenBSM 1.0
96
97 Modify src/release to create 3 isos instead of 2 for packages.
98
99 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
100
101 Many ia64, alpha, powerpc items were removed.
102
103 The recent diffutils 2.8.7 import was fixed.
104
105 20080703:
106 pcc was not installed properly when setting DESTDIR for live cds,
107 or posibly jails.
108
109 20080627:
110 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
111
112 Add glabel to GENERIC.
113
114 Intel ICH8 mobile chipset used on some iMacs included with ata.
115
116 pcc connected to the build on i386. (alternative compiler)
117
118 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
119
120 20080528:
121 Sendmail 8.14.3
122
123 20080516:
124 ssh-vulnkey allows you to look for vulnerable ssh keys that
125 were generated on Debian and Ubuntu hosts over the last
126 few years. sshd can block offending keys with a configuration
127 option.
128
129 The elf note on binaries is now set to MidnightBSD.
130
131 20080514:
132 Fixed a number of problems with pcc. It is not yet connected
133 to the build, but usable on i386 hosts. You may use it
134 by make; make install in /usr/src/usr.bin/pcc. It will
135 install in /usr/local as some of the files conflict with
136 GCC versions. __MidnightBSD__ is defined in PCC as well.
137
138 System headers were fixed to allow pcc to compile many binaries
139 on MidnightBSD. bin/cp will work now for instance.
140
141 20080430:
142 __MidnightBSD__ is now defined via gcc. This can be tested
143 to determine we're running on MidnightBSD in the preprocessor.
144
145 20080429:
146 Import bind 9.4.2 with threading
147
148 libpthread (KSE) and libthr are built earlier
149
150 pcvt(4) removed!
151
152 Alias added for core2 cpus.
153
154 Alpha and PC98 only utilities removed from usr/sbin
155
156 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
157 improved. See the man pages for info.
158
159 periodic scripts will not send emails with empty message bodies.
160 See mailwrapper fix.
161
162 20080410:
163 Sync cpdup with DragonFly. Add parallel transaction support and
164 -l flag to line-buffer stdout and stderr.
165
166 20080406:
167 Import bzip2 1.05
168 Import OpenSSH 4.9p1
169
170 20080322:
171 The default umask was changed to 022.
172
173 /usr/X11R6 paths were removed from several config files.
174
175 .mkshrc files are now installed for root.
176
177 20080316:
178 FIx a problem with gif0 tunnels and neighbors with IPV6.
179
180 20080312:
181 Add lndir from X.org. This aides in the porting of MirPorts.
182
183 New OS versions were added to the mapage code (groff)
184
185 20080310:
186 Correct a buffer overflow in ppp.
187
188 20080308:
189 Remove /usr/X11R6 from manpath config.
190
191 20080307:
192 Atheros driver no longer has several options set
193 which corrects building in tinderbox on all three platforms.
194
195 Added a new macro to sx.h which returns true if the current
196 thread holds an exclusive lock on a specifix sx.
197
198 Removed OS/2's HPFS file system. It's not maintained and
199 I don't know anyone using OS/2 or ecomstation these days.
200 My copy is in the closet collecting dust.
201
202 20080306:
203 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
204 Developers can now use it to check src builds.
205
206 20080303:
207 Add mksh to /etc/shells, made some adjustments to options
208 for mksh builds per suggestion upstream.
209
210 USB HID table updated with modern hardware list.
211
212 Updated BSD family true (we're not in there yet)
213
214 iso3166 file updated and import of tzdata2007k for
215 new time zones.
216
217 Updated mksh to latest version R33.
218
219 20080228:
220 Remplaced the random IP id generation code with a new
221 version by Amit Klein.
222
223 20080221:
224 Sendfile write only permissions fix.
225
226 Removed some HPFS and PC98 code.
227
228 iso639 file sycned with DragonFly.
229
230 20080128:
231 Changed NTP configuration so that ips aren't cached
232 so multiple servers are used.
233
234 Fix an issue with fork() in libpthread.
235
236 20080121:
237 Add virtualization detection to set the HZ rate
238 according to a VM present. VMWare and Parallels
239 should work better like this.
240
241 Change to full x11 install in sysinstall. Add
242 xorg 7 support.
243
244 20080115:
245 Fix the handling of PTY's. CVE-2008-0216
246
247 20080105:
248 mport delete code added, USE_MPORT_TOOLS knob aded.
249
250 20080101:
251 Happy New Year
252
253 20071123:
254 Update sendmail to 8.14.2
255
256 20071120:
257 Update system compiler to gcc 3.4.6.
258
259 20071023:
260 Updated mksh to R31d.
261
262 20070911:
263 Updated mksh to version R31b.
264
265 Fixed stderr output in libpthread. Previously it was
266 written to stdout.
267
268 20070831:
269 Added dot.mkshrc file to support the recent change to
270 mksh from OpenBSD's ksh derived from pdksh.
271
272 Added new firewall configuration. ipfw is enabled by default
273 with a "desktop" configuration. Consult /etc/rc.firewall
274 or ipfw show to see the ruleset used. You can disable
275 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
276 change only effects IPv4. IPv6 does not have a firewall
277 enabled by default.
278
279 20070814:
280 Removed GNU tar source. We've been using BSD tar
281 for awhile.
282
283 20070806:
284 Finished removing umapfs and autofs from the tree.
285
286 20070804:
287 BIND and Tcpdump have been patched for recent vulnerabilities.
288
289 We switched to BSD cpio (pax).
290
291 20070719:
292 Imported cpdup from DragonFly as /bin/cpdup
293
294 20070716:
295 Update GNU cpio to 2.8.
296
297 20070410:
298 cvs was updated to 1.12.13. cvsbug was removed.
299 cvs now behaves similarly to DragonFly's cvs with
300 most of their local changes.
301
302 20070409:
303 RELENG_0_1 was created. More aggresive changes will
304 continue here.
305
306 20070406:
307 Back out propolice. propolice caused several problems
308 with our threading libraries libthr and libpthread.
309 curthread was often NULL after the patch and many
310 multithreaded applications would crash. We plan to
311 work on either bringing in gcc 4.1 or developing a new
312 patch which also corrects our threading issues later.
313
314 It is more important to have a stable system for our
315 mport work and other projects at this time.
316
317 This is not a clean removal. It is recommended that you
318 have a recently SNAP CD handy. You can either reinstall
319 or perform a make buildworld and make buildkernel and
320 make installkernel. Reboot on the cd and copy the contents
321 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
322 /usr/lib, and /usr/libexec to the respective directories on
323 your disk. Then you should be able to boot into single user
324 mode and run make installworld. You will need to run
325 chflags noschg on some of the files if you can't overwrite
326 them.
327
328 You will get __guard missing errors since we had to remove
329 this from libc.
330
331 You will need to rebuild any ports built while propolice was
332 installed.
333
334 20070401:
335 Importing propolice into MidnightBSD. Propolice is going to
336 provide us with much greater security and stability in the
337 long run. If upgrading from a pre-propolice system, please
338 follow the these instructions:
339
340 cd /usr/src/lib/libc && make obj && make && make install
341 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
342 cd /usr/src/lib/libpthread && make obj && make && make install
343 cd /usr/src/lib/libthr && make obj && make && make install
344 buildworld and kernel
345
346 It is adviced that any mports which were installed and/or built
347 prior to the propolice update also be updated. If any errors
348 or issue are encounted, please contact security@midnightbsd.org
349 and we will be sure to investigate and come up with an expeditious
350 fix.
351
352 20070314:
353 Remove send-pr from src.
354
355 Switch to NetBSD's gzip.
356
357 Bump MBSD minor revision.
358
359 20070313:
360 Imported OpenSSH 4.6p1.
361
362 Imported FreeBSD's libarchive and updated tar to work with it.
363
364 Disabled debug statements cluttering up /var/log/messages for
365 the tcp autobuf patch applied previously.
366
367 20070312:
368 Synced several audio changes from FreeBSD 6.1. Removed the
369 BSD Daemon files from src/share.
370
371 20070308:
372 Added mfi which supports LSI Logic MegaRAID SAS devices including
373 the Dell perc5i.
374
375 20070206:
376 Imported OpenBSD's sudo into source. Please install
377 /usr/src/usr.bin/sudo/lib first before building.
378
379 Those who install from a snapshot after this date
380 will not be effected.
381
382 20070119:
383 Added audit group. Be sure to add audit to your /etc/group file
384 before installing world.
385
386 hostapd was updated to 0.4.8.
387
388 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
389 unbreak world.
390
391 wpa_supplicant was updated.
392
393 For stability and compatibility reasons, it was decided that MidnightBSD
394 sync with FreeBSD 6.1 Release. Nearly every change between the original
395 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
396 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
397 will not sync every little change with FreeBSD.
398
399 20061231:
400 Updated COPYRIGHT for 2007.
401
402 Updated and bumped libutil after importing NetBSD efun(3) functions.
403
404 Added MidnightBSD_version and bumped the FreeBSD version as we've
405 synced all commits between the fork and that version. It is now safe
406 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
407 Feb 26, 2006.
408
409 Added spell(1) and deroff(1) from NetBSD. Also added additional
410 dict files to work with it. /usr/share/dict/american,
411 /usr/share/dict/british and /usr/share/dict/special/math
412
413 Numerous man page and bug fixes.
414
415 20061226:
416 Setup /usr/share/examples/cvsup SUPfiles for the new
417 MidnightBSD CVSup server.
418
419 Fix a bug in burncd where it would continue forever while
420 erasing CDRW media.
421
422 Add csup to /usr/bin. csup is a CVSup replacement written
423 in C.
424
425 Fixed a bug with bsnmpd build from Oct 30.
426
427 Corrected some race conditions and fixed a few bugs in
428 geom. Imported changes from FreeBSD RELENG_6.
429
430 20061225:
431 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
432 that caused long double to long and long long
433 conversion of negative numbers to always result in -1.
434
435 20061221:
436 Fixed acpi_battery.c to not report an ERROR if no
437 batteries are present.
438
439 Performed some minor updates on the RL and RE NIC drivers.
440 RL should no longer panic when trying to print errors.
441
442 Corrected a bug with TTY.
443
444 20061218:
445 Corrected a bug with libpthread where newly created suspended
446 threads don't get scheduled.
447
448 20061206:
449 Fixed a typo with the firewire security patch.
450
451 20061129:
452 Minor cleanups to utilities in bin.
453
454 Fixed msdos file system short file name behavior to match
455 FreeBSD.
456
457 20061031:
458 Updated man pages in section 7.
459
460 20061030:
461 Updated sys/dev/drm to support intel 915 and radeon
462 r300 cards properly.
463
464 Synced snmpd with FreeBSD-stable.
465
466 Fixed a bug in rm which could cause data loss.
467
468 20061027:
469 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
470 random, kbdmux, atkbd, and usb were updated. Changes
471 to clearing registers on SSE enabled processors (i386)
472 commited.
473
474 lukemftpd updated.
475
476 openssh rc script was altered which effects initial
477 seeding.
478
479 20061014:
480 Workaround for em driver problem on shared IRQ.
481
482 Started removal of alpha support.
483
484 20061013:
485 ATA driver was updated. USB/USB1/USB2 types added.
486
487 20061010:
488 OpenSSH was updated to 4.4p1.
489
490 20060909:
491 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
492 the old ntpd daemon.
493
494 cat has a new option -D which allows you to timestamp output
495 on a per line basis.
496
497 The kernel has a keyboard mux which allows you to have multiple
498 keyboard connected simultaneously. USB keyboard support was also
499 improved with this patch.
500
501 The Intel em driver was updated. Network performance was greatly
502 increased on many systems. Additional models are supported.
503
504 The ATA driver was patched to fix a potential deadlock.
505
506 Bind was patched to fix a potential denial of service condition.
507
508 20060817:
509 ksh has been added to the base system. If you previously had
510 the port installed, it will be overwritten on the next buildworld.
511
512
513
514 To build a kernel
515 -----------------
516 If you are updating from a prior version of MidnightBSD (even one just
517 a few days old), you should follow this procedure. With a
518 /usr/obj tree with a fresh buildworld,
519 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
520 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
521
522 To test a kernel once
523 ---------------------
524 If you just want to boot a kernel once (because you are not sure
525 if it works, or if you want to boot a known bad kernel to provide
526 debugging information) run
527 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
528 nextboot -k testkernel
529
530 To just build a kernel when you know that it won't mess you up
531 --------------------------------------------------------------
532 This assumes you are already running a 6.X system. Replace
533 ${arch} with the architecture of your machine (e.g. "i386",
534 "amd64", "ia64", "pc98", "sparc64", etc).
535
536 cd src/sys/${arch}/conf
537 config KERNEL_NAME_HERE
538 cd ../compile/KERNEL_NAME_HERE
539 make depend
540 make
541 make install
542
543 If this fails, go to the "To build a kernel" section.
544
545 To rebuild everything and install it on the current system.
546 -----------------------------------------------------------
547 # Note: sometimes if you are running current you gotta do more than
548 # is listed here if you are upgrading from a really old current.
549
550 <make sure you have good level 0 dumps>
551 make buildworld
552 make kernel KERNCONF=YOUR_KERNEL_HERE
553 [1]
554 <reboot in single user> [3]
555 mergemaster -p [5]
556 make installworld
557 make delete-old
558 mergemaster [4]
559 <reboot>
560
561
562 To cross-install current onto a separate partition
563 --------------------------------------------------
564 # In this approach we use a separate partition to hold
565 # current's root, 'usr', and 'var' directories. A partition
566 # holding "/", "/usr" and "/var" should be about 2GB in
567 # size.
568
569 <make sure you have good level 0 dumps>
570 <boot into -stable>
571 make buildworld
572 make buildkernel KERNCONF=YOUR_KERNEL_HERE
573 <maybe newfs current's root partition>
574 <mount current's root partition on directory ${CURRENT_ROOT}>
575 make installworld DESTDIR=${CURRENT_ROOT}
576 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
577 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
578 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
579 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
580 <reboot into current>
581 <do a "native" rebuild/install as described in the previous section>
582 <maybe install compatibility libraries from src/lib/compat>
583 <reboot>
584
585
586 To upgrade in-place from 5.x-stable or higher to 6.x-stable
587 -----------------------------------------------------------
588 <make sure you have good level 0 dumps>
589 make buildworld [9]
590 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
591 [1]
592 <reboot in single user> [3]
593 mergemaster -p [5]
594 make installworld
595 make delete-old
596 mergemaster -i [4]
597 <reboot>
598
599 Make sure that you've read the UPDATING file to understand the
600 tweaks to various things you need. At this point in the life
601 cycle of current, things change often and you are on your own
602 to cope. The defaults can also change, so please read ALL of
603 the UPDATING entries.
604
605 Also, if you are tracking -current, you must be subscribed to
606 freebsd-current@freebsd.org. Make sure that before you update
607 your sources that you have read and understood all the recent
608 messages there. If in doubt, please track -stable which has
609 much fewer pitfalls.
610
611 [1] If you have third party modules, such as vmware, you
612 should disable them at this point so they don't crash your
613 system on reboot.
614
615 [3] From the bootblocks, boot -s, and then do
616 fsck -p
617 mount -u /
618 mount -a
619 cd src
620 adjkerntz -i # if CMOS is wall time
621 Also, when doing a major release upgrade, it is required that
622 you boot into single user mode to do the installworld.
623
624 [4] Note: This step is non-optional. Failure to do this step
625 can result in a significant reduction in the functionality of the
626 system. Attempting to do it by hand is not recommended and those
627 that pursue this avenue should read this file carefully, as well
628 as the archives of freebsd-current and freebsd-hackers mailing lists
629 for potential gotchas.
630
631 [5] Usually this step is a noop. However, from time to time
632 you may need to do this if you get unknown user in the following
633 step. It never hurts to do it all the time.
634
635 [8] In order to have a kernel that can run the 5.x binaries
636 needed to do an installworld, you must include the COMPAT_FREEBSD5
637 option in your kernel. Failure to do so may leave you with a system
638 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
639 is required to run the 5.x binaries on more recent kernels.
640
641 Make sure that you merge any new devices from GENERIC since the
642 last time you updated your kernel config file.
643
644 [9] When checking out sources, you must include the -P flag to have
645 cvs prune empty directories.
646
647 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
648 "?=" instead of the "=" assignment operator, so that buildworld can
649 override the CPUTYPE if it needs to.
650
651 MAKEOBJDIRPREFIX must be defined in an environment variable, and
652 not on the command line, or in /etc/make.conf. buildworld will
653 warn if it is improperly defined.
654
655 Copyright information:
656
657 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
658
659 Redistribution, publication, translation and use, with or without
660 modification, in full or in part, in any form or format of this
661 document are permitted without further permission from the author.
662
663 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
664 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
665 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
666 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
667 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
668 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
669 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
670 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
671 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
672 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
673 POSSIBILITY OF SUCH DAMAGE.
674
675 If you find this document useful, and you want to, you may buy the
676 author a beer.
677
678 Contact Warner Losh if you have any questions about your use of
679 this document.
680
681 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
682 $MidnightBSD: src/UPDATING,v 1.53 2009/03/27 21:17:12 laffer1 Exp $

Properties

Name Value
cvs2svn:cvs-rev 1.54