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