Code: Select all
Calculating dependencies / * ERROR: www-client/palemoon-28.16.0::palemoon failed (depend phase):
* fdo-mime.eclass could not be found by inherit()
*
https://gitweb.gentoo.org/repo/gentoo.g ... a993717b59

Code: Select all
Calculating dependencies / * ERROR: www-client/palemoon-28.16.0::palemoon failed (depend phase):
* fdo-mime.eclass could not be found by inherit()
*

29.x doesn't work with gcc 9.3.0 anymore, I had to reinstall 8.4.0 to get it to compile.Princess Nell wrote:Hijacking my own thread ...
Has anyone managed to build palemoon 29.x? Compile dies about 2 hours in and it's not quite clear to me what the reason is. The build log is about 2.5MB and it looks like every other file creates a ton of warnings about macros.
I need to use PALEMOON_ENABLE_UNSUPPORTED_COMPILERS with gcc 9.3.0, which is a bit surprising because https://github.com/deu/palemoon-overlay/issues/88, and the exact same setup has compiled probably a dozen versions in the palemoon 28.x series without problem.
Interesting and alarming. I quit building palemoon a few versions back. In the early days it loaded substantially quicker than the binary, but for the whole 28.x series I could see no improvement so I went to full binary.saellaven wrote:29.x doesn't work with gcc 9.3.0 anymore, I had to reinstall 8.4.0 to get it to compile.



Code: Select all
$ cat /etc/portage/patches/www-client/palemoon-29.0.1/palemoon-wno-error.patch
--- a/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:54:44.306010803 -0600
+++ b/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:50:31.812881070 -0600
@@ -31,7 +31,7 @@
if CONFIG['GNU_CXX']:
# Disable strict-aliasing for GCC, which is enabled by default
# starting with version 7.1, see Mozilla bug 1363009.
- CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing']
+ CXXFLAGS += ['-Wno-shadow', '-Wno-error', '-fno-strict-aliasing']
if CONFIG['JS_HAS_CTYPES'] and CONFIG['MOZ_SYSTEM_FFI']:
CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']Can confirm this patch works for me... I just hadn't gotten around to diagnosing the error itself.Anon-E-moose wrote:I just got it to compile with this patchWhich is the same thing I did to get firefox 52.9 to compile.Code: Select all
$ cat /etc/portage/patches/www-client/palemoon-29.0.1/palemoon-wno-error.patch --- a/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:54:44.306010803 -0600 +++ b/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:50:31.812881070 -0600 @@ -31,7 +31,7 @@ if CONFIG['GNU_CXX']: # Disable strict-aliasing for GCC, which is enabled by default # starting with version 7.1, see Mozilla bug 1363009. - CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing'] + CXXFLAGS += ['-Wno-shadow', '-Wno-error', '-fno-strict-aliasing'] if CONFIG['JS_HAS_CTYPES'] and CONFIG['MOZ_SYSTEM_FFI']: CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']
I haven't tried running it yet, I'll do it later, but I expect it to work, as ff52.9 works fine with the same problem/solution.
What is happening is that gcc9.3 is complaining about a warning re error, that's not really an error. It's a dynamically built variation of sprintf, with incompleteness when looked at a compile time. Don't know why 9.3 complains vs 8.4 (not running gcc10 so don't know about that), but it may be a regression they haven't fixed.
Anyway the end result is with the patch, it just ignores the warning about Werror=format and leaves it alone, which is probably what the previous versions of gcc did.

Code: Select all
8 7:15.26 /var/tmp/portage/www-client/palemoon-29.0.1/work/palemoon-29.0.1/platform/js/src/jit/x86-shared/BaseAssembler-x86-shared.h:3967:21: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
8 7:15.26 3967 | spew("%-11s" MEM_ob ", %s", legacySSEOpName(name),
8 7:15.26 | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 7:15.26 3968 | ADDR_ob(offset, base), XMMRegName(dst));
8 7:15.26 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Code: Select all
$ cat /etc/portage/patches/www-client/palemoon-29.0.1/palemoon-wno-error.patch
--- a/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:54:44.306010803 -0600
+++ b/platform/js/src/js-cxxflags.mozbuild 2021-02-08 07:50:31.812881070 -0600
@@ -31,7 +31,7 @@
if CONFIG['GNU_CXX']:
# Disable strict-aliasing for GCC, which is enabled by default
# starting with version 7.1, see Mozilla bug 1363009.
- CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing']
+ CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-Wno-error=format-overflow', '-fno-strict-aliasing']
if CONFIG['JS_HAS_CTYPES'] and CONFIG['MOZ_SYSTEM_FFI']:
CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']

Code: Select all
$ diff -u /n/download/palemoon-29.0.1.ebuild palemoon-29.0.1.ebuild
--- /n/download/palemoon-29.0.1.ebuild 2021-02-17 04:25:42.570833559 -0600
+++ palemoon-29.0.1.ebuild 2021-02-07 17:19:23.790235710 -0600
@@ -1,7 +1,7 @@
EAPI=6
REQUIRED_BUILDSPACE='16G'
-GCC_SUPPORTED_VERSIONS="4.9 5.4 7.3 8.2 8.3 8.4"
+GCC_SUPPORTED_VERSIONS="4.9 5.4 7.3 8.2 8.3 8.4 9.3"
inherit palemoon-5 git-r3 eutils flag-o-matic pax-utils
@@ -23,8 +23,8 @@
dbus
-necko-wifi
gnome
- gtk2
- gtk3
+ +gtk2
+ -gtk3
pulseaudio
+devtools
"



I don't use the overlay, I just grab the ebuild and put it in my local repo.Leonardo.b wrote:Anon-E-moose,
sorry, that's not what I wanted to say.
In the Palemoon overlay there is a profile/package.use.mask that blocks gtk3 for www-client/palemoon.
That could explain why saellaven and guru meditation had troubles enabling that.
I had too.
gtk2 and gtk3 on the same package at the same time, I don't know. I guess it doesn't build at all.
Greetings,
Leonardo

Code: Select all
www-client/palemoon -jemalloc -official-branding -pulseaudio gtk2 system-bzip2 system-libevent system-sqlite system-libvpx system-zlib threads