Package Details: xulrunner 41.0.2-17

Git Clone URL: (read-only, click to copy)
Package Base: xulrunner
Description: Mozilla Runtime Environment
Upstream URL:
Licenses: GPL, MPL, LGPL
Replaces: xulrunner-oss
Submitter: ConnorBehan
Maintainer: ConnorBehan
Last Packager: ConnorBehan
Votes: 4
Popularity: 0.000000
First Submitted: 2018-05-18 05:48
Last Updated: 2020-09-04 14:03

Sources (13)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

inugroho commented on 2020-09-03 17:00

I managed to build xulrunner, after patching 2 files. I uses xulrunner for pencil-v2, and not tested for other packages. Hope this might help. Here is the diff:

diff --git a/PKGBUILD b/PKGBUILD
index 419dff0..bd81b27 100644
@@ -5,11 +5,11 @@

 pkgdesc="Mozilla Runtime Environment"
 license=('MPL' 'GPL' 'LGPL')
-depends=('gtk2' 'mozilla-common' 'nss>3.18' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'libpulse' 'libevent' 'libvpx' 'icu' 'python2')
+depends=('gtk2' 'mozilla-common' 'nss>3.18' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'libpulse' 'libevent' 'libvpx' 'icu' 'python2' 'libpng-apng' 'alsa-lib' 'glibc')
 makedepends=('gcc6' 'zip' 'unzip' 'pkg-config' 'diffutils' 'yasm' 'mesa' 'gconf' 'autoconf2.13' 'gst-plugins-base-libs')
@@ -22,7 +22,9 @@ source=($pkgver/sourc
-        gcc6.diff)
+        gcc6.diff
+        sysctl.patch
+        gettid.patch)
 options=('!emptydirs' '!makeflags' 'staticlibs')
@@ -35,8 +37,9 @@ sha256sums=('f7abb2e2989779305ab1f80d30caf9fc55d96c7e66d1394e2cc9639442e2b864'
-            '0992d5dce883de760ff0445448466f096d0baa75fe5fd1e60bfd3cc13cb4d098')
+            '0992d5dce883de760ff0445448466f096d0baa75fe5fd1e60bfd3cc13cb4d098'
+            '8b921488faff947baf26ebba6db09d9d6db396b0d528aa543a4da20330c1d8fd'
+            'fc1b55fda12dd1d02cea54d530a594855d45fe0be93bc06f4c804618b0700b2b')
 prepare() {
   cd "$srcdir/mozilla-release"
   cp "$srcdir/mozconfig" .mozconfig
@@ -58,6 +61,10 @@ prepare() {
   # Fix for Bug 1329798 "Use of major & minor macros without including sys/sysmacros.h"
   patch -Np1 -i ../0001-Bug-1329798-Include-sys-sysmacros.h-for-major-minor-on-Linux.patch

+  # Fix for removing sys/sysctl.h and declaration of gettid
+  patch -Np1 -i ../sysctl.patch
+  patch -Np1 -i ../gettid.patch
   patch -Np1 -i ../LFS_graphite2_harfbuzz.patch
   sed -i -e "s|lcrmf|lm|g"
diff --git a/gettid.patch b/gettid.patch
new file mode 100644
index 0000000..2211b77
--- /dev/null
+++ b/gettid.patch
@@ -0,0 +1,17 @@
+--- src/tools/profiler/platform-linux-lul.h    2015-10-15 04:41:22.000000000 +0700
++++ work/tools/profiler/platform-linux-lul.h   2020-09-03 22:46:43.264756553 +0700
+@@ -21,10 +21,10 @@
+ #if defined(__GLIBC__)
+ #include <unistd.h>
+ #include <sys/syscall.h>
+-static inline pid_t gettid()
+-  return (pid_t) syscall(SYS_gettid);
++// static inline pid_t gettid()
++// {
++//   return (pid_t) syscall(SYS_gettid);
++// }
+ #endif
+ // A singleton instance of the library.
diff --git a/sysctl.patch b/sysctl.patch
new file mode 100644
index 0000000..e0f20f9
--- /dev/null
+++ b/sysctl.patch
@@ -0,0 +1,15 @@
+--- org/memory/mozjemalloc/jemalloc.c  2015-10-15 04:41:05.000000000 +0700
++++ work/memory/mozjemalloc/jemalloc.c 2020-09-03 22:47:42.138024901 +0700
+@@ -325,9 +325,9 @@
+ #endif
+ #include <sys/time.h>
+ #include <sys/types.h>
+-#if !defined(MOZ_MEMORY_SOLARIS) && !defined(MOZ_MEMORY_ANDROID)
+-#include <sys/sysctl.h>
++// #if !defined(MOZ_MEMORY_SOLARIS) && !defined(MOZ_MEMORY_ANDROID)
++// #include <sys/sysctl.h>
++// #endif
+ #include <sys/uio.h>
+ #ifndef MOZ_MEMORY
+ #include <sys/ktrace.h> /* Must come after several other sys/ includes. */

yar commented on 2020-09-01 08:52

Please depend on libpng-apng, as extra/libpng has dropped apng support:

Please also depend on alsa-lib and glibc, and in the future test your PKGBUILDs with devtools' makechrootpkg to detect all dependencies.

Unfortunately, this package still will not compile, as xulrunner 41.0.2 needs sys/sysctl.h, which was recently removed from glibc 2.32. I will try to package glibc 2.31 for the AUR.

plntyk commented on 2020-03-28 11:20

Apparently it's possible to get an older version of the package and just manually extract/copy the respective but I feel like that's the wrong solution.

the build system of xulrunner seems broken if there is an old xulrunner version already installed: it seems to copy and then use the xpcshell that is linked against old libicu61 and libhunspell-1.6 instead of the newer ones - i verified that the old xulrunner in /usr/lib/ was linked against these old lib versions

uninstalling the old xulrunner package and it reinstall from AUR works fine

PS: if you use xulrunner for lucidor you could also install palemoon

WizardStan commented on 2020-01-14 01:33

With the -fpermissive, and the multiple definition of gettid fixes, I'm now getting "/tmp/xulrunner/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell: error while loading shared libraries: cannot open shared object file: No such file or directory"

Apparently it's possible to get an older version of the package and just manually extract/copy the respective but I feel like that's the wrong solution.

archtux commented on 2020-01-11 19:49

To fix multiple definition of `gettid' in /src/mozilla-release/tools/profiler/platform-linux-lul.h:25

Add : sed -i '24,27d' tools/profiler/platform-linux-lul.h

at the end of the prepare() function in PKGBUILD before }.

quequotion commented on 2019-12-09 07:21

Trying to build with -fpermissive, as per same error as ynikitenko; the next error is:

ld: ../../tools/profiler/Unified_cpp_tools_profiler0.o: in function `gettid.localalias.0':
/build/xulrunner/src/mozilla-release/tools/profiler/platform-linux-lul.h:25: multiple definition of `gettid'; ../../tools/profiler/platform-linux.o:/build/xulrunner/src/mozilla-release/tools/profiler/platform-linux-lul.h:25: first defined here
ld: ../../tools/profiler/Unified_cpp_tools_profiler1.o: in function `gettid':
/build/xulrunner/src/mozilla-release/tools/profiler/platform-linux-lul.h:25: multiple definition of `gettid'; ../../tools/profiler/platform-linux.o:/build/xulrunner/src/mozilla-release/tools/profiler/platform-linux-lul.h:25: first defined here
make[5]: *** [/build/xulrunner/src/mozilla-release/config/] Error 1
make[5]: Leaving directory '/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/toolkit/library'
make[4]: *** [/build/xulrunner/src/mozilla-release/config/ toolkit/library/target] Error 2
make[4]: Leaving directory '/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[3]: *** [/build/xulrunner/src/mozilla-release/config/ compile] Error 2
make[3]: Leaving directory '/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[2]: *** [/build/xulrunner/src/mozilla-release/config/ default] Error 2
make[2]: Leaving directory '/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[1]: *** [/build/xulrunner/src/mozilla-release/ realbuild] Error 2
make[1]: Leaving directory '/build/xulrunner/src/mozilla-release'
make: *** [ build] Error 2

Even with --quiet the output from xulrunner is massive.

ynikitenko commented on 2019-11-17 17:08

I have this error,

builds/xulrunner/src/mozilla-release/tools/profiler/platform-linux-lul.h:24:21: error: ‘pid_t gettid()’ was declared ‘extern’ and later ‘static’ [-fpermissive] static inline pid_t gettid() ^~~~~~ In file included from /usr/include/unistd.h:1170:0, from ../../dist/system_wrappers/unistd.h:3, from /home/yaroslav/builds/xulrunner/src/mozilla-release/tools/profiler/AutoObjectMapper.cpp:8, from /home/yaroslav/builds/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/tools/profiler/Unified_cpp_tools_profiler0.cpp:2: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘__pid_t gettid()’ extern __pid_t gettid (void) __THROW;

A more complete log is here: (I couldn't paste all log because of pastebin 500 kB restriction).

ConnorBehan commented on 2019-09-19 16:06

I didn't realize that the build system tries to call pip. Maybe if python2-pip is installed, it gets confused.

c3n21 commented on 2019-09-19 14:42

I'm still having problem building it. Here's the complete output, any help would be appreciated :)

dreieck commented on 2019-08-06 09:16

@ConnorBehan: The fix for the problem mentioned at 2018-09-02 and fix posted on 2018-10-17 and re-confirmed on 2019-01-11 and 2019-02-07 is still pending.

I now confirm again on 2019-08-06 that this patch makes xulrunner building again.

Can you please add it to the PKGBUILD?

Package has already been flagged out of date.

The patch download URL is <>.

Step-by-step-instruction for the PKGBUILD, to make it even easier for you to add it:

  • to the source-array, append
  • To the sha256sums-array, append
  • In the prepare()-function, add

  # Fix for Bug 1329798 "Use of major & minor macros without including sys/sysmacros.h"
  patch -Np1 -i ../0001-Bug-1329798-Include-sys-sysmacros.h-for-major-minor-on-Linux.patch

after patch -Np1 -i ../Bug-1269171.patch.