[Buildd-tools-devel] Bug#465972: Bug#465972: schroot: FTBFS on GNU/kFreeBSD (one line fixup needed)

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Apr 20 22:55:51 UTC 2008


tags 465972 + fixed-upstream pending
thanks

Petr Salinger <Petr.Salinger at seznam.cz> writes:

> the current version fails to build on GNU/kFreeBSD.
>
> It needs one line fixup, see bellow.

Sorry about the delay.  I applied it, with a small modification (see
below).

> It would also be nice if you can ask upstream to include this
> changes.

Not a problem.  We are also upstream, so it's already done!


Regards,
Roger


% git diff 2c8d616a8562fce97a02a2b099f184411a3d4eb7
diff --git a/debian/changelog b/debian/changelog
index bda6a97..0e7d05f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,10 @@ schroot (1.2.0-1) unstable; urgency=low
     an error status and message if incorrect (Closes: #462680).
   * Reading the configuration no longer uses O_NOFOLLOW (Closes: #476332).
     Thanks to Timothy G Abbott.
+  * sbuild/sbuild-util.h: Add missing typecast to fix FTBFS on
+    GNU/kFreeBSD (Closes: #465972).  Thanks to Petr Salinger.
 
- -- Roger Leigh <rleigh at debian.org>  Sun, 20 Apr 2008 23:33:22 +0100
+ -- Roger Leigh <rleigh at debian.org>  Sun, 20 Apr 2008 23:51:42 +0100
 
 schroot (1.1.6-1) unstable; urgency=low
 
diff --git a/sbuild/sbuild-util.h b/sbuild/sbuild-util.h
index d65d458..7458e21 100644
--- a/sbuild/sbuild-util.h
+++ b/sbuild/sbuild-util.h
@@ -557,7 +557,7 @@ namespace sbuild
   stat::check_mode (mode_bits mask) const
   {
     check();
-    return (status.st_mode & mask) == mask;
+    return (static_cast<stat::mode_bits>(status.st_mode) & mask) == mask;
   }
 
 }


-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20080420/58f06da3/attachment.pgp 


More information about the Buildd-tools-devel mailing list