Gparted has been updated to version 17.0. http://gparted.org/news.php?item=170
I think the only thing needed is to add --enable-online-resize. Otherwise, 0.16.2 ebuild can be copied directly (the ebuild is written very well). Will we be adding a USE flag for --enable-online-resize?
Yes, it would be great.
from https://git.gnome.org/browse/gparted/tree/README : If you wish to build this package with online resize support then the following is required: a) A version of libparted that includes the online resize patch. At time of writing (November 2013), this patch was only included in Debian and derived distros with parted package version 2.3-14 or higher. b) Linux kernel version 3.6 or higher. Enable with the --enable-online-resize flag: E.g., ./configure --enable-online-resize Does anybody know something about that patch for sys-block/parted? Is the patch going into the portage tree? Or will the next version of parted have that changes built in?
Maybe this one? http://patch-tracker.debian.org/patch/series/view/parted/2.3-16/0001-parted-resizepart-command.patch
We have parted-3.1 in the tree, then, the patch shouldn't be needed
I'm trying with a copied 16.2.ebuild. diff /usr/portage/sys-block/gparted/gparted-0.16.2.ebuild gparted-0.17.0.ebuild 16,17c16,17 < KEYWORDS="amd64 ~arm ~ppc x86" < IUSE="btrfs dmraid f2fs fat hfs jfs kde mdadm ntfs policykit reiserfs reiser4 xfs" --- > KEYWORDS="~amd64 ~arm ~ppc ~x86" > IUSE="btrfs dmraid f2fs fat hfs jfs kde mdadm ntfs online-resize policykit reiserfs reiser4 xfs" jlgentoo gparted # USE="online-resize" emerge -va gparted These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-block/gparted-0.17.0::overlay_jl [0.16.2::gentoo] USE="fat kde ntfs online-resize%* policykit reiser4 reiserfs xfs -btrfs -dmraid -f2fs -hfs -jfs -mdadm" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) sys-block/gparted-0.17.0 from overlay_jl >>> Installing (1 of 1) sys-block/gparted-0.17.0 compiles, merges, runs In build.log I see: checking for libparted >= 1.7.1... Found libparted 3.1 OK checking if libparted >= 2.2 (has improved pt re-read)... yes checking if libparted >= 3.0 (libparted is missing file system resizing API)... yes checking if libparted >= 3.1 (libparted has new file system resizing LIB)... yes ... checking whether online resize support is enabled... no configure: creating ./config.status ... ======================== Final configuration =========================== Installing into prefix : /usr Build documentation? : yes Use native libparted dmraid support? : no Enable online resize support? : no --- Features Based On Libparted Version --- Need partition table re-read work around? : no Supports sector sizes > 512 bytes? : yes Have old libparted file system resizing API? : no Have new libparted file system resizing LIB? : yes If all settings are OK, type make and then (as root) make install ======================================================================== >>> Source configured. So why does the test say "no" ?
Created attachment 366620 [details] gparted-0.17.0.ebuild
I had to add the online-resize to the src_configure() . I was confused about no econf line in src_configure() . But enabling and disabling the use flag is working now. diff /usr/portage/sys-block/gparted/gparted-0.16.2.ebuild /usr/local/portage/sys-block/gparted/gparted-0.17.0.ebuild 16,17c16,17 < KEYWORDS="amd64 ~arm ~ppc x86" < IUSE="btrfs dmraid f2fs fat hfs jfs kde mdadm ntfs policykit reiserfs reiser4 xfs" --- > KEYWORDS="~amd64 ~arm ~ppc ~x86" > IUSE="btrfs dmraid f2fs fat hfs jfs kde mdadm ntfs online-resize policykit reiserfs reiser4 xfs" 68a69 > $(use_enable online-resize ) \ Do we have to add a check or a warning if not a version of libparted is installed that includes the online resize patch or parted >=3.1 and Linux kernel version 3.6 or higher? The .configure script will catch it anyway (I think).
Looking at openSuSE looks like they have same parted as us but they disable online-resizing due it not being new enough :O, also its NEWS file isn't clear enough regarding this support being included there already :|
On openSUSE Factory they have gparted-0.17 and libparted0-3.1 Here a view on the Changelog from http://pkgs.org/debian-sid/debian-main-amd64/gparted_0.17.0-5_amd64.deb.html Note! The bugs are from Debian or Ubuntu. They use old libparted 2.3 and 2.4 Changelog 2014-02-06 - Phillip Susi <psusi@ubuntu.com> gparted (0.17.0-5) unstable; urgency=medium * 0001-Remove-incorrect-rounding-in-file-system-resize-7235.patch: apply upstream patch to avoid corrupting some filesystems on resize (Closes: #737247) 2014-01-08 - Phillip Susi <psusi@ubuntu.com> gparted (0.17.0-4) unstable; urgency=low * Enable online resize feature added in 0.17.0 (#734555) 2013-12-27 - Phillip Susi <psusi@ubuntu.com> gparted (0.17.0-3) unstable; urgency=low * Change Suggests: ntfsprogs to ntfs-3g 2013-12-14 - Phillip Susi <psusi@ubuntu.com> gparted (0.17.0-2) unstable; urgency=low * Fix 0.16.2-1 reversion in last upload. 2013-12-13 - Phillip Susi <psusi@ubuntu.com> gparted (0.17.0-1) unstable; urgency=low * New upstream release, Key changes include: Add support for online resize Recognize Linux Swap Suspend and Software RAID partitions Fix busy detection for Linux Software RAID and extended partitions Fix systemctl runtime mask to prevent automounting partitions Bug Fixes: Add support for online resize (#694622) Fix usage of swap space is not reported (#708107) Turn on resize2fs progress bar (#709276) Fix systemctl runtime mask to prevent automounting partitions (#708378) Stop using deprecated method free_colors() (part of #652044) Stop using deprecated widget alignment enumerators (part of #652044) Recognize Linux Swap Suspend and Software RAID partitions (#709640) - Prevent GParted starting stopped Linux Software RAID arrays Fix busy detection for Linux Software RAID and extended partitions (#712633) Make partition information dialog warnings selectable (#705596) Change default file system to ext4 with fall back to ext3/2 (#711114) Add an AppData file (#709164) - Thanks to Piotr Drąg for making the AppData file translatable * Add xfsdump, hfsprogs, hfsutils, mtools to suggested list (LP: #334170) !!! Note! The bugs are from Debian or Ubuntu !!!
(In reply to jospezial from comment #10) > On openSUSE Factory they have gparted-0.17 and libparted0-3.1 > But their gparted package has online-resizing disabled because they say their libparted still doesn't support it :O
I renamed my ebuild from comment #7 and gparted-0.18.0 emerges fine and runs.
But, has anyone really confirmed online-resize is working with our in tree libparted versions?
(In reply to Pacho Ramos from comment #13) > But, has anyone really confirmed online-resize is working with our in tree > libparted versions? online resize On an ext4 it lets me only grow the partition/filesystem. And only using the space past the partition and not before. Change the start is not possible. There is a chart in the program where you can see live the supported fs-actions. Here a log. I will try the other FS later . Sorry for the german.: GParted 0.18.0 --enable-online-resize libparted 3.1 /dev/sdd1 von 2.28 GiB auf 2.93 GiB vergrößern 00:01:52 ( ERFOLG ) /dev/sdd1 kalibrieren 00:00:00 ( ERFOLG ) Pfad: /dev/sdd1 Anfang: 1132544 Ende: 5916671 Größe: 4784128 (2.28 GiB) Partition von 2.28 GiB auf 2.93 GiB vergrößern 00:01:52 ( ERFOLG ) Alter Anfang: 1132544 Altes Ende: 5916671 Alte Größe: 4784128 (2.28 GiB) Neuer Anfang: 1132544 Neues Ende: 7276543 Neue Größe: 6144000 (2.93 GiB) Dateisystem bis zum Auffüllen der Partition vergrößern 00:00:00 ( ERFOLG ) resize2fs -p /dev/sdd1 resize2fs 1.42.9 (28-Dec-2013) Das Dateisystem ist schon 598016 Blöcke groß. Nichts zu tun! libparted-Benachrichtigungen ( INFO ) Partition(s) 1 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. ======================================== Package Settings ================================================================= sys-fs/e2fsprogs-1.42.9 was built with the following: USE="(multilib) nls -static-libs" ABI_X86="64" sys-block/parted-3.1-r1 was built with the following: USE="debug device-mapper (multilib) nls readline (-selinux) -static-libs -test" ABI_X86="64" sys-block/gparted-0.18.0 was built with the following: USE="fat kde ntfs online-resize policykit reiser4 reiserfs xfs -btrfs -dmraid -f2fs -hfs -jfs -mdadm"
I think we can add gparted-0.18.0.ebuild to the tree. You can take my attached 0.17.0.ebuild with new online-resize flag or the diff from #c8 as template.
Version 0.19.0 was released on 2014-06-10. Changelog: http://sourceforge.net/projects/gparted/files/gparted/gparted-0.19.0/gparted-0.19.0-README.md/view
(In reply to Frank Krömmelbein from comment #16) > Version 0.19.0 was released on 2014-06-10. > > Changelog: > http://sourceforge.net/projects/gparted/files/gparted/gparted-0.19.0/gparted- > 0.19.0-README.md/view renaming my ebuild works. emerges and runs.
Created attachment 379150 [details] gparted-0.19.0.ebuild Whats up, maintainers?
bumped