tags 377433 + patch fixed-upstream pending
thanks

Martin Michlmayr <[EMAIL PROTECTED]> writes:

> Package: schroot
> Version: 0.99.2-1
>
> The new version fails to build with GCC 4.2, a snapshot of which can
> be found in the gcc-snapshot package.

Thanks for letting me know.  I committed the following changes into
SVN:

Index: sbuild/sbuild-dirstream.h
===================================================================
--- sbuild/sbuild-dirstream.h	(revision 819)
+++ sbuild/sbuild-dirstream.h	(working copy)
@@ -196,10 +196,6 @@
       bool
       operator ! ();
 
-      /**
-       * The overloaded extraction operator.  This is used to pull
-       * direntries from a dirstream.
-       */
       friend dirstream&
       operator >> (dirstream& stream,
 		   direntry&  entry);
@@ -233,6 +229,14 @@
       bool eof_status;
   };
 
+  /**
+   * The overloaded extraction operator.  This is used to pull
+   * direntries from a dirstream.
+   */
+  dirstream&
+  operator >> (dirstream& stream,
+	       direntry&  entry);
+
 }
 
 #endif /* SBUILD_DIRSTREAM_H */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 829)
+++ ChangeLog	(working copy)
@@ -1,3 +1,12 @@
+2006-07-09  Roger Leigh  <[EMAIL PROTECTED]>
+
+	* sbuild/sbuild-dirstream.h: The dirstream extraction operator is
+	declared outside the class, in addition to the friend declaration.
+	This fixes a compilation error with GCC 4.2.  Thanks to Martin
+	Michlmayr for reporting this.
+
+	* debian/changelog: Close #377433.
+
 2006-07-07  Roger Leigh  <[EMAIL PROTECTED]>
 
 	* test/sbuild-personality.cc: Update test to cope with Linux
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 828)
+++ debian/changelog	(working copy)
@@ -1,6 +1,10 @@
 schroot (0.99.3-1) UNRELEASED; urgency=low
 
   * New upstream release.
+  * sbuild/sbuild-dirstream.h: The dirstream extraction operator is
+    declared outside the class, in addition to the friend declaration.
+    This fixes a compilation error with GCC 4.2 (Closes: #377433).  Thanks
+    to Martin Michlmayr for reporting this.
 
  -- Roger Leigh <[EMAIL PROTECTED]>  Thu,  6 Jul 2006 19:07:25 +0100
 

Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

Attachment: pgpSbbXtZCBsh.pgp
Description: PGP signature

Reply via email to