Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838466 - sys-block/gparted-1.3.1 - GParted_Core.cc: In constructor 'GParted::GParted_Core::GParted_Core()': GParted_Core.cc:73:64: error: invalid 'static_cast' from type 'std::nullptr_t' to type 'PedPartitionFlag' (on musl)
Summary: sys-block/gparted-1.3.1 - GParted_Core.cc: In constructor 'GParted::GParted_C...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://gitlab.gnome.org/GNOME/gparte...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting 839975
  Show dependency tree
 
Reported: 2022-04-15 12:24 UTC by ernsteiswuerfel
Modified: 2022-04-21 23:15 UTC (History)
0 users

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


Attachments
build.log (gparted-1.3.1:20220415-121209.log,45.98 KB, text/plain)
2022-04-15 12:24 UTC, ernsteiswuerfel
Details
emerge --info (file_838466.txt,6.84 KB, text/plain)
2022-04-15 12:25 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-04-15 12:24:23 UTC
Created attachment 770876 [details]
build.log

Got this since a toolchain upgrade from stable to musl-1.2.3 + binutils-2.38-r1.
[...]
x86_64-gentoo-linux-musl-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I..  -I../include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -I/usr/include/gtkmm-3.0 -I/usr/lib/gtkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/atkmm-1.6 -I/usr/lib/atkmm-1.6/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/gdkmm-3.0/include -pthread  -DGNOMELOCALEDIR=\""/usr/share/locale"\"  -Wall     -Os -march=btver1 -mtune=btver1 -pipe -c -o GParted_Core.o GParted_Core.cc
GParted_Core.cc: In constructor 'GParted::GParted_Core::GParted_Core()':
GParted_Core.cc:73:64: error: invalid 'static_cast' from type 'std::nullptr_t' to type 'PedPartitionFlag'
   73 |         for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ;
      |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:687: GParted_Core.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-block/gparted-1.3.1/work/gparted-1.3.1/src'
make[1]: *** [Makefile:628: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-block/gparted-1.3.1/work/gparted-1.3.1'
make: *** [Makefile:462: all] Error 2
 * ERROR: sys-block/gparted-1.3.1::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2022-04-15 12:25:01 UTC
Created attachment 770879 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2022-04-21 21:35:21 UTC
Fixed by upstream with this commit:
https://gitlab.gnome.org/GNOME/gparted/-/commit/3d4b1c1e7b33f229efd254fb0cc06660af627ea0?view=inline

The patch applies fine on Gentoos' gparted-1.3.1.
Comment 3 Larry the Git Cow gentoo-dev 2022-04-21 23:12:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a95e7e586a51f7485fe2db57ffaf62e8333b2f

commit d1a95e7e586a51f7485fe2db57ffaf62e8333b2f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-21 23:11:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-21 23:12:45 +0000

    sys-block/gparted: fix build with musl-1.2.3
    
    Closes: https://bugs.gentoo.org/838466
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gparted/files/gparted-1.3.1-musl-nullptr.patch | 51 ++++++++++++++++++++++
 sys-block/gparted/gparted-1.3.1.ebuild             |  6 ++-
 sys-block/gparted/gparted-1.4.0.ebuild             |  4 ++
 3 files changed, 60 insertions(+), 1 deletion(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-21 23:15:03 UTC
Thanks!