ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 886
Committed: Mon Apr 2 00:48:03 2007 UTC (17 years, 1 month ago) by archite
File size: 11741 byte(s)
Log Message:
Importing propolice into MidnightBSD. Propolice is going to
provide us with much greater security and stability in the
long run. If upgrading from a pre-propolice system, please
follow the these instructions:

cd /usr/src/lib/libc && make obj && make && make install
cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
buildworld and kernel

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

Properties

Name Value
cvs2svn:cvs-rev 1.16