ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 1724
Committed: Thu Jul 3 23:59:13 2008 UTC (15 years, 10 months ago) by laffer1
File size: 17999 byte(s)
Log Message:
Mention pcc fix.

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.41