Re: wip/phantomjs upgrade needed to avoid X dependency
Mayuresh <[email protected]> Sat, 4 Aug 2012 17:29:17 +0530
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 04, 2012 at 08:43:41AM +0200, Filip Hajny wrote: > The problem is that the major improvement of 1.5 is that they embedded their own QT4 fork inside the PhantomJS build. Which means it suddenly got very ugly, and you'll likely need to replicate some/all the QT4 patches that pkgsrc already has in x11/qt4-libs in order to make it build properly. I *hate* this kind of embedded builds that work around the problem that the upstream doesn't want to accept something (or they wouldn't even try). Thanks for the head up Filip. I tried removing the buildlink to qt from Makefile to see what happens, given there is a private copy of qt. It seems to require qmake and such tools up front. So I don't know how to bootstrap the build. Probably the build.sh that they distribute now, does things in required sequence. Is there any way to accommodate such builds in pkgsrc? Of course, if I do cross above stage, the prospect of applying all qt patches to the private copy of qt looks daunting (unless it's a downsized qt where not too many of them are needed.) #### Regarding 1.4 (current wip) build: 1.6 apart. Can you possibly help with following error with 1.4: ld: cannot find -ldl Full trace: cd src/ && /usr/bin/make -f Makefile.phantomjs all libtool --silent --mode=link c++ -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/qt4/lib -pthread -Wl,-R/usr/pkg/qt4/lib -o ../bin/phantomjs phantom.lo webpage.lo webserver.lo main.lo csconverter.lo utils.lo networkaccessmanager.lo cookiejar.lo filesystem.lo terminal.lo encoding.lo config.lo gif_err.lo gifalloc.lo egif_lib.lo gif_hash.lo quantize.lo gifwriter.lo mongoose.lo moc_phantom.lo moc_webpage.lo moc_webserver.lo moc_networkaccessmanager.lo moc_filesystem.lo moc_config.lo qrc_phantomjs.lo -L/usr/pkg/lib -L/usr/pkg/qt4/lib -ldl -lQtWebKit -lQtGui -lQtNetwork -lQtCore ld: cannot find -ldl /usr/pkgsrc/wip/phantomjs/work/.buildlink/lib/libICE.so: warning: warning: reference to compatibility time(); include <time.h> for correct reference /usr/pkgsrc/wip/phantomjs/work/.buildlink/lib/libICE.so: warning: warning: reference to compatibility __stat30(); include <sys/stat.h> to generate correct reference /usr/pkgsrc/wip/phantomjs/work/.buildlink/lib/libICE.so: warning: warning: reference to compatibility __fstat30(); include <sys/stat.h> to generate correct reference /usr/pkgsrc/wip/phantomjs/work/.buildlink/lib/libICE.so: warning: warning: reference to compatibility __lstat30(); include <sys/stat.h> to generate correct reference /usr/pkgsrc/wip/phantomjs/work/.buildlink/lib/libICE.so: warning: warning: reference to compatibility gettimeofday(); include <sys/time.h> to generate correct reference *** [../bin/phantomjs] Error code 1 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/