Page 1 of 2

gparted 0.5.2 with ext4 support

Posted: Mon 10 Aug 2009, 03:21
by technosaurus
Here is the latest compiled for puppy 4.X. It should automatically download and install gtkmm and cairomm with petget


Edit: 0.5.2 in later post for now - no *mm libs required
http://www.murga-linux.com/puppy/viewto ... h&id=27110
but requires updated glib
http://www.murga-linux.com/puppy/viewto ... h&id=26606

compiled with

Code: Select all

# CFLAGS=" -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-constants -s " CPPFLAGS=" -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-constants -s "  CXXFLAGS=" -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-constants -s "  LDFLAGS=" -Wl,-O,--gc-sections " LFLAGS=" -Wl,-O,--gc-sections "  ./configure --prefix=/usr --build=i486-t2-linux-gnu --x-libraries=/usr/X11R7/lib --x-includes=/usr/X11R7/include --disable-libtool-lock --disable-doc --disable-scrollkeeper 

Posted: Mon 10 Aug 2009, 13:07
by ttuuxxx
Hi Barry usually compiles gparted static to save MM space, here's his notes on it, :)
Also if you do that static version maybe inkscape, since those are the 2 main static mm files in the repo.

ttuuxxx

Quote "A problem that has prevented me from upgrading is that Gparted requires the gtkmm libraries, which are huge. This has prevented me from using the Gparted packages that come with the compatible-distros.

Furthermore, the gtkmm libraries packages provided with the compatible distros do not include '.a' static library files. So, to compile Gparted with static gtkmm libraries and hence get a reasonably small package, I have to go through the whole exercise of compiling them. I have done this in Jaunty pup. Here is how:


cairomm-1.8.0

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --disable-docs --enable-static --disable-shared



glibmm-2.20.0

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --disable-fulldocs --enable-static --disable-shared



pangomm-2.24

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --disable-docs --enable-static --disable-shared



gtkmm-2.16.0

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --disable-docs --enable-static --disable-shared --disable-demos



libuuid

missing, needed! this is part of 'e2fsprogs' but ubuntu doesn't seem to have the 'dev' component (include files, uuid.pc, libuuid.so).

...I had compiled binary in T2, grabbed dev components from there.



gparted-0.4.4

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --disable-doc --disable-scrollkeeper

# make

# new2dir make install

Posted: Sat 22 Aug 2009, 16:42
by technosaurus
Here it is compiled statically against those. It only tripled in size (but still much smaller than installing the extra mm shared libs)

I edited the menu entry to remove gksu.

Posted: Sat 22 Aug 2009, 20:10
by Jim1911
Tried this static complie on upup476, but it didn't work and broke the existing Gparted.

Also tried it on pup430 and it upgraded the existing Gparted and worked fine.

Thanks for pushing to keep pup up to date.
Jim :)

Posted: Sat 22 Aug 2009, 23:17
by mikeb
Just for reference is the newer version of grub needed with partitions made with this version?

mike

Posted: Sun 23 Aug 2009, 01:36
by technosaurus
It was compiled for/with 4.2.1 (upup uses different versions of everything)

I may be wrong but the new grub should only be required if you use ext4. I think Barry was working on grub already. If not I can give it a shot.

Posted: Sun 23 Aug 2009, 02:14
by technosaurus
I don't normally pack executables with upx (for a number of reasons), but with binaries larger than 2MB it kinda makes sense, so here it is packed with upx:

Posted: Mon 12 Oct 2009, 04:26
by technosaurus
0.4.7 is out & it is added to my 4.4CE TODO list

Posted: Mon 12 Oct 2009, 13:12
by mikeb
I may be wrong but the new grub should only be required if you use ext4.
I was thinking of the 256 inode size problem and ext2/3 partitions and grub that crops up with partitions made with ubuntu and the latest gparted.

mike

Posted: Wed 14 Oct 2009, 13:12
by chrome307
@ technosaurus

Thanks for Gparted :)

I seem to have a problem with having this application creating an entry in my menu toolbar.

Is there a way to fix this?

Thanks!

btw I'm using BrowserLinux built using 4.12.

Posted: Wed 14 Oct 2009, 13:25
by technosaurus
I was just packaging it for testing so I think it may be missing the gparted.desktop file in /usr/share/applications. I will put one in 0.4.7 when I compile it.

Posted: Wed 14 Oct 2009, 13:40
by chrome307
Thank you again!! :)

Posted: Mon 09 Nov 2009, 07:23
by technosaurus
updated to 048

Posted: Thu 18 Feb 2010, 04:48
by technosaurus
UPDATED - see later post for build without libdevmapper dependency

this needed to be updated according to the gparted website there were problems in previous releases

I also updated libparted to 1.9 (2.1 is in the releases section but not listed as the latest stable on the rarely updated gnome development site) and compiled it statically into gparted 0.5.1 - the only other programs that depend on libparted are the 2 that come with it - no scripts appear to use them so with this gparted you should be able to remove parted, partprobe and libparted...

by the way even with libparted compiled in statically and NOT upx'd it is this much smaller just from optimization and using non-PIC static libraries (You have to be carefull to keep these separate because they won't play well if built into a shared library - work great and fast for binaries though) - net savings 1,211kb or almost 1.2MB

Posted: Fri 19 Feb 2010, 01:51
by DMcCunney
technosaurus wrote:by the way even with libparted compiled in statically and NOT upx'd it is this much smaller just from optimization and using non-PIC static libraries (You have to be carefull to keep these separate because they won't play well if built into a shared library - work great and fast for binaries though) - net savings 1,211kb or almost 1.2MB
Looks like there's a missing dependency or two.

It fails to run here because it can't find libdevmapper.so.1.02
______
Dennis

Posted: Fri 19 Feb 2010, 02:59
by technosaurus
Thanks DM,
updated with static libdevmapper from latest stable lvm2

here is the complete list of dependencies:
  • libatk-1, libc, libcairo, libdl, libexpat, libfontconfig, libfreetype, libgcc_s, libgdk_pixbuf-2, libgdk-x11-2, libgio-2, libglib-2, libgmodule-2, libgobject-2, libgthread-2, libgtk-x11-2, /lib/ld-linux, libm, libpango-1, libpangocairo-1, libpangoft2-1, libpcre, libpixman-1, libpng12, libpthread, libresolv, librt, libsigc-2, libstdc++, libuuid, libX11, libXau, libXcursor, libXdmcp, libXext, libXfixes, libXi, libXinerama, libXrandr, libXrender, libz, linux-gate

O.5.1 does not replace the 0.3.3 automatically

Posted: Fri 19 Feb 2010, 23:09
by Dromeno
I installed the 0.5.1 in puppy 4.2.1. All seemed to go well but after starting Gparted it was still the 0.3.3 version without ext4 support

So... how do I get rid of the O.3.3 ?

Posted: Fri 19 Feb 2010, 23:38
by technosaurus
you can just run /usr/sbin/gpartedbin or /usr/sbin/gparted_shell

- I'm not running 4.2.1 - maybe it is in /usr/bin in 4.2.1 ... you can use pfind

or delete the older gparted*.desktop file in /usr/share/applications and run refreshmenus

Please give me another option

Posted: Sat 20 Feb 2010, 08:29
by Dromeno
I think it must be something else. Refreshing the menu's does not help (I still get the 0.3.3 version)

And when I type

/usr/sbin/gpartedbin

in the console I get:


/usr/sbin/gpartedbin: symbol lookup error: /usr/sbin/gpartedbin: undefined symbol: g_file_io_stream_get_type

Do you have any idea what to do next?

Posted: Sat 20 Feb 2010, 15:19
by technosaurus
Edit - did some looking & you will need the updated glib pet