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] chroot problem

2008-05-29 Thread tecnic5
Wolf Canis [EMAIL PROTECTED]
29/05/2008 11:38
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: Re: [gentoo-user] chroot problem

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter Humphrey wrote:
 I have no problem chrooting into a system on the hard disk if I've 
booted 
 from an installation CD, but every time I try it after booting from 
another 
 HD partition I get e.g. this:
 
 # chroot /mnt/rescue /bin/bash
 chroot: cannot run command `/bin/bash': Permission denied
 
 Ls shows the same permissions in each case, and I always make sure to:
 
 # cd /mnt/rescue
 # mount -tproc proc proc
 # mount -obind /dev dev
 
 ...first.
 
 What am I doing wrong?
 
Only for verification, have you under /mnt/rescue /bin/bash?
Or with other words have this /mnt/rescue/bin/bash?
And with the appropriate permissions?

W. Canis

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg+eZ0ACgkQKT9zBKF0twWTtwCdHIkXGHwaas50Zy2leKo5g6iU
gP8AnRuiWCgemE/GFja4RaduEfcWp/9g
=hplz
-END PGP SIGNATURE-
-- 
gentoo-user@lists.gentoo.org mailing list
**

Just in case, you'll also need proper permissions for /mnt/rescue/lib and 
libraries inside there. Bash dinamically loads libraries, so the user 
running it must have execution perms over invoked libraries.

That puzzled me for two weeks till I finally fixed it last saturday :-P

HTH,
Abraham

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



Re: [gentoo-user] Masked Packages

2008-05-14 Thread tecnic5
Dunno if this will get you every masked package, but at least should be 
quite close; if you run

emerge -pv --emptytree world

you can check the packages that are being downgraded, quite probably the 
reason for this downgrading will be that the installed version is a masked 
one.

Just an idea.

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/ 

 




Daniel Mendler [EMAIL PROTECTED]
14/05/2008 13:53
Por favor, responda a gentoo-user
 
Para:   Gentoo User List gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] Masked Packages

Hi,

I have a lot of masked packages installed on my system. The packages are 
installed but not unmasked. Is there an easy way to find those packages?

Daniel

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



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



Re: [gentoo-user] Reinstall all packages needed by vim

2008-05-08 Thread tecnic5
emerge --emptytree vim

That will (re)install *everything* directly or indirectly needed to have 
vim.

HTH,
Abraham

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/ 


Este mensaje, incluyendo sus ficheros adjuntos, contiene información 
confidencial para uso exclusivo de los receptores arriba nombrados. Si Ud. 
no es el receptor, le notificamos que leer, difundir, distribuir o copiar 
este mensaje está estrictamente prohibido. Si ha recibido este mensaje por 
error, por favor, notifíquelo inmediatamente respondiendo este mensaje y 
bórrelo a continuación.
Gracias por su colaboración. 
This message, including any attachments, contains confidential information 
intended only for the use of the addressee(s) named above. If you are not 
the addressee, you are hereby notified that reading, disseminating, 
distributing or copying this message is strictly prohibited. If you have 
received this message by mistake, please immediately notify us by replying 
to the message and delete the original message immediately thereafter.
Thank you for your cooperation. 




Matthias Fechner [EMAIL PROTECTED]
08/05/2008 10:57
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] Reinstall all packages needed by vim

Hi,

I tried today to build vim but it fails.
Now I want to make sure all packages needed by vim are installed
correctly. To do this I decided to reinstall all packages need be vim.

I checked the man page of emerge but could not found an option for this.

Is there a possibility to reinstall all packages needed by vim?


Thanks
Matthias

-- Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning. -- 
Rich Cook
-- 
gentoo-user@lists.gentoo.org mailing list



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



Re: [gentoo-user] blocking package can't be found

2008-04-10 Thread tecnic5
On Wed, 2008-04-09 at 19:51 +0200, Uwe Thiem wrote: 
 On Wednesday 09 April 2008, Dale wrote:
  Uwe Thiem wrote:
   Hi folks,
  
   emerge --update world tells me:
   [blocks B ] dev-util/gtk-doc-am (is blocking
   dev-util/gtk-doc-1.8-r2)
  
   emerge --unmerge gtk-doc-am tells me:
   --- Couldn't find 'gtk-doc-am' to unmerge.
  
   So let's be more specific:
   emerge --unmerge =dev-util/gtk-doc-am-1.10 tells me:
   --- Couldn't find '=dev-util/gtk-doc-am-1.10' to unmerge.
  
   Now what?

heh heh!

  Equery list gtk-doc and see what it says is installed.  It may not
  be that exact version.  Ran into something similar a while back.
 
 uwix uwe # equery list gtk-doc-am
 [ Searching for package 'gtk-doc-am' in all categories among: ]
  * installed packages
 uwix uwe # equery list gtk-doc
 [ Searching for package 'gtk-doc' in all categories among: ]
  * installed packages
 [I--] [  ] dev-util/gtk-doc-1.8-r2 (0)
 
 gtk-doc-1.8-r2 is the package that gets blocked, it isn't installed 
 yet..

yes it is!  equery just told you so! 

 More interesting is that the first equery didn't list anything, but 
 the gtk-doc-am ebuild exists:
 uwix uwe # ls /usr/portage/dev-util/gtk-doc-am
 ChangeLog  Manifest  gtk-doc-am-1.10.ebuild  metadata.xml

yes, the ebuild exists, but it's not installed!  Therefore equery didn't
show it to you.

 G. Wanted to let a long compile sesses run overnight - and now 
 this! Conspiracies. All around me. Against my innocent self.

:)

I think it just means gtk-doc-am wants a newer gtk-doc, so it's blocking
the one you have installed.  You need to uninstall gtk-doc, and then you
can install a newer gtk-doc and gtk-doc-am.
-- 
Iain Buchanan iaindb at netspace dot net dot au

Quid me anxius sum?

[ What? Me, worry? ]

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


**

Exactly, from gtk-doc-am's ebuild we get:

DEPEND=${RDEPEND}
!=dev-utils/gtk-doc-1.10

That seems gtk-doc-am can't be installed if gtk-doc is older than version 
gtk-doc-1.0 and you seem to be working with gtk-doc-1.8-r2. As Iain 
Buchanan said, uninstall gtk-doc and run everything, that should work.

Abraham

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



Re: [gentoo-user] LVM2

2008-04-02 Thread tecnic5
What I'd check:
Make sure dm-mod is either part of the kernel or, if it's a module, make 
sure it's loaded during start-up.
Make sure lvm init script is executed on start-up.
Take a look at: http://www.gentoo.org/doc/en/lvm2.xml
HTH,
Abraham



when i reboot the gentoo box all the lvm settings are gone, I have
followed the below steps

http://pastebin.com/d52c219ba

Please let me know if I am missing something

Thanks and Regards

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



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



[gentoo-user] Please file a bug for module?

2008-04-01 Thread tecnic5

Acuse de recibo
   
Su[gentoo-user] Please file a bug for module?
document   
o: 
   
Ha sido   Abraham Marin/SCRT   
recibido   
por:   
   
Con   01/04/2008 12:49:11  
fecha: 
   




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



Re: [gentoo-user] Re: what is a normal rsync?

2008-03-12 Thread tecnic5
Grant Edwards [EMAIL PROTECTED]
Enviado por: news [EMAIL PROTECTED]
12/03/2008 04:33
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] Re: what is a normal rsync?

On 2008-03-12, Shawn Haggett [EMAIL PROTECTED] wrote:
 Grant Edwards wrote:

 I'm behind a firewall that doesn't allow rsync connections, so
 I did a emege-webrsync.  It appears to have downloaded and
 installed a current snapshot and updated the portage cache:

*** Completed websync, please now perform a normal rsync if 
possible.
Update is current as of the of MMDD: 20080310

 What is meant by perform a normal rsync?

 I assume it would mean the normal emerge --sync if you can, which you 
 can't. I would assume it would say this since the rsync would be more up 

 to date then the webrsync snapshot

OK, but why would one have done a webrsync in the first place
unless doing an emerge --sync wasn't possible?

-- 
Grant Edwards   grante Yow!  Catsup and 
Mustard
  at   all over the place! 
It's
   visi.comthe Human Hamburger!

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


***

AFAIK emerge-webrsync downloads one single tar.bz2-ed file and then 
expands it to obtain the portage tree, while normal rsync checks for 
differences in every file and then fetches the new ones. My guess is that 
normal rsync is faster when your current copy of the Portage tree is 
almost up-to-date, since just a files will be downloaded, however, if your 
copy is old, you'll make it easier just getting a whole copy of the tree 
(even if it isn't the latest one).

Does the community agree?

Abraham

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



[gentoo-user] Tomcat 5.5.26 issue

2008-03-03 Thread tecnic5
Hi everyone,

I'm having a strange issue with the latest stable version of Tomcat. I 
updated from 5.5.25-r1 to 5.5.26 and suddenly some files (XML files in 
this case) seemed unreachable for Tomcat. I run into this when I got 
several SAXParser errors, apparently because it couldn't create an 
InputStream for the file. When I switched back to 5.5.25-r1 the error 
stopped appearing.

Anyone else has experienced it?

Abraham Marín

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



Re: [gentoo-user] My portage is hosed (segfaults) and I dont know why...

2008-02-07 Thread tecnic5
Rasmus Andersen [EMAIL PROTECTED]
07/02/2008 16:31
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] My portage is hosed (segfaults) and I dont 
know why...

Hello,

It seems that my portage or python installation or the combination
thereof has become borked. Whenever I run a portage-related program
(emerge, eclean, portageq, etc) I get segfaults. Due to these being
scripts, gdb is not of much help... I am able to start python normally
and get it to add numbers so python is not completely hosed. But I lack
another python program of substance to test whats wrong. The last thing
I emerged successfully was iptables and it seems unlikely that they had
an influence on python/portage.

...

Thinking again I have rdiff-backup around. Testing that shows a small
backup to go ok and a largish backup to fail with sigsegv. The box as
such is busy enough, memorywise, and survives parallel kernel compiles
and untars fine.

So, I guess I have two questions: One, do anyone have a reasonable
opinion of what is wrong? Failing that, two: How do I reestablish python
and/or portage with the least pain? I have both in my PKGDIR, can I
'just' untar them on top of the existing installation?

Thanks,
  Rasmus
-- 
gentoo-user@lists.gentoo.org mailing list




How about booting from a Live-CD, stablishing a working environment and 
running emerge --ask --verbose --emptytree system? That would take some 
time, but should fix things right away.


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



Re: [gentoo-user] Mounting /dev/sdaX on boot does not work

2008-01-30 Thread tecnic5
Pavel Sanda [EMAIL PROTECTED]
30/01/2008 12:40
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] Mounting /dev/sdaX on boot does not work

hi,

i have external hard drive connected through usb. i put the following line 
into /etc/fstab
/dev/sda1 /mnt/usb ext3 user,auto,exec 0 0
but localmount reports the problem of not finding /dev/sda1.

when i tried to call mount  -at .. after the boot proces in local.start it 
proceeds well.
what is responsible for initializing of /dev/sda1? or have i forgotten to 
add something into fstab?

thanks,
pavel
-- 
gentoo-user@lists.gentoo.org mailing list


Most probably fstab isn't be the problem, but loaded modules. The modules 
needed to handle USB connections must be loaded before you try to mount 
any USB disk, although I'm not sure whether this is possible and/or 
advisable. My suggestion is compiling this modules directly into the 
kernel, that way you make sure you have USB support from the very 
beginning.

HTH,
Abraham

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



Re: [gentoo-user] Re: firewall make.conf settings

2008-01-25 Thread tecnic5
Hemmann, Volker Armin [EMAIL PROTECTED]
24/01/2008 20:39
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: Re: [gentoo-user] Re: firewall make.conf settings

On Donnerstag, 24. Januar 2008, James wrote:
 Hemmann, Volker Armin volker.armin.hemmann at tu-clausthal.de 
writes:
   -mcpu is deprecated, according to the examples file as of gcc 3.4, 
SO:
  
   CFLAGS=-Os -march=i586 -pipe -fomit-frame-pointer
   CHOST=i586-pc-linux-gnu
  
   changed to:
   CFLAGS=-Os -mtune=i586 -pipe -fomit-frame-pointer
   or
   CFLAGS=-Os -march=i586 -mtune=i586 -pipe -fomit-frame-pointer
 
  sure about that? doesn't march include everything mtune would do?

 No, I'm not sure. The more I read the more I see different opinions!
 That's why I'm asking. Remember the goals are:
 1) keep executible (binaries) as small as possible
 2) use one make.conf on a master system to generate binaries
 for most old pentiums and the K6(amd) systems

 My gut tells me that

 CFLAGS=-Os -march=i586 -pipe -fomit-frame-pointer
 CHOST=i586-pc-linux-gnu

 is the best choice in this cause. However, my 'gut' is more focused
 on the 'kiss' principal:  (kiss whoever does the cooking and cleans
 the dishes) aka keep it simple.

well, I like your line ;)
-- 
gentoo-user@lists.gentoo.org mailing list


I like it too!!

-march is more specific than -mtune, that means that it takes profit of 
processor-specific instructions to increase performance, but breaking 
compatiblity with other processors as a side effect. Since you will be 
using the same code for different processors you don't want to be *that* 
specific, so you'll have to stick on the more general -march option.

That's my theory, however, there's some dark point: gcc guides usually 
state that the main difference between -march and -mtune is _backwards_ 
compatibility, but doesn't say anything about _family_ compatibility. 
Quoting Gentoo GCC Optimization guide:


On x86 and x86-64 CPUs, -march will generate code specifically for that 
CPU using all its available instruction sets and the correct ABI; it will 
have no backwards compatibility for older/different CPUs. If you don't 
need to execute code on anything other than the system you're running 
Gentoo on, continue to use -march. You should only consider using -mtune 
when you need to generate code for older CPUs such as i386 and i486. 
-mtune produces more generic code than -march; though it will tune code 
for a certain CPU, it doesn't take into account available instruction sets 
and ABI. Don't use -mcpu on x86 or x86-64 systems, as it is deprecated for 
those arches. 


So I guess it depends on how much time you have before your firewalls are 
production-ready. If you have plenty of time, I'd try -march out and see 
if no horrible crashes appear; if you don't want to play the 
crazy-lab-folk role, go for the safer -mtune.

My two cents :-).
Abraham

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



Re: [gentoo-user] firewall make.conf settings

2008-01-24 Thread tecnic5
James [EMAIL PROTECTED]
Enviado por: news [EMAIL PROTECTED]
24/01/2008 15:59
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] firewall make.conf settings

Hello,

I keep driving to make the size of the (gentoo) firewall as small(fast) as
posible to run on minimal resources. I have a mixture of old pentiums and
 amd (k6) machines. I'd like to have one make.conf file for all the 
systems.

Anybody see anything wrong (not optimized) with these settings?


CFLAGS=-Os -march=i586 -pipe -fomit-frame-pointer
CHOST=i586-pc-linux-gnu
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j2
USE= -* hardened acl ssl crypt nptl nptlonly

Will -march=i586 work well with the amd k6 arch?
-fomit-frame-pointer (as no debugging wil)l occur on said machines)


Any comments on the USE flags?  (a better way to minimize the installed
packages (which is vim and iptables and sshd)


James

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



If you'd like to use the same make.conf for different machines you should 
make sure they all have same processors or, at least, same family of 
processors; in your case, I recommend using -mcpu instead of -march. Keep 
in mind that K6 processors have their own -marc=k6 and might not be 
comptable with -march=i586. More in /etc/make.conf.example.

About USE flags, I recommend using -va options on every merge, check 
wich USE flags are enabled or disabled for each package and dinamicaly 
make your USE variable up.


HTH,
Abraham Marín Pérez [EMAIL PROTECTED]
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: firewall make.conf settings

2008-01-24 Thread tecnic5
James [EMAIL PROTECTED]
Enviado por: news [EMAIL PROTECTED]
24/01/2008 17:00
Por favor, responda a gentoo-user
 
Para:   gentoo-user@lists.gentoo.org
cc: 
Asunto: [gentoo-user] Re: firewall make.conf settings

 tecnic5 at silvanoc.com writes:

If you'd like to use the same make.conf for different machines you should 

make sure they all have same processors or, at least, same family of 
processors; in your case, I recommend using -mcpu instead of -march. Keep 

in mind that K6 processors have their own -marc=k6 and might not be 
comptable with -march=i586. More in /etc/make.conf.example.


Good point:

-mcpu is deprecated, according to the examples file as of gcc 3.4, SO:

CFLAGS=-Os -march=i586 -pipe -fomit-frame-pointer
CHOST=i586-pc-linux-gnu

changed to:
CFLAGS=-Os -mtune=i586 -pipe -fomit-frame-pointer 
or
CFLAGS=-Os -march=i586 -mtune=i586 -pipe -fomit-frame-pointer

? Remember I want one set of binaries for both k6 and old pentiums




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


You're right, make it -mtune ;-). On the other hand, and according to 
Gentoo GCC optimization guide[1], both -mtune and -mcpu only take effect 
if there is no -march available, so I guess the later takes preference 
over the former. I'd use the first option of CFLAGS, hence.

[1] http://www.gentoo.org/doc/en/gcc-optimization.xml#doc_chap2

HTH,
Abraham Marín
--
gentoo-user@lists.gentoo.org mailing list