~mdeslaur/upstart/apparmor-support

« back to all changes in this revision

Viewing changes to HACKING

  • Committer: Scott James Remnant
  • Date: 2010-02-04 03:42:29 UTC
  • Revision ID: scott@netsplit.com-20100204034229-94ooua0a4mck3dnm
libnih is now released as its own project, so rather than expecting
to include it with the source we depend on it being outside of it.
* Makefile.am (SUBDIRS): Remove m4 directory along with the nih bits.
(EXTRA_DIST): Remove ChangeLog.nih
* configure.ac (AM_INIT_AUTOMAKE): Remove dist-bzip2, since we don't
actually use it; add color-tests and silent-rules.
(AM_SILENT_RULES): Use silent rules by default
(AM_MAINTAINER_MODE): Enable maintainer mode by default (as before),
but allow it to be disabled
(AM_GNU_GETTEXT_VERSION): Bump to 0.17
(NIH_INIT): Replace with the expanded out calls that we actually need.
(AC_CONFIG_FILES): Remove nih directories
Add magic to allow use of a local libnih source tree.
* init/Makefile.am (AM_CFLAGS): Add NIH_CFLAGS and NIH_DBUS_CFLAGS
(init_LDADD, test_system_LDADD, test_environ_LDADD, test_process_LDADD)
(test_job_class_LDADD, test_job_process_LDADD, test_job_LDADD)
(test_event_LDADD, test_event_operator_LDADD)
(test_blocked_LDADD, test_parse_job_LDADD)
(test_parse_conf_LDADD, test_conf_LDADD, test_control_LDADD):
Replace library paths with NIH_LIBS and NIH_DBUS_LIBS
($(com_ubuntu_Upstart_OUTPUTS)),
($(com_ubuntu_Upstart_Job_OUTPUTS)),
($(com_ubuntu_Upstart_Instance_OUTPUTS)): Use external nih-dbus-tool
and obey silent rules.
(test_system_LDFLAGS, test_environ_LDFLAGS)
(test_process_LDFLAGS, test_job_class_LDFLAGS)
(test_job_process_LDFLAGS, test_job_LDFLAGS, test_event_LDFLAGS)
(test_event_operator_LDFLAGS, test_blocked_LDFLAGS)
(test_parse_job_LDFLAGS, test_parse_conf_LDFLAGS)
(test_conf_LDFLAGS, test_control_LDFLAGS): Drop -static
* util/Makefile.am (AM_CFLAGS): Add NIH_CFLAGS and NIH_DBUS_CFLAGS
(initctl_LDADD, reboot_LDADD, runlevel_LDADD, shutdown_LDADD)
(test_initctl_LDADD, test_utmp_LDADD, test_sysv_LDADD)
(test_telinit_LDADD): Replace library paths with NIH_LIBS and
NIH_DBUS_LIBS
($(com_ubuntu_Upstart_OUTPUTS)):
($(com_ubuntu_Upstart_Job_OUTPUTS)):
($(com_ubuntu_Upstart_Instance_OUTPUTS)): Use external nih-dbus-tool
and obey silent rules.
(initctl_LDFLAGS, reboot_LDFLAGS, runlevel_LDFLAGS)
(shutdown_LDFLAGS, telinit_LDFLAGS, test_initctl_LDFLAGS)
(test_utmp_LDFLAGS, test_sysv_LDFLAGS, test_telinit_LDFLAGS): Drop
-static
* README: Add libnih to the dependencies.
* HACKING: Remove the instructions for checking out libnih, replace
with a description about how to use a libnih source tree instead of
the installed one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
ChangeLog entry with your patch.
18
18
 
19
19
 
20
 
Dependencies
21
 
------------
22
 
 
23
 
Upstart uses the libnih library to provide a standard set of utility
24
 
functions used throughout the source.  This library has not yet been
25
 
released in a stand-alone fashion and must instead be shipped with the
26
 
source.
27
 
 
28
 
If you checked upstart out from Bazaar you will also need to check
29
 
libnih out from the following URL, usually into parent directory of
30
 
the Upstart source:
31
 
 
32
 
        http://bazaar.launchpad.net/~scott/libnih/trunk
33
 
 
34
 
and run ‘autoreconf -i’ and ‘configure’ within that tree before,
35
 
from the upstart working directory, running the ‘nihify’ script to
36
 
symlink the necessary files across, usually just:
37
 
 
38
 
        ../libnih/nihify
39
 
 
40
 
 
41
20
Maintainer tools
42
21
----------------
43
22
 
55
34
simply run ‘autoreconf -i’ from the top-level source directory.
56
35
 
57
36
 
 
37
libnih
 
38
------
 
39
 
 
40
Upstart normally uses the pre-installed version of libnih, however it's
 
41
possible to use a version from a source tree alongside Upstart by
 
42
passing the path of that tree to the configure script using the
 
43
--with-local-libnih option.
 
44
 
 
45
 
58
46
Configure options
59
47
-----------------
60
48