Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493884 - sys-block/gparted-0.18.0 version bump
Summary: sys-block/gparted-0.18.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 23:07 UTC by blackst0ne.ru
Modified: 2014-06-26 14:16 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gparted-0.17.0.ebuild (gparted-0.17.0.ebuild,2.15 KB, text/plain)
2013-12-31 06:55 UTC, jospezial
Details
gparted-0.19.0.ebuild (gparted-0.19.0.ebuild,2.15 KB, text/plain)
2014-06-17 22:28 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blackst0ne.ru 2013-12-10 23:07:15 UTC
Gparted has been updated to version 17.0.

http://gparted.org/news.php?item=170
Comment 1 devsk 2013-12-12 16:54:17 UTC
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?
Comment 2 blackst0ne.ru 2013-12-13 10:13:50 UTC
Yes, it would be great.
Comment 3 jospezial 2013-12-28 03:11:50 UTC
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?
Comment 5 Pacho Ramos gentoo-dev 2013-12-28 10:05:55 UTC
We have parted-3.1 in the tree, then, the patch shouldn't be needed
Comment 6 jospezial 2013-12-28 22:19:08 UTC
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" ?
Comment 7 jospezial 2013-12-31 06:55:37 UTC
Created attachment 366620 [details]
gparted-0.17.0.ebuild
Comment 8 jospezial 2013-12-31 06:58:06 UTC
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).
Comment 9 Pacho Ramos gentoo-dev 2014-02-09 10:55:58 UTC
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 :|
Comment 10 jospezial 2014-02-09 16:55:52 UTC
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 !!!
Comment 11 Pacho Ramos gentoo-dev 2014-02-09 22:11:27 UTC
(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
Comment 12 jospezial 2014-02-20 23:41:45 UTC
I renamed my ebuild from comment #7 and gparted-0.18.0 emerges fine and runs.
Comment 13 Pacho Ramos gentoo-dev 2014-02-22 11:14:45 UTC
But, has anyone really confirmed online-resize is working with our in tree libparted versions?
Comment 14 jospezial 2014-02-22 18:06:44 UTC
(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"
Comment 15 jospezial 2014-04-14 21:49:07 UTC
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.
Comment 16 Frank Krömmelbein 2014-06-15 14:57:52 UTC
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
Comment 17 jospezial 2014-06-17 22:21:52 UTC
(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.
Comment 18 jospezial 2014-06-17 22:28:07 UTC
Created attachment 379150 [details]
gparted-0.19.0.ebuild

Whats up, maintainers?
Comment 19 Pacho Ramos gentoo-dev 2014-06-26 14:16:03 UTC
bumped