ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 2360
Committed: Thu Dec 4 14:50:47 2008 UTC (15 years, 5 months ago) by laffer1
File size: 18934 byte(s)
Log Message:
Explain the progress we've made in the last few months.  Still more to do.

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

Properties

Name Value
cvs2svn:cvs-rev 1.44