Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Creating branch matt-timespec

  • Loading branch information...
commit 47703e50cf97eda6507a339fc9cddb450f9dd72c 1 parent 03d24d8
cvs authored
Showing with 0 additions and 38,425 deletions.
  1. +0 −711 BUILDING
  2. +0 −395 Makefile
  3. +0 −16 Makefile.inc
  4. +0 −828 UPDATING
  5. +0 −8 bin/Makefile
  6. +0 −11 bin/Makefile.inc
  7. +0 −6 bin/cat/Makefile
  8. +0 −159 bin/cat/cat.1
  9. +0 −311 bin/cat/cat.c
  10. +0 −5 bin/chio/Makefile
  11. +0 −263 bin/chio/chio.1
  12. +0 −863 bin/chio/chio.c
  13. +0 −69 bin/chio/defs.h
  14. +0 −45 bin/chio/pathnames.h
  15. +0 −6 bin/chmod/Makefile
  16. +0 −290 bin/chmod/chmod.1
  17. +0 −214 bin/chmod/chmod.c
  18. +0 −7 bin/cp/Makefile
  19. +0 −220 bin/cp/cp.1
  20. +0 −504 bin/cp/cp.c
  21. +0 −60 bin/cp/extern.h
  22. +0 −334 bin/cp/utils.c
  23. +0 −52 bin/csh/Makefile
  24. +0 −12 bin/csh/USD.doc/Makefile
  25. +0 −1,010 bin/csh/USD.doc/csh.1
  26. +0 −1,303 bin/csh/USD.doc/csh.2
  27. +0 −648 bin/csh/USD.doc/csh.3
  28. +0 −176 bin/csh/USD.doc/csh.4
  29. +0 −93 bin/csh/USD.doc/csh.a
  30. +0 −1,719 bin/csh/USD.doc/csh.g
  31. +0 −32 bin/csh/USD.doc/tabs
  32. +0 −117 bin/csh/alloc.c
  33. +0 −314 bin/csh/char.c
  34. +0 −99 bin/csh/char.h
  35. +0 −163 bin/csh/const.c
  36. +0 −2,299 bin/csh/csh.1
  37. +0 −1,360 bin/csh/csh.c
  38. +0 −554 bin/csh/csh.h
  39. +0 −900 bin/csh/dir.c
  40. +0 −48 bin/csh/dir.h
  41. +0 −961 bin/csh/dol.c
  42. +0 −388 bin/csh/err.c
  43. +0 −745 bin/csh/exec.c
  44. +0 −661 bin/csh/exp.c
  45. +0 −334 bin/csh/extern.h
  46. +0 −726 bin/csh/file.c
  47. +0 −1,449 bin/csh/func.c
  48. +0 −921 bin/csh/glob.c
  49. +0 −183 bin/csh/hist.c
  50. +0 −132 bin/csh/init.c
  51. +0 −1,582 bin/csh/lex.c
  52. +0 −405 bin/csh/misc.c
  53. +0 −640 bin/csh/parse.c
  54. +0 −44 bin/csh/pathnames.h
  55. +0 −1,359 bin/csh/proc.c
  56. +0 −104 bin/csh/proc.h
  57. +0 −645 bin/csh/sem.c
  58. +0 −793 bin/csh/set.c
  59. +0 −438 bin/csh/str.c
  60. +0 −97 bin/csh/strpct.c
  61. +0 −273 bin/csh/time.c
  62. +0 −9 bin/date/Makefile
  63. +0 −225 bin/date/date.1
  64. +0 −239 bin/date/date.c
  65. +0 −39 bin/date/extern.h
  66. +0 −192 bin/date/netdate.c
  67. +0 −15 bin/dd/Makefile
  68. +0 −350 bin/dd/args.c
  69. +0 −283 bin/dd/conv.c
  70. +0 −287 bin/dd/conv_tab.c
  71. +0 −385 bin/dd/dd.1
  72. +0 −556 bin/dd/dd.c
  73. +0 −91 bin/dd/dd.h
  74. +0 −67 bin/dd/extern.h
  75. +0 −123 bin/dd/misc.c
  76. +0 −183 bin/dd/position.c
  77. +0 −10 bin/df/Makefile
  78. +0 −182 bin/df/df.1
  79. +0 −414 bin/df/df.c
  80. +0 −6 bin/domainname/Makefile
  81. +0 −65 bin/domainname/domainname.1
  82. +0 −96 bin/domainname/domainname.c
  83. +0 −6 bin/echo/Makefile
  84. +0 −68 bin/echo/echo.1
  85. +0 −76 bin/echo/echo.c
  86. +0 −20 bin/ed/Makefile
  87. +0 −103 bin/ed/POSIX
  88. +0 −24 bin/ed/README
  89. +0 −312 bin/ed/buf.c
  90. +0 −454 bin/ed/cbc.c
  91. +0 −976 bin/ed/ed.1
  92. +0 −298 bin/ed/ed.h
  93. +0 −226 bin/ed/glbl.c
  94. +0 −356 bin/ed/io.c
  95. +0 −1,416 bin/ed/main.c
  96. +0 −135 bin/ed/re.c
  97. +0 −260 bin/ed/sub.c
  98. +0 −1  bin/ed/test/=.err
  99. +0 −28 bin/ed/test/Makefile
  100. +0 −32 bin/ed/test/README
  101. +0 −17 bin/ed/test/TODO
  102. +0 −5 bin/ed/test/a.d
  103. +0 −8 bin/ed/test/a.r
  104. +0 −9 bin/ed/test/a.t
  105. +0 −3  bin/ed/test/a1.err
  106. +0 −3  bin/ed/test/a2.err
  107. +0 −9 bin/ed/test/addr.d
  108. +0 −2  bin/ed/test/addr.r
  109. +0 −5 bin/ed/test/addr.t
  110. +0 −1  bin/ed/test/addr1.err
  111. +0 −1  bin/ed/test/addr2.err
  112. BIN  bin/ed/test/ascii.d
  113. BIN  bin/ed/test/ascii.r
  114. 0  bin/ed/test/ascii.t
  115. 0  bin/ed/test/bang1.d
  116. +0 −1  bin/ed/test/bang1.err
  117. +0 −1  bin/ed/test/bang1.r
  118. +0 −5 bin/ed/test/bang1.t
  119. +0 −1  bin/ed/test/bang2.err
  120. +0 −5 bin/ed/test/c.d
  121. +0 −4 bin/ed/test/c.r
  122. +0 −12 bin/ed/test/c.t
  123. +0 −3  bin/ed/test/c1.err
  124. +0 −3  bin/ed/test/c2.err
  125. +0 −37 bin/ed/test/ckscripts.sh
  126. +0 −5 bin/ed/test/d.d
  127. +0 −1  bin/ed/test/d.err
  128. +0 −1  bin/ed/test/d.r
  129. +0 −3  bin/ed/test/d.t
  130. +0 −1  bin/ed/test/e1.d
  131. +0 −1  bin/ed/test/e1.err
  132. +0 −1  bin/ed/test/e1.r
  133. +0 −1  bin/ed/test/e1.t
  134. +0 −1  bin/ed/test/e2.d
  135. +0 −1  bin/ed/test/e2.err
  136. +0 −1  bin/ed/test/e2.r
  137. +0 −1  bin/ed/test/e2.t
  138. +0 −1  bin/ed/test/e3.d
  139. +0 −1  bin/ed/test/e3.err
  140. +0 −1  bin/ed/test/e3.r
  141. +0 −1  bin/ed/test/e3.t
  142. +0 −1  bin/ed/test/e4.d
  143. +0 −1  bin/ed/test/e4.r
  144. +0 −1  bin/ed/test/e4.t
  145. +0 −1  bin/ed/test/f1.err
  146. +0 −1  bin/ed/test/f2.err
  147. +0 −5 bin/ed/test/g1.d
  148. +0 −1  bin/ed/test/g1.err
  149. +0 −15 bin/ed/test/g1.r
  150. +0 −6 bin/ed/test/g1.t
  151. +0 −5 bin/ed/test/g2.d
  152. +0 −1  bin/ed/test/g2.err
  153. +0 −1  bin/ed/test/g2.r
  154. +0 −2  bin/ed/test/g2.t
  155. +0 −5 bin/ed/test/g3.d
  156. +0 −1  bin/ed/test/g3.err
  157. +0 −5 bin/ed/test/g3.r
  158. +0 −4 bin/ed/test/g3.t
  159. +0 −5 bin/ed/test/g4.d
  160. +0 −7 bin/ed/test/g4.r
  161. +0 −13 bin/ed/test/g4.t
  162. +0 −3  bin/ed/test/g5.d
  163. +0 −9 bin/ed/test/g5.r
  164. +0 −2  bin/ed/test/g5.t
  165. +0 −1  bin/ed/test/h.err
  166. +0 −5 bin/ed/test/i.d
  167. +0 −8 bin/ed/test/i.r
  168. +0 −9 bin/ed/test/i.t
  169. +0 −3  bin/ed/test/i1.err
  170. +0 −3  bin/ed/test/i2.err
  171. +0 −3  bin/ed/test/i3.err
  172. +0 −5 bin/ed/test/j.d
  173. +0 −4 bin/ed/test/j.r
  174. +0 −2  bin/ed/test/j.t
  175. +0 −5 bin/ed/test/k.d
  176. +0 −5 bin/ed/test/k.r
  177. +0 −10 bin/ed/test/k.t
  178. +0 −1  bin/ed/test/k1.err
  179. +0 −1  bin/ed/test/k2.err
  180. +0 −1  bin/ed/test/k3.err
  181. +0 −6 bin/ed/test/k4.err
  182. 0  bin/ed/test/l.d
  183. 0  bin/ed/test/l.r
  184. 0  bin/ed/test/l.t
  185. +0 −5 bin/ed/test/m.d
  186. +0 −4 bin/ed/test/m.err
  187. +0 −5 bin/ed/test/m.r
  188. +0 −7 bin/ed/test/m.t
  189. +0 −75 bin/ed/test/mkscripts.sh
  190. 0  bin/ed/test/n.d
  191. 0  bin/ed/test/n.r
  192. 0  bin/ed/test/n.t
  193. +0 −1  bin/ed/test/nl.err
  194. +0 −5 bin/ed/test/nl1.d
  195. +0 −8 bin/ed/test/nl1.r
  196. +0 −8 bin/ed/test/nl1.t
  197. +0 −5 bin/ed/test/nl2.d
  198. +0 −6 bin/ed/test/nl2.r
  199. +0 −4 bin/ed/test/nl2.t
  200. 0  bin/ed/test/p.d
  201. 0  bin/ed/test/p.r
  202. 0  bin/ed/test/p.t
  203. 0  bin/ed/test/q.d
  204. 0  bin/ed/test/q.r
  205. +0 −5 bin/ed/test/q.t
  206. +0 −1  bin/ed/test/q1.err
  207. +0 −5 bin/ed/test/r1.d
  208. +0 −1  bin/ed/test/r1.err
  209. +0 −7 bin/ed/test/r1.r
  210. +0 −3  bin/ed/test/r1.t
  211. +0 −5 bin/ed/test/r2.d
  212. +0 −1  bin/ed/test/r2.err
  213. +0 −10 bin/ed/test/r2.r
  214. +0 −1  bin/ed/test/r2.t
  215. +0 −1  bin/ed/test/r3.d
  216. +0 −2  bin/ed/test/r3.r
  217. +0 −1  bin/ed/test/r3.t
  218. +0 −5 bin/ed/test/s1.d
  219. +0 −1  bin/ed/test/s1.err
  220. +0 −5 bin/ed/test/s1.r
  221. +0 −6 bin/ed/test/s1.t
  222. +0 −4 bin/ed/test/s10.err
  223. +0 −5 bin/ed/test/s2.d
  224. +0 −4 bin/ed/test/s2.err
  225. +0 −5 bin/ed/test/s2.r
  226. +0 −4 bin/ed/test/s2.t
  227. 0  bin/ed/test/s3.d
  228. +0 −1  bin/ed/test/s3.err
  229. +0 −1  bin/ed/test/s3.r
  230. +0 −6 bin/ed/test/s3.t
  231. +0 −1  bin/ed/test/s4.err
  232. +0 −1  bin/ed/test/s5.err
  233. +0 −1  bin/ed/test/s6.err
  234. +0 −5 bin/ed/test/s7.err
  235. +0 −4 bin/ed/test/s8.err
  236. +0 −4 bin/ed/test/s9.err
  237. +0 −5 bin/ed/test/t.d
  238. +0 −16 bin/ed/test/t.r
  239. +0 −5 bin/ed/test/t1.d
  240. +0 −1  bin/ed/test/t1.err
  241. +0 −16 bin/ed/test/t1.r
  242. +0 −3  bin/ed/test/t1.t
  243. +0 −5 bin/ed/test/t2.d
  244. +0 −1  bin/ed/test/t2.err
  245. +0 −6 bin/ed/test/t2.r
  246. +0 −1  bin/ed/test/t2.t
  247. +0 −5 bin/ed/test/u.d
  248. +0 −1  bin/ed/test/u.err
  249. +0 −9 bin/ed/test/u.r
  250. +0 −31 bin/ed/test/u.t
  251. +0 −5 bin/ed/test/v.d
  252. +0 −11 bin/ed/test/v.r
  253. +0 −6 bin/ed/test/v.t
  254. +0 −5 bin/ed/test/w.d
  255. +0 −10 bin/ed/test/w.r
  256. +0 −2  bin/ed/test/w.t
  257. +0 −1  bin/ed/test/w1.err
  258. +0 −1  bin/ed/test/w2.err
  259. +0 −1  bin/ed/test/w3.err
  260. +0 −1  bin/ed/test/x.err
  261. +0 −2  bin/ed/test/z.err
Sorry, we could not display the entire diff because too many files (56,852) changed.
711 BUILDING
View
@@ -1,711 +0,0 @@
-BUILDING(8) NetBSD System Manager's Manual BUILDING(8)
-
-NAME
- BUILDING -- Procedure for building NetBSD from source code.
-
-STATUS
- This document is a work-in-progress. As such, the information described
- here may not match the reality of the build system as of this writing.
- Once this document is completely in sync with reality, this paragraph
- will be removed.
-
- Discrepancies between this documentation and the current reality of
- implementation are noted specially, as with the note below:
-
- Note: This document applies only to platforms which use the new toolchain
- as indicated by the default setting of TOOLCHAIN_MISSING in <bsd.own.mk>.
- Platforms which have not yet been switched to the new toolchain should
- continue building traditionally, using the notes specified in the file
- UPDATING.
-
-REQUIREMENTS
- NetBSD is designed to be buildable on most POSIX-compliant host systems.
- The basic build procedure is the same whether compiling natively (on the
- same NetBSD architecture) or cross compiling (on another architecture or
- OS).
-
- This source tree contains a special subtree, ``tools'', which uses the
- host system to create a build toolchain for the target architecture. The
- host system must have at least C and C++ compilers in order to create the
- toolchain (make is not required); all other tools are created as part of
- the NetBSD build process. (See the environment variables section below
- if you need to override or manually select your compilers.)
-
-FILES
- Source tree layout
- doc/BUILDING.mdoc
- This document (in -mdoc troff format; the original copy).
-
- BUILDING This document (in plaintext).
-
- tools/compat/README
- Special notes for cross-hosting a NetBSD build on non-
- NetBSD platforms.
-
- Makefile The main Makefile for NetBSD; should only be run for
- native builds with an appropriately up-to-date version of
- NetBSD make(1). (For building from out-of-date systems or
- on a non-native host, see the build.sh shell script.)
-
- UPDATING Special notes for updating from an earlier revision of
- NetBSD. It is important to read this file before every
- build of an updated source tree.
-
- build.sh Bourne-compatible shell script used for building the host
- build tools and the NetBSD system from scratch. Can be
- used for both native and cross builds, and should be used
- instead of make(1) for any source tree that is updated and
- recompiled regularly.
-
- crypto/dist/, dist/, gnu/dist/
- Sources imported verbatim from third parties, without man-
- gling the existing build structure. Other source trees in
- bin through usr.sbin use the NetBSD make(1) ``reachover''
- Makefile semantics when building these programs for a
- native host.
-
- distrib/, etc/
- Sources for items used when making a full release snap-
- shot, such as files installed in DESTDIR/etc on the desti-
- nation system, boot media, and release notes.
-
- regress/ Regression test harness. Can be cross-compiled, but only
- run natively.
-
- sys/ NetBSD kernel sources.
-
- tools/ ``Reachover'' build structure for the host build tools.
- This has a special method of determining out-of-date sta-
- tus.
-
- bin/ ... usr.sbin/
- Sources to the NetBSD userland (non-kernel) programs. If
- any of these directories are missing, they will be skipped
- during the build.
-
- x11/ ``Reachover'' build structure for X11R6; the source is in
- X11SRCDIR.
-
- Build tree layout
- The NetBSD build tree is described in hier(7), and the release layout is
- described in release(7).
-
-CONFIGURATION
- Environment variables
- Several environment variables control the behaviour of NetBSD builds.
-
- HOST_CC Path name to C compiler used to create the toolchain.
-
- HOST_CXX Path name to C++ compiler used to create the toolchain.
-
- MACHINE Machine type.
-
- MACHINE_ARCH Machine architecture.
-
- MAKE Path name to invoke make(1) as.
-
- MAKEFLAGS Flags to invoke make(1) with.
-
- MAKEOBJDIR Directory to use as the .OBJDIR for the current direc-
- tory. Used only if MAKEOBJDIRPREFIX is not defined.
- MAKEOBJDIR can only be provided in the environment or
- via the -O flag of build.sh.
-
- MAKEOBJDIRPREFIX Top level directory of the object directory tree. If
- this is defined, ${MAKEOBJDIRPREFIX}/${.CURDIR} is used
- as the .OBJDIR for the current directory. The current
- directory may be read only. MAKEOBJDIRPREFIX can only
- be provided in the environment or via the -M flag of
- build.sh.
-
- "make" variables
- Several variables control the behavior of NetBSD builds. Unless other-
- wise specified, these variables may be set in either the process environ-
- ment or the make(1) configuration file specified by MAKECONF.
-
- BUILDID Identifier for the build. The identifier will be appended to
- object directory names, and can be consulted in the make(1)
- configuration file in order to set additional build parame-
- ters, such as compiler flags.
-
- DESTDIR Directory to contain the built NetBSD system. If set, spe-
- cial options are passed to the compilation tools to prevent
- their default use of the host system's /usr/include,
- /usr/lib, and so forth. This pathname should not end with a
- slash (/) character (for installation into the system's root
- directory, set DESTDIR to an empty string). The directory
- must reside on a file system which supports long file names
- and hard links.
-
- Default: Empty string if USETOOLS is ``yes''; unset other-
- wise.
-
- Note: build.sh will provide a default of destdir.MACHINE (in
- the top-level .OBJDIR) unless run in `expert' mode
-
- MAKECONF The name of the make(1) configuration file. Only settable in
- the process environment.
-
- Default: ``/etc/mk.conf''
-
- MAKEVERBOSE
- Level of verbosity of status messages. Supported values:
-
- 0 No descriptive messages are shown.
-
- 1 Descriptive messages are shown.
-
- 2 Descriptive messages (prefixed with a `#') and command
- output is not suppressed.
-
- Default: 2
-
- MKCATPAGES Can be set to ``yes'' or ``no''. Indicates whether prefor-
- matted plaintext manual pages will be created during a build.
-
- Default: ``yes''
-
- MKCRYPTO Can be set to ``yes'' or ``no''. Indicates whether crypto-
- graphic code will be included in a build; provided for the
- benefit of countries that do not allow strong cryptography.
- Will not affect use of the standard low-security password
- encryption system, crypt(3).
-
- Default: ``yes''
-
- MKDOC Can be set to ``yes'' or ``no''. Indicates whether system
- documentation destined for DESTDIR/usr/share/doc will be
- installed during a build.
-
- Default: ``yes''
-
- MKHOSTOBJ Can be set to ``yes'' or ``no''. If set to ``yes'', then for
- programs intended to be run on the compile host, the name,
- release, and architecture of the host operating system will
- be suffixed to the name of the object directory created by
- ``make obj''. (This allows multiple host systems to compile
- NetBSD for a single target.) If set to ``no'', then programs
- built to be run on the compile host will use the same object
- directory names as programs built to be run on the target.
-
- Default: ``no''
-
- MKINFO Can be set to ``yes'' or ``no''. Indicates whether GNU Info
- files, used for the documentation for most of the compilation
- tools, will be created and installed during a build.
-
- Default: ``yes''
-
- MKLINT Can be set to ``yes'' or ``no''. Indicates whether lint(1)
- will be run against portions of the NetBSD source code during
- the build, and whether lint libraries will be installed into
- DESTDIR/usr/libdata/lint.
-
- Default: ``yes''
-
- MKMAN Can be set to ``yes'' or ``no''. Indicates whether manual
- pages will be installed during a build.
-
- Default: ``yes''
-
- MKNLS Can be set to ``yes'' or ``no''. Indicates whether Native
- Language System locale zone files will be compiled and
- installed during a build.
-
- Default: ``yes''
-
- MKOBJ Can be set to ``yes'' or ``no''. Indicates whether object
- directories will be created when running ``make obj''. If
- set to ``no'', then all built files will be located inside
- the regular source tree.
-
- Default: ``yes''
-
- MKPIC Can be set to ``yes'' or ``no''. Indicates whether shared
- objects and libraries will be created and installed during a
- build. If set to ``no'', the entire built system will be
- statically linked.
-
- Default: Platform dependent. As of this writing, all plat-
- forms except sh3 default to ``yes''.
-
- MKPICINSTALL
- Can be set to ``yes'' or ``no''. Indicates whether the ar(1)
- format libraries (lib*_pic.a), used to generate shared
- libraries, are installed during a build.
-
- Default: ``yes''
-
- MKPROFILE Can be set to ``yes'' or ``no''. Indicates whether profiled
- libraries (lib*_p.a) will be built and installed during a
- build.
-
- Default: ``yes''; however, some platforms turn off MKPROFILE
- by default at times due to toolchain problems with profiled
- code.
-
- MKSHARE Can be set to ``yes'' or ``no''. Indicates whether files
- destined to reside in DESTDIR/usr/share will be built and
- installed during a build. If set to ``no'', then all of
- MKCATPAGES, MKDOC, MKINFO, MKMAN, and MKNLS will be set to
- ``no'' unconditionally.
-
- Default: ``yes''
-
- MKTTINTERP Can be set to ``yes'' or ``no''. For X builds, decides if
- the TrueType bytecode interpreter is turned on. See
- http://www.freetype.org/patents.html for details.
-
- Default: ``no''
-
- MKUNPRIVED Can be set to ``yes'' or ``no''. Indicates whether an
- unprivileged install will occur. The user, group, permis-
- sions, and file flags, will not be set on the installed
- items; instead the information will be appended to a file
- called METALOG in DESTDIR. The contents of METALOG are used
- during the generation of the distribution tar files to ensure
- that the appropriate file ownership is stored.
-
- Default: ``no''
-
- MKUPDATE Can be set to ``yes'' or ``no''. Indicates whether all
- install operations intended to write to DESTDIR will compare
- file timestamps before installing, and skip the install phase
- if the destination files are up-to-date. This also has
- implications on full builds (see next subsection).
-
- Default: ``no''
-
- MKX11 Can be set to ``yes'' or ``no''. Indicates whether X11R6 is
- built from X11SRCDIR.
-
- Default: ``no''
-
- TOOLDIR Directory to hold the host tools, once built. This directory
- should be unique to a given host system and NetBSD source
- tree. (However, multiple targets may share the same TOOLDIR;
- the target-dependent files have unique names.) If unset, a
- default based on the uname(1) information of the host plat-
- form will be created in the .OBJDIR of src.
-
- Default: Unset.
-
- USETOOLS Indicates whether the tools specified by TOOLDIR should be
- used as part of a build in progress. Must be set to ``yes''
- if cross-compiling.
-
- yes Use the tools from TOOLDIR.
-
- no Do not use the tools from TOOLDIR, but refuse to build
- native compilation tool components that are version-
- specific for that tool.
-
- never Do not use the tools from TOOLDIR, even when building
- native tool components. This is similar to the tradi-
- tional NetBSD build method, but does not verify that
- the compilation tools in use are up-to-date enough in
- order to build the tree successfully. This may cause
- build or runtime problems when building the whole
- NetBSD source tree.
-
- Default: ``yes'' if building all or part of a whole NetBSD
- source tree (detected automatically); ``no'' otherwise (to
- preserve traditional semantics of the <bsd.*.mk> make(1)
- include files).
-
- X11SRCDIR Directory containing the X11R6 source. The main X11R6 source
- is found in X11SRCDIR/xfree/xc.
-
- Default: ``/usr/xsrc''
-
- "make" variables for full builds
- These variables only affect the top level ``Makefile'' and do not affect
- manually building subtrees of the NetBSD source code.
-
- INSTALLWORLDDIR Location for the ``make installworld'' target to install
- to.
-
- Default: ``/''
-
- MKOBJDIRS Can be set to ``yes'' or ``no''. Indicates whether
- object directories will be created automatically (via a
- ``make obj'' pass) at the start of a build.
-
- Default: ``no''
-
- MKUPDATE Can be set to ``yes'' or ``no''. If set, then in addi-
- tion to the effects described for MKUPDATE=yes above,
- this implies the effects of NOCLEANDIR (i.e., ``make
- cleandir'' is avoided).
-
- Default: ``no''
-
- NBUILDJOBS Now obsolete. Use the make(1) option -j, instead (see
- below)
-
- Default: Unset.
-
- NOCLEANDIR If set, avoids the ``make cleandir'' phase of a full
- build. This has the effect of allowing only changed
- files in a source tree to be recompiled. This can speed
- up builds when updating only a few files in the tree.
-
- Default: Unset.
-
- NODISTRIBDIRS If set, avoids the ``make distrib-dirs'' phase of a full
- build. This skips running mtree(8) on DESTDIR, useful
- on systems where building as an unprivileged user, or
- where it is known that the system-wide mtree files have
- not changed.
-
- Default: Unset.
-
- NOINCLUDES If set, avoids the ``make includes'' phase of a full
- build. This has the effect of preventing make(1) from
- thinking that some programs are out-of-date simply
- because the system include files have changed. However,
- this option should not be used when updating the entire
- NetBSD source tree arbitrarily; it is suggested to use
- MKUPDATE=yes in that case.
-
- Default: Unset.
-
- RELEASEDIR If set, specifies the directory to which a release(7)
- layout will be written at the end of a ``make release''.
-
- Default: Unset.
-
- Note: build.sh will provide a default of releasedir (in
- the top-level .OBJDIR) unless run in `expert' mode
-
-BUILDING
- "make" command line options
- This is not a summary of all the options available to make(1); only the
- options used most frequently with NetBSD builds are listed here.
-
- -j njob Run up to njob make(1) subjobs in parallel. Makefiles should
- use .WAIT or have explicit dependencies as necessary to
- enforce build ordering. If you see build failures with -j,
- please save complete build logs so the failures can be ana-
- lyzed.
-
- -m dir Specify the default directory for searching for system Make-
- file segments, mainly the <bsd.*.mk> files. When building any
- full NetBSD source tree, this should be set to the
- ``share/mk'' directory in the source tree. (This is set auto-
- matically when building from the top level.)
-
- -n Display the commands that would have been executed, but do not
- actually execute them. This will still cause recursion to
- take place.
-
- -V var Print make(1)'s idea of the value of var. Does not build any
- targets.
-
- var=value Set the variable var to value, overriding any setting speci-
- fied by the process environment, the MAKECONF configuration
- file, or the system Makefile segments.
-
- "make" targets
- These default targets may be built by running make(1) in any subtree of
- the NetBSD source code. It is recommended that none of these be used
- from the top level Makefile; as a specific exception, ``make obj'' and
- ``make cleandir'' are useful in that context.
-
- all Build programs, libraries, and preformatted documentation.
-
- clean Remove program and library object code files.
-
- cleandir Same as clean, but also remove preformatted documentation,
- dependency files generated by ``make depend'', and any other
- files known to be created at build time.
-
- depend Create dependency files (.depend) containing more detailed
- information about the dependencies of source code on header
- files. Allows programs to be recompiled automatically when a
- dependency changes.
-
- dependall Does a ``make depend'' immediately followed by a ``make all''.
- This improves cache locality of the build since both passes
- read the source files in their entirety.
-
- distclean Synonym for cleandir.
-
- includes Build and install system header files. Typically needed
- before any system libraries or programs can be built.
-
- install Install programs, libraries, and documentation into DESTDIR.
- Few files will be installed to DESTDIR/dev, DESTDIR/etc,
- DESTDIR/root or DESTDIR/var in order to prevent user supplied
- configuration data from being overwritten.
-
- lint Run lint(1) against the C source code, where appropriate, and
- generate system-installed lint libraries.
-
- obj Create object directories to be used for built files, instead
- of building directly in the source tree.
-
- tags Create ctags(1) searchable function lists usable by the ex(1)
- and vi(1) text editors.
-
- "make" targets for the top level
- Additional make(1) targets are usable specifically from the top source
- level to facilitate building the entire NetBSD source tree.
-
- build Build the entire NetBSD system. This orders portions of
- the source tree such that prerequisites will be built in
- the proper order.
-
- distribution Do a ``make build'', and then install a full distribution
- into DESTDIR, including files in DESTDIR/dev, DESTDIR/etc,
- DESTDIR/root and DESTDIR/var.
-
- buildworld As per ``make distribution'', except that it ensures that
- DESTDIR is not the root directory.
-
- installworld Install the distribution from DESTDIR to INSTALLWORLDDIR
- (which defaults to the root directory). Ensures that
- INSTALLWORLDDIR is not the root directory if cross compil-
- ing.
-
- Note: It is highly recommended that you upgrade your kernel
- and reboot before performing this operation.
-
- sets Create distribution sets from DESTDIR into
- RELEASEDIR/MACHINE/binary/sets. Should be run after ``make
- distribution'' (as ``make build'' does not install all of
- the required files).
-
- sourcesets Create source sets of the source tree into
- RELEASEDIR/source/sets.
-
- release Do a ``make distribution'', build kernels, distribution
- media, and install sets (this as per ``make sets''), and
- then package the system into a standard release layout as
- described by release(7). This requires that RELEASEDIR be
- set (see above).
-
- regression-tests
- Can only be run after building the regression tests in the
- directory ``regress''. Runs the compiled regression tests
- on the local host.
-
- The "build.sh" script
- This script file is a Bourne shell script designed to build the entire
- NetBSD system on any host with a Bourne shell in /bin/sh, including many
- that are not POSIX compliant. Note that if a host system's /bin/sh is
- unusually old and broken, the Korn Shell (/bin/ksh), if available, may be
- a usable alternative.
-
- All cross-compile builds, and most native builds, of the entire system
- should make use of build.sh rather than just running ``make''. This way,
- the make(1) program will be bootstrapped properly, in case the host sys-
- tem has an older or incompatible ``make'' program.
-
- When compiling the entire system via build.sh, many make(1) variables are
- set for you in order to help encapsulate the build process. In the list
- of options below, variables that are automatically set by build.sh are
- noted where applicable.
-
- The following operations are supported by build.sh:
-
- build Build the system as per ``make build''. This option
- implies the obj and tools operations.
-
- distribution Build a full distribution as per ``make distribution''.
- This option implies the build operation.
-
- release Build a full release as per ``make release''. This option
- implies the distribution operation.
-
- makewrapper Create the nbmake-MACHINE wrapper. This operation is auto-
- matically performed for any of the other operations.
-
- obj Perform ``make obj''.
-
- tools Build and install the host tools from src/tools.
-
- install=idir Install the contents of DESTDIR to idir, using ``make
- installworld''.
-
- kernel=kconf Build a new kernel. The kconf argument is the name of a
- configuration file suitable for use by config(8). If kconf
- does not contain any `/' characters, the configuration file
- is expected to be found in the KERNCONFDIR directory, which
- is typically sys/arch/MACHINE/conf. The new kernel will be
- built in a subdirectory of KERNOBJDIR, which is typically
- sys/arch/MACHINE/compile or an associated object directory.
- In order to ensure that the kernel is built using up-to-
- date tools, it is strongly recommended that the tools be
- rebuilt (using the tools operation).
-
- releasekernel=kconf
- Install a gzip(1)ed copy of the kernel built by
- kernel=kconf into RELEASEDIR/MACHINE/binary/kernel, usually
- as netbsd-kconf.gz, although the ``netbsd'' prefix is
- determined from the ``config'' directives in kconf.
-
- sets Perform ``make sets''.
-
- sourcesets Perform ``make sourcesets''.
-
- The following command line options alter the behaviour of the build.sh
- operations described above:
-
- -a arch Set the value of MACHINE_ARCH to arch.
-
- -B buildid
- Set the value of BUILDID to buildid. This will also append the
- build idenfitier to the name of the ``make'' wrapper script so
- that the resulting name is of the form
- ``nbmake-MACHINE-BUILDID''.
-
- -D dest Set the value of DESTDIR to dest.
-
- -E Set `expert' mode. This overrides various sanity checks, and
- allows: DESTDIR does not have to be set to a non-root path for
- builds, and MKUNPRIVED=yes does not have to be set when build-
- ing as a non-root user.
-
- Note: It is highly recommended that you know what you are doing
- when you use this option.
-
- -h Print a help message.
-
- -j njob Passed through to make(1). Makefiles should use .WAIT or have
- explicit dependancies as necessary to enforce build ordering.
- If you see build failures with -j, please save complete build
- logs so the failures can be analyzed.
-
- -M obj Set MAKEOBJDIRPREFIX to obj. Unsets MAKEOBJDIR.
-
- -m mach Set the value of MACHINE to mach. This will also override any
- value of MACHINE_ARCH in the process environment with a value
- deduced from mach, unless -a is specified, or mach is a special
- case listed below. All cross builds require -m, but if unset
- on a NetBSD host, the host's value of MACHINE will be detected
- and used automatically.
-
- Some machines support multiple values for MACHINE_ARCH. For a
- given value of mach, the following MACHINE and MACHINE_ARCH
- values will result:
-
- mach MACHINE MACHINE_ARCH
- evbmips evbmips (not set)
- evbmips-eb evbmips mipseb
- evbmips-el evbmips mipsel
- evbsh3 evbsh3 (not set)
- evbsh3-eb evbsh3 sh3eb
- evbsh3-el evbsh3 sh3el
- sbmips sbmips (not set)
- sbmips-eb sbmips mipseb
- sbmips-el sbmips mipsel
-
- -N noiselevel
- Set the ``noisyness'' level of the build, by setting
- MAKEVERBOSE to noiselevel.
-
- -n Show the commands that would be executed by build.sh, but do
- not make any changes. This is similar in concept to ``make
- -n''.
-
- -O obj Create an appropriate transform macro for MAKEOBJDIR that will
- place the built object files under obj. For instance, a set-
- ting of /usr/obj will place build-time files under
- /usr/obj/bin, /usr/obj/lib, /usr/obj/usr.bin, and so forth.
- Unsets MAKEOBJDIRPREFIX.
-
- -o Set the value of MKOBJDIRS to ``no''. Otherwise, it will be
- automatically set to ``yes'' (which is opposite to the default
- behaviour).
-
- -R rel Set the value of RELEASEDIR to rel.
-
- -r Remove the contents of DESTDIR and TOOLDIR before building
- (provides a clean starting point). This will skip deleting
- DESTDIR if building on a native system to the root directory.
-
- -T tools Set the value of TOOLDIR to tools. If set, the bootstrap
- ``make'' will only be rebuilt as needed (when the source files
- for make(1) change).
-
- -U Set MKUNPRIVED=yes.
-
- -u Set MKUPDATE=yes.
-
- -V var=[value]
- Set the environment variable var to an optional value. This is
- propagated to the nbmake wrapper.
-
- -w wrapper
- Create the nbmake wrapper script (see below) in a custom loca-
- tion, specified by wrapper. This allows, for instance, to
- place the wrapper in PATH automatically. Note that wrapper is
- the full name of the file, not just a directory name.
-
- -X x11src
- Set the value of X11SRCDIR to x11src.
-
- -x Set MKX11=yes.
-
- -Z var Unset ("zap") the environment variable var. This is propagated
- to the nbmake wrapper.
-
- The "nbmake-MACHINE" wrapper script
- If using the build.sh script to build NetBSD, a nbmake-MACHINE script
- will be created in TOOLDIR/bin upon the first build to assist in building
- subtrees on a cross-compile host.
-
- nbmake-MACHINE can be invoked in lieu of make(1), and will instead call
- the up-to-date version of ``nbmake'' installed into TOOLDIR/bin with sev-
- eral key variables pre-set, including MACHINE, MACHINE_ARCH, and TOOLDIR.
- build.sh will also set variables specified with -V, and unset variables
- specified with -Z.
-
- This script can be symlinked into a directory listed in PATH, or called
- with an absolute path.
-
-EXAMPLES
- 1. % ./build.sh tools kernel=GENERIC
-
- Build a new toolchain, and use the new toolchain to configure and
- build a new GENERIC kernel.
-
- 2. % ./build.sh -U distribution
-
- Using unprivileged mode, build a complete distribution to a DESTDIR
- directory that build.sh selects (and will display).
-
- 3. # ./build.sh -U install=/
-
- As root, install to / the distribution that was built by example 2.
- Even though this is run as root, -U is required so that the permis-
- sions stored in DESTDIR/METALOG are correctly applied to the files
- as they're copied to /.
-
- 4. % ./build.sh -U -u release
-
- Using unprivileged mode, build a complete release to DESTDIR and
- RELEASEDIR directories that build.sh selects (and will display).
- MKUPDATE=yes (-u) is set to prevent the ``make cleandir'', so that
- if this is run after example 2, it doesn't need to redo that portion
- of the release build.
-
-OBSOLETE VARIABLES
- NBUILDJOBS Use the make(1) option -j, instead.
-
- USE_NEW_TOOLCHAIN
- The new toolchain is now the default. To disable, use
- TOOLCHAIN_MISSING=yes.
-
-SEE ALSO
- make(1), hier(7), release(7)
-
-HISTORY
- The build.sh based build scheme was introduced for NetBSD 1.6 as
- USE_NEW_TOOLCHAIN, and re-worked to TOOLCHAIN_MISSING after that.
-
-BUGS
- A few platforms are not yet using this build system.
-
-NetBSD February 6, 2003 NetBSD
395 Makefile
View
@@ -1,395 +0,0 @@
-# $NetBSD: Makefile,v 1.238 2005/01/01 10:32:39 lukem Exp $
-
-#
-# This is the top-level makefile for building NetBSD. For an outline of
-# how to build a snapshot or release, as well as other release engineering
-# information, see http://www.NetBSD.org/developers/releng/index.html
-#
-# Not everything you can set or do is documented in this makefile. In
-# particular, you should review the files in /usr/share/mk (especially
-# bsd.README) for general information on building programs and writing
-# Makefiles within this structure, and see the comments in src/etc/Makefile
-# for further information on installation and release set options.
-#
-# Variables listed below can be set on the make command line (highest
-# priority), in /etc/mk.conf (middle priority), or in the environment
-# (lowest priority).
-#
-# Variables:
-# DESTDIR is the target directory for installation of the compiled
-# software. It defaults to /. Note that programs are built against
-# libraries installed in DESTDIR.
-# MKMAN, if `no', will prevent building of manual pages.
-# MKOBJDIRS, if not `no', will build object directories at
-# an appropriate point in a build.
-# MKSHARE, if `no', will prevent building and installing
-# anything in /usr/share.
-# MKUPDATE, if not `no', will avoid a `make cleandir' at the start of
-# `make build', as well as having the effects listed in
-# /usr/share/mk/bsd.README.
-# NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
-# of the `make build'.
-# NOINCLUDES will avoid the `make includes' usually done by `make build'.
-#
-# See mk.conf(5) for more details.
-#
-#
-# Targets:
-# build:
-# Builds a full release of NetBSD in DESTDIR, except for the
-# /etc configuration files.
-# If BUILD_DONE is set, this is an empty target.
-# distribution:
-# Builds a full release of NetBSD in DESTDIR, including the /etc
-# configuration files.
-# buildworld:
-# As per `make distribution', except that it ensures that DESTDIR
-# is not the root directory.
-# installworld:
-# Install the distribution from DESTDIR to INSTALLWORLDDIR (which
-# defaults to the root directory). Ensures that INSTALLWORLDDIR
-# is the not root directory if cross compiling.
-# release:
-# Does a `make build', and then tars up the DESTDIR files
-# into RELEASEDIR/${MACHINE}, in release(7) format.
-# (See etc/Makefile for more information on this.)
-# regression-tests:
-# Runs the regression tests in "regress" on this host.
-# sets:
-# Populate ${RELEASEDIR}/${MACHINE}/binary/sets from ${DESTDIR}
-# sourcesets:
-# Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR}
-#
-# Targets invoked by `make build,' in order:
-# cleandir: cleans the tree.
-# obj: creates object directories.
-# do-tools: builds host toolchain.
-# do-distrib-dirs: creates the distribution directories.
-# includes: installs include files.
-# do-tools-compat: builds the "libnbcompat" library; needed for some
-# random host tool programs in the source tree.
-# do-lib-csu: builds and installs prerequisites from lib/csu.
-# do-gnu-lib-crtstuff3: builds and installs prerequisites from
-# gnu/lib/crtstuff3
-# do-gnu-lib-libgcc3: builds and installs prerequisites from gnu/lib/libgcc3
-# do-lib-libc: builds and installs prerequisites from lib/libc.
-# do-lib: builds and installs prerequisites from lib.
-# do-gnu-lib: builds and installs prerequisites from gnu/lib.
-# do-ld.so: builds and installs prerequisites from libexec/ld.*_so.
-# do-build: builds and installs the entire system.
-# do-x11: builds and installs X11R6 from src/x11 if ${MKX11} != "no"
-# do-obsolete: installs the obsolete sets (for the postinstall-* targets).
-#
-
-.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == ""
-.MAKEFLAGS: -m ${.CURDIR}/share/mk
-.endif
-
-#
-# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may
-# not be the top level objdir, because "make obj" can happen in the *middle*
-# of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set
-# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}.
-#
-_SRC_TOP_OBJ_=
-
-.include <bsd.own.mk>
-
-#
-# Sanity check: make sure that "make build" is not invoked simultaneously
-# with a standard recursive target.
-#
-
-.if make(build) || make(release) || make(snapshot)
-.for targ in ${TARGETS:Nobj:Ncleandir}
-.if make(${targ}) && !target(.BEGIN)
-.BEGIN:
- @echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.'
- @false
-.endif
-.endfor
-.endif
-
-_SUBDIR= tools lib include gnu bin games libexec sbin usr.bin
-_SUBDIR+= usr.sbin share rescue sys etc .WAIT distrib regress
-
-#
-# Weed out directories that don't exist.
-#
-
-.for dir in ${_SUBDIR}
-.if exists(${dir}/Makefile) && (${BUILD_${dir}:Uyes} != "no")
-SUBDIR+= ${dir}
-.endif
-.endfor
-
-.if exists(regress)
-regression-tests: .PHONY
- @echo Running regression tests...
- ${MAKEDIRTARGET} regress regress
-.endif
-
-.if ${MKUNPRIVED} != "no"
-NOPOSTINSTALL= # defined
-.endif
-
-afterinstall: .PHONY
-.if ${MKMAN} != "no"
- ${MAKEDIRTARGET} share/man makedb
-.endif
-.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no")
- ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta
-.endif
-.if !defined(NOPOSTINSTALL)
- ${MAKEDIRTARGET} . postinstall-check
-.endif
-
-postinstall-check: .PHONY
- @echo " === Post installation checks ==="
- ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ check
- @echo " ================================"
-
-postinstall-fix: .NOTMAIN .PHONY
- @echo " === Post installation fixes ==="
- ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ fix
- @echo " ==============================="
-
-postinstall-fix-obsolete: .NOTMAIN .PHONY
- @echo " === Removing obsolete files ==="
- ${HOST_SH} ${.CURDIR}/etc/postinstall -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
- @echo " ==============================="
-
-
-#
-# Targets (in order!) called by "make build".
-#
-.if ${USE_TOOLS_TOOLCHAIN} == "no"
-LIBGCC_EXT=3
-.else
-LIBGCC_EXT=
-.endif
-
-BUILDTARGETS+= check-tools
-.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
-BUILDTARGETS+= cleandir
-.endif
-.if ${MKOBJDIRS} != "no"
-BUILDTARGETS+= obj
-.endif
-.if ${USETOOLS} == "yes"
-BUILDTARGETS+= do-tools
-.endif
-.if !defined(NODISTRIBDIRS)
-BUILDTARGETS+= do-distrib-dirs
-.endif
-.if !defined(NOINCLUDES)
-BUILDTARGETS+= includes
-.endif
-BUILDTARGETS+= do-tools-compat
-BUILDTARGETS+= do-lib-csu
-.if ${MKGCC} != "no"
-.if ${HAVE_GCC3} != "no"
-BUILDTARGETS+= do-gnu-lib-crtstuff${LIBGCC_EXT}
-.endif
-BUILDTARGETS+= do-gnu-lib-libgcc${LIBGCC_EXT}
-.endif
-BUILDTARGETS+= do-lib-libc
-BUILDTARGETS+= do-lib do-gnu-lib
-BUILDTARGETS+= do-ld.so
-BUILDTARGETS+= do-build
-.if ${MKX11} != "no"
-BUILDTARGETS+= do-x11
-.endif
-BUILDTARGETS+= do-obsolete
-
-#
-# Enforce proper ordering of some rules.
-#
-
-.ORDER: ${BUILDTARGETS}
-includes-lib: .PHONY includes-include includes-sys
-includes-gnu: .PHONY includes-lib
-
-#
-# Build the system and install into DESTDIR.
-#
-
-START_TIME!= date
-
-build: .PHONY
-.if defined(BUILD_DONE)
- @echo "Build already installed into ${DESTDIR}"
-.else
- @echo "Build started at: ${START_TIME}"
-.for tgt in ${BUILDTARGETS}
- ${MAKEDIRTARGET} . ${tgt}
-.endfor
- ${MAKEDIRTARGET} etc install-etc-release
- @echo "Build started at: ${START_TIME}"
- @printf "Build finished at: " && date
-.endif
-
-#
-# Build a full distribution, but not a release (i.e. no sets into
-# ${RELEASEDIR}). "buildworld" enforces a build to ${DESTDIR} != /
-#
-
-distribution buildworld: .PHONY
-.if make(buildworld) && \
- (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
- @echo "Won't make ${.TARGET} with DESTDIR=/"
- @false
-.endif
- ${MAKEDIRTARGET} . build NOPOSTINSTALL=1
- ${MAKEDIRTARGET} etc distribution INSTALL_DONE=1
-.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/"
- ${MAKEDIRTARGET} . postinstall-fix-obsolete
- ${MAKEDIRTARGET} distrib/sets checkflist
-.endif
- @echo "make ${.TARGET} started at: ${START_TIME}"
- @printf "make ${.TARGET} finished at: " && date
-
-#
-# Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/')
-# If installing to /, ensures that the host's operating system is NetBSD and
-# the host's `uname -m` == ${MACHINE}.
-#
-
-HOST_UNAME_S!= uname -s
-HOST_UNAME_M!= uname -m
-
-installworld: .PHONY
-.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
- @echo "Can't make ${.TARGET} to DESTDIR=/"
- @false
-.endif
-.if !defined(INSTALLWORLDDIR) || \
- ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/"
-.if (${HOST_UNAME_S} != "NetBSD")
- @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/"
- @false
-.endif
-.if (${HOST_UNAME_M} != ${MACHINE})
- @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/"
- @false
-.endif
-.endif
- ${MAKEDIRTARGET} distrib/sets installsets \
- INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS=
- ${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR}
- @echo "make ${.TARGET} started at: ${START_TIME}"
- @printf "make ${.TARGET} finished at: " && date
-
-#
-# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR
-#
-
-.for tgt in sets sourcesets
-${tgt}: .PHONY
- ${MAKEDIRTARGET} distrib/sets ${tgt}
-.endfor
-
-#
-# Build a release or snapshot (implies "make build"). Note that
-# in this case, the set lists will be checked before the tar files
-# are made.
-#
-
-release snapshot: .PHONY
- ${MAKEDIRTARGET} . build NOPOSTINSTALL=1
- ${MAKEDIRTARGET} etc release INSTALL_DONE=1
- @echo "make ${.TARGET} started at: ${START_TIME}"
- @printf "make ${.TARGET} finished at: " && date
-
-#
-# Special components of the "make build" process.
-#
-
-check-tools: .PHONY
-.if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN)
- @echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.'
- @echo '*** May result in a failed build or corrupt binaries!'
-.elif defined(EXTERNAL_TOOLCHAIN)
- @echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.'
-.endif
-.if defined(NBUILDJOBS)
- @echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!'
-.endif
-
-do-distrib-dirs: .PHONY
-.if !defined(DESTDIR) || ${DESTDIR} == ""
- ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/
-.else
- ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR}
-.endif
-
-.for targ in cleandir obj includes
-do-${targ}: .PHONY ${targ}
- @true
-.endfor
-
-.for dir in tools tools/compat lib/csu gnu/lib/crtstuff${LIBGCC_EXT} gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib
-do-${dir:S/\//-/g}: .PHONY
-.for targ in dependall install
- ${MAKEDIRTARGET} ${dir} ${targ}
-.endfor
-.endfor
-
-do-ld.so: .PHONY
-.for targ in dependall install
-.if (${OBJECT_FMT} == "a.out")
- ${MAKEDIRTARGET} libexec/ld.aout_so ${targ}
-.endif
-.if (${OBJECT_FMT} == "ELF")
- ${MAKEDIRTARGET} libexec/ld.elf_so ${targ}
-.endif
-.endfor
-
-do-build: .PHONY
-.for targ in dependall install
- ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no
-.endfor
-
-do-x11: .PHONY
- ${MAKEDIRTARGET} x11 build
-
-do-obsolete: .PHONY
- ${MAKEDIRTARGET} etc install-obsolete-lists
-
-#
-# Speedup stubs for some subtrees that don't need to run these rules.
-# (Tells <bsd.subdir.mk> not to recurse for them.)
-#
-
-.for dir in bin etc distrib games libexec regress sbin usr.sbin tools
-includes-${dir}: .PHONY
- @true
-.endfor
-.for dir in etc distrib regress
-install-${dir}: .PHONY
- @true
-.endfor
-
-#
-# XXX this needs to change when distrib Makefiles are recursion compliant
-# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first...
-#
-dependall-distrib depend-distrib all-distrib: .PHONY
- @true
-
-.include <bsd.sys.mk>
-.include <bsd.obj.mk>
-.include <bsd.kernobj.mk>
-.include <bsd.subdir.mk>
-
-build-docs: .PHONY ${.CURDIR}/BUILDING
-${.CURDIR}/BUILDING: doc/BUILDING.mdoc
- ${_MKMSG_CREATE} ${.TARGET}
- ${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@
-
-
-#
-# Display current make(1) parameters
-#
-params: .PHONY
- ${MAKEDIRTARGET} etc params
16 Makefile.inc
View
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.4 2002/04/10 14:53:43 lukem Exp $
-
-.ifndef ABSTOP
-ABSTOP!= cd ${.PARSEDIR}; pwd
-
-.if (${.PARSEDIR} == ${.CURDIR})
-RELTOP:= .
-.else
-RELTOP:= ${.PARSEDIR:S,^${.CURDIR},,}
-.endif
-
-# you can set BSD{SRC,OBJ}DIR in Makefile.local.inc
-.if exists(${ABSTOP}/Makefile.local.inc)
-.include "${ABSTOP}/Makefile.local.inc"
-.endif
-.endif
828 UPDATING
View
@@ -1,828 +0,0 @@
-$NetBSD: UPDATING,v 1.135 2005/02/11 17:50:13 jmc Exp $
-
-This file (UPDATING) is intended to be a brief reference to recent
-changes that might cause problems in the build process, and a guide for
-what to do if something doesn't work.
-
-For a more detailed description of the recommended way to build NetBSD
-using build.sh, see the BUILDING file.
-
-Note that much of the advice in this UPDATING file was written before
-build.sh existed. Nevertheless, the advice here may be useful for
-working around specific problems with build.sh.
-
-See also: BUILDING, build.sh, Makefile.
-
-Recent changes:
-^^^^^^^^^^^^^^^
-20050211:
- Fixes to tools/Makefile.gnuhost may cause UPDATE=1 builds in
- some of the cross tools to fail if they use configure. Some configure's
- cache the environment passed in and notice the new environment is
- different and abort. Doing a clean in tools/ should be enough to
- make a build continue.
-
-20050109:
- Since su is using pam by default now, make sure that you have
- /etc/pam.d populated (postinstall will do that automatically
- for you). Otherwise su will fail open (i.e. will not require
- a password).
-
-20041229:
- Make had a path resolution bug that manifested itself as not
- being able to install openpam.3. This bug has been fixed, but
- you might need to rebuild make manually first to get through
- the build.
-
-20041201:
- Userland programs have been changed to use /dev/bpf instead of
- /dev/bpfX. You need to create that device by installing a new
- MAKEDEV and running it, or mv /dev/bpf0 /dev/bpf && rm /dev/bpf[0-9]*
-
-20041006:
-
- A bug was introduced into /bin/sh (var.c rev 1.35) which causes
- variables to not export correctly to subshells in all cases. This
- will cause builds to break if that version of /bin/sh is installed
- on the system. The proper version of /bin/sh can be verified with:
-
- ident /bin/sh | grep var
-
- Any /bin/sh w. version 1.35 will not work and needs to be updated
- before attempting a build.
-
-20041001:
- The ipfilter kernel sources moved from sys/netinet to
- dist/sys/ipf/netinet. Due to the move some Makefile
- dependencies are now dangling requiring a make cleandir
- before they work again (kdump, ktruss, rescue, ipf, and
- ftp-proxy are the victims).
-
-20040715:
- The rc.d/sendmail script now uses a heuristic to determine
- if sendmail should be started at boot time. It checks the
- contents of /etc/mailer.conf, /etc/mail/submit.cf, and the
- owner and mode of the sendmail binary to see if any changes
- to the mail infrastructure have been made. If no changes
- are detected, it will start an SMTP listener.
-
- Setting sendmail=NO in /etc/rc.conf will override this.
-
- If you are only using sendmail by default and only for
- local delivery, it is important that you also update your
- sendmail.cf so that the SMTP listener only listens on the
- loopback interface.
-
-20040715:
- The method by which athhal-elf.o gets pulled into i386
- kernel builds has been changed again. The latest version
- of bsd.files.mk is no longer required.
-
-20040621:
- Due to the recent rototill of tools/compat it's crucial one starts
- from a clean objdir under tools/*.
-
- This is mostly due to generated files (yacc and lex sources) needing
- to be generated with new rules from bsd.hostprog.mk.
-
- The safest course is to rm -rf all objects under tools before building.
-
-20040516:
- The end-user modifiable X11 configuration has been moved
- from /usr/X11R6/lib/X11/<dir> to /etc/X11/<dir>.
- Ensure that src and xsrc is up to date, and run
- "make cleandir" in src/x11 before your next build.
-
- postinstall currently doesn't migrate the files from
- /usr/X11R6/lib/X11/* to /etc/X11/* although it does
- detect that this needs to occur, so you'll have to
- manually move these files yourself.
-
-20040426:
- Support for the original dynamic sysctl node structure has
- been removed in favor of the newer layout. This affects
- consumers of the create and delete interface, as well as
- the dynamic discovery mechanism. This is believed only to
- be the sysctl(8) binary itself, at this point in time, so
- the only effect of this should be that a sysctl binary
- built from sources dated between 2003/12/04 and 2004/03/24
- will not work on a kernel built from sources dated after
- 2004/04/25. If you need a new sysctl binary but build.sh
- does not work, make sure that your revision of
- src/sys/sys/sysctl.h is 1.112 (or later), and then the
- do the following:
-
- cd /usr/src (or wherever your source tree is)
- make USETOOLS=no includes
- cd lib/libc
- make USETOOLS=no dependall install
- cd ../../sbin/sysctl
- make USETOOLS=no dependall install
-
- If you are using older sysctl binary, GNU autoconf would fail to
- identify your machine architecture, and tries to build binary for
- "unknown-unknown-netbsd20F" or something like that. if that happens,
- make sure to follow the above steps.
-
-20040425:
- The ffs superblock issues listed below under 20040109 and 20030402
- are now automatically addressed by the /etc/rc.d/fixsb script or by
- sysinst when it checks a a filesystem. The manual fsck_ffs -b16 -c4
- invocation mentioned below will continue to work and is now
- automated by those scripts. Note that under certain circumstances,
- affected filesystems upgraded to a -current kernel first before
- upgrading their userland with the fixsb and fsck_ffs fixes may
- encounter a 'freeing free inode' panic when writing to the affected
- filesystem, so it is a good idea to repair the filesystem as soon as
- possible. For more details on the fixsb script, see pr install/25138.
-
-20040418:
- statfs(2) and friends have been replaced with statvfs(2). Before
- installing a newly build userland make sure that you are running
- a newly built kernel with COMPAT_20 set. In addition your libc
- build might not work (undefined SYS_statfs symbol) because make
- clean does not know how to remove files it does not know about
- anymore. Manually remove all generated .S sources and objects
- from the libc build directory.
-
-20040326:
- The method by which athhal-elf.o gets pulled into i386 kernel builds
- has been changed. The file is now stored as a uuencoded file in CVS
- and the generated Makefile will use the new .uue rules from bsd.file.mk
- to build it.
-
- This means you must have the latest bsd.files.mk installed when
- building a kernel without USETOOLS=yes.
-
-20040318:
- A bug in the cgd(4) blowfish code was corrected, without
- provision of backwards compatibility, after several public
- notices over several months. Users of cgd with blowfish cipher
- ONLY must dump their data before updating their kernels, and
- recreate cgd's and restore data using the new kernel. See
- (recent message to current-users, URL when mail-index has updated)
-
-20040313:
- On acorn32, the opms and qms drivers have been withdrawn, and
- the old wsqms driver is now called qms. Kernel config files
- will need updating. See the ones in sys/arch/acorn32/conf
- for examples.
-
-20040125:
- On acorn32, the beep and sysbeep devices are no longer
- needed, and will need to be deleted from kernel configuration
- files.
-
-20040109:
- Compatibility for old ffs superblock layouts has been
- added, and the restrictive fsck checks have been reenabled
- when using those layouts. If you have been using -current
- since 20030402, you may find that fsck again signals fatal
- superblock mismatches. To repair, make sure you have
- an updated fsck_ffs and then you can use fsck_ffs -b 16 -c 4
- to complete the filesystem upgrade. A message has
- been added to the kernel which should detect this problem.
- See the following discussion for more information:
- http://mail-index.NetBSD.org/current-users/2004/01/11/0022.html
-
-20031203:
- New binutils builds may fail due to old dependencies.
- It's necessary to "make cleandir" to ensure that
- the dependencies will be rebuilt correctly.
-
-20031111:
- A newer mkdep is needed. Error noting that is
- cc: Ambiguous abbreviation --
-
-20031008:
- /usr/include/sys/disklabel_mbr.h was removed.
- It's necessary to "make cleandir" to ensure that
- the dependencies will be rebuilt correctly.
-
-20031007:
- A sign exension bug was fixed which set all the high bits
- of our newly expanded ffs fs_flags. This should only
- affect users who installed or upgraded in September of 2003.
- A small utility program was posted to tech-kern which
- should fix this problem, and a warning message was added
- to the kernel which should discover and warn about it. See
- http://mail-index.NetBSD.org/tech-kern/2003/10/07/0005.html
-
-20030906:
- With the addition of siginfo support the old signal trampoline
- code has been deprecated to COMPAT_16. Make sure that your running
- kernel has COMPAT_16 enabled before building userland.
-
-20030801:
- With the new openssl, there is some header and library shuffling.
- rm -f /usr/include/des.h /usr/include/kerberosIV/* /lib/libdes* \
- /usr/lib/libdes* before building.
-
-20030703:
- Texinfo was updated to 4.6. To avoid failures when trying to
- build the included texinfo files, do:
-
- cd src/gnu/usr.bin/texinfo
- make MKINFO=no dependall install
-
-20030630:
- Groff was updated to 1.19; it's probably necessary to do
- cd share/mk && make install
- cd src/gnu/usr.bin/groff
- make MKMAN=no dependall install
- (untested).
-
-20030516:
- Due to bugs in the export handling code, invalid export lines
- were accepted before and caused the kernel to panic when
- mountd got restarted because it freed memory that had already
- been freed. This has been fixed and the kernel checks
- export addresses very strictly. If you upgrade your kernel,
- make sure you also upgrade mountd, because if your export
- file contains lines with an old inet4 address syntax (i.e.
- a.b.c or a.b or a), they will get rejected by the new kernel.
-
-20030402:
- The superblock layout for FFS was changed. If you have 1.6
- fsck binaries, they will signal a fatal superblock mismatch
- with the first alternate, because they compare too many
- fields (even ones that aren't useful). If possible, upgrade
- your fsck_ffs binary before using a new kernel.
- None of this signals actual filesystem damage.
-
-20030324:
- sendmail version 8.12.8 was imported. Since sendmail is
- now setgid to the smmsp group, and runs in "collection"
- mode for most common activities, there is a new config
- file called submit.cf that needs to live in /etc/mail.
- The generic submit.cf sample in /usr/share/sendmail/cf
- is named netbsd-msp.cf. Upgrading your regular sendmail
- configuration file is also strongly advised.
-
- See the section named "MESSAGE SUBMISSION PROGRAM" in
- the updated /usr/share/sendmail/README file for more
- information.
-
-20030117:
- Texinfo was updated to 4.3. To avoid failures when trying to
- build the included texinfo files, do:
-
- cd src/gnu/usr.bin/texinfo
- make MKINFO=no dependall install
-
-20021223:
- The METALOG format changed slightly, to remove the leading
- "${DESTDIR}" from path names.
- This only affects people building with UNPRIVED.
- For complete safety, remove the DESTDIR entirely and
- update tools/mtree, before running make build.
-
-20021219:
- CVS repository layout was changed. See the following for details
- if you are using (anonymous) cvs to update your tree.
-
- http://mail-index.NetBSD.org/netbsd-announce/2002/12/19/0000.html
-
-20021219:
- install(1) had a '-N dbdir' option added, to specify an
- alternate location to look up users & groups (instead
- of the host system passwd(5) and group(5) databases).
-
- The build system was modified to take advantage of
- this option (using ${NETBSDSRCDIR}/etc), so if you
- use USETOOLS==no, you may have to rebuild and
- reinstall usr.bin/xinstall first.
-
-20021130:
- fparseln(3) moved from libutil to libc.
- If building to DESTDIR=/, reinstall the includes
- and rebuild libc:
- make includes
- make do-lib-libc
- If using build.sh, "cd tools/compat && make clean"
- before rebuilding the tools.
-
-20021126:
- The mk.conf(5) variable SYS_INCLUDE has been deprecated,
- including the optional "SYS_INCLUDE=symlinks" support.
- All header files, including <sys/*.h> are copied into
- /usr/include.
-
-20021121:
- The C run-time support files crtbegin.o and crtend.o
- (and their companions crtbeginS.o and crtendS.o) were
- split up, with new crti.o and crtn.o files resulting.
- This means that libtool needs to be rebuilt once the
- new libraries are installed. The process of rebuilding
- libtool will cause it to automatically notice the new
- required files, but it *must* be rebuilt in order to
- do this.
-
- An out-of-date libtool will result in shared libraries
- which lack _init() and _fini() routines, which means that
- their global contructors/destructors will not be invoked.
-
-20021121:
- A bug related to how ARM ELF objects were tagged has been
- corrected.
-
- NetBSD ARM ELF uses the soft-VFP floating point model by
- default. However, the assembler lacked support for marking
- objects as using the VFP floating point format, and the
- compiler was not properly passing the flag indicating "soft-VFP"
- to the assembler.
-
- Unfortunately, this means that the linker will now consider
- old (i.e. not marked "softvfp") NetBSD ARM ELF objects to be
- incompatible with new (properly marked) objects.
-
- The problem will only manifest itself if you attempt to compile
- a new program using the fixed toolchain, and link that program
- against old libraries which do not have the proper "softvfp"
- markings. ALL OF YOUR EXISTING BINARIES AND SHARED LIBRARIES
- WILL CONTINUE TO WORK PROPERLY.
-
- The only work-around for the problem is to recompile all of
- the libraries on the system. The easiest way to do this for
- system libraries is to install a binary snapshot; they are
- generally available on releng.NetBSD.org. Any packages you
- have installed which supply libraries will have to be recompiled
- if you wish to link new programs against those libraries.
-
- If you have questions about this matter, please contact
- port-arm@NetBSD.org.
-
-20021011:
- Systrace has been improved to support privilege elevation.
- Updating the kernel requires the userland part of systrace
- to be rebuilt.
-
-20021010:
- The config(8) grammar was changed to allow options to register
- dependencies on attributes, as well as other options. Users
- must update and reinstall usr.sbin/config before building a new
- kernel.
-
-20021009:
- A new attribute dependency syntax was introduced to config(8),
- which is now used by the SCSI configuration description. Users
- must update and reinstall usr.sbin/config before building a new
- kernel.
-
-20021003:
- Several changes have been made to the autoconfiguration
- framework. Users must update and reinstall usr.sbin/config
- before building a new kernel.
-
-20021001:
- The i386mp branch has been merged. To compile a kernel, users
- will need to add the option 'cpu* at mainbus?' to their configuration
- file. Multiprocessor kernels will need
- ioapic* at mainbus? apid ?
- options MULTIPROCESSOR
- options COM_MPLOCK
-
-20020922:
- MKDYNAMICROOT=yes enabled by default, which means that
- certain shared libraries are installed into /lib, the shared
- linker is installed into /libexec, and all programs in /bin
- and /sbin are dynamically linked.
- If you do not use "make build", you should ensure that
- you have the libraries and shared linker in the new locations,
- with:
- make do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.elf_so
-
-20020917:
- USE_NEW_TOOLCHAIN has been replaced with:
- - TOOLCHAIN_MISSING -- set to "yes" on platforms for which
- there is no working in-tree toolchain (hppa, ns32k, sh5,
- x86_64).
- - EXTERNAL_TOOLCHAIN -- if defined by the user, points to the
- root of an external toolchain (e.g. /usr/local/gnu). This
- enables the cross-build framework even for TOOLCHAIN_MISSING
- platforms.
-
-20020906:
- gehenna-devsw has been merged into the trunk. Need to update and
- reinstall usr.sbin/config before building the kernel.
-
-20020822:
- Crunched rescue tools (contents of /bin and /sbin, plus others)
- are now provided in /rescue.
-
- To ensure that these are built statically linked (no matter
- what the setting of LDSTATIC is), use a crunchgen(1) built
- from sources newer than 20020820 (see the next entry).
-
-20020820:
- crunchgen(1) changed to ensure that the generated program
- is statically linked.
-
- Solution: update and reinstall usr.bin/crunch
-
-20020605:
- smmsp user/group has been added for sendmail.
-
- Add the following into /etc/group:
-
- smmsp:*:17:
-
- and the following to /etc/master.passwd (via vipw):
-
- smmsp:*:17:17::0:0:Sendmail Message Submission Program:/nonexistent:/sbin/nologin
-
-20020515:
- sshd user/group has been added. Need to hand add this in, or sshd
- will not let you log in (with default, or UsePrivlegeSeparation=yes)
-
- Add the following into /etc/group:
-
- sshd:*:16:
-
- and the following to /etc/master.passwd (via vipw):
-
- sshd:*:16:16::0:0:& pseudo-user:/var/chroot/sshd:/sbin/nologin
-
- Also /var/chroot/sshd directory needs to be present (digged as part of
- the build process).
-
-20020426:
- NBUILDJOBS obsoleted in favor of just using -j.
-
-20020426:
- etc/postinstall added, which performs various checks for
- configuration file updates and changes, and can fix most of
- the problems identified.
- This should make it much easier to upgrade a system's
- configuration from earlier systems (as far back as NetBSD 1.5).
-
-20020320:
- <bsd.lib.mk> needs a new install(1) for its "-a cmd" support.
- Build and install at usr.bin/xinstall before the build.
-
-20020319:
- Raw IPv6 socket now makes strict checking for sa_family and sa_len
- on send(2) operation. Be sure to have sbin/rtsol and usr.sbin/rtsold
- newer than November 2001 when you upgrade the kernel.
-
-20020311:
- ssh configuration files were moved from /etc to /etc/ssh. Beware
- if you restart your machine from remote. Note that sshd.conf needs
- to be changed (due to the use of "/etc" inside).
-
-20020223:
- Users of the VAX port will need to rebuild and install gas
- so it deal with the now present register prefix used in all
- the VAX assembly files.
-
-20020118:
- ntpd user/group has been added. Need to hand add this in or builds
- will break as mtree aborts early.
-
- Add the following into /etc/group:
-
- ntpd:*:15:
-
- and the following to /etc/master.passwd (via vipw):
-
- ntpd:*:15:15::0:0:Ntpd pseudo-user:/var/chroot/ntpd:/sbin/nologin
-
-20011207:
- If you're attempting to build a snapshot on sparc64 and are getting
- reloc errors from the toolchain groff binary this means your native
- toolchain has some broken C++ bits.
-
- To fix:
-
- Build a new toolchain (i.e. build.sh -t)
- Use the new toolchain to build and install natively (i.e. /usr/lib)
-
- gnu/lib/libgcc
- gnu/lib/libstdc++
-
- After this a snapshot will be able to be built.
-
-20011201:
- In order for a sparc64 build to work you must have a working awk. If
- you've built and installed a system with the new toolchain up to this
- point you do not have a working awk as its ability to do floating
- point is broken.
-
- To build:
-
- remake and install gnu/lib/libgcc
- remake and install gnu/usr.bin/gawk into /usr/bin (make sure it links
- against the new libgcc.a)
-
-20011128:
- Kernel config information was changed to use defflag in
- the various "files" files. Bug fixes to config(8) are
- required in order for this to work properly. Make sure
- to build and install in usr.sbin/config before attempting
- to build a new kernel.
-
-20011030:
- libc/locale/wcstod.c now needs new lint(1). Update lint(1)
- before building libc.
-
-20011029:
- The new document BUILDING.mdoc (view with nroff | more, or
- see pre-generated .txt and .html versions) describes the build
- procedure in great detail. BUILDING, and the USE_NEW_TOOLCHAIN
- build process, are intended in the long run to replace this
- manual update log.
-
- Users building a USE_NEW_TOOLCHAIN system should read the
- BUILDING document for caveats. Generally, BUILDING supersedes
- UPDATING for these systems, as tool updating is taken care of
- by the new build system.
-
-20011028:
- src/etc/Makefile now needs install to be able to handle
- symlinks that point to nowhere. A bug in install that
- prevented this was corrected.
-
- Solution: update and reinstall usr.bin/xinstall
- Better Solution: Use the new toolchain and it will just work
- for you.
-
-20011006:
- /etc/mtree/NetBSD.dist has been updated to take advantage of
- absolute path support added to mtree(8). Older mtree(8)s don't
- understand the format.
-
- Solution: update and reinstall usr.sbin/mtree
-
-20011004:
- Crunchgen has been updated to work via reach-over makefiles. Updating
- is suggested before running a snapshot build
-
-20010915:
- The new "ubcperf" code committed by Chuck Silvers removed
- a header file, uvm/uvm_vnode.h. There may be stale .depend
- files that still reference this file.
-
- Solution: "make cleandir && make dependall" in affected
- directories.
-
-20010803:
- grep.info is now built from grep.texi using makeinfo. Since it
- requires makeinfo v4.0, you need to install new texinfo before
- building gnu/usr.bin/grep. To install new texinfo, please follow
- the instruction described in 20010726 entry.
-
-20010803:
- (i386 only): i386 kernel now uses new instructions like
- `fxsave' which old gas doesn't understand. To build the
- kernel successfully, you need to build and install a new toolchain,
- (i.e., build.sh -t) or (temporarily) comment out "options I686_CPU"
- from your kernel configuration until you rebuild your userland.
- See 20011029 above and BUILDING file in this directory for more information.
- [updated 20020630 since i386 gas moved when USE_NEW_TOOLCHAIN enabled]
-
-20010731:
- Bootloader update on ELF platforms. DDB in kernels from before
- this will be unable to read symbol tables provided by newer
- bootloaders.
-
-20010726:
- Texinfo was updated to 4.0. To avoid failures when trying to
- build the included texinfo files, do:
-
- cd src/gnu/usr.bin/texinfo
- make MKINFO=no dependall install
-
-20010718:
- Enabled correct .init/.fini processing in crt0. The way this
- was done was to change a -I directive to cc(1), which means
- make(1) will have a stale dependency (it will be checking the
- timestamp on the wrong "dot_init.h").
-
- The symptom you will see is that new programs die with SIGSEGV
- if you have a stale dependency.
-
- Solution: "make cleandir" in both lib/csu and libexec/ld.elf_so
- before starting your build.
-
-20010628:
- A construct was added to uvm_page.h that uncovered a bug
- in lint(1). If you get a warning/error about a non-portable
- bitfield, update your lint(1) before proceeding.
-
-20010226:
- Added named user/group to system. Need to hand add this in or builds
- will break as mtree aborts early.
-
- To work around add by hand:
-
- named:*:14:
-
- to /etc/group and add:
-
- named:*:14:14::0:0:Named pseudo-user:/var/named:/sbin/nologin
-
- to master.passwd (use vipw for instance if doing by hand).
-
- Now a make build should progress.
-
-20010219:
- get/setprogname() added. Any hostprogs that may use this will need
- to be bootstrapped manually until the host system is current.
-
- Known problems: sys/arch/macppc/stand/fixcoff
- usr.sbin/config (adding -DMAKE_BOOTSTRAP to
- CFLAGS and rebuilding should work)
- usr.sbin/mdsetimage - Build a static copy if
- building a snapshot before fully bootstrapped.
-
-20010204:
- prepare the code to compile with stricter gcc flags. in
- particular start eliminating redundant declarations. Yacc
- needs to be installed before make build.
-
-20010114:
- introduce .if commands(target) in make(1). You need to
- bring everything up-to-date first, then without installing
- anything make and install in usr.bin/make, then proceed
- with make build.
-
-20010101:
- bsd.subdir.mk committed 20001230 had a bug which caused
- afterinstall targets to run too soon; update again.
-
-20001230:
- New share/mk files needed to support .WAIT in SUBDIR variables.
- If you get make errors,
- (cd share/mk; make install)
- Also, PRINTOBJDIR has changed and is now used more heavily.
-
-20001019:
- The `ca' device driver has been replaced by `ld'; although the
- major and minor numbers haven't changed, you should update your /dev
- directory.
-
-20000929:
- The following make directives are obsoleted.
- MKCRYPTO_RSA NOCRYPTO_RSA NOCRYPTO_RC5 NOCRYPTO_IDEA
- By default, RSA is built into libcrypto. IDEA and RC5 will not be
- built into libcrypto. By using MKCRYPTO_{RC5,IDEA}, you can build
- additional library libcrypto_{idea,rc5}.
-
-
-Hints for a more successful build:
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Use build.sh, but do not use its "expert mode":
- This will automatically build the tools in the
- correct order, and it will keep the tools and the
- new build products from interfering with the running
- system. This will allow you to ignore most of the
- other advice in this file.
- Build a new kernel first:
- This makes sure that any new system calls or features
- expected by the new userland will be present. This
- helps to avoid critical errors when upgrading.
- Use object directories:
- This helps to keep stale object
- files from polluting the build if a Makefile "forgets"
- about one. It also makes it easier to clean up after
- a build. It's also necessary if you want to use the
- same source tree for multiple machines.
- To use object directories with build.sh:
- a) invoke build.sh with the "-M" or "-O" options.
- To use object directories without using build.sh:
- a) cd /usr/src ; make cleandir
- b) Add "OBJMACHINE=yes" to /etc/mk.conf
- c) Add "MKOBJDIRS=yes" to /etc/mk.conf
- d) cd /usr/src ; make build
- Note that running "make obj" in a directory will create
- in obj.$MACHINE directory.
- Build to a DESTDIR:
- This helps to keep old installed files (especially libraries)
- from interfering with the new build.
- To build to a DESTDIR with build.sh, use the "-D" option.
- To build to a DESTDIR without using build.sh, set the DESTDIR
- environment variable before running make build. It should be
- set to the pathname of an initially empty directory.
- Problems: if you do not use build.sh, you might need to
- update critical utilities without using DESTDIR since
- nothing is executed from what is installed in DESTDIR.
- (See critical utils, below.)
- Build often:
- This keeps critical utilities current enough to not choke
- on any other part of the source tree that depends on up to
- date functionality. If you use build.sh, you should not have
- this problem.
-
-What to do if things don't work:
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-When things don't work there is usually a few things that commonly
-should be done.
- 1) make includes
- This should be done automatically by make build.
- 2) cd share/mk && make install
- Again, automatically done by make build.
-
-Failsafe rebuild of a small part of the tree:
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-To make sure you rebuild something correctly you want to do
-something like the following:
- 1) Make sure the includes and .mk files are up to date.
- 2) Make sure any program used to build the particular
- utility is up to date. (yacc, lex, etc...)
- 3) cd ...path/to/util...
- make cleandir
- rm ...all obj directories...
- make cleandir # yes, again
- make obj
- make depend && make
-
-Failsafe rebuild of the entire tree:
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-If you really want to make sure the source tree is clean and
-ready for a build try the following. Note that sourcing /etc/mk.conf
-(a make(1) Makefile) in this manner is not right, and will not work
-for anyone who uses any make(1) features in /etc/mk.conf.
-
----cut here---
-#!/bin/sh
-. /etc/mk.conf
-
-if [ -z $NETBSDSRCDIR ] ; then
- NETBSDSRCDIR=/usr/src
-fi
-if [ \! -d $NETBSDSRCDIR ] ; then
- echo Unable to find sources
- exit 1
-fi
-find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \;
-
-if [ -z $BSDOBJDIR ] ; then
- BSDOBJDIR=/usr/obj
-fi
-if [ -d $BSDOBJDIR ] ; then
- rm -rf $BSDOBJDIR
-fi
-
-cd $NETBSDSRCDIR && make cleandir
-
----cut here---
-
-Critical utilities:
-^^^^^^^^^^^^^^^^^^^
- gnu/usr.bin/egcs
- usr.bin/compile_et
- usr.bin/make
- usr.bin/yacc
- usr.bin/lex
- usr.bin/xlint
- usr.sbin/config
-
-Other problems and possible solutions:
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Symptom:Unreasonable compiler errors.
-Fix: Rebuild gnu/usr.bin/egcs
-
-Symptom:Complaints involving a Makefile.
-Fix: Rebuild usr.bin/make:
- cd usr.bin/make && make && make install
- Or, a failsafe method if that doesn't work:
- cd usr.bin/make && cc *.c */*.c -I . -o make && mv make /usr/bin
-
-Fix: Make sure .mk files are up to date.
- cd share/mk && make install
-
-Symptom:Kernel `config' fails to configure any kernel, including GENERIC.
-Fix: Rebuild usr.sbin/config
-
-Symptom:
-Fix: Rebuild usr.bin/yacc
-
-Symptom:
-Fix: Rebuild usr.bin/lex
-
-Symptom:
-Fix: rm /usr/lib/libbfd.a
-
-Symptom:Obsolete intermediate files are used during compilation
-Fix: Try the following sequence of commands in the directory in question.
- make cleandir; rm `make print-objdir`; make cleandir; make obj
- (If you built the tree without "make obj" in the past, obsolete files
- may remain. The command tries to clean everything up)
-
-Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible pointer type
-Fix: Rebuild and install usr.bin/menuc
-
-Symptom:mklocale not found during build in share/locale/ctype
-Fix: Build and install usr.bin/mklocale
-
-Symptom:undefined reference to `__assert13' or `__unsetenv13'
-Fix: Rebuild and install lib/libc
-
-Symptom:usr.sbin/config fails to build.
-Fix: Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile.
-
-Symptom:undefined reference to `getprogname' or `setprogname'
-Fix: Rebuild and install lib/libc
-
-Symptom:lint does not understand the '-X' option
-Fix: May need to build & install libs with NOLINT=1 before rebuilding lint
8 bin/Makefile
View
@@ -1,8 +0,0 @@
-# $NetBSD: Makefile,v 1.19 2002/06/17 16:29:07 christos Exp $
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-SUBDIR= cat chio chmod cp csh date dd df domainname echo ed expr hostname \
- kill ksh ln ls mkdir mt mv pax ps pwd rcp rcmd rm rmdir sh \
- sleep stty sync systrace test
-
-.include <bsd.subdir.mk>
11 bin/Makefile.inc
View
@@ -1,11 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.14 2002/09/27 21:04:46 thorpej Exp $
-# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
-
-.include <bsd.own.mk> # for MKDYNAMICROOT definition
-
-WARNS?= 2
-BINDIR?= /bin
-
-.if (${MKDYNAMICROOT} == "no")
-LDSTATIC?= -static
-.endif
6 bin/cat/Makefile
View
@@ -1,6 +0,0 @@
-# $NetBSD: Makefile,v 1.12 2003/05/18 07:57:31 lukem Exp $
-# @(#)Makefile 8.1 (Berkeley) 5/31/93
-
-PROG= cat
-
-.include <bsd.prog.mk>
159 bin/cat/cat.1
View
@@ -1,159 +0,0 @@
-.\" $NetBSD: cat.1,v 1.30 2003/08/27 16:27:35 junyoung Exp $
-.\"
-.\" Copyright (c) 1989, 1990, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" This code is derived from software contributed to Berkeley by
-.\" the Institute of Electrical and Electronics Engineers, Inc.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" @(#)cat.1 8.3 (Berkeley) 5/2/95
-.\"
-.Dd May 2, 1995
-.Dt CAT 1
-.Os
-.Sh NAME
-.Nm cat
-.Nd concatenate and print files
-.Sh SYNOPSIS
-.Nm
-.Op Fl beflnstuv
-.Op Fl
-.Op Ar
-.Sh DESCRIPTION
-The
-.Nm
-utility reads files sequentially, writing them to the standard output.
-The
-.Ar file
-operands are processed in command line order.
-A single dash represents the standard input,
-and may appear multiple times in the
-.Ar file
-list.
-.Pp
-The word
-.Dq concatenate
-is just a verbose synonym for
-.Dq catenate .
-.Pp
-The options are as follows:
-.Bl -tag -width Ds
-.It Fl b
-Implies the
-.Fl n
-option but doesn't number blank lines.
-.It Fl e
-Implies the
-.Fl v
-option, and displays a dollar sign
-.Pq Ql \&$
-at the end of each line
-as well.
-.It Fl f
-Only attempt to display regular files.
-.It Fl l
-Set an exclusive advisory lock on the standard output file descriptor.
-This lock is set using
-.Xr fcntl 2
-with the
-.Dv F_SETLKW
-command.
-If the output file is already locked,
-.Nm
-will block until the lock is acquired.
-.It Fl n
-Number the output lines, starting at 1.
-.It Fl s
-Squeeze multiple adjacent empty lines, causing the output to be
-single spaced.
-.It Fl t
-Implies the
-.Fl v
-option, and displays tab characters as
-.Ql ^I
-as well.
-.It Fl u
-The
-.Fl u
-option guarantees that the output is unbuffered.
-.It Fl v
-Displays non-printing characters so they are visible.
-Control characters print as
-.Ql ^X
-for control-X; the delete
-character (octal 0177) prints as
-.Ql ^? .
-Non-ascii characters (with the high bit set) are printed as
-.Ql M-
-(for meta) followed by the character for the low 7 bits.
-.El
-.Sh EXIT STATUS
-The
-.Nm
-utility exits 0 on success, and \*[Gt]0 if an error occurs.
-.Sh SEE ALSO
-.Xr head 1 ,
-.Xr hexdump 1 ,
-.Xr lpr 1 ,
-.Xr more 1 ,
-.Xr pr 1 ,
-.Xr tail 1 ,
-.Xr view 1 ,
-.Xr vis 1 ,
-.Xr fcntl 2
-.Rs
-.%A Rob Pike
-.%T "UNIX Style, or cat -v Considered Harmful"
-.%J "USENIX Summer Conference Proceedings"
-.%D 1983
-.Re
-.Sh STANDARDS
-The
-.Nm
-utility is expected to conform to the
-.St -p1003.2-92
-specification.
-.Pp
-The flags
-.Op Fl belnstv
-are extensions to the specification.
-.Sh HISTORY
-A
-.Nm
-utility appeared in
-.At v1 .
-Dennis Ritchie designed and wrote the first man page.
-It appears to have been
-.Xr cat 1 .
-.Sh BUGS
-Because of the shell language mechanism used to perform output
-redirection, the command
-.Dq Li cat file1 file2 \*[Gt] file1
-will cause the original data in file1 to be destroyed!
-This is performed by the shell before
-.Nm
-is run.
311 bin/cat/cat.c
View
@@ -1,311 +0,0 @@
-/* $NetBSD: cat.c,v 1.43 2004/01/04 03:31:28 jschauma Exp $ */
-
-/*
- * Copyright (c) 1989, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Kevin Fall.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if HAVE_NBTOOL_CONFIG_H
-#include "nbtool_config.h"
-#endif
-
-#include <sys/cdefs.h>
-#if !defined(lint)
-__COPYRIGHT(
-"@(#) Copyright (c) 1989, 1993\n\
- The Regents of the University of California. All rights reserved.\n");
-#if 0
-static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
-#else
-__RCSID("$NetBSD: cat.c,v 1.43 2004/01/04 03:31:28 jschauma Exp $");
-#endif
-#endif /* not lint */
-
-#include <sys/param.h>
-#include <sys/stat.h>
-
-#include <ctype.h>
-#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-int bflag, eflag, fflag, lflag, nflag, sflag, tflag, vflag;
-int rval;
-const char *filename;
-
-int main(int, char *[]);
-void cook_args(char *argv[]);
-void cook_buf(FILE *);
-void raw_args(char *argv[]);
-void raw_cat(int);
-
-int
-main(int argc, char *argv[])
-{
- int ch;
- struct flock stdout_lock;
-
- setprogname(argv[0]);
- (void)setlocale(LC_ALL, "");
-
- while ((ch = getopt(argc, argv, "beflnstuv")) != -1)
- switch (ch) {
- case 'b':
- bflag = nflag = 1; /* -b implies -n */
- break;
- case 'e':
- eflag = vflag = 1; /* -e implies -v */
- break;
- case 'f':
- fflag = 1;
- break;
- case 'l':
- lflag = 1;
- break;
- case 'n':
- nflag = 1;
- break;
- case 's':
- sflag = 1;
- break;
- case 't':
- tflag = vflag = 1; /* -t implies -v */
- break;
- case 'u':
- setbuf(stdout, NULL);
- break;
- case 'v':
- vflag = 1;
- break;
- default:
- case '?':
- (void)fprintf(stderr,
- "usage: cat [-beflnstuv] [-] [file ...]\n");
- exit(1);
- /* NOTREACHED */
- }
- argv += optind;
-
- if (lflag) {
- stdout_lock.l_len = 0;
- stdout_lock.l_start = 0;
- stdout_lock.l_type = F_WRLCK;
- stdout_lock.l_whence = SEEK_SET;
- if (fcntl(STDOUT_FILENO, F_SETLKW, &stdout_lock) == -1)
- err(EXIT_FAILURE, "stdout");
- }
-
- if (bflag || eflag || nflag || sflag || tflag || vflag)
- cook_args(argv);
- else
- raw_args(argv);
- if (fclose(stdout))
- err(1, "stdout");
- exit(rval);
- /* NOTREACHED */
-}
-
-void
-cook_args(char **argv)
-{
- FILE *fp;
-
- fp = stdin;
- filename = "stdin";
- do {
- if (*argv) {
- if (!strcmp(*argv, "-"))
- fp = stdin;
- else if ((fp = fopen(*argv,
- fflag ? "rf" : "r")) == NULL) {
- warn("%s", *argv);
- rval = 1;
- ++argv;
- continue;
- }
- filename = *argv++;
- }
- cook_buf(fp);
- if (fp != stdin)
- (void)fclose(fp);
- } while (*argv);
-}
-
-void
-cook_buf(FILE *fp)
-{
- int ch, gobble, line, prev;
-
- line = gobble = 0;
- for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) {
- if (prev == '\n') {
- if (ch == '\n') {
- if (sflag) {
- if (!gobble && putchar(ch) == EOF)
- break;
- gobble = 1;
- continue;
- }
- if (nflag) {
- if (!bflag) {
- (void)fprintf(stdout,
- "%6d\t", ++line);
- if (ferror(stdout))
- break;
- } else if (eflag) {
- (void)fprintf(stdout,
- "%6s\t", "");
- if (ferror(stdout))
- break;
- }
- }
- } else if (nflag) {
- (void)fprintf(stdout, "%6d\t", ++line);
- if (ferror(stdout))
- break;
- }
- }
- gobble = 0;
- if (ch == '\n') {
- if (eflag)
- if (putchar('$') == EOF)
- break;
- } else if (ch == '\t') {
- if (tflag) {
- if (putchar('^') == EOF || putchar('I') == EOF)
- break;
- continue;
- }
- } else if (vflag) {
- if (!isascii(ch)) {
- if (putchar('M') == EOF || putchar('-') == EOF)
- break;
- ch = toascii(ch);
- }
- if (iscntrl(ch)) {
- if (putchar('^') == EOF ||
- putchar(ch == '\177' ? '?' :
- ch | 0100) == EOF)
- break;
- continue;
- }
- }
- if (putchar(ch) == EOF)
- break;
- }
- if (ferror(fp)) {
- warn("%s", filename);
- rval = 1;
- clearerr(fp);
- }
- if (ferror(stdout))
- err(1, "stdout");
-}
-