ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 2399
Committed: Sun Dec 7 04:10:26 2008 UTC (15 years, 6 months ago) by laffer1
File size: 19675 byte(s)
Log Message:
Explain the status of batt(1), and ongoing work.

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

Properties

Name Value
cvs2svn:cvs-rev 1.45