Re: newer phantomjs anybody?

2016-12-09 Thread Francisco de Borja Lopez Rio
On Fri, Dec 09, 2016 at 06:31:36AM -0500, Jiri B wrote:
> Hi,
>

Hey there.

>
> has anybody newer phantomjs or at least a WIP port?
>

I've been working in the 2.0.x port, lots of patching needed
because they are still using a bundled version of qt.

I hope it will be ready soon, but can't promise ;-)

I'll put what I've somewhere online, so you can take a look if
you want to help with it.

Regards.

--

"Do nothing which is of no use." - Miyamoto Musashi
---------
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



darcs w^x trouble

2016-09-01 Thread Francisco de Borja Lopez Rio
Hi everybody.

Installed a fresh snapshot:

kern.version=OpenBSD 6.0-current (GENERIC) #2210: Mon Aug 22 09:14:34 MDT 2016

Installed darcs from packages:

pkg_add -i darcs

Every time I try to run "darcs record" (to record some changes in a local
repo):

darcs: internal error: setExecutable: failed to protect 0x0x2242c5000

(GHC version 7.10.3 for x86_64_unknown_openbsd)
Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Abort trap (core dumped)

And in the logs I can see:

darcs(11893): mprotect W^X violation

Some other commands seem to work just fine (darcs init/add/clone/pull...)

This is a testing env, just a single / partition, marked with wxallowed:

/dev/wd0a on / type ffs (local, wxallowed)

Afterwards, I added "USE_WXNEEDED = yes" to /usr/ports/devel/darcs/Makefile
and I built darcs from ports. Same result.

There is no MAINTAINER set for this port, anybody that can help a bit with
this?

Regards.

--

"Do nothing which is of no use." - Miyamoto Musashi
-------------
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: PATCH: www/phantomjs wxneeded

2016-08-31 Thread Francisco de Borja Lopez Rio
On Tue, Aug 30, 2016 at 04:52:28PM +0100, Stuart Henderson wrote:
> On 2016/08/30 11:13, Francisco de Borja Lopez Rio wrote:
> > On Fri, Aug 19, 2016 at 10:49:42AM +0100, Stuart Henderson wrote:
> > > On 2016/08/19 11:42, Francisco de Borja Lopez Rio wrote:
> > > > phantomjs comes with its own bundled webkit, so I guess yes.
> > >
> > > Yep, correct. Committed.
> > >
> >
> > Trying the latest snapshot:
> >
> > kern.version=OpenBSD 6.0-current (GENERIC) #2210: Mon Aug 22 09:14:34 MDT 
> > 2016
> >
> >
> > # phantomjs --version
> > 1.9.8
> > # phantomjs
> > Segmentation fault (core dumped)
> > #
> >
> > in the logs and dmesg I can see this:
> >
> > phantomjs(27197): mmap W^X violation
> >
> > This happens also when trying to running some code through phantomjs (like
> > the code in /usr/local/share/examples/phantomjs).
> >
> > I've installed the package, then built it from ports too, same result.
> >
> > Trying to figure out what is happening myself, but any hints/ideas will be
> > welcome.
>
> Make sure you have fully updated packages (specifically gcc/g++-4.9.3p10).

I did not have gcc installed from ports... but I guess that should not be
related to the segfault when using the binary from packages, right?

Also, even if I do install gcc 4.9.3p10, when building phantomjs from ports
it still uses gcc/g++ from base (IIRC).

Regards.

--

"Do nothing which is of no use." - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: PATCH: www/phantomjs wxneeded

2016-08-30 Thread Francisco de Borja Lopez Rio
On Fri, Aug 19, 2016 at 10:49:42AM +0100, Stuart Henderson wrote:
> On 2016/08/19 11:42, Francisco de Borja Lopez Rio wrote:
> > phantomjs comes with its own bundled webkit, so I guess yes.
>
> Yep, correct. Committed.
>

Trying the latest snapshot:

kern.version=OpenBSD 6.0-current (GENERIC) #2210: Mon Aug 22 09:14:34 MDT 2016


# phantomjs --version
1.9.8
# phantomjs
Segmentation fault (core dumped)
#

in the logs and dmesg I can see this:

phantomjs(27197): mmap W^X violation

This happens also when trying to running some code through phantomjs (like
the code in /usr/local/share/examples/phantomjs).

I've installed the package, then built it from ports too, same result.

Trying to figure out what is happening myself, but any hints/ideas will be
welcome.

Regards.

--

"Do nothing which is of no use." - Miyamoto Musashi
-------------
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: PATCH: www/phantomjs wxneeded

2016-08-19 Thread Francisco de Borja Lopez Rio
On Fri, Aug 19, 2016 at 09:50:14AM +0100, Antoine Jacoutot wrote:
> On August 18, 2016 10:08:18 PM GMT+01:00, Caspar Schutijser 
> <cas...@schutijser.com> wrote:
> >Hi,
> >
> >I don't really use this piece of software but I happened to remember
> >that it uses webkit. Simply invoking phantomjs would result in a crash.
> >Not anymore with the patch below.
> >
> >Thanks,
> >Caspar Schutijser
> >
> >
> >Index: Makefile
> >===
> >RCS file: /cvs/ports/www/phantomjs/Makefile,v
> >retrieving revision 1.6
> >diff -u -p -r1.6 Makefile
> >--- Makefile 3 Nov 2014 14:42:41 -   1.6
> >+++ Makefile 18 Aug 2016 21:05:08 -
> >@@ -1,5 +1,7 @@
> > # $OpenBSD: Makefile,v 1.6 2014/11/03 14:42:41 landry Exp $
> >
> >+USE_WXNEEDED =  Yes
> >+
> > ONLY_FOR_ARCHS =i386 amd64
> > DPB_PROPERTIES =parallel nojunk
> > # nojunk: qmake include parser is bogus, c.f. x11/qt4
> >@@ -7,6 +9,7 @@ DPB_PROPERTIES = parallel nojunk
> > COMMENT =   headless WebKit scriptable with a JavaScript API
> >
> > DISTNAME =  phantomjs-1.9.8
> >+REVISION =  0
> >
> > CATEGORIES =www
> > HOMEPAGE =  http://phantomjs.org/
>
> Is that really needed after the recent WebKit pkgconfig change ?
>

phantomjs comes with its own bundled webkit, so I guess yes.

Regards.

--

"Do nothing which is of no use." - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: Mercurial in latest snapshot - transaction abort

2015-07-08 Thread Francisco de Borja Lopez Rio
On Tue, May 19, 2015 at 05:37:37PM +0200, Francisco de Borja Lopez Rio wrote:
 Hi guys.

 I'm maintaining a buildslave box for python.org [1], running on (more or less)
 up-to-date snapshots and I've realized that something started to go wrong
 after my latest upgrade, it seems mercurial is not able to clone the cpython
 repository anymore:

 $ hg clone --verbose --noupdate http://hg.python.org/cpython 
 build-test-cpython
 real URL is https://hg.python.org/cpython
 requesting all changes
 adding changesets
 transaction abort!
 rollback completed
 abort: connection ended unexpectedly
 $ hg --version
 Mercurial Distributed SCM (version 3.2.3)
 (see http://mercurial.selenic.com for more information)

 Copyright (C) 2005-2014 Matt Mackall and others
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 $ sysctl -a |grep OpenBSD
 kern.ostype=OpenBSD
 kern.version=OpenBSD 5.7-current (GENERIC.MP) #857: Sat May  2 09:25:15 MDT 
 2015
 $ uname -a
 OpenBSD tyr.codigo23.lab 5.7 GENERIC.MP#857 i386
 $


FYI, I've upgraded the box yesterday to the latest snapshot, that clone of the
cpython repo worked fine again.

$ sysctl kern.version
kern.version=OpenBSD 5.8-beta (GENERIC.MP) #1004: Mon Jul  6 22:17:15 MDT 2015
$ hg --version
Mercurial Distributed SCM (version 3.2.3)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Regards!


--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net


pgpdv3KB2lcvJ.pgp
Description: PGP signature


Re: suspicious conflict in python ports

2015-05-27 Thread Francisco de Borja Lopez Rio
On Wed, May 27, 2015 at 05:09:09PM +0200, Adam Wolk wrote:
 On Wed, 27 May 2015 16:11:13 +0200
 Marc Espie es...@nerim.net wrote:

  py-oauth2-1.5.211(),py-paste-script-1.7.5()
  /usr/local/lib/python2.7/site-packages/tests/__init__.py
  /usr/local/lib/python2.7/site-packages/tests/__init__.pyc
 
 
  Those files have surprisingly generic names. I wonder if they should
  get packaged at all ?
 
  To ponder for python people.

 There is even one more strange thing. I just tried on amd64 snapshot
 from May 20th. The make test step seems to fail at least for 
 www/py-paste-script.

 That's on a clean box that never had this package installed before.

 # make test
 ===  Regression tests for py-paste-script-1.7.5
 cd /usr/ports/pobj/py-paste-script-1.7.5/PasteScript-1.7.5  
 /usr/local/bin/py.test .
 /bin/sh: /usr/local/bin/py.test: not found
 *** Error 127 in . (Makefile:38 'do-test')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2779 
 '/usr/ports/pobj/py-paste-script-1.7.5/.test_done')
 *** Error 1 in /usr/ports/www/py-paste-script 
 (/usr/ports/infrastructure/mk/bsd.port.mk:2476 'test')


It seems that package should depend on py.test (a test runner) for
running its tests. We have py.test 2.6.1 is in ports, maybe these ports
Makefile should be updated?

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: Mercurial in latest snapshot - transaction abort

2015-05-26 Thread Francisco de Borja Lopez Rio
On Thu, May 21, 2015 at 05:48:23PM +0200, Otto Moerbeek wrote:
 On Thu, May 21, 2015 at 05:36:33PM +0200, Francisco de Borja Lopez Rio wrote:

  At first I thought it could be related to network problems, but the clone
  worked fine in a laptop running OSx on the same line, and I guess network
  connectivity should not be a problem once it reaches adding changesets.
 
  Could it be related to the arch (i386) or the MP kernel?
  dmesg is available here: http://codigo23.net/openbsd/dmesg-tyr.txt
 
  Any hint on how to debug it will be welcome.

 Check var/log/messages (or was it daemon?) for messages concerning
 overlapping memcpy's.


Nothing, but thanks for the hint.

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: Mercurial in latest snapshot - transaction abort

2015-05-26 Thread Francisco de Borja Lopez Rio
On Thu, May 21, 2015 at 05:36:33PM +0200, Francisco de Borja Lopez Rio wrote:

 Finally I upgraded that box today, same result:

 $ hg clone --verbose --noupdate http://hg.python.org/cpython
 warning: hg.python.org certificate with fingerprint 
 f4:21:58:34:4e:26:dd:55:16:51:2e:ce:6e:58:a8:92:6e:32:c8:50 not verified 
 (check hostfingerprints or web.cacerts config setting)
 real URL is https://hg.python.org/cpython
 destination directory: cpython
 requesting all changes
 adding changesets
 adding manifests
 transaction abort!
 rollback completed
 abort: connection ended unexpectedly
 $ sysctl -a|grep OpenBSD
 kern.ostype=OpenBSD
 kern.version=OpenBSD 5.7-current (GENERIC.MP) #881: Wed May 20 17:55:17 MDT 
 2015
 $ hg --version
 Mercurial Distributed SCM (version 3.2.3)
 (see http://mercurial.selenic.com for more information)

 Copyright (C) 2005-2014 Matt Mackall and others
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 $


I did clone the repo in the OSx box, then I served it using hg serve, then
I cloned it in the openbsd box, it worked:

$ hg clone --verbose --noupdate http://192.168.74.13:9000 build-test-cpython4
requesting all changes
adding changesets
adding manifests
adding file changes
added 96301 changesets with 212183 changes to 10521 files (+1 heads)
$

I also tried installing mercurial 3.4 using pip, inside a virtualenv, then
cloning from python.org, it did not work:

$ virtualenv hgenv
New python executable in hgenv/bin/python2.7
Also creating executable in hgenv/bin/python
Please make sure you remove any previous custom paths from your 
/home/wu/.pydistutils.cfg file.
Installing setuptools, pip...done.
$ . hgenv/bin/activate
(hgenv)$ pip install mercurial
You are using pip version 6.1.1, however version 7.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting mercurial
  Downloading 
https://code.betabug-sirius.ch:3141/root/pypi/+f/4a2/dcf2bd9fa11e7/mercurial-3.4.tar.gz
 (4.3MB)
100% || 4.3MB 513kB/s
Installing collected packages: mercurial
  Running setup.py install for mercurial
Successfully installed mercurial-3.4
(hgenv)$ hg clone --verbose --noupdate http://hg.python.org/cpython 
build-test-cpython
real URL is https://hg.python.org/cpython
requesting all changes
adding changesets
adding manifests
transaction abort!
rollback completed
abort: connection ended unexpectedly
(hgenv)$ hg --version
Mercurial Distributed SCM (version 3.4)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2015 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$(hgenv)$

(cloning from the hgserve on the OSx box using 3.4 worked too)

I tried on another openbsd box, same snapshot, same setup, on a different
internet connection. Trying to clone from https://hg.python.org/cpython
failed but cloning from another hgserve-exported copy of that repo, located
in one of our remote servers, worked just fine:

$ hg clone --verbose --noupdate http://nidhogg.codigo23.net:9000 
build-test-cpython
requesting all changes
adding changesets
adding manifests
adding file changes
added 96303 changesets with 212187 changes to 10521 files (+1 heads)
$

It looks like it could be, somehow, related to cloning over https.

Any bells ringing, anyone?

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: Mercurial in latest snapshot - transaction abort

2015-05-21 Thread Francisco de Borja Lopez Rio
On Tue, May 19, 2015 at 06:32:54PM +0200, Remi Pointel wrote:

 Hi,

 it works fine here on a recent snapshpot.

 =
 $ sysctl |grep OpenBSD
 kern.ostype=OpenBSD
 kern.version=OpenBSD 5.7-current (GENERIC) #928: Mon May 18 14:40:17 MDT
 2015

 $ hg clone --verbose --noupdate http://hg.python.org/cpython
 build-test-cpython
 warning: hg.python.org certificate with fingerprint
 f4:21:58:34:4e:26:dd:55:16:51:2e:ce:6e:58:a8:92:6e:32:c8:50 not verified
 (check hostfingerprints or web.cacerts config setting)
 real URL is https://hg.python.org/cpython
 requesting all changes
 adding changesets
 adding manifests
 adding file changes
 added 96159 changesets with 211852 changes to 10510 files (+1 heads)


 $ hg --version
 Mercurial Distributed SCM (version 3.2.3)
 (see http://mercurial.selenic.com for more information)

 Copyright (C) 2005-2014 Matt Mackall and others
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 =

 Could you test with the latest snapshot please?


Finally I upgraded that box today, same result:

$ hg clone --verbose --noupdate http://hg.python.org/cpython
warning: hg.python.org certificate with fingerprint 
f4:21:58:34:4e:26:dd:55:16:51:2e:ce:6e:58:a8:92:6e:32:c8:50 not verified (check 
hostfingerprints or web.cacerts config setting)
real URL is https://hg.python.org/cpython
destination directory: cpython
requesting all changes
adding changesets
adding manifests
transaction abort!
rollback completed
abort: connection ended unexpectedly
$ sysctl -a|grep OpenBSD
kern.ostype=OpenBSD
kern.version=OpenBSD 5.7-current (GENERIC.MP) #881: Wed May 20 17:55:17 MDT 2015
$ hg --version
Mercurial Distributed SCM (version 3.2.3)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$

It works though when pulling smaller repos:

$ hg clone https://bitbucket.org/codigo23/mailjam
warning: bitbucket.org certificate with fingerprint 
46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:bc:f4:1a:5e:38:d7:ac:24 not verified (check 
hostfingerprints or web.cacerts config setting)
destination directory: mailjam
requesting all changes
adding changesets
adding manifests
adding file changes
added 35 changesets with 266 changes to 124 files
updating to branch default
94 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg clone https://bitbucket.org/hpk42/devpi devpi-hg
warning: bitbucket.org certificate with fingerprint 
46:de:34:e7:9b:18:cd:7f:ae:fd:8b:e3:bc:f4:1a:5e:38:d7:ac:24 not verified (check 
hostfingerprints or web.cacerts config setting)
requesting all changes
adding changesets
adding manifests
adding file changes
added 1658 changesets with 5673 changes to 446 files (+2 heads)
updating to branch default
239 files updated, 0 files merged, 0 files removed, 0 files unresolved
$

(those two are from bitbucket, but it worked fine with some private repos over
ssh)

At first I thought it could be related to network problems, but the clone
worked fine in a laptop running OSx on the same line, and I guess network
connectivity should not be a problem once it reaches adding changesets.

Could it be related to the arch (i386) or the MP kernel?
dmesg is available here: http://codigo23.net/openbsd/dmesg-tyr.txt

Any hint on how to debug it will be welcome.

Thanks!

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Re: Mercurial in latest snapshot - transaction abort

2015-05-21 Thread Francisco de Borja Lopez Rio
On Tue, May 19, 2015 at 07:47:43PM +0100, Stuart Henderson wrote:
 On 2015/05/19 17:37, Francisco de Borja Lopez Rio wrote:
  Hi guys.
 
  I'm maintaining a buildslave box for python.org [1], running on (more or 
  less)
  up-to-date snapshots and I've realized that something started to go wrong
  after my latest upgrade, it seems mercurial is not able to clone the cpython
  repository anymore:

 More or less might not be good enough. If you have libpthread.so.19.0 then
 make *sure* your packages were updated after that, especially any 
 python-related
 ones.


Thanks for the hint on that one. With more or less I meant the snapshot +
packages. I usually wait for the .es mirror to be in sync (snapshot+packages)
and then I do a full upgrade. Afterwards I don't upgrade packages unless I
upgrade the snapshot too (I guess installing packages built after a snapshot
has been released should be safe enough).

Regards.


--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Mercurial in latest snapshot - transaction abort

2015-05-19 Thread Francisco de Borja Lopez Rio
Hi guys.

I'm maintaining a buildslave box for python.org [1], running on (more or less)
up-to-date snapshots and I've realized that something started to go wrong
after my latest upgrade, it seems mercurial is not able to clone the cpython
repository anymore:

$ hg clone --verbose --noupdate http://hg.python.org/cpython build-test-cpython
real URL is https://hg.python.org/cpython
requesting all changes
adding changesets
transaction abort!
rollback completed
abort: connection ended unexpectedly
$ hg --version
Mercurial Distributed SCM (version 3.2.3)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ sysctl -a |grep OpenBSD
kern.ostype=OpenBSD
kern.version=OpenBSD 5.7-current (GENERIC.MP) #857: Sat May  2 09:25:15 MDT 2015
$ uname -a
OpenBSD tyr.codigo23.lab 5.7 GENERIC.MP#857 i386
$

I have tried the same clone in another i386 box running an snapshot some weeks
older, same error. Then I've tried the same clone on a couple different boxes
(FreeBSD 10, OSx 10.8.x) both running Mercurial 3.3 and I didn't get that
error.

Could anybody running a recent snapshot and Mercurial confirm if this is
happening there too?

Thanks!


[1] http://buildbot.python.org/all/buildslaves/borja-openbsd-x86

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net



Update: phantomjs 1.9.8

2014-11-01 Thread Francisco de Borja Lopez Rio
Hi!

Attached is a diff to update the www/phantomjs port to the latest version
(1.9.8) released some days ago.

This version disables SSLv3 support in phantomjs because of CVE-2014-3566
(aka the POODLE issue).

Not much more changes since 1.9.7:
https://github.com/ariya/phantomjs/compare/1.9.7...1.9.8

I've built the packages without problem in both latest amd64 snapshot and an
i386 snapshot from the end of may. It would be nice if someone with an
up-to-date i386 snapshot could give the build a try.

Ok?

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net
Index: Makefile
===
RCS file: /cvs/ports/www/phantomjs/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile	18 Mar 2014 14:19:54 -	1.5
+++ Makefile	1 Nov 2014 06:39:59 -
@@ -6,7 +6,7 @@ DPB_PROPERTIES =	parallel nojunk
 
 COMMENT =		headless WebKit scriptable with a JavaScript API
 
-DISTNAME =		phantomjs-1.9.7
+DISTNAME =		phantomjs-1.9.8
 
 CATEGORIES =		www
 HOMEPAGE =		http://phantomjs.org/
Index: distinfo
===
RCS file: /cvs/ports/www/phantomjs/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo	28 Jan 2014 11:37:52 -	1.2
+++ distinfo	1 Nov 2014 06:39:59 -
@@ -1,2 +1,2 @@
-SHA256 (phantomjs-1.9.7-source.zip) = D2xQ/yTBxKjM1/7e9i/u9eRRlce6XvbIRDREhUSHf/M=
-SIZE (phantomjs-1.9.7-source.zip) = 40687032
+SHA256 (phantomjs-1.9.8-source.zip) = N+U7KQe/N9K2pD8I04u0oVWWu6M3giF55kfv1gwiYb8=
+SIZE (phantomjs-1.9.8-source.zip) = 40965044
Index: patches/patch-src_qt_preconfig_sh
===
RCS file: /cvs/ports/www/phantomjs/patches/patch-src_qt_preconfig_sh,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_qt_preconfig_sh
--- patches/patch-src_qt_preconfig_sh	15 Jan 2014 08:41:37 -	1.1
+++ patches/patch-src_qt_preconfig_sh	1 Nov 2014 06:39:59 -
@@ -1,13 +1,15 @@
 $OpenBSD: patch-src_qt_preconfig_sh,v 1.1 2014/01/15 08:41:37 sthen Exp $
 src/qt/preconfig.sh.orig	Sat Jan 11 22:14:23 2014
-+++ src/qt/preconfig.sh	Sat Jan 11 22:14:43 2014
-@@ -107,9 +107,3 @@ done
- export MAKEFLAGS=-j$COMPILE_JOBS
+--- src/qt/preconfig.sh.orig	Fri Oct 31 20:07:14 2014
 src/qt/preconfig.sh	Fri Oct 31 20:07:30 2014
+@@ -120,11 +120,3 @@ else
+ ./configure -prefix $PWD $QT_CFG  /dev/null
+ fi
  
- ./configure -prefix $PWD $QT_CFG
--make -j$COMPILE_JOBS
+-echo
+-echo Building Qt and WebKit. Please wait...
+-make -j$COMPILE_JOBS $SILENT
 -
 -# Build text codecs
 -pushd src/plugins/codecs/
--make -j$COMPILE_JOBS
+-make -j$COMPILE_JOBS $SILENT
 -popd


pgpua78w4qqEk.pgp
Description: PGP signature


Re: tedu asp2php

2014-03-26 Thread Francisco de Borja Lopez Rio
On Wed, Mar 26, 2014 at 02:22:38PM +, Stuart Henderson wrote:
 asp2php is a program which converts Microsoft's ASP code to PHP.
 It supports multiple database drivers, sessions, both PHP3 and PHP4,
 and also provides a graphical front end to do all this.

 I don't think a program that hasn't been updated since 2006 that converts
 Microsoft ASP to PHP3/4 is going to produce anything that should be run
 on a webserver today.  OK to zap it?


The question is... why did it take so long to be removed!? ;)

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net


pgpMsygzAOZUC.pgp
Description: PGP signature


Update: py-bcrypt 0.4

2014-03-19 Thread Francisco de Borja Lopez Rio
The attached diff updates the py-bcrypt port to the latest version, which
fixes a security problem [1].

Ok?

[1] 
https://code.google.com/p/py-bcrypt/source/detail?r=3bc365ff43736d26ff37e9f2a4084f37b381b569

-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 

Index: Makefile
===
RCS file: /cvs/ports/security/py-bcrypt/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile26 Mar 2013 21:37:26 -  1.1.1.1
+++ Makefile19 Mar 2014 07:22:29 -
@@ -2,7 +2,7 @@
 
 COMMENT=   bcrypt blowfish password hashing for Python
 
-MODPY_EGG_VERSION= 0.3
+MODPY_EGG_VERSION= 0.4
 DISTNAME=  py-bcrypt-${MODPY_EGG_VERSION}
 
 CATEGORIES=security
Index: distinfo
===
RCS file: /cvs/ports/security/py-bcrypt/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo26 Mar 2013 21:37:26 -  1.1.1.1
+++ distinfo19 Mar 2014 07:22:29 -
@@ -1,2 +1,2 @@
-SHA256 (py-bcrypt-0.3.tar.gz) = rxL5lFTolenkMMdXI8O5QZwLzNDqd4A2YtaprFb2Qls=
-SIZE (py-bcrypt-0.3.tar.gz) = 17232
+SHA256 (py-bcrypt-0.4.tar.gz) = X6E7zlUUaDUNZsSINpSFBXDz2ijWhmu2OLpE/l6r2ng=
+SIZE (py-bcrypt-0.4.tar.gz) = 27399


pgpzB3cUCJT7F.pgp
Description: PGP signature


Re: productivity/radicale and htpasswd

2014-03-18 Thread Francisco de Borja Lopez Rio
On Mon, Mar 17, 2014 at 10:11:18PM +, Stuart Henderson wrote:
 The htpasswd file support in the productivity/radicale caldav server
 is rather weak, I've only ever got it to work with unsalted sha hashes
 or des crypt (UGH!), and the pkg readme no longer works with base
 htpasswd.

 If there's anyone with python skills and a bit of spare time, it would
 be nice to get this working with proper bcrypt password storage...


If nobody is already looking into it, I'll gladly give it a try.

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net


pgpN3qJHjX1vE.pgp
Description: PGP signature


Re: i386 bulk build failures

2014-02-12 Thread Francisco de Borja Lopez Rio
 Data.Vector.Unboxed.Mutable Data.Vector.Unboxed Data.Vector.Mutable 
Data.Vector -O2
[ 1 of 19] Compiling Data.Vector.Storable.Internal ( 
Data/Vector/Storable/Internal.hs, dist/build/Data/Vector/Storable/
Internal.o )
[ 2 of 19] Compiling Data.Vector.Fusion.Util ( Data/Vector/Fusion/Util.hs, 
dist/build/Data/Vector/Fusion/Util.o )
[ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size ( 
Data/Vector/Fusion/Stream/Size.hs, dist/build/Data/Vector/Fusion/
Stream/Size.o )

Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:
No explicit method or default declaration for `*'
In the instance declaration for `Num Size'

Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:
No explicit method or default declaration for `abs'
In the instance declaration for `Num Size'

Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:
No explicit method or default declaration for `signum'
In the instance declaration for `Num Size'
[ 4 of 19] Compiling Data.Vector.Internal.Check ( 
Data/Vector/Internal/Check.hs, dist/build/Data/Vector/Internal/Check.
o )
[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( 
Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/F
usion/Stream/Monadic.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... ghc: 
/usr/local/lib/ghc/integer-gmp-0.5.0.0/HSinteger-gmp-0.5.0.0.o: unhand
led ELF relocation(Rel) type 10

ghc: unable to load package `integer-gmp'
*** Error 1 in /usr/ports/devel/hs-vector (/usr/ports/lang/ghc/ghc.port.mk:116 
'do-build': @cd /usr/ports/pobj/hs-vecto
r-0.10.0.1/vector-0.1...)
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:2669 '/usr/ports/pobj/hs-vector-0.1
0.0.1/.build_done')
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:1874 '/usr/ports/packages/i386/all/
hs-vector-0.10.0.1p0.tgz')
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:2426 '_internal-package')
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:2406 'package')
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:1891 '/var/db/pkg/hs-vector-0.10.0.
1p0/+CONTENTS')
*** Error 1 in /usr/ports/devel/hs-vector 
(/usr/ports/infrastructure/mk/bsd.port.mk:2406 'install')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2034 
'/usr/ports/pobj/darcs-2.8.4/.dep-STEM-ge-0.7-devel-hs-
vector')
*** Error 1 in /usr/ports/devel/darcs 
(/usr/ports/infrastructure/mk/bsd.port.mk:2406 'all')

Regards!


-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 



pgpCvTJ20wrgq.pgp
Description: PGP signature


Update phantomjs-1.9.7 (bugfix)

2014-01-28 Thread Francisco de Borja Lopez Rio
So, upstream introduced a bug in the 1.9.6 release:

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

And now 1.9.7 has been released.

Attached is a patch to update the port directly to that version (skip my
previous patch for the 1.9.6 release).

It built the package fine here in amd64 and i386.

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net
Index: Makefile
===
RCS file: /cvs/ports/www/phantomjs/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile15 Jan 2014 08:41:37 -  1.3
+++ Makefile28 Jan 2014 10:24:29 -
@@ -6,7 +6,7 @@ DPB_PROPERTIES =parallel nojunk
 
 COMMENT =  headless WebKit scriptable with a JavaScript API
 
-DISTNAME = phantomjs-1.9.2
+DISTNAME = phantomjs-1.9.7
 
 CATEGORIES =   www
 HOMEPAGE = http://phantomjs.org/
@@ -18,7 +18,7 @@ PERMIT_PACKAGE_CDROM =Yes
 WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender c fontconfig \
freetype m pthread stdc++
 
-MASTER_SITES = http://phantomjs.googlecode.com/files/
+MASTER_SITES = https://bitbucket.org/ariya/phantomjs/downloads/
 EXTRACT_SUFX = -source.zip
 
 BUILD_DEPENDS =shells/bash
Index: distinfo
===
RCS file: /cvs/ports/www/phantomjs/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo20 Dec 2013 00:54:05 -  1.1.1.1
+++ distinfo28 Jan 2014 10:24:29 -
@@ -1,2 +1,2 @@
-SHA256 (phantomjs-1.9.2-source.zip) = 
V1W7WwlCsBikEAO0uL50C5NWlI9DdhfZM7i4uajzOeE=
-SIZE (phantomjs-1.9.2-source.zip) = 40840382
+SHA256 (phantomjs-1.9.7-source.zip) = 
D2xQ/yTBxKjM1/7e9i/u9eRRlce6XvbIRDREhUSHf/M=
+SIZE (phantomjs-1.9.7-source.zip) = 40687032


pgpLMZD7cOq8B.pgp
Description: PGP signature


Update: phantomjs 1.9.6

2014-01-27 Thread Francisco de Borja Lopez Rio
Attached is a patch to update the phantomjs port to the latest stable
release.

Built fine the package here both in amd64 and i386 (but I didn't try
dpb though).

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net
Index: Makefile
===
RCS file: /cvs/ports/www/phantomjs/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile15 Jan 2014 08:41:37 -  1.3
+++ Makefile27 Jan 2014 07:43:30 -
@@ -6,7 +6,7 @@ DPB_PROPERTIES =parallel nojunk
 
 COMMENT =  headless WebKit scriptable with a JavaScript API
 
-DISTNAME = phantomjs-1.9.2
+DISTNAME = phantomjs-1.9.6
 
 CATEGORIES =   www
 HOMEPAGE = http://phantomjs.org/
@@ -18,7 +18,7 @@ PERMIT_PACKAGE_CDROM =Yes
 WANTLIB += ICE SM X11 Xext Xi Xinerama Xrender c fontconfig \
freetype m pthread stdc++
 
-MASTER_SITES = http://phantomjs.googlecode.com/files/
+MASTER_SITES = https://bitbucket.org/ariya/phantomjs/downloads/
 EXTRACT_SUFX = -source.zip
 
 BUILD_DEPENDS =shells/bash
Index: distinfo
===
RCS file: /cvs/ports/www/phantomjs/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo20 Dec 2013 00:54:05 -  1.1.1.1
+++ distinfo27 Jan 2014 07:43:30 -
@@ -1,2 +1,2 @@
-SHA256 (phantomjs-1.9.2-source.zip) = 
V1W7WwlCsBikEAO0uL50C5NWlI9DdhfZM7i4uajzOeE=
-SIZE (phantomjs-1.9.2-source.zip) = 40840382
+SHA256 (phantomjs-1.9.6-source.zip) = 
HLa0LBScMFgPmdAIrm1Qp4hWpLJAgbjy2yjB40zL8vw=
+SIZE (phantomjs-1.9.6-source.zip) = 40687036


pgpV4COJ7Yp83.pgp
Description: PGP signature


Re: NEW: devel/phantomjs

2013-12-09 Thread Francisco de Borja Lopez Rio
On Thu, Dec 05, 2013 at 10:57:32AM +0100, Francisco de Borja Lopez Rio wrote:

 All done, attached is the updated version of the port, which is also
 available here for download:

 http://codigo23.net/openbsd/ports/phantomjs.tar.gz


Ok?

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net


pgpTLJ6HGOblB.pgp
Description: PGP signature


Re: NEW: devel/phantomjs

2013-12-05 Thread Francisco de Borja Lopez Rio
On Wed, Dec 04, 2013 at 11:37:07AM +, Stuart Henderson wrote:

 MESSAGE should go; if every port which installed examples under
 share/examples/portname printed a message about it, installing or
 updating ports would be excessively noisy.

 BUILD_DEPENDS on print/freetype seems unlikely to be correct - this
 is a very old version providing libttf (which you don't have in WANTLIB).
 the usual freetype is in base (X) and provides libfreetype which is
 listed in WANTLIB.

 the #!/usr/bin/env bash lines should be replaced with proper paths
 rather than relying on the environment, I would use perl -pi -e
 's,^#!/usr/bin/env bash,#!${LOCALBASE}/bin/bash,' ${WRKSRC}/... for
 this.

 i'd add a comment next to the PARALLEL_BUILD line, e.g.

 # passed via environment rather than on the command line to make
 PARALLEL_BUILD =No

 NO_TEST is meant to indicate that there are no tests, not that there
 are tests which fail - so please remove the NO_TEST line, but it may be
 appropriate to add a comment noting the failures.


All done, attached is the updated version of the port, which is also
available here for download:

http://codigo23.net/openbsd/ports/phantomjs.tar.gz

Regards.

--

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net


phantomjs.tar.gz
Description: application/tar-gz


pgpHcbgS0G3h0.pgp
Description: PGP signature


NEW: devel/phantomjs

2013-11-27 Thread Francisco de Borja Lopez Rio
Hi everybody (first time writing to this list)

Attached is a port for PhantomJS, a headless WebKit scriptable with a 
JavaScript API. It has fast and native support for various web standards: 
DOM handling, CSS selector, JSON, Canvas, and SVG.

Home page: http://phantomjs.org

This is my first attempt to write a port for OpenBSD, so any feedback will
be really appreciated.

Notes:

- It requires qt4, webkit and some other libraries in order to build, but
  it only builds correctly against the versions provided in its own tarball.
  I tried for some time to build it against qt4 and webkit from ports, but
  it didn't work.

- In order to build the bundled qt4, before actually building phantomjs itself,
  I imported some patches from our x11/qt4 port

- Some of the .cpp source files use strcmp instead of strncmp, I'll try to work
  a bit more on this and send them some patches to fix it.

- I've tested the build procedure both in 5.4 and the latest snapshot, worked
  fine in both environments (in amd64, I couldn't test other archs as I don't 
have
  the hardware for it).

You can download the port from here too:

http://codigo23.net/openbsd/ports/phantomjs.tar.gz

Regards.

-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 



phantomjs.tar.gz
Description: application/tar-gz


pgpTHezL3pkC4.pgp
Description: PGP signature


Re: NEW: devel/phantomjs

2013-11-27 Thread Francisco de Borja Lopez Rio
On Wed, Nov 27, 2013 at 10:37:23AM -0500, Ted Unangst wrote:
 On Wed, Nov 27, 2013 at 16:19, Francisco de Borja Lopez Rio wrote:
 
  - Some of the .cpp source files use strcmp instead of strncmp, I'll try to
  work
  a bit more on this and send them some patches to fix it.
 
 Unless you're thinking of a different string function, strcmp isn't a
 bad function.

Ok. Probably I need to understand first what an unsafe use of it means, as
mentioned in Security Recommendations in the porting page:

http://www.openbsd.org/porting.html#Security

Thanks!

-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 



pgpOfI9LSleXH.pgp
Description: PGP signature


Re: NEW: devel/phantomjs

2013-11-27 Thread Francisco de Borja Lopez Rio
On Wed, Nov 27, 2013 at 04:38:08PM +0100, Landry Breuil wrote:
 On Wed, Nov 27, 2013 at 04:19:30PM +0100, Francisco de Borja Lopez Rio wrote:
  Hi everybody (first time writing to this list)
  
  Attached is a port for PhantomJS, a headless WebKit scriptable with a 
  JavaScript API. It has fast and native support for various web standards: 
  DOM handling, CSS selector, JSON, Canvas, and SVG.
  
  Home page: http://phantomjs.org
  
  This is my first attempt to write a port for OpenBSD, so any feedback will
  be really appreciated.
  
  Notes:
  
  - It requires qt4, webkit and some other libraries in order to build, but
it only builds correctly against the versions provided in its own tarball.
I tried for some time to build it against qt4 and webkit from ports, but
it didn't work.
 
 Urgh. No. The horror.
 
 We dont need yet another copy of qt4 and webkit in the tree
 

I do agree, it is really disgusting that it does not build against our existing
ports for those. The phantomjs project encourages the use of the bundled libs,
and the author wrote something about it too:

http://ariya.ofilabs.com/2012/03/the-evolution-of-phantomjs-build-workflow.html

Personally, I'd like to get it to build against what we have in the ports tree,
maybe someone with a stronger background in qt4 could help a bit with it?


-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 



pgpWL38_SjqCj.pgp
Description: PGP signature


Re: NEW: devel/phantomjs

2013-11-27 Thread Francisco de Borja Lopez Rio
Thanks a lot for the feedback Stuart. 

On Wed, Nov 27, 2013 at 05:12:51PM +, Stuart Henderson wrote:

  # BSD License
 
 not if it bundles Qt, it isn't..
 

Yeah, completely forgot that the statically built binary will contain some
GPLed stuff. Should it be PERMIT_PACKAGE_CDROM = No then?

  MAKE_ENV =  C_INCLUDE_PATH=/usr/X11R6/include/ \
  CPLUS_INCLUDE_PATH=/usr/X11R6/include/ \
 
 replace /usr/X11R6 with ${X11BASE}.
 
 add MAKEFLAGS=-j${MAKE_JOBS} to MAKE_ENV and set PARALLEL_BUILD = No.
 

If we use the build.sh script, it automatically sets the JOBS number based
on the OSTYPE (openbsd) and the number of cpu/cores. As I understand, adding
those MAKEFLAGS will let users decide how many JOBS will be used, right?

What about PARALLEL_BUILD? why should we set it to No for this port?

 
 I haven't tried building it yet, but I suspect it needs a NO_TEST=Yes too.
 

It has regression tests:

https://github.com/ariya/phantomjs/wiki/Test-Suite

But maybe I have to add a custom do-test? entry in the Makefile to run them?

 I share Landry's distaste at adding another copy of webkit and *especially*
 the extra copy of qt with all the patches that this brings... however I have
 heard that CasperJS (which runs on top of PhantomJS) is particularly useful
 for screenscraping some awkward sites (especially banks) so it could be a
 handy thing to have...

Same here, as I've said, I don't like having to build against the bundled copy 
of the libraries.

About phantomjs itself, this port came out of the necessity we have in a 
project I'm working on, where we need it for integration tests of some webapps.
So, well, here we need it and after being able to build it I thought it would 
be nice to have it in the ports collection for everybody else.

-- 

Do nothing which is of no use. - Miyamoto Musashi
-
Francisco de Borja Lopez Rio (bo...@codigo23.net)
Soluciones Informaticas Codigo23 S.L.U.
http://www.codigo23.net 



pgp0YTvSj3U4t.pgp
Description: PGP signature