README 5.07 KB
Newer Older
1
JHBuild README
2 3
================================

4 5
JHBuild is a tool designed to ease building collections of source
packages, called “modules”.
6

7 8
JHBuild was originally written for building GNOME, but has since been
extended to be usable with other projects.
9

10
JHBuild requires Python >= 2.3
11

12 13
Installing JHBuild
-----------
14

15
Refer to the 'Getting Started' section of the JHBuild manual:
16

17
  yelp /jhbuild-source-dir/doc/C/index.docbook
18

19
Or refer to the on-line JHBuild manual at:
20

21
  http://library.gnome.org/devel/jhbuild/stable/getting-started.html.en
22

23 24
Using JHBuild
-------------
25

26
JHBuild uses a command line syntax similar to tools like CVS:
27

28
  jhbuild [global-options] command [command-arguments]
29

30
The global JHBuild options are:
31

32
  -f, --file config
33 34
  Use an alternative configuration file instead of the default
  ~/.config/jhbuildrc.
35

36 37 38 39 40
  -m, --moduleset moduleset
  Use a module set other than the module set listed in the
  configuration file. This option can be a relative path if the module
  set is located in the JHBuild moduleset folder, or an absolute path
  if located elsewhere.
41

42 43 44 45
  --no-interact
  Do not prompt the user for any input. This option is useful if
  leaving a build unattended, in order to ensure the build is not
  interrupted.
46

47 48
Refer to the JHBuild manual for a complete list of JHBuild commands
and options. The common ones are:
49

50
jhbuild bootstrap
51

52 53 54 55 56 57
  The bootstrap command installs a set of build utilities. The build
  utilities include autoconf , automake and similar utilities. The
  recommended method to install the build utilities is via your
  distribution's package management system. The bootstrap should only be
  used if the build utilites are not provided by your distribution's package
  management system, for example on Mac OS.
58

59 60 61 62 63
jhbuild build [--autogen] [--clean] [--dist] [--distcheck]
  [--ignore-suggests] [--no-network] [--skip=module...]
  [--start-at=module] [--tags=tags] [-D date] [--no-xvfb]
  [--try-checkout] [--no-poison] [--force] [--build-optional-modules]
  [--min-age=time] [module...]
64

65 66
  The build command builds one or more packages, including their
  dependencies.
67

68 69
  If no module names are provided on the command line, the modules
  list from the configuration file will be used.
70

71 72 73 74 75
  -a, --autogen
  Always run autogen.sh before building modules. By default,
  autogen.sh will only be called if the top-level makefile is
  missing. Otherwise, JHBuild relies on the package's makefiles to
  detect if configure needs to be rebuilt or rerun.
76

77 78
  -c, --clean
  Run make clean before building modules.
79

80 81
  -d, --dist
  Run make dist after building modules.
82

83 84
  --distcheck
  Run make distcheck after building modules.
85

86 87
  --ignore-suggests
  Do not build soft dependencies.
88

89 90 91 92
  -n, --no-network
  Do not access the network when building modules. This will skip
  download or update stages in a build. If a module can't be built
  without network access, the module build will fail.
93

94 95 96
  -s, --skip=module,...
  Do not build the listed modules. Used to skip the building of
  specified dependencies.
97

98 99 100
  --tags=tag,...
  Ignore modules that do not match tag. Modules are automatically
  attributed a tag matching the name of the module's module set.
101

102 103 104
  -t, --start-at=module
  Start at the named module rather than at the beginning of the
  list. This option is useful if the build was interrupted.
105

106 107 108 109
  -D date
  If supported by the underlying version control system, update the
  source tree to the specified date before building. An ISO date
  format is required, e.g. "2009-09-18 02:32Z".
110

111 112 113
  -x, --no-xvfb
  Run graphical tests on the actual X server rather than in a
  simulated Xvfb.
114

115 116 117
  -C, --try-checkout
  If the build fails, and if supported by the version control system,
  force a checkout and run autogen.sh before retrying the build.
118

119 120 121
  -N, --no-poison
  If one or more of a module's dependencies failed, this option forces
  JHBuild to try to build the module anyway.
122

123 124
  -f, --force
  Build the modules even if policy states it is not required.
125

126 127 128 129
  --build-optional-modules
  Modules listed as optional dependencies, may not be required to
  build the module. This option forces JHBuild to build optional
  dependencies.
130

131
  --min-age=time
132 133 134
  Skip modules installed more recently than the specified relative
  time. The time string format is a number followed by a unit. The
  following units are supported: seconds (s), minutes (m), hours (h)
135
  and days (d). For example, --min-age=2h will skip modules built
136
  less than two hours ago.
137

138 139
jhbuild buildone [--autogen] [--clean] [--distcheck] [--no-network]
  [-D date] [--no-xvfb] [--force] [--min-age=time] module...
140

141 142
  The buildone command is similar to build, but it does not build the
  dependent modules. It is useful for rebuilding one or more modules.
143

144
jhbuild sanitycheck
145

146 147
  The sanitycheck command performs a number of checks to verify the
  build environment is okay.
148

149 150
For details of all jbhuild's command line options:
  jhbuild --help
151

152 153 154
Reporting Bugs
--------------

155
If you find any bugs in JHBuild, or have feature requests (or
156
implementations :), please file them at:
157

158
  https://gitlab.gnome.org/GNOME/jhbuild/issues/new
159

160
This will ensure your request is not lost.