Your message dated Mon, 12 Nov 2007 05:19:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#449546: fixed in gparted 0.3.3-6
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gparted
Version: 0.3.3-5
Severity: important
Tags: patch

Gparted currently fails to build on at least mips. This seems to be
a generic bug in the code which is exposed by g++.
The appended patch works for me, tested on mips/unstable.


Thiemo


--- gparted-0.3.3/src/GParted_Core.cc.old       2007-11-06 03:11:14.000000000 
+0000
+++ gparted-0.3.3/src/GParted_Core.cc   2007-11-06 03:25:38.000000000 +0000
@@ -1698,7 +1698,7 @@ bool GParted_Core::copy_filesystem( cons
 
        while ( succes &&
                timer .elapsed() <= smallest_time && 
-               std::llabs( done ) + N <= length && 
+               ::llabs( done ) + N <= length && 
                optimal_blocksize * 2 < N )
        {
                if ( done != 0 ) 
@@ -1742,7 +1742,7 @@ bool GParted_Core::copy_filesystem( cons
                                    dst_device,
                                    src_start + ( dst_start > src_start ? 0 : 
done ),
                                    dst_start + ( dst_start > src_start ? 0 : 
done ),
-                                   length - std::llabs( done ), 
+                                   length - ::llabs( done ), 
                                    optimal_blocksize,
                                    operationdetail,
                                    readonly,
@@ -1916,7 +1916,7 @@ bool GParted_Core::copy_blocks( const Gl
        if ( lp_device_src && lp_device_dst && ped_device_open( lp_device_src ) 
&& ped_device_open( lp_device_dst ) )
        {
                Glib::ustring error_message ;
-               buf = static_cast<char *>( malloc( std::llabs( blocksize ) * 
512 ) ) ;
+               buf = static_cast<char *>( malloc( ::llabs( blocksize ) * 512 ) 
) ;
                if ( buf )
                {
                        ped_device_sync( lp_device_dst ) ;
@@ -1937,7 +1937,7 @@ bool GParted_Core::copy_blocks( const Gl
                        operationdetail .get_last_child() .add_child( 
OperationDetail( "", STATUS_NONE ) ) ;
                        
                        Glib::Timer timer_progress_timeout, timer_total ;
-                       while( succes && std::llabs( done ) < length )
+                       while( succes && ::llabs( done ) < length )
                        {
                                succes = copy_block( lp_device_src,
                                                     lp_device_dst,
@@ -1952,7 +1952,7 @@ bool GParted_Core::copy_blocks( const Gl
                                if ( timer_progress_timeout .elapsed() >= 0.5 )
                                {
                                        set_progress_info( length,
-                                                          std::llabs( done + 
blocksize ),
+                                                          ::llabs( done + 
blocksize ),
                                                           timer_total,
                                                           operationdetail 
.get_last_child() .get_last_child(),
                                                           readonly ) ;
@@ -1971,13 +1971,13 @@ bool GParted_Core::copy_blocks( const Gl
 
                //final description
                operationdetail .get_last_child() .get_last_child() 
.set_description( 
-                       String::ucompose( readonly ? _("%1 of %2 read") : _("%1 
of %2 copied"), std::llabs( done ), length ), FONT_ITALIC ) ;
+                       String::ucompose( readonly ? _("%1 of %2 read") : _("%1 
of %2 copied"), ::llabs( done ), length ), FONT_ITALIC ) ;
                
                if ( ! succes && ! error_message .empty() )
                        operationdetail .get_last_child() .add_child( 
                                OperationDetail( error_message, STATUS_NONE, 
FONT_ITALIC ) ) ;
                
-               total_done += std::llabs( done ) ;
+               total_done += ::llabs( done ) ;
        
                //close and destroy the devices..
                ped_device_close( lp_device_src ) ;
@@ -2004,7 +2004,7 @@ bool GParted_Core::copy_block( PedDevice
 {
        if ( blocksize < 0 )
        {
-               blocksize = std::llabs( blocksize ) ;
+               blocksize = ::llabs( blocksize ) ;
                offset_src -= ( blocksize -1 ) ;
                offset_dst -= ( blocksize -1 ) ;
        }



--- End Message ---
--- Begin Message ---
Source: gparted
Source-Version: 0.3.3-6

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

gparted_0.3.3-6.diff.gz
  to pool/main/g/gparted/gparted_0.3.3-6.diff.gz
gparted_0.3.3-6.dsc
  to pool/main/g/gparted/gparted_0.3.3-6.dsc
gparted_0.3.3-6_amd64.deb
  to pool/main/g/gparted/gparted_0.3.3-6_amd64.deb



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.
Anibal Monsalve Salazar <[EMAIL PROTECTED]> (supplier of updated gparted 
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.7
Date: Wed, 07 Nov 2007 21:39:41 +1100
Source: gparted
Binary: gparted
Architecture: source amd64
Version: 0.3.3-6
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Changed-By: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Description: 
 gparted    - GNOME partition editor
Closes: 446522 449546
Changes: 
 gparted (0.3.3-6) unstable; urgency=low
 .
   * Fixed FTBFS on mips, closes: #449546
     Patch by Thiemo Seufer <[EMAIL PROTECTED]>
   * Fixed "crashes when rescanning devices after any operation",
     closes: #446522. Patch by Denis Sirotkin <[EMAIL PROTECTED]>
Files: 
 3ed803e63102194e5c9abb664e5f1919 784 gnome optional gparted_0.3.3-6.dsc
 df7f2978051a4b52d6a99d5ac3ee1080 9558 gnome optional gparted_0.3.3-6.diff.gz
 d67502e4ad63b422749d88823365a5c7 538930 gnome optional 
gparted_0.3.3-6_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHNqppgY5NIXPNpFURAhCSAKC8qyln27aTFoIG4PSyXk0NEBRadgCeOKnL
BNmKaADy7+AwaL+tbNgLoeI=
=jZWO
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to