Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848420 - sys-block/gparted-1.4.0 - In static member function 'static Glib::ustring GParted::BCache_Info::get_bcache_device(const Glib::ustring&, const Glib::ustring&)': BCache_Info.cc:52:40: error: 'basename' was not declared in this scope (on musl)
Summary: sys-block/gparted-1.4.0 - In static member function 'static Glib::ustring GPa...
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:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-05-29 18:24 UTC by ernsteiswuerfel
Modified: 2022-05-29 19:50 UTC (History)
0 users

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


Attachments
build.log (gparted-1.4.0:20220529-181642.log,17.14 KB, text/plain)
2022-05-29 18:24 UTC, ernsteiswuerfel
Details
emerge --info (file_848420.txt,7.08 KB, text/plain)
2022-05-29 18:24 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2022-05-29 18:24:18 UTC
Created attachment 781373 [details]
build.log

[...]
make[2]: Entering directory '/var/tmp/portage/sys-block/gparted-1.4.0/work/gparted-1.4.0/src'
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=znver3 -mtune=znver3 -pipe -c -o BCache_Info.o BCache_Info.cc
BCache_Info.cc: In static member function 'static Glib::ustring GParted::BCache_Info::get_bcache_device(const Glib::ustring&, const Glib::ustring&)':
BCache_Info.cc:52:40: error: 'basename' was not declared in this scope; did you mean 'g_basename'?
   52 |         return "/dev/" + Glib::ustring(basename(buf));
      |                                        ^~~~~~~~
      |                                        g_basename
make[2]: *** [Makefile:689: BCache_Info.o] Error 1
Comment 1 ernsteiswuerfel archtester 2022-05-29 18:24:57 UTC
Created attachment 781376 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2022-05-29 18:29:51 UTC
Ah, already fixed with following upstream patch: https://gitlab.gnome.org/GNOME/gparted/-/commit/45c00927b72319f00855c7feaf4dcf109b3e4414

Patch works fine when put in /etc/patches/...
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-29 18:33:41 UTC
Didn't I put this in 1.4.0-r1?
Comment 4 ernsteiswuerfel archtester 2022-05-29 19:28:59 UTC
Oops. Didn't realize there already was an -r1!

Yes, -r1 builds fine. Closing here.