ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 1060
Committed: Thu Jul 19 15:22:57 2007 UTC (16 years, 10 months ago) by laffer1
File size: 13311 byte(s)
Log Message:
Mention cpdup import

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

Properties

Name Value
cvs2svn:cvs-rev 1.23