Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762484 - mate-extra/mate-power-manager-1.24.1-r2 - egg-debug.c:42:10: fatal error: execinfo.h: No such file or directory (on musl)
Summary: mate-extra/mate-power-manager-1.24.1-r2 - egg-debug.c:42:10: fatal error: exe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: musl-porting 716422 856418
  Show dependency tree
 
Reported: 2020-12-30 00:37 UTC by ernsteiswuerfel
Modified: 2022-07-15 01:32 UTC (History)
2 users (show)

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


Attachments
build.log (mate-power-manager-1.24.1-r2:20201230-000429.log,78.72 KB, text/plain)
2020-12-30 00:37 UTC, ernsteiswuerfel
Details
emerge --info (file_762484.txt,5.97 KB, text/plain)
2020-12-30 00:37 UTC, ernsteiswuerfel
Details
musl.patch (musl.patch,1.75 KB, patch)
2021-01-02 23:47 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-12-30 00:37:32 UTC
Created attachment 680239 [details]
build.log

[...]
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -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/gio-unix-2.0 -pthread  -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -pthread  -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -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 -pthread     -I/usr/include/gdk-pixbuf-2.0 -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 -pthread  -D_REENTRANT -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -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 -pthread   -DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE -I/usr/include/libupower-glib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid  -DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\" -DMATELOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\"/usr/share\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DLIBDIR=\""/usr/lib"\" -DVERSION="\"1.24.1\"" -DGPM_ICONS_DATA=\"/usr/share/mate-power-manager/icons\" -DGTKBUILDERDIR=\"/usr/share/mate-power-manager\"  -DEGG_LOG_FILE=\""/tmp/gpm.log"\" -DEGG_VERBOSE="\"GPM_VERBOSE\"" -DEGG_LOGGING="\"GPM_LOGGING\"" -DEGG_CONSOLE="\"GPM_CONSOLE\"" -I..   -fexceptions  -Os -march=x86-64 -mtune=athlon64-sse3 -pipe -c -o egg-debug.o egg-debug.c
egg-debug.c:42:10: fatal error: execinfo.h: No such file or directory
   42 | #include <execinfo.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:1286: egg-debug.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/mate-extra/mate-power-manager-1.24.1-r2/work/mate-power-manager-1.24.1/src'
make[2]: *** [Makefile:1040: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/mate-extra/mate-power-manager-1.24.1-r2/work/mate-power-manager-1.24.1/src'
make[1]: *** [Makefile:475: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/mate-extra/mate-power-manager-1.24.1-r2/work/mate-power-manager-1.24.1'
make: *** [Makefile:407: all] Error 2
 * ERROR: mate-extra/mate-power-manager-1.24.1-r2::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2020-12-30 00:37:52 UTC
Created attachment 680242 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2021-01-02 23:47:11 UTC
Created attachment 680788 [details, diff]
musl.patch

Took this patch from https://github.com/void-ppc/void-packages/tree/master/srcpkgs/mate-power-manager/patches which succesfully fixes the build and execution of mate-power-manager-1.24.1-r2.
Comment 3 Larry the Git Cow gentoo-dev 2022-07-15 01:32:54 UTC
The bug has been closed via the following commit(s):

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

commit b9949b9a1c0b5b31d98c5f006b3fc7bfdd997026
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2022-07-08 17:59:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-15 01:28:14 +0000

    mate-extra/mate-power-manager: Fix build on musl
    
    mate-power-manager was failing to build on musl due to missing
    execinfo.h, this header is not provided my musl, and egg_debug_backtrace
    fucntion call. The egg_debug_backtrace function just prints some trace
    to console.
    
    Closes: https://bugs.gentoo.org/762484
    
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26198
    Signed-off-by: Sam James <sam@gentoo.org>

 ...e-power-manager-1.24.3-removing-backtrace.patch | 89 ++++++++++++++++++++++
 ...te-power-manager-1.24.3-removing-execinfo.patch | 38 +++++++++
 .../mate-power-manager-1.24.3.ebuild               |  6 +-
 3 files changed, 132 insertions(+), 1 deletion(-)