Package Details: xulrunner 41.0.2-18

Git Clone URL: https://aur.archlinux.org/xulrunner.git (read-only, click to copy)
Package Base: xulrunner
Description: Mozilla Runtime Environment
Upstream URL: http://wiki.mozilla.org/XUL:Xul_Runner
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 (UTC)
Last Updated: 2021-08-10 03:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

cknoblauch commented on 2020-09-04 13:53 (UTC)

The new patches don't match their checksums, after updating them the build starts but fails at a later stage when building the installer:

make -j8 -C /tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu install
make[1]: Entering directory '/tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make[2]: Entering directory '/tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/xulrunner/installer'
Makefile:73: FULL_NSPR_CFLAGS=
OMNIJAR_NAME=omni.ja \
NO_PKG_FILES="xulrunner-config regchrome* regxpcom*  xpcshell* run-mozilla* install_app.py  core bsdecho js js-config jscpucfg nsinstall viewer TestGtkEmbed elf-dynstr-gc mangle* maptsv* mfc* msdump* msmap* nm2tsv* nsinstall* res/samples res/throbber shlibsign* certutil* pk12util* BadCertServer* ClientAuthServer* OCSPStaplingServer* GenerateOCSPResponse* chrome/chrome.rdf chrome/app-chrome.manifest chrome/overlayinfo components/compreg.dat components/xpti.dat content_unit_tests necko_unit_tests *.dSYM  ssltunnel*" \
/tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/_virtualenv/bin/python /tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -DDLL_PREFIX=lib -DDLL_SUFFIX=.so -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DGRE_MILESTONE=41.0.2 -DGRE_BUILDID=20200904100150 -DMOZ_DEB_TIMESTAMP="Fri, 04  Sep 2020 10:34:30 -0300" -DMOZ_APP_NAME=xulrunner -Dinstalldir=/usr/lib/xulrunner-41.0.2  \
    --format omni \
     \
    --ignore-errors \
     \
     \
     \
    --optimizejars \
     \
     ../../dist ../../dist/xulrunner \

Warning: Skipping install_app.py
Warning: Skipping js
Warning: Skipping nsinstall
Warning: Skipping run-mozilla.sh
Warning: Skipping xpcshell
Executing /tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell -g /tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/ -a /tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/ -f /tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
/tmp/pamac-build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell: error while loading shared libraries: libicui18n.so.64: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 404, in <module>
    main()
  File "/tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 398, in main
    args.source, gre_path, base)
  File "/tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 156, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/tmp/pamac-build/xulrunner/src/mozilla-release/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/tmp/pamac-build/xulrunner/src/mozilla-release/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[2]: *** [/tmp/pamac-build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1

Any hints?

inugroho commented on 2020-09-03 17:00 (UTC)

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,11 +5,11 @@

 pkgname=xulrunner
 pkgver=41.0.2
-pkgrel=16
+pkgrel=17
 pkgdesc="Mozilla Runtime Environment"
 arch=('x86_64')
 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')
 url="http://wiki.mozilla.org/XUL:Xul_Runner"
 source=(https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$pkgver/source/xulrunner-$pkgver.source.tar.xz
@@ -22,7 +22,9 @@ source=(https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$pkgver/sourc
         mozilla-pkgconfig.patch
         shared-libs.patch
         sed43.patch
-        gcc6.diff)
+        gcc6.diff
+        sysctl.patch
+        gettid.patch)
 options=('!emptydirs' '!makeflags' 'staticlibs')
 replaces=('xulrunner-oss')
 sha256sums=('f7abb2e2989779305ab1f80d30caf9fc55d96c7e66d1394e2cc9639442e2b864'
@@ -35,8 +37,9 @@ sha256sums=('f7abb2e2989779305ab1f80d30caf9fc55d96c7e66d1394e2cc9639442e2b864'
             '1aa9ebe67542a2b8c28905d070829ada5b29438c6a7961f2b0cdd6b92d8b9f5c'
             '59d9fc421bc10a5515b73e159f44a72365bf7b7e8b3fc8a8c46043ef40bd3a40'
             'e9b7199b57fa07e440d37db0cc3cf52aa1c1fd7d5e8b31db14e511d77b5ce327'
-            '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
+
   # https://bugzilla.mozilla.org/show_bug.cgi?id=847568
   patch -Np1 -i ../LFS_graphite2_harfbuzz.patch
   sed -i -e "s|lcrmf|lm|g" configure.in
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>
+-#endif
++// #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 (UTC) (edited on 2020-09-01 10:11 (UTC) by yar)

Please depend on libpng-apng, as extra/libpng has dropped apng support: https://github.com/archlinux/svntogit-packages/commit/d4972c77c4b9b5555d229b49de3db87738818543

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. https://sourceware.org/pipermail/libc-announce/2020/000029.html

plntyk commented on 2020-03-28 11:20 (UTC) (edited on 2020-03-28 11:20 (UTC) by plntyk)

Apparently it's possible to get an older version of the package and just manually extract/copy the respective libicui18n.so.61 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 (UTC)

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: libicui18n.so.61: 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 libicui18n.so.61 but I feel like that's the wrong solution.

archtux commented on 2020-01-11 19:49 (UTC) (edited on 2020-01-11 19:50 (UTC) by archtux)

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 (UTC)

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/rules.mk:828: libxul.so] 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/recurse.mk:71: 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/recurse.mk:33: 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/rules.mk:549: 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/client.mk:401: realbuild] Error 2
make[1]: Leaving directory '/build/xulrunner/src/mozilla-release'
make: *** [client.mk:171: build] Error 2

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

ynikitenko commented on 2019-11-17 17:08 (UTC)

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: https://pastebin.com/qiYeS0uE (I couldn't paste all log because of pastebin 500 kB restriction).

ConnorBehan commented on 2019-09-19 16:06 (UTC)

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 (UTC)

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

https://pastebin.com/iGaMk5E9