Skip to content

nonas/debian-clang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests building debian packages with Clang

Configuration

# Do not update chroot everytime i.e. you need to take care of that yourself!
$apt_update = 0;
$apt_upgrade = 0;
$apt_distupgrade = 0;

Building, patching, testing

NB: the following will only work with '3.0 (quilt)' package. Check "Format:" field in dsc file.

  1. Make sure a bug report does not already exist
  2. Get package source from sid: apt-get -t unstable source _package_
  3. 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).
  4. Test if build still fails: sbuild _package-version_.dsc
  5. If build fails, cd to package directory: cd _package-version_/
  6. Create a new patch using quilt: quilt new _patchname_
  7. Add source file(s) to fix: quilt add _some-source-to-fix_
  8. Fix source files using your favorite $EDITOR
  9. "commit" them: quilt refresh
  10. Generate a proper patch header: quilt header -e --dep3
  11. Un-apply all patches: quilt pop -a
  12. Move to parent folder: cd ..
  13. Create a source package from folder: dpkg-source -b _package-version_/
  14. 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 :-)

Bug reports

  • 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 or reportbug -A path/to/the/patch)
  • Send it :-)

About

building and fixing Debian packages with Clang using sbuild

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published