[buildd-tools-devel] Bug#551311: Bug#551311: Please provide debuild like functionality for sbuild

Andres Mejia mcitadel at gmail.com
Mon Oct 19 03:57:24 UTC 2009


tags 551311 patch
thanks

Here's a preliminary patch to provide an sbulid-debuild script that provides 
debuild like functionality for sbuild. I thought it may be better to seperate 
this functionality from a run of sbuild. Also, instead of actual patches, I've 
supplied the script, man page, and an example configuration file instead.

The functionality that this script provides is best explained through the man 
page I've attached. To summarize, this script gives similar functionality as 
debuild. You can run it from a debianized package source directory to build a 
package using sbuild. The resulting package's .changes file is then processed 
through lintian. sbuild-debuild also allows for supplying debianized source 
package directories directly and for supply a .dsc file. Also, sbuild-debuild 
allows for running external commands in a similar fashion as you would run 
hooks.

There's one thing left to do that I think is crucial. That is figuring out how 
to log everything that's output from this script to a log file. Perhaps it's 
best to run sbuild with the --nolog option to not interfere with a potential 
logging operation from sbuild-debuild. I would like log files to be written to 
"package_version_arch.build"

On Saturday 17 October 2009 01:52:10 Andres Mejia wrote:
> Package: sbuild
> Version: 0.59.1~rc1
> Severity: wishlist
> 
> 
> It would be great if it were possible to build packages in a similar
>  fashion as you would via debuild, whether it be via sbuild or some new
>  script, perhaps one named sdebuild.
> 
> What I mean is, let's say an sdebuild script is written. You would run
>  sdebuild in the source tree of a debianized program and it will create the
>  source packages to be run via sbuild and after a build, it could
>  optionally run lintian, run piuparts, sign your packages, etc.
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages sbuild depends on:
> ii  adduser                       3.111      add and remove users and
>  groups ii  libsbuild-perl                0.59.1~rc1 Tool for building
>  Debian binary pa ii  perl                          5.10.1-5   Larry Wall's
>  Practical Extraction ii  perl-modules                  5.10.1-5   Core
>  Perl modules
> 
> Versions of packages sbuild recommends:
> ii  debootstrap                   1.0.20     Bootstrap a basic Debian
>  system ii  fakeroot                      1.14       Gives a fake root
>  environment
> 
> Versions of packages sbuild suggests:
> pn  deborphan                     <none>     (no description available)
> ii  wget                          1.12-1     retrieves files from the web
> 
> -- no debconf information
> 
> 
> 
> _______________________________________________
> Buildd-tools-devel mailing list
> Buildd-tools-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/buildd-tools-devel
> 

-- 
Regards,
Andres
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-debuild
Type: application/x-perl
Size: 11619 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20091018/ecd7320d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-debuild.1.in
Type: text/troff
Size: 7925 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20091018/ecd7320d/attachment-0003.bin>
-------------- next part --------------
# sbuild-debuild.conf: global sbuild-debuild settings.              -*- Perl -*-

# Various options with their defaults used with sbuild-debuild
# $dpkg_buildpackage_opts = ['-S','-us','-uc',];
# $dpkg_buildpackage_extra_opts = [];
# $sbuild_opts = [];
# $sbuild_extra_opts = [];
# $lintian_opts = [];
# $lintian_extra_opts = [];
# $no_lintian = 0;
# $pre_dpkg_buildpackage_commands = [];
# $pre_sbuild_commands = [];
# $pre_lintian_commands = [];
# $pre_exit_commands = [];

1;


More information about the Buildd-tools-devel mailing list