ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Download File | Root Listing
root/midnightbsd-cvs/src/UPDATING
Revision: 1.20.2.5
Committed: Tue Sep 11 22:43:44 2007 UTC (16 years, 8 months ago) by laffer1
Branch: RELENG_0_1
Changes since 1.20.2.4: +4 -1 lines
Log Message:
forgot to mention libpthread fix.

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 20070911:
7 libpthread output intended as an error is now written to
8 stderr instead of stdout.
9
10 bzip2 updated to 1.0.4
11
12 find:
13 Add -Btime, -Bnewer, -Bmin, -newerB[Bacmt], -newer[acmt]B options to
14 work with the st_birthtime field of struct stat.
15
16 'B' has been chosen to match the format specifier from stat(1).
17
18 20070810:
19 src/usr.sbin/pkg_install was updated to work with
20 mports properly. If you get errors with plists
21 with lines about dirrmtry, this will fix it.
22
23 20070806:
24 /usr/share/mk/bsd.port.mk was not merged from current
25 before 0.1 was released. This caused the wrong
26 file in /usr/mport/mk to be sourced when a port's
27 makefile sourced bsd.port.mk. Many ports where broken as
28 a result.
29
30
31 20070804:
32 0.1-RELEASE
33
34 BIND 9.3.4-p1 security patch.
35
36 Tcpdump was patched.
37
38 20070406:
39 Back out propolice. propolice caused several problems
40 with our threading libraries libthr and libpthread.
41 curthread was often NULL after the patch and many
42 multithreaded applications would crash. We plan to
43 work on either bringing in gcc 4.1 or developing a new
44 patch which also corrects our threading issues later.
45
46 It is more important to have a stable system for our
47 mport work and other projects at this time.
48
49 This is not a clean removal. It is recommended that you
50 have a recently SNAP CD handy. You can either reinstall
51 or perform a make buildworld and make buildkernel and
52 make installkernel. Reboot on the cd and copy the contents
53 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
54 /usr/lib, and /usr/libexec to the respective directories on
55 your disk. Then you should be able to boot into single user
56 mode and run make installworld. You will need to run
57 chflags noschg on some of the files if you can't overwrite
58 them.
59
60 You will get __guard missing errors since we had to remove
61 this from libc.
62
63 You will need to rebuild any ports built while propolice was
64 installed.
65
66 20070401:
67 Importing propolice into MidnightBSD. Propolice is going to
68 provide us with much greater security and stability in the
69 long run. If upgrading from a pre-propolice system, please
70 follow the these instructions:
71
72 cd /usr/src/lib/libc && make obj && make && make install
73 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
74 cd /usr/src/lib/libpthread && make obj && make && make install
75 cd /usr/src/lib/libthr && make obj && make && make install
76 buildworld and kernel
77
78 It is adviced that any mports which were installed and/or built
79 prior to the propolice update also be updated. If any errors
80 or issue are encounted, please contact security@midnightbsd.org
81 and we will be sure to investigate and come up with an expeditious
82 fix.
83
84 20070314:
85 Remove send-pr from src.
86
87 Switch to NetBSD's gzip.
88
89 Bump MBSD minor revision.
90
91 20070313:
92 Imported OpenSSH 4.6p1.
93
94 Imported FreeBSD's libarchive and updated tar to work with it.
95
96 Disabled debug statements cluttering up /var/log/messages for
97 the tcp autobuf patch applied previously.
98
99 20070312:
100 Synced several audio changes from FreeBSD 6.1. Removed the
101 BSD Daemon files from src/share.
102
103 20070308:
104 Added mfi which supports LSI Logic MegaRAID SAS devices including
105 the Dell perc5i.
106
107 20070206:
108 Imported OpenBSD's sudo into source. Please install
109 /usr/src/usr.bin/sudo/lib first before building.
110
111 Those who install from a snapshot after this date
112 will not be effected.
113
114 20070119:
115 Added audit group. Be sure to add audit to your /etc/group file
116 before installing world.
117
118 hostapd was updated to 0.4.8.
119
120 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
121 unbreak world.
122
123 wpa_supplicant was updated.
124
125 For stability and compatibility reasons, it was decided that MidnightBSD
126 sync with FreeBSD 6.1 Release. Nearly every change between the original
127 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
128 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
129 will not sync every little change with FreeBSD.
130
131 20061231:
132 Updated COPYRIGHT for 2007.
133
134 Updated and bumped libutil after importing NetBSD efun(3) functions.
135
136 Added MidnightBSD_version and bumped the FreeBSD version as we've
137 synced all commits between the fork and that version. It is now safe
138 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
139 Feb 26, 2006.
140
141 Added spell(1) and deroff(1) from NetBSD. Also added additional
142 dict files to work with it. /usr/share/dict/american,
143 /usr/share/dict/british and /usr/share/dict/special/math
144
145 Numerous man page and bug fixes.
146
147 20061226:
148 Setup /usr/share/examples/cvsup SUPfiles for the new
149 MidnightBSD CVSup server.
150
151 Fix a bug in burncd where it would continue forever while
152 erasing CDRW media.
153
154 Add csup to /usr/bin. csup is a CVSup replacement written
155 in C.
156
157 Fixed a bug with bsnmpd build from Oct 30.
158
159 Corrected some race conditions and fixed a few bugs in
160 geom. Imported changes from FreeBSD RELENG_6.
161
162 20061225:
163 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
164 that caused long double to long and long long
165 conversion of negative numbers to always result in -1.
166
167 20061221:
168 Fixed acpi_battery.c to not report an ERROR if no
169 batteries are present.
170
171 Performed some minor updates on the RL and RE NIC drivers.
172 RL should no longer panic when trying to print errors.
173
174 Corrected a bug with TTY.
175
176 20061218:
177 Corrected a bug with libpthread where newly created suspended
178 threads don't get scheduled.
179
180 20061206:
181 Fixed a typo with the firewire security patch.
182
183 20061129:
184 Minor cleanups to utilities in bin.
185
186 Fixed msdos file system short file name behavior to match
187 FreeBSD.
188
189 20061031:
190 Updated man pages in section 7.
191
192 20061030:
193 Updated sys/dev/drm to support intel 915 and radeon
194 r300 cards properly.
195
196 Synced snmpd with FreeBSD-stable.
197
198 Fixed a bug in rm which could cause data loss.
199
200 20061027:
201 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
202 random, kbdmux, atkbd, and usb were updated. Changes
203 to clearing registers on SSE enabled processors (i386)
204 commited.
205
206 lukemftpd updated.
207
208 openssh rc script was altered which effects initial
209 seeding.
210
211 20061014:
212 Workaround for em driver problem on shared IRQ.
213
214 Started removal of alpha support.
215
216 20061013:
217 ATA driver was updated. USB/USB1/USB2 types added.
218
219 20061010:
220 OpenSSH was updated to 4.4p1.
221
222 20060909:
223 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
224 the old ntpd daemon.
225
226 cat has a new option -D which allows you to timestamp output
227 on a per line basis.
228
229 The kernel has a keyboard mux which allows you to have multiple
230 keyboard connected simultaneously. USB keyboard support was also
231 improved with this patch.
232
233 The Intel em driver was updated. Network performance was greatly
234 increased on many systems. Additional models are supported.
235
236 The ATA driver was patched to fix a potential deadlock.
237
238 Bind was patched to fix a potential denial of service condition.
239
240 20060817:
241 ksh has been added to the base system. If you previously had
242 the port installed, it will be overwritten on the next buildworld.
243
244
245
246 To build a kernel
247 -----------------
248 If you are updating from a prior version of MidnightBSD (even one just
249 a few days old), you should follow this procedure. With a
250 /usr/obj tree with a fresh buildworld,
251 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
252 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
253
254 To test a kernel once
255 ---------------------
256 If you just want to boot a kernel once (because you are not sure
257 if it works, or if you want to boot a known bad kernel to provide
258 debugging information) run
259 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
260 nextboot -k testkernel
261
262 To just build a kernel when you know that it won't mess you up
263 --------------------------------------------------------------
264 This assumes you are already running a 6.X system. Replace
265 ${arch} with the architecture of your machine (e.g. "i386",
266 "amd64", "ia64", "pc98", "sparc64", etc).
267
268 cd src/sys/${arch}/conf
269 config KERNEL_NAME_HERE
270 cd ../compile/KERNEL_NAME_HERE
271 make depend
272 make
273 make install
274
275 If this fails, go to the "To build a kernel" section.
276
277 To rebuild everything and install it on the current system.
278 -----------------------------------------------------------
279 # Note: sometimes if you are running current you gotta do more than
280 # is listed here if you are upgrading from a really old current.
281
282 <make sure you have good level 0 dumps>
283 make buildworld
284 make kernel KERNCONF=YOUR_KERNEL_HERE
285 [1]
286 <reboot in single user> [3]
287 mergemaster -p [5]
288 make installworld
289 make delete-old
290 mergemaster [4]
291 <reboot>
292
293
294 To cross-install current onto a separate partition
295 --------------------------------------------------
296 # In this approach we use a separate partition to hold
297 # current's root, 'usr', and 'var' directories. A partition
298 # holding "/", "/usr" and "/var" should be about 2GB in
299 # size.
300
301 <make sure you have good level 0 dumps>
302 <boot into -stable>
303 make buildworld
304 make buildkernel KERNCONF=YOUR_KERNEL_HERE
305 <maybe newfs current's root partition>
306 <mount current's root partition on directory ${CURRENT_ROOT}>
307 make installworld DESTDIR=${CURRENT_ROOT}
308 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
309 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
310 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
311 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
312 <reboot into current>
313 <do a "native" rebuild/install as described in the previous section>
314 <maybe install compatibility libraries from src/lib/compat>
315 <reboot>
316
317
318 To upgrade in-place from 5.x-stable or higher to 6.x-stable
319 -----------------------------------------------------------
320 <make sure you have good level 0 dumps>
321 make buildworld [9]
322 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
323 [1]
324 <reboot in single user> [3]
325 mergemaster -p [5]
326 make installworld
327 make delete-old
328 mergemaster -i [4]
329 <reboot>
330
331 Make sure that you've read the UPDATING file to understand the
332 tweaks to various things you need. At this point in the life
333 cycle of current, things change often and you are on your own
334 to cope. The defaults can also change, so please read ALL of
335 the UPDATING entries.
336
337 Also, if you are tracking -current, you must be subscribed to
338 freebsd-current@freebsd.org. Make sure that before you update
339 your sources that you have read and understood all the recent
340 messages there. If in doubt, please track -stable which has
341 much fewer pitfalls.
342
343 [1] If you have third party modules, such as vmware, you
344 should disable them at this point so they don't crash your
345 system on reboot.
346
347 [3] From the bootblocks, boot -s, and then do
348 fsck -p
349 mount -u /
350 mount -a
351 cd src
352 adjkerntz -i # if CMOS is wall time
353 Also, when doing a major release upgrade, it is required that
354 you boot into single user mode to do the installworld.
355
356 [4] Note: This step is non-optional. Failure to do this step
357 can result in a significant reduction in the functionality of the
358 system. Attempting to do it by hand is not recommended and those
359 that pursue this avenue should read this file carefully, as well
360 as the archives of freebsd-current and freebsd-hackers mailing lists
361 for potential gotchas.
362
363 [5] Usually this step is a noop. However, from time to time
364 you may need to do this if you get unknown user in the following
365 step. It never hurts to do it all the time.
366
367 [8] In order to have a kernel that can run the 5.x binaries
368 needed to do an installworld, you must include the COMPAT_FREEBSD5
369 option in your kernel. Failure to do so may leave you with a system
370 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
371 is required to run the 5.x binaries on more recent kernels.
372
373 Make sure that you merge any new devices from GENERIC since the
374 last time you updated your kernel config file.
375
376 [9] When checking out sources, you must include the -P flag to have
377 cvs prune empty directories.
378
379 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
380 "?=" instead of the "=" assignment operator, so that buildworld can
381 override the CPUTYPE if it needs to.
382
383 MAKEOBJDIRPREFIX must be defined in an environment variable, and
384 not on the command line, or in /etc/make.conf. buildworld will
385 warn if it is improperly defined.
386
387 Copyright information:
388
389 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
390
391 Redistribution, publication, translation and use, with or without
392 modification, in full or in part, in any form or format of this
393 document are permitted without further permission from the author.
394
395 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
396 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
397 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
398 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
399 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
400 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
401 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
402 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
403 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
404 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
405 POSSIBILITY OF SUCH DAMAGE.
406
407 If you find this document useful, and you want to, you may buy the
408 author a beer.
409
410 Contact Warner Losh if you have any questions about your use of
411 this document.
412
413 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
414 $MidnightBSD: src/UPDATING,v 1.20.2.4 2007/09/11 22:42:07 laffer1 Exp $