emdebuild1
Emdebuild is the emdebian version of debuild.
Usage
emdebuild [{[-a] | [--arch]
ARCH}]
[{[-n] | [--next]}]
[--svn]
[--sign]
[{[-v] | [--verbose]}]
[{[-q] | [--quiet]}]
emdebuild [--svn-only]
emdebuild [--build-dep]
emdebuild [{[-h] | [--help]}]
[[--version]]
Overview
After a Debian package has been ´emdebianised´ with em_make, emdebuild provides a convenient wrapper around dpkg-buildpackage.
emdebuild needs to be run in the source directory of the package.
By default, emdebuild cross-builds the package for the dpkg-cross default architecture. Specify other architectures with -a|--arch. Ensure the current toolchain is installed for the chosen architecture.
running debian/rules alone is unsupported
There is no equivalent for the fakeroot debian/rules binary type shorthand for a quick rebuild of the package due to the needs of the cross-build.
Commands
-
--svn-only -
Commit modifications to the emdebian patch files back to Emdebian SVN
withoutrebuilding, e.g. once a failed build has been repaired. Requires a subversion working directory which can be provided by unpacking the source withemsource. The working copy must have been checked out with developer access.emsourcewill use developer access if a valid Emdebian SVN username is available.Note that the build log will need to be added to svn and checked in separately.
--svn-onlyis disabled when using machine:variant customisation patches viaemsource-m.
-
--build-dep -
Read the debian/xcontrol file (if any) and parse the list of Build-Cross-Depends: and call
apt-crossto install the cross dependencies.See
emdebuildsupport for debian/xcontrol.
Options
-a|--arch ARCH
Override the default architecture (set by dpkg-cross).
-n|--next
Increment the emdebian version before building. Note that, in most cases, it is advisable to edit debian/changelog and add an explanatory message before uploading the built package. emdebuild merely adds a very brief comment.
When building a package that has been updated upstream, the -n option can be used to restore the effect of a default Emdebian version if the emdebian-changelog.patch could not be applied.
-
--svn -
Commit modifications to the emdebian patch files back to Emdebian SVN upon a successful build. Requires a subversion working directory which can be provided by unpacking the source with
emsource. The working copy must have been checked out with developer access.emsourcewill use developer access if a valid Emdebian SVN username is available.If the build fails,
emdebuildcan be restarted and the patches committed to Emdebian SVN once the build has been fixed using the-svn-onlyoption.--svnwill abort the SVN commit when using machine:variant customisation patches viaemsource-m.
-
--sign -
Sign the changes file created by the underlying
dpkg-buildpackage. Many repositories require changes files to be signed with an authorised GnuPG key. If ~/.devscripts is configured so that DEBUILD_DPKG_BUILDPACKAGE_OPTS options specify thatdpkg-buildpackageshould not sign the changes file directly, this option can be used to calldebsignwith the generated changes file at the end of the build. Experience has shown that even whendpkg-buildpackageis unable to sign the changes file, runningdebsigndirectly succeeds.
-v|--verbose
be verbose - repeat once for extra verbosity. Most users are highly recommended to use at least one level of verbosity.
-q|--quiet
be quiet. emdebuild will be very quiet with this option, only essential warnings and messages from the build process itself are output. Intended for automated buildd purposes.
-h|--help
print the usage message and exit.
-
--version -
print the usage message and exit.
Notes
- 1.
-
General Introduction
http://www.emdebian.org/emdebian/intro.html