Your message dated Fri, 17 Oct 2014 17:04:47 +0000
with message-id <[email protected]>
and subject line Bug#705926: fixed in sbuild 0.65.0-1
has caused the Debian Bug report #705926,
regarding sbuild: Add basic DEP-8 autopkgtest
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
705926: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705926
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sbuild
Version: 0.63.2-1.1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch


Dear Maintainer,

The attached debdiff adds a basic DEP-8 autopkgtest for sbuild. See:

- https://code.launchpad.net/~jamesodhunt/ubuntu/raring/sbuild/dep8-procenv
-
https://code.launchpad.net/~jamesodhunt/ubuntu/raring/sbuild/dep8-procenv/+merge/159596

In Ubuntu, the attached patch was generated to achieve the following:

* ability to detect if sbuilder is able to:
  - create a chroot for the current release.
  - build a package.
* check that the resulting package is installable and the binary runnable.

Thanks for considering the patch.


Kind regards,

James.
--
James Hunt
____________________________________
#upstart on freenode
http://upstart.ubuntu.com/cookbook
https://lists.ubuntu.com/mailman/listinfo/upstart-devel
=== modified file 'debian/changelog'

=== modified file 'debian/control'
--- debian/control      2012-06-23 22:27:58 +0000
+++ debian/control      2013-04-22 10:00:27 +0000
@@ -8,6 +8,7 @@
 Standards-Version: 3.9.1
 Vcs-Browser: http://git.debian.org/?p=buildd-tools/sbuild.git
 Vcs-Git: git://git.debian.org/git/buildd-tools/sbuild
+XS-Testsuite: autopkgtest
 
 Package: libsbuild-perl
 Architecture: all

=== added directory 'debian/tests'
=== added file 'debian/tests/build_procenv'
--- debian/tests/build_procenv  1970-01-01 00:00:00 +0000
+++ debian/tests/build_procenv  2013-04-22 10:00:05 +0000
@@ -0,0 +1,132 @@
+#!/bin/sh -e
+#---------------------------------------------------------------------
+# DEP-8 test for sbuild.
+#
+# Creates a sbuild chroot, builds a package, installs the resulting
+# .deb, then runs the command provided by the .deb.
+#---------------------------------------------------------------------
+
+die()
+{
+    msg="$*"
+    echo "ERROR: $msg" >&2
+    exit 1
+}
+
+# The package we'll ask sbuild to build (we know its buildable since
+# it's already in the archive :-)
+#
+# The advantage of choosing this particular package being that it runs
+# *itself* at the end of its build, which has the nice side-effect of
+# exposing the full sbuild environment to those perusing the autopkgtest
+# logs.
+pkg=procenv
+
+release=$(lsb_release -c|cut -d: -f2|awk '{print $1}')
+dir="$ADTTMP/schroot-$release"
+arch=$(dpkg --print-architecture)
+chroot="${release}-${arch}-sbuild"
+
+distro=$(lsb_release --id|cut -d: -f2-|awk '{print $1}'|tr '[A-Z]' '[a-z]')
+
+if [ "$distro" = ubuntu ]
+then
+    url=http://archive.ubuntu.com/ubuntu
+else
+    url=http://archive.debian.org/debian
+fi
+
+# schroot does not allow a chroot name to be specified at creation time.
+# As such, we must take care to avoid stomping on a developers chroots.
+# If we find any that match the chroot we're about to try and make, exit
+# with a message.
+#
+# Note that we are very cautious in the grep check below; we purposely
+# don't match on the _type_ of schroot in case new schroot types are
+# added and this test is not updated to take account of the new types.
+
+schroots=$(schroot -l 2>/dev/null)
+
+if [ -n "$schroots" ] && echo "$schroots"|grep -q ":${release}-${arch}"
+then
+    echo "INFO:"
+    echo "INFO: Existing schroots detected for current release ($release)"
+    echo "INFO: and architecture ($arch)"
+    echo "INFO:"
+    echo "INFO: Not continuing."
+    echo "INFO:"
+
+    # exit successfully
+    exit 0
+fi
+
+echo "INFO: Creating sbuild chroot '$chroot' for release '$release' in 
directory '$dir' from url '$url'"
+sbuild-createchroot "$release" "$dir" "$url"
+
+echo "INFO: Checking chroot '$chroot' is known"
+schroot --list --all-chroots|grep "^chroot:${chroot}$"
+
+echo "INFO: Displaying information about chroot '$chroot'"
+schroot --info "${chroot}"
+
+# '--download-only' to avoid unpack which generates a signature
+# warning to stderr, causing this test to fail.
+echo "INFO: Downloading source for package '$pkg'"
+apt-get source --download-only "$pkg"
+
+dsc=$(ls ${pkg}*.dsc)
+
+# crucial
+echo "INFO: Creating sbuild key pair"
+sbuild-update --keygen 2>&1
+
+echo "INFO: Building package '$pkg' for release '$release' from '$dsc'"
+sbuild -A -d "$release" $dsc 2>&1
+
+pkg_and_version=$(echo "$dsc"|sed 's/\.dsc$//g')
+deb=${pkg_and_version}_${arch}.deb
+
+echo "INFO: Displaying sbuild log"
+cat ${pkg_and_version}_${arch}*.build
+
+echo "INFO: Installing package '$pkg' from '$deb'"
+dpkg -i "$deb"
+
+# run the command to prove the build worked but also to expose the
+# auto-package-test environment used for this test.
+cmd=$pkg
+echo "INFO: Showing AutoPkgTest environment by running '$cmd' from package 
'$pkg'"
+"$cmd"
+
+# There is no sbuild/schroot command to actually delete the chroot, but
+# we do want to clean up fully. The best we can do is end the schroot
+# session, and remove the sym links. Removing the chroot itself is not
+# necessary since it is created below $ADTTMP so will be removed
+# automatically by the AutoPkgTest environment.
+
+echo "INFO: Establishing schroot sessions for chroot '$chroot'"
+session=$(schroot --list --all-sessions|grep "^session:${release}-${arch}-" || 
:)
+if [ -n "$session" ]
+then
+    count=$(echo "$session"|wc -l)
+    [ $count -eq 1 ] || die "expected 1 session, found $count"
+
+    echo "INFO: Ending schroot session '$session'"
+    schroot --end-session --chroot "$session"
+else
+    echo "INFO: No schroot session to end"
+fi
+
+echo "INFO: Cleaning up"
+
+echo "INFO: Removing sbuild chroot symbolic link for '$chroot'"
+link=$(ls /etc/sbuild/chroot/${chroot})
+# remove soon-to-be-broken symbolic link
+[ -h "$link" ] && rm "$link"
+
+# remove soon-to-be stale configuration file
+echo "INFO: Removing schroot configuration file for '$chroot'"
+config=$(ls /etc/schroot/chroot.d/${chroot}-*)
+[ -f "$config" ] && rm "$config"
+
+echo "INFO: SUCCESS"

=== added file 'debian/tests/control'
--- debian/tests/control        1970-01-01 00:00:00 +0000
+++ debian/tests/control        2013-04-18 10:50:08 +0000
@@ -0,0 +1,3 @@
+Tests: build_procenv
+Depends: @
+Restrictions: needs-root


--- End Message ---
--- Begin Message ---
Source: sbuild
Source-Version: 0.65.0-1

We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Wookey <[email protected]> (supplier of updated sbuild package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 17 Oct 2014 17:20:45 +0100
Source: sbuild
Binary: libsbuild-perl sbuild buildd
Architecture: source all
Version: 0.65.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian buildd-tools Developers 
<[email protected]>
Changed-By: Wookey <[email protected]>
Description:
 buildd     - Daemon for automatically building Debian binary packages from Deb
 libsbuild-perl - Tool for building Debian binary packages from Debian sources
 sbuild     - Tool for building Debian binary packages from Debian sources
Closes: 679574 700522 705926 712627 714883 722103 729012 731798 745221 756265
Changes:
 sbuild (0.65.0-1) unstable; urgency=medium
 .
   [ Benjamin Drung ]
   * Team upload.
   * Fix various issues found by Lintian:
     - Fix spelling mistake: indended -> intended
     - Fix hyphen-used-as-minus-sign
     - Fix debian-news-entry-uses-asterisk
     - Fix copyright-refers-to-symlink-license
     - Use canonical VCS fields
   * Export additional variables to external commands: %SBUILD_CHROOT_DIR,
     %SBUILD_BUILD_DIR, %SBUILD_PKGBUILD_DIR, and %SBUILD_HOST_ARCH
     (Closes: #756265)
   * Bump Standard-Version to 3.9.6
   * Unset typical desktop variables XDG_RUNTIME_DIR, XDG_SEAT,
     XDG_SESSION_COOKIE, XDG_SESSION_ID, and XDG_VTNR (Closes: #729012)
   * Fail if dpkg subcommands fail instead of silently ignoring failures.
     Thanks to Christoph Biedl for the patch (Closes: #745221)
   * Fix build failure if the package version ends with Debian revision 0.
     Thanks to Adam Borowski <[email protected]> (Closes: #679574)
   * Fix broken man page symlinks in buildd package
 .
   [ Geoffrey Thomas ]
   * Refactor temporary build-dep repository code to use apt-get update,
     instead of hacking /var/lib/apt/lists.
   * Add --extra-package (Closes: #700522) and --extra-repository (Closes:
     #714883).
   * Accept 0 as a source version number (Closes: #712627)
   * Add DEP-8 autopkgtest to build procenv. (Closes: #705926)
 .
   [ Johannes Schauer ]
   * sbuild:
     - Add build-profiles support (Closes: 731798)
 .
   [ Geoffrey Thomas ]
   * Sbuild::ChrootSetup: Pass --no-options to gpg (Closes: #722103)
Checksums-Sha1:
 e1a78947d0da569f61564366875b5f8216e71731 2211 sbuild_0.65.0-1.dsc
 56981eb635917ea1f25bef52a5fdac30604317c2 584238 sbuild_0.65.0.orig.tar.gz
 bf5fc61e1e2dd4983b529cbfa7c6fa6ae3244dde 50120 sbuild_0.65.0-1.debian.tar.xz
 27fce893c17ab4555bb02e90bc59a7bc14944dbc 291050 libsbuild-perl_0.65.0-1_all.deb
 d647e2eb7de5d0c3cf24c82a3f0bda08ac8cf112 312614 sbuild_0.65.0-1_all.deb
 c41442bca66b17de8971effd360fea3c42e3df7f 293378 buildd_0.65.0-1_all.deb
Checksums-Sha256:
 eac5afbb989d0eff6718dbff340e2b1dbec30e8f8e8564f07cab212053a16b41 2211 
sbuild_0.65.0-1.dsc
 2d78cae0a09c1d7334b87c45fb4a2de32d64d492600ca06be7d8eb43a88d7eab 584238 
sbuild_0.65.0.orig.tar.gz
 d67bfd434d0b4a83b1f14e8c5aa7579951d1c59c9076056757efd60ba821a3ab 50120 
sbuild_0.65.0-1.debian.tar.xz
 7cf376654b86fe7b597be0d29da3b67a1587cf1577f1837a7e44d90d4d60a1e3 291050 
libsbuild-perl_0.65.0-1_all.deb
 68281ef0d90b366285c9d04b497f14161c2ff602957b1589492cfc681b32d008 312614 
sbuild_0.65.0-1_all.deb
 38b41958c8677be17ccd448b79af312d2f68f9eb5d8b2f9b8ff6b28918a24134 293378 
buildd_0.65.0-1_all.deb
Files:
 f765239cba6dc9ecebe5ad9f3866b3ec 2211 devel extra sbuild_0.65.0-1.dsc
 a0e4806ff60418bac3ea31d4b964a532 584238 devel extra sbuild_0.65.0.orig.tar.gz
 9d693cac94f66ce1b2f9841fbfd68910 50120 devel extra 
sbuild_0.65.0-1.debian.tar.xz
 6336273bd515916d090ff631da413758 291050 perl extra 
libsbuild-perl_0.65.0-1_all.deb
 38237fcc180441e42c9f48bf47647c08 312614 devel extra sbuild_0.65.0-1_all.deb
 627fbc34a04a74e6fe2c42fc70e7f1fb 293378 devel extra buildd_0.65.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUQUhSAAoJEPuGMlGob55HiJoQALIg5wIhx8JGa5qgPkx9vBTD
X8aYNQEW3NwrB1IIqJW/nLm0ES2eD1nU7FoIPPV2eBxwwnPCm06F1Ew/o3XRKldP
/e2DnAr8IoIcn9ToGA/jNQTDpVH0alqz56c3oPgIWbgu0yGeYi31w1VUxQ50IHH0
8dWyWWXMe5a6iCYeiCZ/WT7U5Xd2RpFwrO8iq1jMcg132mQp6HriK5Kr7C2G5g9w
mt5QZ3BfaZVlZNZfNYj7BR3aCVHXtZKSLBwmtI6TZkMxC9pE4Xmx3mxxhTQNGhkR
QyhtlecRJY0Igp9JN1E5RBBc2d1OcWPYxZa+yD/RcvsXVMDnL7L/W7XZOBxrS+Tf
wQz33t7Pdls407DjyzSuVYhdfj6I4e5ILcbxjwZvRxRohLZJeWK5nLwcDOLVsdpO
uwjxzcVOL+1KaCREaLlr3o2+E2Sw89pI12kPENGIDZ0knRiBC0AvmpGNvsfJtggI
9glp6o7V9HpvLf4PaUN+qyw3clsVn3CXcljOzCrchXc5h+IuIAoOHKDkehK+UqLU
VtT5WjefspUwJcXdFL63go1TMm7cLAEmuiJUhW/cZh4pHpSUi2jVz+33mnO5y9Zy
75/GV4bwivQwN2Azqj7tv9ots/T+u45x0Ib1K9GgLq33jO1gSTyrEKgR4PLvwVXy
tkR5//uqf6qTCJdEvUjx
=YQM/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to