Building Pale Moon on Devuan fails 2

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Fri, 10 Aug 2018, 09:24

Unfortunately Tor browser has some dbus stuff as compile time dependency; sadly also pulse...

Ah, but that's necessary! Took me a while to more fully understand what Wanter Dnes wrote in some of the links (or second links from those, second maximum): compile time is fine with Tor browser! Because it later accomodates, it has to!, both pulse-system and non-pulse systems, as well as dbus-systems and non-dbus systems!

Can't browse much now. There I had a strange, likely Javascript-induced, little mess, caught on camera, hah, hah!

Well, I mean caught with my uncenz script (must still be: https://github.com/miroR/uncenz and that's way better than just camera, i.e. screencast, because it's also complete network session recorded, with SSL-keys to unlock it!).

Need to post it, and I'll try very hard to do it soon, because it involves Pale Moon very much too! This time it involves even Micro$oft. Preview-in-words: links that are perfectly correctly written and saved in a Github page (bought by M$ very recently) confirmed not to work (work = open, in Pale Moon browser), and after a few more seconds, they work again.

The analysis (it really really doesn't fit on a forum, and being safe and secure from this kind of "failures" is why I build/run Pale Moon and not Firefox or, God forbid: Chrome) is to appear on: https://www.croatiafidelis.hr/foss/cap/ ... -and-seek/ (non-extant at the time of posting this).

Walter Dnes
Astronaut
Astronaut
Posts: 563
Joined: Thu, 30 Jul 2015, 20:29
Location: Vaughan, ON, Canada

Re: Building Pale Moon on Devuan fails 2

Unread postby Walter Dnes » Fri, 10 Aug 2018, 13:59

I haven't been following this thread. I've used CentOS for the SSE-only build, and I do a native build for my Gentoo desktop. Steve has experience with Debian and derivatives.

By default, pulseaudio is a build-time dependancy, unless explicitly disabled. But is not a run-time dependancy on the target system, regardless.

By default, dbus is a build-time dependancy, unless explicitly disabled. If compiled in, it is also a run-time dependancy on the target system.

My regular desktop is a lean Gentoo system, without all the development libraries. Therefore my homebrew build for personal use has a few extra mozconfig entries...

Code: Select all

# My customizations

ac_add_options --disable-dbus
ac_add_options --disable-gconf
ac_add_options --disable-gio
ac_add_options --disable-pulseaudio
ac_add_options --enable-optimize="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
There's a right way
There's a wrong way
And then there's my way

User avatar
stevepusser
Lunatic
Lunatic
Posts: 401
Joined: Sat, 01 Aug 2015, 18:33
Location: California

Re: Building Pale Moon on Devuan fails 2

Unread postby stevepusser » Fri, 10 Aug 2018, 20:43

You also now don't need to specify what version of gcc you are building against if the system's default is 4.9 through 7, as you can see in the repo's successful builds of 28.0.0 b5: https://build.opensuse.org/package/show ... g/palemoon

If you can't install libgtk-3-dev in Devuan, I don't know what to say. That's a rather critical package to build a whole lot of packages! What do the Devuan developers say about that? Is it a critical bug?

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 11:02

Walter Dnes and stevepusser, I thought there were no replies, because I didn't get any email notifications (and I haven't disabled any myself). Found out only last night, by chance. Sorry!

stevepusser wrote:You also now don't need to specify what version of gcc you are building against if the system's default is 4.9 through 7

Ah, but I need the usual default for other compilations...
as you can see in the repo's successful builds of 28.0.0 b5:
https://build.opensuse.org/package/show ... g/palemoon

404: Not Found (at 2018-08-16 10:57:39+00:00)

If you can't install libgtk-3-dev in Devuan, I don't know what to say.

I have a complete system installed based on old gtk-2, not the new. And so far it wasn't necessary for building Pale Moon, since I have built Pale Moon a lot and successfully, and haven't had it, yet...
That's a rather critical package to build a whole lot of packages!

I believe so, but in the Gnome world! However...
What do the Devuan developers say about that? Is it a critical bug?

I have to find time and try and ask about that on Devuan forums. As I said, the Refracta dev should know pretty certainly about this.

Never mind, I did try to follow your suggestion. I installed libgtk-3-dev. In the next post.

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 11:11

Ah, it may be this, the reason. Because it was missing in my mozconfig (see the week old Walter Dnes' post previously in this topic)

Code: Select all

ac_add_options --disable-gconf

But I still want to post how I did go one step further with stevepusser's advice.

Pls refer to:
Building Pale Moon on Devuan fails 2
viewtopic.php?f=37&t=19763&p=147174#p147174

since the first some 300 lines or so are exactly the same as there.

And then goes (the dpkg-buildpackage-j4_180816_080415_5 is just my log of the STDOUT):
$ cat dpkg-buildpackage-j4_180816_080415_5 | grep -B10 -A300 'checking for gtk+-3.0'

Code: Select all

checking for malloc.h... yes
checking for strndup... yes
checking for posix_memalign... yes
checking for memalign... yes
checking for malloc_usable_size... yes
checking whether malloc_usable_size definition can use const argument... no
checking for valloc in malloc.h... yes
checking for valloc in unistd.h... no
checking NSPR selection... source-tree
checking if app-specific confvars.sh exists... /Cmn/src/palemoon/palemoon-28.0.0~b5~repack/application/palemoon/confvars.sh

That above is still actually of the same part as in the linked post of 6 days (not 1 week, sorry) ago.
And here we go, the gconf...

Code: Select all

checking for gtk+-3.0 >= 3.4.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0 ... yes
checking MOZ_GTK3_CFLAGS... -pthread -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
checking MOZ_GTK3_LIBS... -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0... yes
checking MOZ_GTK2_CFLAGS... -pthread -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
checking MOZ_GTK2_LIBS... -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfontconfig -lfreetype -lgdk-x11-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0
checking for gio-2.0 >= 2.22... yes
checking MOZ_GIO_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
checking MOZ_GIO_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0

... The "Could not find gconf-2.0" ... But it will be solved, thanks to both these guys help. I bet! (I don't yet know...)

Code: Select all

checking for gconf-2.0 >= 1.2.1 gobject-2.0 ... configure: error: * * * Could not find gconf-2.0
DEBUG: <truncated - see config.log for full output>
DEBUG:                   #include <stddef.h>
DEBUG:                   size_t malloc_usable_size(const void *ptr);
DEBUG: int main() {
DEBUG: return malloc_usable_size(0);
DEBUG: ; return 0; }
DEBUG: configure:9722: checking for valloc in malloc.h
DEBUG: configure:9747: checking for valloc in unistd.h
DEBUG: configure:9902: checking NSPR selection
DEBUG: configure:11055: checking if app-specific confvars.sh exists
DEBUG: configure:12141: checking for gtk+-3.0 >= 3.4.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0
DEBUG: configure:12148: checking MOZ_GTK3_CFLAGS
DEBUG: configure:12153: checking MOZ_GTK3_LIBS
DEBUG: configure:12227: checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0
DEBUG: configure:12234: checking MOZ_GTK2_CFLAGS
DEBUG: configure:12239: checking MOZ_GTK2_LIBS
DEBUG: configure:13160: checking for gio-2.0 >= 2.22
DEBUG: configure:13167: checking MOZ_GIO_CFLAGS
DEBUG: configure:13172: checking MOZ_GIO_LIBS
DEBUG: configure:13247: checking for gconf-2.0 >= 1.2.1 gobject-2.0
DEBUG: configure: error: * * * Could not find gconf-2.0
ERROR: old-configure failed
*** Fix above errors and then restart with\
               "make -f client.mk build"
make[4]: *** [/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/client.mk:378: configure] Error 1
make[4]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make[3]: *** [/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/client.mk:391: /home/mr/pmbuild/Makefile] Error 2
make[3]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make[2]: *** [client.mk:170: build] Error 2
make[2]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make[1]: *** [debian/rules:18: override_dh_auto_build] Error 2
make[1]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
$

See you in a while...

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 11:30

Wow! It's past those ugly initial errors, and it's churning on...
But I have to show you how dbus would have been pulled in.
And my system is without dbus, not completely as Gentoo users get it, those who go that way, and as I had it, but still: the dbus itself is not installed... Only the libdbus... I believe Refracta sans-dbus experimental is free also of it, like Gentoo, but haven't looked up in detail, to be able to tell.
Here:
# apt-get -s install gconf-2.0

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'gir1.0-gconf-2.0' for regex 'gconf-2.0'
Note, selecting 'gir1.2-gconf-2.0' for regex 'gconf-2.0'
The following NEW packages will be installed:
  gir1.2-gconf-2.0
0 upgraded, 1 newly installed, 0 to remove and 66 not upgraded.
Inst gir1.2-gconf-2.0 (3.2.6-4.1 Devuan:3.0/testing [amd64])
Conf gir1.2-gconf-2.0 (3.2.6-4.1 Devuan:3.0/testing [amd64])

Well, I mixed something,.. Maybe it would have been installable in my sans-dbus system...
But this does pull in dbus:
# apt-get -s install libgconf2-dev

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dbus dbus-x11 gconf2 gir1.2-gconf-2.0 libapparmor1
Suggested packages:
  gconf-defaults-service
Recommended packages:
  libgconf2-doc
The following NEW packages will be installed:
  dbus dbus-x11 gconf2 gir1.2-gconf-2.0 libapparmor1 libgconf2-dev
0 upgraded, 6 newly installed, 0 to remove and 66 not upgraded.
Inst libapparmor1 (2.13-8 Devuan:3.0/testing [amd64])
Inst dbus (1.12.10-1 Devuan:3.0/testing [amd64])
Inst dbus-x11 (1.12.10-1 Devuan:3.0/testing [amd64])
Inst gconf2 (3.2.6-4.1 Devuan:3.0/testing [amd64])
Inst gir1.2-gconf-2.0 (3.2.6-4.1 Devuan:3.0/testing [amd64])
Inst libgconf2-dev (3.2.6-4.1 Devuan:3.0/testing [amd64])
Conf libapparmor1 (2.13-8 Devuan:3.0/testing [amd64])
Conf dbus (1.12.10-1 Devuan:3.0/testing [amd64])
Conf dbus-x11 (1.12.10-1 Devuan:3.0/testing [amd64])
Conf gconf2 (3.2.6-4.1 Devuan:3.0/testing [amd64])
Conf gir1.2-gconf-2.0 (3.2.6-4.1 Devuan:3.0/testing [amd64])
Conf libgconf2-dev (3.2.6-4.1 Devuan:3.0/testing [amd64])

Anyway, it's compiling fine... So far...

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 11:56

This is what I mentioned a few times, earlier in this topic:
Refracta no-dbus experiment
https://dev1galaxy.org/viewtopic.php?id=2158

And, stevepusser, I referred to you in my today's post there.

Aargghhh... I just got a compilation error with my Pale Moon... (But only now, apparently almost all else went fine...) In the next post.
Last edited by miroR on Thu, 16 Aug 2018, 11:57, edited 1 time in total.

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 12:19

The error was a well-known one. My mozconfig was missing:

Code: Select all

ac_add_options --disable-precompiled-startupcache

And I got:

Code: Select all

Executing /home/mr/pmbuild/dist/bin/xpcshell -g /home/mr/pmbuild/dist/bin/ -a /home/mr/pmbuild/dist/bin/ -f /Cmn/src/palemoon/palemoon-28.0.0~b5~repack/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Traceback (most recent call last):
  File "/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/toolkit/mozapps/installer/packager.py", line 416, in <module>
    main()
  File "/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/toolkit/mozapps/installer/packager.py", line 410, in main
    args.source, gre_path, base)
  File "/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/toolkit/mozapps/installer/packager.py", line 166, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[4]: *** [/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
make[4]: Leaving directory '/home/mr/pmbuild/application/palemoon/installer'
make[3]: *** [/Cmn/src/palemoon/palemoon-28.0.0~b5~repack/application/palemoon/build.mk:18: install] Error 2
make[3]: Leaving directory '/home/mr/pmbuild'
make[2]: *** [client.mk:421: install] Error 2
make[2]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make[1]: *** [debian/rules:21: override_dh_auto_install] Error 2
make[1]: Leaving directory '/Cmn/src/palemoon/palemoon-28.0.0~b5~repack'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

at the very end of an 4.7M STOUT... Placed that ac_add_options --disable-precompiled-startupcache back in (it's in Building Pale Moon on Devuan fails, the old, first topic).

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1510
Joined: Thu, 03 Sep 2015, 19:47
Location: UA
Contact:

Re: Building Pale Moon on Devuan fails 2

Unread postby JustOff » Thu, 16 Aug 2018, 12:25

Off-topic:
Sorry, but do you clearly understand the difference between a public forum and a personal blog?
Here are the add-ons I made in a spare time. That was fun!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22155
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Building Pale Moon on Devuan fails 2

Unread postby Moonchild » Thu, 16 Aug 2018, 12:40

Off-topic:
Please do try to limit your whiteboarding on the forum.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

miroR
Fanatic
Fanatic
Posts: 102
Joined: Tue, 31 May 2016, 19:22

Re: Building Pale Moon on Devuan fails 2

Unread postby miroR » Thu, 16 Aug 2018, 13:33

I'm sorry. I'll try and understand.

I built the Pale Moon. Menu -> Help -> About Pale Moon:
Version 28.0.0.0b5 (64-bit) (2018-08-16)

Regards!

User avatar
stevepusser
Lunatic
Lunatic
Posts: 401
Joined: Sat, 01 Aug 2015, 18:33
Location: California

Re: Building Pale Moon on Devuan fails 2

Unread postby stevepusser » Thu, 16 Aug 2018, 17:49

I removed the repository where I was doing the test builds of PM now that I have the final release built in the primary repository: https://build.opensuse.org/package/show ... r/palemoon. Since the OBS is a completely free service, it's good form to clean up after yourself to free up their finite resources.

I have Debian testing builds using gcc-7 instead of the default 8 until gcc-8 support is solid in 28.1.0. If Devuan testing doesn't return "buster" from

Code: Select all

lsb_release -cs


then you'll have to add whatever it does return to the list in debian/rules to have it do the same.
Last edited by stevepusser on Thu, 16 Aug 2018, 17:55, edited 1 time in total.


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: No registered users and 12 guests