Package Details: xulrunner 41.0.2-17

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.000001
First Submitted: 2018-05-18 05:48
Last Updated: 2020-09-04 14:03

Sources (13)

Latest Comments

1 2 3 Next › Last »

cknoblauch commented on 2021-02-21 18:06

Thanks @BruceR, I got it to work by following your advice.

It seems that a preexisting version under /usr/lib/xulrunner-41.0.2 is reused during the build, and if it had been built against an older libicu version it would fail to run. Uninstalling and rebuilding xulrunner from scratch did the trick.

ector commented on 2021-01-23 22:21

how do you compile for over an hour and 4GB of space. but this is needed for firefox

BruceR commented on 2021-01-04 08:42

The build process seem to check if there is an existing xulrunner package installed and links against the specific version of libicui18n that is referenced by the already installed package. I removed xulrunner and the other packages that depended on it and it built fine using ibicui18n.so.68.2 You will need to rebuild and reinstall those dependent packages anyway.

zwastik commented on 2020-09-14 00:34

ldconfig -p | grep libicui18n.so
    libicui18n.so.67 (libc6,x86-64) => /usr/lib/libicui18n.so.67
    libicui18n.so.67 (libc6) => /usr/lib32/libicui18n.so.67
    libicui18n.so (libc6,x86-64) => /usr/lib/libicui18n.so
    libicui18n.so (libc6) => /usr/lib32/libicui18n.so

As I said in my first post

    I have /usr/lib/libicui18n.so.67.1 in my system. Not libicui18n.so.64

The build process is asking for libicui18n.so.64 notice the 64 :)

/home/user/.cache/pikaur/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

I guess I could manually symlink it, but there has to be a better way. I also reinstalled icu, but I got the same problem.

Thanks for your time

inugroho commented on 2020-09-12 10:46

Hi @zwastik, I had not this issue before. But it mostly caused by missing lib. Could you check whether the lib exists by running ldconfig -p | grep libicui18n.so

Mine output is:

    libicui18n.so.67 (libc6,x86-64) => /usr/lib/libicui18n.so.67
    libicui18n.so (libc6,x86-64) => /usr/lib/libicui18n.so

This lib comes from icu package. I guess reinstalling icu will solve the issue.

HTH

zwastik commented on 2020-09-11 16:30

I am having the same problem as @cknoblauch. I did a pikaur -Scc before building FWIW.

Executing /home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell -g /home/user/.cache/pikaur/build
/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/ -a /home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/obj-x86_64-unknow
n-linux-gnu/dist/bin/ -f /home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e precompile_start
upcache("resource://gre/");                                               
/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell: error while loading shared libraries: libi
cui18n.so.64: cannot open shared object file: No such file or directory
Traceback (most recent call last):  
File "/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 404, in <module>
main()
File "/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 398, in main
args.source, gre_path, base)
File "/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.py", line 156, in precompile_cache
errors.fatal('Error while running startup cache precompilation')
File "/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/python/mozbuild/mozpack/errors.py", line 103, in fatal
self._handle(self.FATAL, msg)
File "/home/user/.cache/pikaur/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]: *** [/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
make[2]: Leaving directory '/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu/xulrunner/installer'
make[1]: *** [/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/xulrunner/build.mk:12: install] Error 2
make[1]: Leaving directory '/home/user/.cache/pikaur/build/xulrunner/src/mozilla-release/obj-x86_64-unknown-linux-gnu'
make: *** [client.mk:408: install] Error 2
==> ERROR: A failure occurred in package().
Aborting...

I have /usr/lib/libicui18n.so.67.1 in my system. Not libicui18n.so.64

ConnorBehan commented on 2020-09-04 14:04

Ok, the checksums are now fixed. Your problem looks like something that can be fixed by make clean. It's trying to link to icu 64.

cknoblauch commented on 2020-09-04 13:53

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

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

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