Re: py-selenium

2013-11-16 Thread frantisek holop
hmm, on Sat, Nov 16, 2013 at 11:57:51PM +, Federico Schwindt said that
> this has been discussed before and unless it has changed recently the
> problem remains. please check the ports archive.

i did do a quick google before posting but nothing
turned up.  sorry about the noise.

-f
-- 
a man serves best, when he serves himself.



[Update] mail/p5-GetLive

2013-11-16 Thread Mike Erdely
[Resending... I didn't see it hit the list]

This diff requires www/p5-WWW-Mechanize-GZip (emailed to ports@).

It updates GetLive to 3.0 and supports Outlook.com.
It includes two changes checked into the project CVS but aren't in the release 
to fix login page changes on Outlook.com.

ok?

Index: Makefile
===
RCS file: /cvs/ports/mail/p5-GetLive/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile11 Mar 2013 11:23:52 -  1.14
+++ Makefile17 Nov 2013 03:31:19 -
@@ -2,8 +2,8 @@
 
 COMMENT=   automatically fetch hotmail.com email
 
-DISTNAME=  GetLive_2_4
-PKGNAME=   p5-GetLive-2.4
+DISTNAME=  GetLive_3_0
+PKGNAME=   p5-GetLive-3.0
 PKG_ARCH=  *
 CATEGORIES=mail perl5
 EXTRACT_SUFX=  .tgz
@@ -18,7 +18,10 @@ MASTER_SITES=${MASTER_SITE_SOURCEFORGE:
 RUN_DEPENDS=   devel/p5-Net-Server \
net/curl>=7.15.5 \
mail/procmail \
-   www/p5-URI
+   www/p5-HTML-Parser \
+   www/p5-URI \
+   www/p5-WWW-Mechanize-GZip \
+   www/p5-libwww
 
 NO_BUILD=  Yes
 NO_TEST=   Yes
Index: distinfo
===
RCS file: /cvs/ports/mail/p5-GetLive/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo20 Sep 2011 13:43:37 -  1.7
+++ distinfo17 Nov 2013 03:31:19 -
@@ -1,5 +1,2 @@
-MD5 (GetLive_2_4.tgz) = Ek4sX0pLHXsYi2BXr7hpfg==
-RMD160 (GetLive_2_4.tgz) = uLNSaPrhFmNZWNDR4nfHgJC0Rg4=
-SHA1 (GetLive_2_4.tgz) = wQC3zHR4mbNMFu3N6fabhNmsbkI=
-SHA256 (GetLive_2_4.tgz) = Wk43+E8d9tmo8iGfU5Y2b6T9i8lYGruCtLUtxUSRYtI=
-SIZE (GetLive_2_4.tgz) = 29524
+SHA256 (GetLive_3_0.tgz) = 2DPZamX49O8gkXyyheUBijY29MXvdYVk3yS4HEVwGTA=
+SIZE (GetLive_3_0.tgz) = 27311
Index: patches/patch-GetLive_pl
===
RCS file: /cvs/ports/mail/p5-GetLive/patches/patch-GetLive_pl,v
retrieving revision 1.7
diff -u -p -r1.7 patch-GetLive_pl
--- patches/patch-GetLive_pl5 May 2011 13:37:04 -   1.7
+++ patches/patch-GetLive_pl17 Nov 2013 03:31:19 -
@@ -1,14 +1,45 @@
-Diff from GetLive CVS to incorporate Hotmail site changes.
+Diff from GetLive CVS to incorporate Outlook.com site changes.
 
 $OpenBSD: patch-GetLive_pl,v 1.7 2011/05/05 13:37:04 gsoares Exp $
 GetLive.pl.origMon May  2 14:49:46 2011
-+++ GetLive.pl Mon May  2 15:02:56 2011
-@@ -91,7 +91,7 @@ sub new {
+--- GetLive.pl.origTue Apr  2 17:10:46 2013
 GetLive.pl Sat Nov 16 22:27:39 2013
+@@ -92,7 +92,7 @@ sub new {
$Self->{'Login'} = "";
$Self->{'Domain'}= "hotmail.com";
$Self->{'Password'}  = "";
 -  $Self->{'MailProcessor'} = '/usr/bin/procmail'; # Any program taking 
mbox formatted at stdin will do.
-+  $Self->{'MailProcessor'} = '${LOCALBASE}/bin/procmail'; # Any program 
taking mbox formatted at stdin will do.
++  $Self->{'MailProcessor'} = '/usr/local/bin/procmail'; # Any program 
taking mbox formatted at stdin will do.
$Self->{'DownloadedIdsFile'} = "";  # Local file with Ids 
of already downloaded messages.
$Self->{'MarkRead'}  = "No";# No,Yes : But never 
when downloaded before !
$Self->{'Delete'}= "No";# No,Yes : But never 
when downloaded before !
+@@ -398,6 +398,8 @@ sub GetPage {
+  
+   $Self->Log("Response headers : \n" . $Response->headers_as_string(), 
MinVerbosity => 100);
+ 
++  $Self->Log("Response content : \n" . $Response->content(), MinVerbosity => 
100);
++
+   return ($Response->content(),uri_unescape($Response->request->uri));
+ }
+ 
+@@ -457,16 +459,15 @@ sub Login {
+   my $Domain = $Self->{'Domain'};
+   my ($LoginUrl) = $LoginPageAsString =~ 
m{'(https://login.live.com/ppsecure/post.srf.*?)'};
+ 
+-  if ($LoginPageAsString !~ m/F:'(P.*?)'/s) {
+- $Self->Log("Page doesn't contain PPSX in the expected place.\n",stderr 
=> 1);
+- return 0;
++  if ($LoginPageAsString !~ m/[F|AP]:'(P.*?)'/s) {
++$PostData{"PPSX"} = "Pass";
++  } else {
++$Self->Log("PPSX detected as '$1'.\n", MinVerbosity => 10 );
++$PostData{"PPSX"} = $1;
+   }
+   
+   # End of Michael Kelly patch.
+ 
+-  $Self->Log("PPSX detected as '$1'.\n", MinVerbosity => 10 );
+-  $PostData{"PPSX"} = $1;
+-  
+   # PPFT is a normal (ie non JS) hidden input type.
+   if( $LoginPageAsString !~ 
m/<\s*input\s+.*name=\"PPFT\"(\s+id="\S+")?\s+value=\"(\S*)\"/ ) {
+ Self->Log("Page doesn't contain input field PPFT as expected.\n",stderr 
=> 1);
Index: patches/patch-Manual
===
RCS file: /cvs/ports/mail/p5-GetLive/patches/patch-Manual,v
retrieving revision 1.4
diff -u -p -r1.4 patch-Manual
--- patches/patch-Manual21 Jul 2010 02:21:52 -  1.4
+++ patches/patch-Manual17 Nov 2013 0

[Update] mail/p5-GetLive

2013-11-16 Thread Mike Erdely
This diff requires www/p5-WWW-Mechanize-GZip (emailed to ports@).

It updates GetLive to 3.0 and supports Outlook.com.
It includes two changes checked into the project CVS but aren't in the release 
to fix login page changes on Outlook.com.

ok?

Index: Makefile
===
RCS file: /cvs/ports/mail/p5-GetLive/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile11 Mar 2013 11:23:52 -  1.14
+++ Makefile17 Nov 2013 03:31:19 -
@@ -2,8 +2,8 @@
 
 COMMENT=   automatically fetch hotmail.com email
 
-DISTNAME=  GetLive_2_4
-PKGNAME=   p5-GetLive-2.4
+DISTNAME=  GetLive_3_0
+PKGNAME=   p5-GetLive-3.0
 PKG_ARCH=  *
 CATEGORIES=mail perl5
 EXTRACT_SUFX=  .tgz
@@ -18,7 +18,10 @@ MASTER_SITES=${MASTER_SITE_SOURCEFORGE:
 RUN_DEPENDS=   devel/p5-Net-Server \
net/curl>=7.15.5 \
mail/procmail \
-   www/p5-URI
+   www/p5-HTML-Parser \
+   www/p5-URI \
+   www/p5-WWW-Mechanize-GZip \
+   www/p5-libwww
 
 NO_BUILD=  Yes
 NO_TEST=   Yes
Index: distinfo
===
RCS file: /cvs/ports/mail/p5-GetLive/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo20 Sep 2011 13:43:37 -  1.7
+++ distinfo17 Nov 2013 03:31:19 -
@@ -1,5 +1,2 @@
-MD5 (GetLive_2_4.tgz) = Ek4sX0pLHXsYi2BXr7hpfg==
-RMD160 (GetLive_2_4.tgz) = uLNSaPrhFmNZWNDR4nfHgJC0Rg4=
-SHA1 (GetLive_2_4.tgz) = wQC3zHR4mbNMFu3N6fabhNmsbkI=
-SHA256 (GetLive_2_4.tgz) = Wk43+E8d9tmo8iGfU5Y2b6T9i8lYGruCtLUtxUSRYtI=
-SIZE (GetLive_2_4.tgz) = 29524
+SHA256 (GetLive_3_0.tgz) = 2DPZamX49O8gkXyyheUBijY29MXvdYVk3yS4HEVwGTA=
+SIZE (GetLive_3_0.tgz) = 27311
Index: patches/patch-GetLive_pl
===
RCS file: /cvs/ports/mail/p5-GetLive/patches/patch-GetLive_pl,v
retrieving revision 1.7
diff -u -p -r1.7 patch-GetLive_pl
--- patches/patch-GetLive_pl5 May 2011 13:37:04 -   1.7
+++ patches/patch-GetLive_pl17 Nov 2013 03:31:19 -
@@ -1,14 +1,45 @@
-Diff from GetLive CVS to incorporate Hotmail site changes.
+Diff from GetLive CVS to incorporate Outlook.com site changes.
 
 $OpenBSD: patch-GetLive_pl,v 1.7 2011/05/05 13:37:04 gsoares Exp $
 GetLive.pl.origMon May  2 14:49:46 2011
-+++ GetLive.pl Mon May  2 15:02:56 2011
-@@ -91,7 +91,7 @@ sub new {
+--- GetLive.pl.origTue Apr  2 17:10:46 2013
 GetLive.pl Sat Nov 16 22:27:39 2013
+@@ -92,7 +92,7 @@ sub new {
$Self->{'Login'} = "";
$Self->{'Domain'}= "hotmail.com";
$Self->{'Password'}  = "";
 -  $Self->{'MailProcessor'} = '/usr/bin/procmail'; # Any program taking 
mbox formatted at stdin will do.
-+  $Self->{'MailProcessor'} = '${LOCALBASE}/bin/procmail'; # Any program 
taking mbox formatted at stdin will do.
++  $Self->{'MailProcessor'} = '/usr/local/bin/procmail'; # Any program 
taking mbox formatted at stdin will do.
$Self->{'DownloadedIdsFile'} = "";  # Local file with Ids 
of already downloaded messages.
$Self->{'MarkRead'}  = "No";# No,Yes : But never 
when downloaded before !
$Self->{'Delete'}= "No";# No,Yes : But never 
when downloaded before !
+@@ -398,6 +398,8 @@ sub GetPage {
+  
+   $Self->Log("Response headers : \n" . $Response->headers_as_string(), 
MinVerbosity => 100);
+ 
++  $Self->Log("Response content : \n" . $Response->content(), MinVerbosity => 
100);
++
+   return ($Response->content(),uri_unescape($Response->request->uri));
+ }
+ 
+@@ -457,16 +459,15 @@ sub Login {
+   my $Domain = $Self->{'Domain'};
+   my ($LoginUrl) = $LoginPageAsString =~ 
m{'(https://login.live.com/ppsecure/post.srf.*?)'};
+ 
+-  if ($LoginPageAsString !~ m/F:'(P.*?)'/s) {
+- $Self->Log("Page doesn't contain PPSX in the expected place.\n",stderr 
=> 1);
+- return 0;
++  if ($LoginPageAsString !~ m/[F|AP]:'(P.*?)'/s) {
++$PostData{"PPSX"} = "Pass";
++  } else {
++$Self->Log("PPSX detected as '$1'.\n", MinVerbosity => 10 );
++$PostData{"PPSX"} = $1;
+   }
+   
+   # End of Michael Kelly patch.
+ 
+-  $Self->Log("PPSX detected as '$1'.\n", MinVerbosity => 10 );
+-  $PostData{"PPSX"} = $1;
+-  
+   # PPFT is a normal (ie non JS) hidden input type.
+   if( $LoginPageAsString !~ 
m/<\s*input\s+.*name=\"PPFT\"(\s+id="\S+")?\s+value=\"(\S*)\"/ ) {
+ Self->Log("Page doesn't contain input field PPFT as expected.\n",stderr 
=> 1);
Index: patches/patch-Manual
===
RCS file: /cvs/ports/mail/p5-GetLive/patches/patch-Manual,v
retrieving revision 1.4
diff -u -p -r1.4 patch-Manual
--- patches/patch-Manual21 Jul 2010 02:21:52 -  1.4
+++ patches/patch-Manual17 Nov 2013 03:31:19 -
@@ -1,12 +1,12 @@
 $OpenBSD: pa

[New] p5-WWW-Mechanize-GZip

2013-11-16 Thread Mike Erdely
This port is required for my next mail/p5-GetLive update.

DESCR:
The WWW::Mechanize::GZip module tries to fetch a URL by requesting
gzip-compression from the webserver.

If the response contains a header with 'Content-Encoding: gzip', it
decompresses the response in order to get the original (uncompressed)
content.

This module will help to reduce bandwith fetching webpages, if supported
by the webeserver. If the webserver does not support gzip-compression,
no decompression will be made.

This modules is a direct subclass of WWW::Mechanize and will therefore
support any methods provided by WWW::Mechanize.

The decompression is handled by Compress::Zlib::memGunzip.

There is a small webform, you can instantly test, whether a webserver
supports gzip-compression on a particular URL:
http://www.computerhandlung.de/www-mechanize-gzip.htm

ok?



p5-WWW-Mechanize-GZip.tgz
Description: application/tar-gz


Re: py-selenium

2013-11-16 Thread Federico Schwindt
this has been discussed before and unless it has changed recently the
problem remains. please check the ports archive.

f.-



On Sat, Nov 16, 2013 at 2:29 PM, frantisek holop  wrote:

>
> here is a WIP port for py-selenium.
> it is not a success story yet, i get the following error
> when trying the simplest test program (included in tarball)
>
>
> selenium.common.exceptions.WebDriverException:
> Message: "Can't load the profile. Profile Dir: /tmp/tmpRc0KlX
> Firefox output:
> /usr/local/bin/firefox: /usr/lib/libstdc++.so.57.0:
> /usr/local/lib/libestdc++.so.14.0 :
> WARNING: symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch,
> relink your program\n
> *** LOG addons.xpi: startup\n***
> LOG addons.xpi: checkForChanges\n***
> LOG addons.xpi: No changes found\n
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654:
> aUrl is undefined\n
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654:
> aUrl is undefined\n
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654:
> aUrl is undefined\n
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654:
> aUrl is undefined\n
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654:
> aUrl is undefined\n"
>
> any ideas?
>
> -f
> --
> why is "abbreviation" such a long word?
>


Re: [update] security/gnupg

2013-11-16 Thread Jérémie Courrèges-Anglas
Ingo Schwarze  writes:

> Hi Jeremie,
>
> Jérémie Courrèges-Anglas wrote on Fri, Nov 08, 2013 at 06:16:35PM +0100:
>
>> I'm using gnupg-1.4.15 on i386 since some time already.  No MD code
>> seems to have changed, no problem shown in daily use or ''make test''
>> output.
>> 
>> A tarball diff is available here for convenience:
>> 
>>   http://autogeree.net/~jca/tmp/gnupg-1.4.13to15-tarballs.diff.gz (525 KB)
>> 
>> The real changes start at gpg.c.
>> 
>> The following diff:
>> - updates to 1.4.15...
>> - which includes the changes we have in patches/patch-mpi_mpi-pow_c
>> - removes the use of autoconf in CONFIGURE_STYLE (we don't patch
>>   autoconf source files anymore).
>
> No comment one the update itself, i didn't look at it.

Anyone?

>> I also thought about removing USE_GROFF since the displaying glitches
>> are fairly minor.  What do you think?
>> 
>>   http://autogeree.net/~jca/tmp/gpg-manpage.diff
>>   http://autogeree.net/~jca/tmp/gpgv-manpage.diff
>
> Both were minor bugs in mandoc(1), both are fixed now
> in OpenBSD-current and in mdocml.bsd.lv.
>
> So you can remove USE_GROFF.
>
> Thanks for the report,
>   Ingo

Thanks again Ingo. :)

-- 
jca | PGP : 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494



Re: [wip] Firefox 26.0b1

2013-11-16 Thread Jan Stary
On Nov 02 10:18:33, lan...@rhaalovely.net wrote:
> next round of betas started for firefox 26, this one targeted for
> release by mid-november.
> 
> Grab it from here:
> http://rhaalovely.net/cgit/mozilla-firefox/?h=beta
> git clone -b beta http://rhaalovely.net/git/mozilla-firefox
> 
> (or git pull if you already have a clone)
> 
> amd64 package built against a 4 Oct snap available here:
> http://rhaalovely.net/stuff/amd64/firefox-26.0beta1.tgz

Thank you for the package. Unfortunatelly,
it does not install on a fresh snapshot:

# pkg_add -i http://rhaalovely.net/stuff/amd64/firefox-26.0beta1.tgz 
Can't install firefox-26.0beta1 because of libraries
|library c.70.0 not found
| /usr/lib/libc.so.67.0 (system): bad major
| /usr/lib/libc.so.68.1 (system): bad major
| /usr/lib/libc.so.68.2 (system): bad major
| /usr/lib/libc.so.68.4 (system): bad major
| /usr/lib/libc.so.71.0 (system): bad major
|library kvm.14.0 not found
| /usr/lib/libkvm.so.13.1 (system): bad major
| /usr/lib/libkvm.so.15.0 (system): bad major
|library sndio.5.0 not found
| /usr/lib/libsndio.so.4.0 (system): bad major
| /usr/lib/libsndio.so.6.0 (system): bad major
|library stdc++.56.0 not found
| /usr/lib/libstdc++.so.55.0 (system): bad major
| /usr/lib/libstdc++.so.57.0 (system): bad major
Direct dependencies for firefox-26.0beta1 resolve to gtk+2-2.24.22
nspr-4.10.1 desktop-file-utils-0.22 gstreamer-plugins-good-0.10.31p9v0
libiconv-1.14p1 nss-3.15.3 gettext-0.18.2p4
Full dependency tree is xz-5.0.5p0 nspr-4.10.1 libsoup-2.44.2
libxml-2.9.1 png-1.6.6 librsvg-2.40.0 gettext-0.18.2p4 cairo-1.12.16
libffi-3.0.9p6 lzo2-2.06p0 gdbm-1.10p0 libcroco-0.6.8p0 libtasn1-3.3p0
jasper-1.900.1p2 taglib-1.8p5 gsettings-desktop-schemas-3.10.1
glib2-2.38.2 libsecret-0.16p0 libogg-1.3.1 glib2-networking-2.38.1
libshout-2.2.2p2 gnutls-3.2.6p0 libdaemon-0.14 harfbuzz-0.9.23
at-spi2-atk-2.10.2 tiff-4.0.3p2 gstreamer-plugins-good-0.10.31p9v0
gvfs-1.18.3 graphite2-1.2.3 libelf-0.8.13p1 desktop-file-utils-0.22
python-2.7.5p0 gstreamer-plugins-base-0.10.36p6 flac-1.3.0p0
libtheora-1.1.1p2 libnettle-2.7.1p0 pango-1.36.1 libgpg-error-1.12
gstreamer-0.10.36p5 at-spi2-core-2.10.2 bzip2-1.0.6p0
dbus-glib-0.100.2v0 nss-3.15.3 gconf2-3.2.6p3 cdparanoia-3.a9.8p0
dbus-1.6.18v0 atk-2.10.0p0 gtk+2-2.24.22 hicolor-icon-theme-0.12p2
gtk+3-3.10.3 p11-kit-0.20.1 gmp-5.0.2p2 libvorbis-1.3.3p0
gtk-update-icon-cache-2.24.22 dconf-0.18.0p0 libgcrypt-1.5.3
libarchive-3.0.4p0 gdk-pixbuf-2.30.1 wavpack-4.60.1p0
shared-mime-info-1.2 pcre-8.33 speex-1.2rc1p0 cups-libs-1.7.0
libiconv-1.14p1 gnome-icon-theme-symbolic-3.10.1 avahi-0.6.31p12
orc-0.4.18 gnome-icon-theme-3.10.0p2 tremor-20120410p0 jpeg-9p0
libproxy-0.4.11p3


A you can see, I have not upgraded in a while,
and as a result, I have e.g. libc.so.68.4 and then libc.so.71
whule the firefox package (built agains Oct 4) wants libc.so.70

I would like to avoid building firefox.
Can I hope that you are preparing another version,
or that firefox 26 will be in the ports soon?

Thank you

Jan



py-selenium

2013-11-16 Thread frantisek holop

here is a WIP port for py-selenium.
it is not a success story yet, i get the following error
when trying the simplest test program (included in tarball)


selenium.common.exceptions.WebDriverException:
Message: "Can't load the profile. Profile Dir: /tmp/tmpRc0KlX
Firefox output:
/usr/local/bin/firefox: /usr/lib/libstdc++.so.57.0: 
/usr/local/lib/libestdc++.so.14.0 :
WARNING: symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink 
your program\n
*** LOG addons.xpi: startup\n***
LOG addons.xpi: checkForChanges\n***
LOG addons.xpi: No changes found\n
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl 
is undefined\n
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl 
is undefined\n
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl 
is undefined\n
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl 
is undefined\n
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl 
is undefined\n" 

any ideas?

-f
-- 
why is "abbreviation" such a long word?


py-selenium.tgz
Description: application/tar-gz


Re: [UPDATE] ocaml-4.01.0

2013-11-16 Thread David Coppa
On Fri, Nov 15, 2013 at 9:43 PM, Ted Unangst  wrote:
> On Fri, Nov 15, 2013 at 07:42, David Coppa wrote:
>> Pretty straightforward. Some notes about ocaml-net:
>>
>> netcamlbox and netmulticore are not being built anymore because we
>> lack POSIX named semaphores (sem_open(), sem_close(), etc).
>
> hrmph. that's fixable. there's even a diff if you don't mind waiting
> a bit.

no problem. When your sem_open() implementation will be committed,
I'll (re-)add the missing files and bump the revision.