- How to setup sbuild
- Improve things with APT-cacher-NG
- Change sbuild configuration, add the following lines to
~/.sbuildrc
:
# Do not update chroot everytime i.e. you need to take care of that yourself!
$apt_update = 0;
$apt_upgrade = 0;
$apt_distupgrade = 0;
NB: the following will only work with '3.0 (quilt)' package. Check "Format:" field in dsc file.
- Make sure a bug report does not already exist
- Get package source from sid:
apt-get -t unstable source _package_
- Update your sbuild chroot once (we disabled automatic updates in
~/.sbuildrc
):sudo sbuild-update -udcar sid-amd64-sbuild
If GCC stuff was installed/updated, clean it (see the wiki page above). - Test if build still fails:
sbuild _package-version_.dsc
- If build fails, cd to package directory:
cd _package-version_/
- Create a new patch using quilt:
quilt new _patchname_
- Add source file(s) to fix:
quilt add _some-source-to-fix_
- Fix source files using your favorite $EDITOR
- "commit" them:
quilt refresh
- Generate a proper patch header:
quilt header -e --dep3
- Un-apply all patches:
quilt pop -a
- Move to parent folder:
cd ..
- Create a source package from folder:
dpkg-source -b _package-version_/
- Try a new build:
sbuild _package-version_.dsc
If your patch fixes the issue the build should be successful. Fill a bug report with patch :-)
- reportbug: FTBFS with clang instead of gcc
- When editing the message, add
Usertags: clang-ftbfs
User: pkg-llvm-team@lists.alioth.debian.org
- Do not forget to attach the patch (
a
after editing orreportbug -A path/to/the/patch
) - Send it :-)