Changes between Version 1 and Version 2 of BuildingAPackage


Ignore:
Timestamp:
10/17/12 18:09:28 (9 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAPackage

    v1 v2  
    66 `debuild` 
    77 
    8 If all went well, the build should succeed, and the .deb file should have been created in the _parent directory_ of the one you're currently in. 
     8(You can add -S or -b to build only the source or binary package, respectively) 
     9 
     10 == The Build Process == 
     11 
     12You'll see a lot of output scroll by as debuild builds the source package and the binary package.  If you scroll through the output, you'll see a lot of invocations of commands that begin with `dh_`.  These are `debhelper` utilities, and they're being invoked because of the `debhelper.mk` line in our rules file.  Without that, you'd have to specify each of these commands, in the correct order, in the rules file. 
     13 
     14Towards the end, you'll see a line like this: 
     15`dpkg-deb: building package `some-package-name` in `../some-package-name-1.0_all.deb` 
     16 
     17Note that the .deb is created in the _parent directory_ of the one you're currently in.  In the parent directory, you'll also see a .dsc and a .tar.gz file (unless you told debuild not tobuild a source package), you'll see a `.build` file, which contains the build log.  Reading through that file is often easier than scrolling back in your Terminal to identify errors. 
     18 
     19One of the last steps of the build process is to run Lintian.  Lintian is a utility that looks at your packages and checks for common errors.  Its output looks like this: 
     20{{{ 
     21W: some-package-name source: changelog-should-mention-nmu 
     22}}} 
     23The `W` indicates a warning (an 'E' would indicate an error), the `source` indicates that this warning applies to the source package (as opposed to the package as a whole), and the last part is the "tag".  You can look up lintian tags at http://lintian.debian.org, and the description of the tag will tell you what causes it, and generally how to fix it.  Note than an 'error' does not actually mean that the package failed to build, but rather that it's a seriousl problem that should be rectified. 
     24 
     25Some [wiki:LintianWarnings Lintian warnings] are expected with the Debathena repository. 
    926 
    1027 == Troubleshooting ==