Re: [gentoo-user] Regex question

2008-06-04 Thread tecnic5
Hi,

I just wanted to comment something about Iain's suggestion:

'^\?.*(http|https|ftp)://'

If you add that '^' you're assuming that's the beginning of the string (as 
you may already know); the thing is I cannot see the cases where your URL 
starts with '?', the characters, and finally protocol and rest of URL. I 
mean, I can understand you found that string somewhere in the URL, but I 
don't see it being like that from the very beginning.

Perhaps I missed something by the way, can you guys enlight me?

Regards,

Abraham Marín Pérez [EMAIL PROTECTED] 
Responsable de I+D 
SILVANO CONSULTORES 
Tfno.: 93.412.79.12 -- Fax: 93.410.92.90 
http://www.silvanoc.com/ 






Iain Buchanan [EMAIL PROTECTED]
04/06/2008 01:33
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: Re: [gentoo-user] Regex question

Hi,

On Tue, 2008-06-03 at 17:39 +1000, Adam Carter wrote:
 I want to filter the strings; ? something http:// or ? something?
 https:// or ? something ftp:// from URLs in apache. I know i need to
 escape ? but i'm not sure about /

/ needs to be escaped in perl if your regex delimiters are / as well,
but here you use ' so I would _hope_ that you don't need \/\/ sort of
syntax.  YMMV.

  and i've used '(something|otherthing|whatever)' to make the 'or's
 work. 

I usually do perl, but it should be the same...  Actually on reading
further, Apache uses Perl Compatible Regular Expressions provided by
the PCRE library.  Neat.  You should be viewing this with a fixed width
font too :)
 
 LocationMatch '(\?.*http:\/\/|\?.*https:\/\/|\?.*ftp\/\/)'
typo here==^

how about taking the common bits out of the ()
'\?.*(http|https|ftp)://'

and it's good practise to use ^ if that's what you're expecting:
'^\?.*(http|https|ftp)://'

 Order allow,deny
 Deny from all
 /LocationMatch
 
 is that regex correct? Will egrep use the exact same regex syntax (so
 i can use it to check?)

I think they're essentially the same, with the exception of some classes
(like [:punct:] or [\d]).  egrep may need some extra escaping so as not
to confuse your shell.  The best way to test is to use the real program,
so see if you can get info out of your logs to help.

hth,
-- 
Iain Buchanan iaindb at netspace dot net dot au

  I tripped over a hole that was sticking up out of the ground.

-- 
gentoo-user@lists.gentoo.org mailing list



--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Which Java Runtime is best?

2008-06-04 Thread ionut cucu
On Sun, 1 Jun 2008 18:37:28 +0200
Florian Philipp [EMAIL PROTECTED] wrote:

 On Sun, 1 Jun 2008 10:24:57 -0400
 Walter Dnes [EMAIL PROTECTED] wrote:
 
I haven't seen an interesting site using Java for a long while.  I
  recently stumbled across http://discover.itsc.uah.edu/amsutemps/ and
  decided it would be nice to actually view it.  I haven't had Java on
  my machines for a long while.  There are a few Java implementations
  available (Sun/Blackdown/IBM/BEA/Kaffe/others?), so my question
  is...
  
- which one gives the least trouble setting up and running?
  
Since I'm only going to be using it a few times a month, I'm not
  too worried about benchmarks, unless an implementation is
  excruciatingly slow.
  
I only need a runtime.  I don't know the programming language, so
  there's no need for a full-blown development environment.
  
 
 Take Sun JRE. In terms of headaches per month, the quasi standard
 implementation is unbeatable.
Unless you have a 64 arch
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] emerge pam issue

2008-06-04 Thread Carter, Dwayne
I am having a issue emerge pam.  Here is the data:

 

These are the packages that would be merged, in order:

 

Calculating dependencies... done!

[ebuild  N] sys-libs/pam-0.99.9.0  USE=cracklib nls -audit
(-selinux) -test -vim-syntax 0 kB 

 

Total: 1 package (1 new), Size of downloads: 0 kB

 

 Verifying ebuild Manifests...

 

 Emerging (1 of 1) sys-libs/pam-0.99.9.0 to /

 * Linux-PAM-0.99.9.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
[ ok ]

 * checking ebuild checksums ;-) ...
[ ok ]

 * checking auxfile checksums ;-) ...
[ ok ]

 * checking miscfile checksums ;-) ...
[ ok ]

 * checking Linux-PAM-0.99.9.0.tar.bz2 ;-) ...
[ ok ]

 cfg-update-1.8.2-r1: Skipping checksum index updating...

 Unpacking source...

 Unpacking Linux-PAM-0.99.9.0.tar.bz2 to
/var/tmp/portage/sys-libs/pam-0.99.9.0/work

 * Applying Linux-PAM-0.99.7.0-disable-regenerate-man.patch ...
[ ok ]

 * Applying Linux-PAM-0.99.8.1-xtests.patch ...
[ ok ]

 * Running eautoreconf in
'/var/tmp/portage/sys-libs/pam-0.99.9.0/work/Linux-PAM-0.99.9.0' ...

 * Running aclocal -I m4 -I m4 ...
[ ok ]

 * Running autoconf ...
[ !! ]

 

 * Failed Running autoconf !

 * 

 * Include in your bugreport the contents of:

 * 

 *   /var/tmp/portage/sys-libs/pam-0.99.9.0/temp/autoconf-28124.out

 

 * 

 * ERROR: sys-libs/pam-0.99.9.0 failed.

 * Call stack:

 *   ebuild.sh, line   49:  Called src_unpack

 * environment, line 2726:  Called eautoreconf

 * environment, line  915:  Called eautoconf

 * environment, line  858:  Called autotools_run_tool
'src_unpack'

 * environment, line  318:  Called die

 * The specific snippet of code:

 *   die Failed Running $1 !;

 *  The die message:

 *   Failed Running autoconf !

 * 

 * If you need support, post the topmost build error, and the call stack
if relevant.

 * A complete build log is located at
'/var/tmp/portage/sys-libs/pam-0.99.9.0/temp/build.log'.

 * The ebuild environment file is located at
'/var/tmp/portage/sys-libs/pam-0.99.9.0/temp/environment'.

 

witney etc # cat
/var/tmp/portage/sys-libs/pam-0.99.9.0/temp/autoconf-28124.out

* autoconf *

* autoconf

 

configure.in:58: error: possibly undefined macro: AC_ENABLE_STATIC

  If this token and others are legitimate, please use
m4_pattern_allow.

  See the Autoconf documentation.

configure.in:59: error: possibly undefined macro: AC_ENABLE_SHARED

configure.in:75: error: possibly undefined macro: AC_PROG_LIBTOOL

 

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.4, glibc-2.7-r2,
2.6.23-gentoo-r6 i686)

=

System uname: 2.6.23-gentoo-r6 i686 Pentium III (Coppermine)

Timestamp of tree: Tue, 03 Jun 2008 12:46:01 +

ccache version 2.4 [enabled]

app-shells/bash: 3.2_p33

dev-lang/python: 2.4.4-r13, 2.5.2-r4

dev-python/pycrypto: 2.0.1-r6

dev-util/ccache: 2.4-r7

sys-apps/baselayout: 2.0.0

sys-apps/openrc: 0.2.5

sys-apps/sandbox:1.2.18.1-r2

sys-devel/autoconf:  2.61-r1

sys-devel/automake:  1.7.9-r1, 1.10.1

sys-devel/binutils:  2.18-r1

sys-devel/gcc-config: 1.4.0-r4

sys-devel/libtool:   1.5.26

virtual/os-headers:  2.6.23-r3

ACCEPT_KEYWORDS=x86

ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci

ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null
plug rate route share shm softvol

APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav
dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias

ARCH=x86

AUTOCLEAN=yes

CBUILD=i686-pc-linux-gnu

CCACHE_SIZE=1G

CFLAGS=-march=i686 -O2 -pipe -fomit-frame-pointer

CHOST=i686-pc-linux-gnu

CLEAN_DELAY=5

CONFIG_PROTECT=/etc

CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d

CVS_RSH=ssh

CXXFLAGS=-march=i686 -O2 -pipe -fomit-frame-pointer

DISTDIR=/usr/portage/distfiles

EDITOR=/bin/nano

ELIBC=glibc

EMERGE_DEFAULT_OPTS=--verbose

EMERGE_WARNING_DELAY=10

FEATURES=ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict unmerge-orphans userfetch

FETCHCOMMAND=/usr/bin/wget -t 5 -T 60 --passive-ftp -O
${DISTDIR}/${FILE} ${URI}

GENTOO_MIRRORS=http://mirror.mcs.anl.gov/pub/gentoo/
ftp://mirror.mcs.anl.gov/pub/gentoo/
http://gentoo.mirrors.easynews.com/linux/gentoo/ 

HOME=/root

INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.1

[gentoo-user] DBD-ODBC installation problem

2008-06-04 Thread Michael Higgins

Folks —

I'm having a problem getting a working *-perl/DBD-ODBC. I had one that
was working just fine, but un-merged unixODBC in a fit of pique, or
something. I re-emerged it, but then DBD-ODBC segfaults.

So, getting to debug I:

export LD_LIBRARY_PATH=/usr LANG= ODBCHOME=/usr ; FEATURES=nostrip
emerge -aDv DBD-ODBC :

...

Using ODBC in /usr

Umm, this looks like a unixodbc type of driver manager.
We expect to find the sql.h, sqlext.h and (which were
supplied with unixODBC) in $ODBCHOME/include directory alongside
the /usr/lib/libodbc.a /usr/lib/libodbc.so library in $ODBCHOME/lib

Warning: LD_LIBRARY_PATH doesn't include /usr

Checking if your kit is complete...
Looks good
Using DBI 1.601 (for perl 5.008008 on i586-linux) installed
in /usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/DBI/ Using DBI
1.601 (for perl 5.008008 on i586-linux) installed
in /usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/DBI/ Writing
Makefile for DBD::ODBC

The DBD::ODBC tests will use these values for the database connection:
DBI_DSN=e.g. dbi:ODBC:demo
DBI_USER=
DBI_PASS=
Warning: not all required environment variables are set.

[But these are just for the tests which aren't enabled anyway.]

. . . 

' isql -vv TREX user pass ' works just fine. So, unixODBC is working as
it should.

perl -MDBI -e 'use DBI; \
my $db=DBI-connect(dbi:mysql:dbtest,user,pass)'

... also works, so problem not with DBI.

Anyway, a simple script:

 perl -MDBI -e 'use DBI; \
my $db=DBI-connect(dbi:ODBC:TREX,_user,XX)'

Segmentation fault

I've tried different versions no joy. Always, the same result.

GDB output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7dbd6c0 (LWP 23716)]
_SQLGetDiagRec (handleType=2, handle=value optimized out,
numRecord=1, szSqlState=0xbfdfee2e , pfNativeError=0xbfdfee34, 
szErrorMsg=0xbfdfec2e , cbErrorMsgMax=511, pcbErrorMsg=0xbfdfee3a)
at error.c:525
525 error.c: No such file or directory.
in error.c
(gdb) bt'
#0  _SQLGetDiagRec (handleType=2, handle=value optimized out,
numRecord=1, szSqlState=0xbfdfee2e , pfNativeError=0xbfdfee34, 
szErrorMsg=0xbfdfec2e , cbErrorMsgMax=511, pcbErrorMsg=0xbfdfee3a)
at error.c:525
result = value optimized out
errs = (struct _sql_errors *) 0x8280584
p = value optimized out
odbc_ver = value optimized out
msgprefix = [FreeTDS][SQL Server]
#1  0xb7b8cdfb in SQLError (henv=0x827ffd8, hdbc=0x8280568, hstmt=0x0, 
szSqlState=0xbfdfee2e , pfNativeError=0xbfdfee34, 
szErrorMsg=0xbfdfec2e , cbErrorMsgMax=511, pcbErrorMsg=0xbfdfee3a)
at error.c:590
result = value optimized out
errs = (struct _sql_errors *) 0x8280584
handle = (SQLHANDLE) 0x8280568
#2  0xb7c6eb4d in AllODBCErrors ()
   from /usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/DBD/ODBC/ODBC.so
No symbol table info available.
#3  0xb7c75f97 in odbc_db_login6 ()
   from /usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/DBD/ODBC/ODBC.so
No symbol table info available.
#4  0xb7c6e206 in XS_DBD__ODBC__db__login ()
---Type return to continue, or q return to quit---
   from /usr/lib/perl5/vendor_perl/5.8.8/i586-linux/auto/DBD/ODBC/ODBC.so
No symbol table info available.
#5  0x080bb04f in Perl_pp_entersub ()
No symbol table info available.
#6  0x080b98c5 in Perl_runops_standard ()
No symbol table info available.
#7  0x08065450 in ?? ()
No symbol table info available.
#8  0x0813cff4 in ?? ()
No symbol table info available.
#9  0x08140428 in PL_reg_oldsavedlen ()
No symbol table info available.
#10 0xbfdffaf8 in ?? ()
No symbol table info available.
#11 0x08066004 in Perl_call_sv ()
No symbol table info available.
Backtrace stopped: frame did not save the PC

strace -otracedump perl -MDBI -e 'use DBI; my
$db=DBI-connect(dbi:ODBC:TREX,user,pass)'

output viewable here:
http://evolone.org/dbdodbc_stracedump

What do I do next? I have a working installation on another machine.
Versions are all the same. And this was working previously, somehow.

Can anyone make a clue out of the debug output?

Are there any gentoo-type methods to employ in an attempt to fix this
problem, like some kind of massive re-emergence? I already re-emerged
perl, ran perl-cleaner to rebuild all the modules. This after
I re-emerged (in order) FreeTDS, unixODBC, DBD-ODBC. No difference.

What next? This can't be impossible, though I did note that this
package is proposed for bugday under Randomly selected open bugs.
Maybe I can just wait 'till Monday (or do I really need to hang out on
IRC on Saturday?)

Emerging 'pidgin', just in case. :(

emerge --info:

Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 
2.6.23-gentoo-r8 i686)
=
System uname: 2.6.23-gentoo-r8 i686 AMD Athlon(tm) XP 2400+
Timestamp of tree: Fri, 30 May 2008 02:06:01 +
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.4

Re: [gentoo-user] Which Java Runtime is best?

2008-06-04 Thread Florian Philipp
On Wed, 4 Jun 2008 15:12:51 +0300
ionut cucu [EMAIL PROTECTED] wrote:

 On Sun, 1 Jun 2008 18:37:28 +0200
 Florian Philipp [EMAIL PROTECTED] wrote:
 
  On Sun, 1 Jun 2008 10:24:57 -0400
  Walter Dnes [EMAIL PROTECTED] wrote:
  Take Sun JRE. In terms of headaches per month, the quasi standard
  implementation is unbeatable.
 Unless you have a 64 arch

I'm on AMD64 and am programming java, too. Until now I haven't had a
problem with SUN JDK (1.6). Of course, it doesn't supply a browser
plugin, but I'm not aware of any JRE doing it at the moment and thanks
to nspluginwrapper, there is no urgent need for it, either.


signature.asc
Description: PGP signature


Re: [gentoo-user] emerge pam issue

2008-06-04 Thread Mick
On Wednesday 04 June 2008, Carter, Dwayne wrote:
 I am having a issue emerge pam.  Here is the data:

Until someone who knows better answers on the specifics, have you tried to 
resync and also to run 'revdep-rebuild -X -p -v' ?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Which Java Runtime is best?

2008-06-04 Thread Florian Philipp
On Wed, 4 Jun 2008 19:24:10 +0200
Florian Philipp [EMAIL PROTECTED] wrote:

 On Wed, 4 Jun 2008 15:12:51 +0300
 ionut cucu [EMAIL PROTECTED] wrote:
 
  On Sun, 1 Jun 2008 18:37:28 +0200
  Florian Philipp [EMAIL PROTECTED] wrote:
  
   On Sun, 1 Jun 2008 10:24:57 -0400
   Walter Dnes [EMAIL PROTECTED] wrote:
   Take Sun JRE. In terms of headaches per month, the quasi standard
   implementation is unbeatable.
  Unless you have a 64 arch
 
 I'm on AMD64 and am programming java, too. Until now I haven't had a
 problem with SUN JDK (1.6). Of course, it doesn't supply a browser
 plugin, but I'm not aware of any JRE doing it at the moment and thanks
 to nspluginwrapper, there is no urgent need for it, either.

I have to correct myself. As it seems, GNU-Classpath provides an
nsplugin. I haven't tested it yet (and I won't because I need
emul-linux-x86-java anyway and the current way works for me).


signature.asc
Description: PGP signature


Re: [gentoo-user] Regex question

2008-06-04 Thread Iain Buchanan
On Wed, 2008-06-04 at 08:57 +0200, [EMAIL PROTECTED] wrote:
 Hi,
 
 I just wanted to comment something about Iain's suggestion:
 
 '^\?.*(http|https|ftp)://'
 
 If you add that '^' you're assuming that's the beginning of the string (as 
 you may already know); the thing is I cannot see the cases where your URL 
 starts with '?', the characters, and finally protocol and rest of URL. I 
 mean, I can understand you found that string somewhere in the URL, but I 
 don't see it being like that from the very beginning.

I was indeed assuming ? was at the beginning when I added the ^...

 Perhaps I missed something by the way, can you guys enlight me?
-- 
Iain Buchanan iaindb at netspace dot net dot au

The difference between a good haircut and a bad one is seven days.

-- 
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Regex question

2008-06-04 Thread Adam Carter
  I just wanted to comment something about Iain's suggestion:
 
  '^\?.*(http|https|ftp)://'
 
  If you add that '^' you're assuming that's the beginning of
 the string (as
  you may already know); the thing is I cannot see the cases
 where your URL
  starts with '?', the characters, and finally protocol and
 rest of URL. I
  mean, I can understand you found that string somewhere in
 the URL, but I
  don't see it being like that from the very beginning.

Thanks guys. I know ^ and will omit it as the ? Is not at the beginning of the 
string.

I'll try '\?.*(http|https|ftp)://'
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] What version of netscape-flash to use with konqueror?

2008-06-04 Thread Alex Schuster
Robin Atwood wrote:

 I have just brought my laptop (x86 arch) up to date and so I have KDE
 3.5.9 and netscape-flash-9.0.124.0. Now whenever I go to a web page
 with embedded flash I get a segfault. I seem to remember that something
 got  broken wrt konqueror and my amd64 system is using
 netscape-flash-9.0.48.0-r1; however, that version now seems to have
 been removed. So what version are people using?

I had the same problem (as I wrote before), but now it seems all is fine 
again - current netscape-flash-9.0.124.0, current kde 3.5.9, and 
konqueror is playing flash just fine, no segfaults any more. I don't know 
why this is working now and did not before, but maybe you are lucky, too.

Wonko
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Regex question

2008-06-04 Thread Bruce Munro

Adam Carter wrote:



Thanks guys. I know ^ and will omit it as the ? Is not at the beginning of the 
string.

I'll try '\?.*(http|https|ftp)://'


You can squeeze that up a bit more...

\?.*(https?|ftp)://

'https?' means 'http' followed by an optional (0 or 1) 's'.

Cheers,
-Bruce

--
gentoo-user@lists.gentoo.org mailing list