Changes between Version 1 and Version 2 of BuildingAPackage

10/17/12 18:09:28 (12 years ago)



  • BuildingAPackage

    v1 v2  
    66 `debuild` 
    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) 
     10 == The Build Process == 
     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 `` line in our rules file.  Without that, you'd have to specify each of these commands, in the correct order, in the rules file. 
     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` 
     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. 
     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: 
     21W: some-package-name source: changelog-should-mention-nmu 
     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, 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. 
     25Some [wiki:LintianWarnings Lintian warnings] are expected with the Debathena repository. 
    1027 == Troubleshooting ==