3 oi-userland is subject to constant improvement.
5 Whenever you modify or update a component, please review the list of tasks, below, and apply any of the improvements that are relevant to the component you have modified. Theses are organized with the easiest changes at the beginning of the list and the more complicated changes near the end:
7 1. Use `$(WS_MAKE_RULES)` when including `prep.mk`, `configure.mk`, `ips.mk`, etc., instead of `../make-rules` or `$(WS_TOP)/make-rules`.
9 Example: Change occurrences of
11 include ../../make-rules/prep.mk
12 include ../../make-rules/configure.mk
13 include ../../make-rules/ips.mk
17 include $(WS_TOP)/make-rules/prep.mk
18 include $(WS_TOP)/make-rules/configure.mk
19 include $(WS_TOP)/make-rules/ips.mk
23 include $(WS_MAKE_RULES)/prep.mk
24 include $(WS_MAKE_RULES)/configure.mk
25 include $(WS_MAKE_RULES)/ips.mk
28 **Note:** This does not apply to the initial `include` for `shared-macros.mk`. That file sets up many of the macros that can be used later, including `$(WS_MAKE_RULES)`, so it cannot be referenced via `$(WS_MAKE_RULES)`.
30 2. Remove `COMPONENT_BUGDB`, if present.
32 If the component's `Makefile` includes a line for `COMPONENT_BUGDB`, remove it. That setting was used by Sun/Oracle and is not relevant to OpenIndiana.
34 3. Use `PATH=$(PATH.gnu)` instead of `PATH=/usr/gnu/bin:/usr/bin` in `Makefile`.
36 If the component's `Makefile` overrides `PATH` to have `/usr/gnu/bin` at the beginning, the PATH should be set via the `$(PATH.gnu)` macro.
38 Example: Change occurrences of
40 PATH=/usr/gnu/bin:/usr/bin
47 4. If there are missing build dependencies, add them in a separate list before the auto-generated runtime dependencies in the `Makefile`.
49 You should always run `gmake env-prep` before attempting to build each component, to install all listed dependencies. If the component fails to build because of e.g a missing header file, it may mean that there are additional build dependencies for the component. You can use `pkg search -r` to identify which component provides the missing file(s).
51 For software that uses `configure`, you could also check `configure.ac` for software that might be a build dependency.
53 Once you've identified the missing build dependency, it should be added to the `Makefile`, just before the auto-generated runtime dependencies.
55 Example: The pkgconfig files `pygtk-2.0.pc` and `pygobject-2.0.pc` are needed to build `image/gimp` but are not needed at runtime, so `gmake REQUIRED_PACKGES` does not detect the dependency. The components containing them should be added to the Makefile, just before the auto-generated dependencies:
58 REQUIRED_PACKAGES += library/python/pygobject
59 REQUIRED_PACKAGES += library/python/pygtk2
61 # Auto-generated dependencies
64 5. For component depending on JPEG libraries switch dependency to libjpeg8-turbo.
68 After updating to 1.8.13 the HTML documentation is generated differently.
70 7. Move binaries to 64-bit only:
72 Libraries should still be delivered as 32- and 64-bit, but binaries are converted to 64-bit only.
74 For autotools-based components set:
79 Feel free to ask for help on the IRC or developer mailing-list.