Package Details: phantomjs 2.1.1-16

Git Clone URL: https://aur.archlinux.org/phantomjs.git (read-only, click to copy)
Package Base: phantomjs
Description: Headless WebKit with JavaScript API
Upstream URL: http://www.phantomjs.org/
Licenses: BSD, LGPL, MIT
Submitter: yan12125
Maintainer: None
Last Packager: TheGoliath
Votes: 25
Popularity: 0.065565
First Submitted: 2018-01-24 14:25 (UTC)
Last Updated: 2020-07-06 10:26 (UTC)

Pinned Comments

yan12125 commented on 2018-08-12 11:22 (UTC) (edited on 2019-11-19 03:17 (UTC) by yan12125)

FAQ

  • error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory

You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.

  • Building takes too long time!

A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.

Latest Comments

krystianch commented on 2020-07-28 22:42 (UTC)

This package can be built on armv7l too. I just built it on a Raspberry Pi 4 by applying this patch. Without the flag it would not compile because warnings are treated as errors.

diff --git a/PKGBUILD b/PKGBUILD
index 9bfded9..584c675 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ pkgrel=16
 pkgdesc='Headless WebKit with JavaScript API'
 url='http://www.phantomjs.org/'
 license=('BSD' 'LGPL' 'MIT')
-arch=('i686' 'x86_64')
+arch=('armv7l')
 depends=('icu' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0' 'qt5-webkit')
 makedepends=('quilt')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ariya/phantomjs/archive/${pkgver}.tar.gz"
@@ -47,8 +47,8 @@ build() {
   export CXXFLAGS+=' -I/usr/include/openssl-1.0'
   export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'

-  CFLAGS+=' -Wno-expansion-to-defined'
-  CXXFLAGS+=' -Wno-expansion-to-defined'
+  CFLAGS+=' -Wno-expansion-to-defined -Wno-vla-larger-than'
+  CXXFLAGS+=' -Wno-expansion-to-defined -Wno-vla-larger-than'

   python2 build.py --skip-git --skip-qtbase --skip-qtwebkit --confirm --release
 }

cherti commented on 2020-07-05 16:26 (UTC) (edited on 2020-07-05 16:26 (UTC) by cherti)

2.1.1-15 misses a dependency on qt5-webkit, otherwise it won't build. Installing qt5-webkit manually fixes this, so updating the dependency array should suffice to resolve this.

jplatte commented on 2020-07-01 12:54 (UTC) (edited on 2020-07-01 12:55 (UTC) by jplatte)

Currently getting a build failure (sorry for localized error message, hope it makes sense still):

platform/graphics/SegmentedFontData.cpp: In Elementfunktion »virtual bool WebCore::SegmentedFontData::containsCharacters(const UChar*, int) const«:
platform/graphics/SegmentedFontData.cpp:65:9: Fehler: expected »;« before »if«
   65 |         if (!containsCharacter(c))
      |         ^~

scrouthtv commented on 2020-06-06 16:45 (UTC)

Please add patch to the dependencies

Rumcajs commented on 2020-04-30 07:07 (UTC)

wan't compile : make: *** [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2 Failed to build PhantomJS! Building Qt WebKit failed.

cirrus commented on 2020-04-26 23:55 (UTC) (edited on 2020-04-27 00:00 (UTC) by cirrus)

After 34 mins 38 seconds i get ...

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.

==> ERROR: A failure occurred in build().

Aborting...

this is 3rd attempt at building.

slav commented on 2020-04-25 18:42 (UTC)

unfortunately failure occurred during building package phantomjs 2.1.1-14

make: *** [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed. ==> ERROR: A failure occurred in build(). Aborting...

ryuta commented on 2019-11-23 17:29 (UTC)

It failed to (re)build :

platform/graphics/GlyphMetricsMap.h:113:9: required from 'WebCore::GlyphMetricsMap<T>::GlyphMetricsPage WebCore::GlyphMetricsMap<T>::locatePageSlowCase(unsigned int) [with T = float]' platform/graphics/GlyphMetricsMap.h:77:16: required from 'WebCore::GlyphMetricsMap<T>::GlyphMetricsPage WebCore::GlyphMetricsMap<T>::locatePage(unsigned int) [with T = float]' platform/graphics/GlyphMetricsMap.h:49:16: required from 'T WebCore::GlyphMetricsMap<T>::metricsForGlyph(WebCore::Glyph) [with T = float; WebCore::Glyph = short unsigned int]' platform/graphics/SimpleFontData.h:355:58: required from here ../WTF/wtf/HashTable.h:800:19: warning: 'void memset(void, int, size_t)' clearing an object of type 'struct WTF::KeyValuePair<int, WTF::OwnPtr<WebCore::GlyphMetricsMap<float>::GlyphMetricsPage> >' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 800 | memset(&bucket, 0, sizeof(bucket)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../WTF/wtf/HashTable.h:28, from ../WTF/wtf/HashMap.h:24, from platform/graphics/GlyphMetricsMap.h:34, from platform/graphics/SimpleFontData.h:33, from platform/graphics/FontGlyphs.h:25, from platform/graphics/Font.h:29, from platform/graphics/qt/FontQt.cpp:23: ../WTF/wtf/HashTraits.h:198:12: note: 'struct WTF::KeyValuePair<int, WTF::OwnPtr<WebCore::GlyphMetricsMap<float>::GlyphMetricsPage> >' declared here 198 | struct KeyValuePair { | ^~~~~~~~~~~~ make[2]: Leaving directory '/home/tux/.cache/yay/phantomjs/src/phantomjs-2.1.1/src/qt/qtwebkit/Source/WebCore' make[1]: [Makefile.WebCore:68: sub-Target-pri-make_first-ordered] Error 2 make[1]: Leaving directory '/home/tux/.cache/yay/phantomjs/src/phantomjs-2.1.1/src/qt/qtwebkit/Source/WebCore' make: [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed. ==> ERROR: A failure occurred in build(). Aborting... Error making: phantomjs

yan12125 commented on 2018-09-29 14:13 (UTC)

Dropping as I don't use it anymore.

Mampfi commented on 2018-08-15 14:42 (UTC)

I switched to phantomjs-bin (AUR). Works for me.

karcher commented on 2018-08-15 08:37 (UTC) (edited on 2018-08-15 08:37 (UTC) by karcher)

@yan12125: I can confirm that 2.1.1-13 could be built in a clean chroot and finally installed without errors. Thanks!

yan12125 commented on 2018-08-14 14:18 (UTC)

karcher, pierre.killy, def: thanks for letting me know. Could you try again with 2.1.1-13?

karcher commented on 2018-08-13 09:36 (UTC) (edited on 2018-08-13 09:38 (UTC) by karcher)

I tried to build phantomjs with clean-chroot-manager in clean chroot, not sure if I've done everything correctly but I'm getting after:

$ sudo ccm64 c

the same error like @stueja :

...
../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
#include <qdom.h>
        ^~~~~~~~
compilation terminated.
make[2]: *** [Makefile:9314: .obj/qdom.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/src/tools/bootstrap'
make[1]: *** [Makefile:62: sub-bootstrap-make_first] Error 2
make[1]: Leaving directory '/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/src'
make: *** [Makefile:45: sub-src-make_first] Error 2

ERROR: Failed to build PhantomJS! Building Qt Base failed.
configuring Qt Base, please wait...
Executing in /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase: /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/configure -static -opensource -confirm-license -prefix /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase -qt-zlib -qt-libpng -qt-libjpeg -qt-pcre -nomake examples -nomake tools -nomake tests -no-qml-debug -no-dbus -no-opengl -no-audio-backend -D QT_NO_GRAPHICSVIEW -D QT_NO_GRAPHICSEFFECT -D QT_NO_STYLESHEET -D QT_NO_STYLE_CDE -D QT_NO_STYLE_CLEANLOOKS -D QT_NO_STYLE_MOTIF -D QT_NO_STYLE_PLASTIQUE -D QT_NO_PRINTPREVIEWDIALOG -qpa phantom -openssl -openssl-linked -no-openvg -no-eglfs -no-egl -no-glib -no-gtkstyle -no-cups -no-sm -no-xinerama -no-xkb -no-xcb -no-kms -no-linuxfb -no-directfb -no-mtdev -no-libudev -no-evdev -no-pulseaudio -no-alsa -no-feature-PRINTPREVIEWWIDGET -fontconfig -icu -no-rpath -verbose -release
building Qt Base, please wait...
Executing in /build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase: make
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /chroot/.chroot64/user/build

pierre.killy commented on 2018-08-13 09:35 (UTC) (edited on 2018-08-13 09:36 (UTC) by pierre.killy)

Same as @def:

g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -I/usr/include/openssl-1.0 -Wno-expansion-to-defined -ffunction-sections -O2 -fPIC -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_LIBINPUT -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_PRINTPREVIEWDIALOG -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../3rdparty/zlib -I../../../include -I../../../include/QtCore -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml -I../../../include/QtCore/5.5.1 -I../../../include/QtCore/5.5.1/QtCore -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml/5.5.1 -I/tmp/build/phantomjs/src/qtbase-b5cc0083a5766e773885e8dd624c51a967c17de0/include/QtXml/5.5.1/QtXml -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include/QtCore -I/tmp/build/phantomjs/src/phantomjs-2.1.1/src/qt/qtbase/include/QtXml -I../../../mkspecs/linux-g++ -o .obj/qdom.o ../../xml/dom/qdom.cpp
../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
 #include <qdom.h>
          ^~~~~~~~
compilation terminated.

def commented on 2018-08-13 06:51 (UTC)

Fails with:

../../xml/dom/qdom.cpp:35:10: fatal error: qdom.h: No such file or directory
 #include <qdom.h>
          ^~~~~~~~
compilation terminated.

yan12125 commented on 2018-08-12 14:34 (UTC)

g++: fatal error: Killed signal terminated program cc1plus

Most likely that's due to insufficient memory. Adding a larger swap file should fix that.

stueja commented on 2018-08-12 14:31 (UTC)

Glad to hear that. ;) Unfortunately, though, I get an error in the 2nd hour of compiling phantomjs:

In file included from ../JavaScriptCore/parser/SourceCode.h:32,
                 from ../JavaScriptCore/runtime/Executable.h:39,
                 from ../JavaScriptCore/runtime/JSFunctionInlines.h:29,
                 from ../JavaScriptCore/runtime/Operations.h:28,
                 from bindings/js/JSDictionary.h:33,
                 from bindings/js/Dictionary.h:30,
                 from bindings/js/ArrayValue.cpp:29,
                 from bindings/js/JSBindingsAllInOne.cpp:28:
../JavaScriptCore/parser/SourceProvider.h: In member function ‘intptr_t JSC::SourceProvider::asID()’:
../JavaScriptCore/parser/SourceProvider.h:58:13: warning: nonnull argument ‘this’ compared to NULL [-Wnonnull-compare]
             if (!this) // Be defensive in release mode.
             ^~
{standard input}: Assembler messages:
{standard input}:203596: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [Makefile.WebCore.Target:137767: .obj/rendering/RenderingAllInOne.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make[1]: *** [Makefile.WebCore:68: sub-Target-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/tmp/trizen-jan/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/WebCore'
make: *** [Makefile:178: sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build phantomjs - makepkg exited with code: 4

Anything I can do about that?

yan12125 commented on 2018-08-12 12:34 (UTC)

Whoops, was that there before my last comment? If so, sorry for the noise. :/

Nope :)

stueja commented on 2018-08-12 12:32 (UTC)

Whoops, was that there before my last comment? If so, sorry for the noise. :/

yan12125 commented on 2018-08-12 11:22 (UTC) (edited on 2019-11-19 03:17 (UTC) by yan12125)

FAQ

  • error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory

You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.

  • Building takes too long time!

A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.

stueja commented on 2018-08-12 10:03 (UTC)

Getting error "phantomjs: error while loading shared libraries: libicui18n.so.61: cannot open shared object file: No such file or directory", because system updated to libicui18n.so.62. However, dependencies list icu equal or greater 61. How can I get phantomjs to work again?

karcher commented on 2018-06-29 12:31 (UTC)

@yan12125: I copied the icu59.patch into the same folder with PKGBUILD and rebuilt phantomjs. After some time it has finished without error and I could install the generated .xz package with pacman. I think it's OK now. Thanks!

yan12125 commented on 2018-06-29 12:09 (UTC)

@karcher: Of course icu59.patch is needed to build phantomjs. You can find that file from the git repo of this package - https://aur.archlinux.org/phantomjs.git.

karcher commented on 2018-06-29 10:26 (UTC) (edited on 2018-07-29 21:28 (UTC) by eschwartz)

"TL;DR - sudo pacman -S devtools and run extra-x86_64-build in the folder containing PKGBUILD. This command creates the installable pkg.tar.xz file. See https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot for detailed explanations."

I tried the way you mentioned following the Arch Wiki as well as with clean-chroot-manager. Both of them result in the same same error (icu59.patch):

$ sudo ccm64 s
[sudo] password for user: 
----> Attempting to build package...
==> Synchronizing chroot copy [/chroot/.chroot64/root] -> [user]...done
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
==> Making package: phantomjs 2.1.1-11 (Fri Jun 29 12:19:45 2018)
==> Retrieving sources...
  -> Cloning phantomjs git repo...
Cloning into bare repository '/home/user/chroot/root/home/phantomjs/phantomjs'...
remote: Counting objects: 81329, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 81329 (delta 83), reused 145 (delta 69), pack-reused 81156
Receiving objects: 100% (81329/81329), 173.09 MiB | 3.64 MiB/s, done.
Resolving deltas: 100% (37607/37607), done.
==> ERROR: icu59.patch was not found in the build directory and is not a URL.
==> ERROR: Could not download sources.

yan12125 commented on 2018-06-28 18:05 (UTC)

Is there a way to find out which packages are interfering?

No quick and simple way AFAIK. I used to diagnose such issues case-by-case, and finally I got tired and stick to clean chroot builds.

How can I do it? Please give some directions.

TL;DR - sudo pacman -S devtools and run extra-x86_64-build in the folder containing PKGBUILD. This command creates the installable pkg.tar.xz file.

See https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot for detailed explanations.

karcher commented on 2018-06-28 15:08 (UTC) (edited on 2018-06-28 15:09 (UTC) by karcher)

"Either some packages on your machine interferes with the build (likely)" Is there a way to find out which packages are interfering?

"In general it's highly suggested to build phantomjs in clean chroots." How can I do it? Please give some directions.

yan12125 commented on 2018-06-28 06:44 (UTC)

@karcher: Just build it again on my machine with extra-x86_64-build and it works fine. Either some packages on your machine interferes with the build (likely), or there's a bug in aurman (unlikely). In general it's highly suggested to build phantomjs in clean chroots.

karcher commented on 2018-06-27 14:47 (UTC) (edited on 2018-07-29 21:28 (UTC) by eschwartz)

@yan12125: Do you mean the phantomjs folder in the AUR Helper cache?

I have namely deleted this folder and tried again. Now I'm getting this error:

...
Creating hashtable for parser/Keywords.table
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/create_regex_tables > generated/RegExpJitTables.h
Creating JIT stubs for jit/JITStubs.cpp 
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/KeywordLookupGenerator.py parser/Keywords.table > generated/KeywordLookup.h
ruby /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm LLIntOffsetsExtractor generated/LLIntAssembly.h
python /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py disassembler/udis86/optable.xml --outputDir generated
offlineasm: Parsing /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm and LLIntOffsetsExtractor and creating assembly file generated/LLIntAssembly.h.
Traceback (most recent call last):
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 360, in <module>
    main()
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 355, in main
    optableXmlParser.parse( args[ 0 ], generator.addInsnDef )
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_optable.py", line 83, in parse
    fn( prefixes, mnemonic, opcodes, operands, vendor )
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 217, in addInsnDef
    vendor=vendor)
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 157, in __init__
    self.opcext[arg] = self.OpcExtMap[arg](val)
  File "/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/ud_opcode.py", line 120, in <lambda>
    '/m'     : lambda v: "%02x" % (int(v) / 32),
TypeError: %x format: an integer is required, not float
make[2]: *** [Makefile.JavaScriptCore.DerivedSources:706: generated/udis86_itab.c] Error 1
make[2]: *** Waiting for unfinished jobs....
offlineasm: Including file /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
offlineasm: Including file /home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
offlineasm: Assembly file generated/LLIntAssembly.h successfully generated.
make[2]: Leaving directory '/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
make[1]: *** [Makefile.JavaScriptCore:70: sub-DerivedSources-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/home/user/.cache/aurman/phantomjs/src/phantomjs/src/qt/qtwebkit/Source/JavaScriptCore'
make: *** [Makefile:92: sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2

ERROR: Failed to build PhantomJS! Building Qt WebKit failed.
==> ERROR: A failure occurred in build().
    Aborting...
2018-06-27 16:39:46,658 - wrappers - makepkg - ERROR - makepkg query makepkg -cf --noconfirm failed

yan12125 commented on 2018-06-27 05:14 (UTC)

karcher: most likely your phantomjs folder is not clean. Try removing it and build again.

karcher commented on 2018-06-26 21:47 (UTC)

I'm getting following error: ... Reset branch 'makepkg' ==> Starting prepare()... patching file Source/JavaScriptCore/API/JSStringRef.h Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file Source/JavaScriptCore/API/JSStringRef.h.rej patching file Source/WebKit2/Shared/API/c/WKString.h Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file Source/WebKit2/Shared/API/c/WKString.h.rej ==> ERROR: A failure occurred in prepare(). Aborting... 2018-06-26 23:21:45,587 - wrappers - makepkg - ERROR - makepkg query makepkg -cf --noconfirm failed

boris220 commented on 2018-05-14 15:01 (UTC)

@yan12125: my bad, thanks for the hint and for maintaining this package!

yan12125 commented on 2018-05-14 13:43 (UTC)

@boris220: You need to install the base-devel group, which is an implicit build time dependency for all AUR packages. See https://wiki.archlinux.org/index.php/Arch_User_Repository#Getting_started

boris220 commented on 2018-05-14 13:37 (UTC)

There is a make dependency missing in the PKGBUILD: bison is needed to build qtwebkit

yan12125 commented on 2018-04-18 05:42 (UTC)

Prebuilt package: https://yan12125.keybase.pub/arch-repo/yan12125/phantomjs-2.1.1-11-x86_64.pkg.tar.xz

yan12125 commented on 2018-04-18 05:38 (UTC)

@andreymal: Most likely there's something wrong in your toolchain/environment. It's suggested to always build this package in clean chroots.

FYI:

$ du /usr/bin/phantomjs 
50M     /usr/bin/phantomjs

andreymal commented on 2018-04-17 21:21 (UTC) (edited on 2018-04-17 21:21 (UTC) by andreymal)

$ du -h /usr/bin/phantomjs
1,3G    /usr/bin/phantomjs

WTF

yan12125 commented on 2018-04-17 12:40 (UTC)

sanduhrs flagged phantomjs out-of-date on 2018-04-17 for the following reason:

Latest release is 2.1.3
<https://github.com/ariya/phantomjs/releases>

READ COMMENTS BELOW. NOW.

MacNuke commented on 2018-04-04 08:11 (UTC)

for anyone wondering: phantomjs is dead for now:

https://github.com/ariya/phantomjs/issues/15344

yan12125 commented on 2018-03-06 12:37 (UTC)

Your package phantomjs [1] has been flagged out-of-date by simon04

Version 2.1.3 is out. #simon04/aur-out-of-date

WTF

yan12125 commented on 2018-03-04 05:34 (UTC) (edited on 2018-03-04 05:34 (UTC) by yan12125)

Version 2.1.3 is out. #simon04/aur-out-of-date

@kewl: Please read comments below carefully before marking this package as out-of-date.

yan12125 commented on 2018-01-30 16:38 (UTC) (edited on 2018-01-30 18:09 (UTC) by yan12125)

NOTICE: Version 2.1.3 is out, while it doesn't build due to the following issues:

https://github.com/ariya/phantomjs/issues/15235

https://github.com/ariya/phantomjs/issues/15291

So 2.1.1 is the latest version that can be built from sources. Checkout out aur/phantomjs-bin for prebuilt binaries.

yan12125 commented on 2018-01-24 18:41 (UTC)

Reference build time: 2 hours (without multithreading)