[oe-commits] org.oe.dev gparted 0.3.3: Add GParted.

pfalcon commit openembedded-commits at lists.openembedded.org
Fri Jul 13 10:48:42 UTC 2007


gparted 0.3.3: Add GParted.
* Tested to start/show partitions on a real device.
* Somewhat usable even on QVGA.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: 5b951be53274fa9fc28dad8d9f853a4f4b27ba1b
ViewMTN: http://monotone.openembedded.org/revision.psp?id=5b951be53274fa9fc28dad8d9f853a4f4b27ba1b
Files:
1
packages/gparted
packages/gparted/files
packages/gparted/files/cross.patch
packages/gparted/files/gparted-0.3.3-llabs.patch
packages/gparted/gparted_0.3.3.bb
Diffs:

#
# mt diff -r340ff84700df308d945fb6efde89fbb319ff1a84 -r5b951be53274fa9fc28dad8d9f853a4f4b27ba1b
#
# 
# 
# add_dir "packages/gparted"
# 
# add_dir "packages/gparted/files"
# 
# add_file "packages/gparted/files/cross.patch"
#  content [2a152c6b48120b9b9a1b3db21b186a1da798b917]
# 
# add_file "packages/gparted/files/gparted-0.3.3-llabs.patch"
#  content [9242da34ef46c00a04dababab07118a03585a308]
# 
# add_file "packages/gparted/gparted_0.3.3.bb"
#  content [a638e0b0aafd82a9f334598772c46d4af04360af]
# 
============================================================
--- packages/gparted/files/cross.patch	2a152c6b48120b9b9a1b3db21b186a1da798b917
+++ packages/gparted/files/cross.patch	2a152c6b48120b9b9a1b3db21b186a1da798b917
@@ -0,0 +1,12 @@
+diff -ur gparted-0.3.3.org/configure.in gparted-0.3.3/configure.in
+--- gparted-0.3.3.org/configure.in	2006-12-06 15:23:35.000000000 +0200
++++ gparted-0.3.3/configure.in	2007-07-10 02:10:59.000000000 +0300
+@@ -37,7 +37,7 @@
+ AC_MSG_CHECKING(for libparted >= $LIBPARTED_VERSION)
+ LIBS_save="$LIBS"
+ LIBS="-lparted -luuid -ldl"
+-AC_TRY_RUN(
++AC_TRY_LINK(
+ #include <stdio.h>
+ #include <parted/parted.h>
+ 
============================================================
--- packages/gparted/files/gparted-0.3.3-llabs.patch	9242da34ef46c00a04dababab07118a03585a308
+++ packages/gparted/files/gparted-0.3.3-llabs.patch	9242da34ef46c00a04dababab07118a03585a308
@@ -0,0 +1,72 @@
+--- src/GParted_Core.cc	2006/09/25 21:49:32	1.1
++++ src/GParted_Core.cc	2006/09/25 22:03:31
+@@ -1604,7 +1604,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 ) 
+@@ -1648,7 +1648,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,
+@@ -1822,7 +1822,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 ) ;
+@@ -1843,7 +1843,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,
+@@ -1858,7 +1858,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 ) ;
+@@ -1877,13 +1877,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 ) ;
+@@ -1912,7 +1912,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 ) ;
+ 	}
============================================================
--- packages/gparted/gparted_0.3.3.bb	a638e0b0aafd82a9f334598772c46d4af04360af
+++ packages/gparted/gparted_0.3.3.bb	a638e0b0aafd82a9f334598772c46d4af04360af
@@ -0,0 +1,10 @@
+DESCRIPTION = "GNOME Partition Manager"
+LICENSE = "GPL"
+DEPENDS = "gtkmm parted"
+PR = "r1"
+
+inherit autotools
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/gparted/gparted-${PV}.tar.bz2 \
+           file://cross.patch;patch=1 \
+	   file://gparted-0.3.3-llabs.patch;patch=1;pnum=0"






More information about the Openembedded-commits mailing list