Re: [gentoo-user] initng or runit?

2006-08-23 Thread Mrugesh Karnik
On Wednesday 23 August 2006 07:28, Thomas Kear wrote:

> The real advantage that initng posesses are, unless runit's website
> is simply failing to mention it, auto-restarting of failed daemons,
> virtual dependencies, and clever multi-distro compatible scripts that
> use a preprocessor at install time (see the #ifd / #elsed / #endd
> statements in a file like
> http://svn.initng.org/initng-ifiles/trunk/initfiles/system/modules.ii
>).

I've used runit for a little while. It uses daemontools from qmail to 
monitor services. Hence it also has auto-restarting of failed daemons.
I haven't used it long enough to know about dependencies though. I 
thought runit was pretty good.

-- 

Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net



pgp7kjRm5f0Os.pgp
Description: PGP signature


[gentoo-user] browsing browsers: was Active ?

2006-08-23 Thread Philip Webb
060822 Scott Lampert wrote:
> Philip Webb wrote:
>> 060822 Lindsay Haisley wrote:
>>> Is this list up and running?
>>> I haven't received any traffic from it since Aug. 10.
>>> Lindsay Haisley   | "Fighting against human | PGP public key
>>> FMP Computer Services |creativity is like   |  available at
>>> 512-259-1190  |trying to eradicate  | 
>>> http://www.fmp.com|dandelions"  |
>>>   |  (Pamela Jones) |
>> Nobody here but us dandelions ...
> Apparently its working, however active it apparently is not. :o
> In fact, I forgot I was subscribed here until now! Doh.

So why don't I offer something ?  Perhaps a cc to Gentoo-user too,
which has been rather technical in recent weeks (smile).

I have 6 browsers installed (besides Mozilla & Seamonkey),
ie Lynx Dillo Galeon Epiphany Konqueror Firefox.
My main use is to read each day's news (I'm a long-time news junkie).
Over time, I've used Lynx, Opera, Galeon, Konqueror & Firefox
roughly in that order since starting just 10 years ago.
For some time, I had been using Firefox, but with increasing irritation,
as it has been getting heavier & slower, some sites worse than others:
it seems to have a special difficulty with Javascript.

Somewhat by accident, I tried out Epiphany backed by Seamonkey
& have been using it now for the past 10 days with much satisfaction.
For a start, it's significantly faster than Firefox.
Also, it's easy to hide/unhide the toolbars &/or use keyboard alternatives.
You can transpose tabs like Firefox & scroll thro' them with the mousewheel
just like Konqueror, but really neat is the Tabs menu,
which lists all open tabs with titles, which you can click to select.
This is great for me, as I go thro' Financial Times or Toronto Star indexes,
opening likely stories in new tabs, then reading them in logical order.
No you can't recall a closed tab, but history is a partial replacement.
There have been a couple of bugs, but no more than Konqueror.

I've also discovered that you can set up Klipper (on my KDE panel)
to start your app of choice on an URL : with Epiphany,
I can use Ctl-L to show the doc URL hilited in a location bar,
which opens Klipper offering to open it with Lynx (my choice),
which I then use to make a local text copy or e-mail to a comrade.

Generally, I'm a KDE fan & not keen on Gnome eccentricities,
but -- as with Gvim & Gqview -- Epiphany is a Gnome app to my taste.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Alan Mckinnon
On Tue, 2006-08-22 at 20:36 +0200, Adrian Frith wrote:
> On Tue, 2006-08-22 at 16:12 +0200, Alan Mckinnon wrote:
> > modify CFLAGS in /etc/make.conf
> > emerge -e system
> > emerge -s world
> > 
> > This will rebuild your toolchain (gcc, glibc and friends) to use -O2
> > then rebuild the entire system, including the toolchain again, with -O2.
> > Your current compiler was built with -O3, and you want to rebuild the
> > system using a compiler compiled as -O2, hence the 2 step process.
> 
> Correct me if I am wrong, but doesn't the gcc ebuild in fact use the
> "make bootstrap" method of compiling gcc? - that is:
> 1. compile with installed compiler -> stage1
> 2. compile with stage1 compiler -> stage2
> 3. compile with stage2 compiler -> stage3
> 4. compare stage2 and stage3 and install stage3 if they are the same
> 
> If I am right, doesn't it mean that the whole "emerge -e system" step is
> pointless? Couldn't one just do "emerge -u gcc" and then "emerge -e
> world"? Or am I being stupid?

I believe the gcc ebuild does do a bootstrap compile, which does imply
that emerge -e system is redundant. 

But, we had a huge long rambling thread on this point recently which I'd
rather not rehash again :-) and IIRC the general consensus was that
'emerge -e system ; emerge -e world' was the way to go, for reasons
broader than just gcc. I forget the details, maybe we should both check
the archives.

What I do know is that 'emerge -e system ' is relatively quick compared
to 'emerge -e world', so the extra step didn't hurt much when I recently
upgraded gcc, it was something like 2 hours for the one, and 36 for the
other (!)

alan

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Alan Mckinnon
On Tue, 2006-08-22 at 11:40 -0700, Richard Fish wrote:
> On 8/22/06, Alan Mckinnon <[EMAIL PROTECTED]> wrote:
> > Your current compiler was built with -O3, and you want to rebuild the
> > system using a compiler compiled as -O2, hence the 2 step process.
> 
> *Sigh*.  I am so tired of this completely wrong information showing up here.
> 
> 1. It does not matter what -OX flag gcc is compiled with.  It has
> absolutely *zero* effect on the code that gcc *generates*.
> 
> 2. There is also absolutely no reason to build gcc twice.  There is no
> such thing as a gcc that was built with the "system compiler", because
> gcc uses itself to build itself.  It is called a 3-stage bootstrap,
> and I suggest you read the gcc documentation first if you want to
> debate this point.

I have read the docs, several times. I was replying to a confessed
newbie so had to keep it simple so he had a chance of understanding the
big picture and also not fscking his system. You and I could probably
fix that if it happened to us, the OP probably could not. There's more
at stake here than just gcc - there's an entire toolchain which very
very few people actually understand, including most people on this list.

Incidentally, gcc cannot use itself to compile itself - that's
nonsensical and a classic bootstrap problem. It uses a binary (which
happens to be a gcc) to compile the source code for gcc which produces
another binary. That binary then compiles the same source for gcc to
produce yet another binary, etc, etc. For stage 1 to work at all, there
has to be a compiler available to compile a compiler, and that first
compiler that *must* be available is probably the compiler that the rest
of the system uses, or the one on the LiveCD. So if you want to be
pedantic about building gcc, then please be correctly pedantic and
pedantically correct :-)

alan


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Searching for a client 802.1x

2006-08-23 Thread Valerio daelli

Hi all
I am searching for a client for the 802.1x protocol,
performing basic authentication?
Something like

http://hostap.epitest.fi/wpa_supplicant/

but not limited to wireless networks.
Thanks a lot

Valerio Daelli
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Wednesday 23 August 2006 09:43, Alan Mckinnon wrote:
> I believe the gcc ebuild does do a bootstrap compile, which does imply
> that emerge -e system is redundant.
>
> But, we had a huge long rambling thread on this point recently which I'd
> rather not rehash again :-) and IIRC the general consensus was that
> 'emerge -e system ; emerge -e world' was the way to go, for reasons
> broader than just gcc. I forget the details, maybe we should both check
> the archives.

Back then we were speaking of a gcc upgrade in which case Richard doesn't 
disagree with the emerge -e system step which is also mentioned in [1]. We 
were definitely NOT talking about a minor modification of CFLAGS between -Os 
and -O3! That's where you're wrong.

[1] http://www.gentoo.org/doc/en/gcc-upgrading.xml

-- 
Bo Andresen


pgpeeoyM34Nkp.pgp
Description: PGP signature


Re: [gentoo-user] SOLVED Problem booting after reinstall

2006-08-23 Thread Franta
... I cnt make a diff. It is the same file. Or say it this way:

I use to save the configurationto a different file during menuconfig. I
took THIS file to configure the vanilla sources.
IMHO
$ diff INITIAL INITIAL
wouldn't produce any output. ;o)))

Regards
Frank

On Tue, 2006-08-22 at 10:57 +0200, Rafael Fernández López wrote:
> There's no reason for vanilla-kernel working and gentoo-sources don't. 
> The main reason is that:
> 
> a) The filesystem in gentoo-sources you selected it as a module instead 
> of built into the kernel, and in vanilla-kernel you did right or maybe 
> it was selected.
> 
> b) The IDE chipset driver or IDE hard drive driver wasn't selected in 
> gentoo-sources, as they were in vanilla-kernel.
> 
> The .config file itself would't say lots of things, but it would be more 
> useful a diff between two .config files (the one that had gentoo-sources 
> and the vanilla-sources), and maybe we could check out what is now 
> selected that wasn't before.
> 
> Anyway, if it works now it's ok.
> 
> Bye,
> Rafael Fernández López.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Searching for a client 802.1x

2006-08-23 Thread David Helstroom

Valerio daelli wrote:

I am searching for a client for the 802.1x protocol,
performing basic authentication?
Something like

http://hostap.epitest.fi/wpa_supplicant/

but not limited to wireless networks.

Hi Valerio,

I think you'll find the above program does work on wired networks - 
check the README file and search for the text 'wired' (linked off the 
main page above):
 
http://hostap.epitest.fi/cgi-bin/viewcvs.cgi/*checkout*/hostap/wpa_supplicant/README?rev=HEAD&content-type=text/plain


They give a few examples on how 802.1x can be used with wpa_supplicant 
over a wired connection (note that I haven't done this myself).


Cheers,


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



[gentoo-user] DVB-S multiplex

2006-08-23 Thread Dave Oxley
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Does anyone know why the OptusC1-156E file that comes with dvbscan
doesn't match what's defined on lyngsat.com? For example Fox Sports 1
(sid 3001) is listed on lyngsat as 12478 H, SR 27800, 3/4 but in
channels.conf it is 12398:h:0:27800:1011:1012:3001. As you can see the
frequency is 80KHz out.

Cheers,
Dave.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE7Ef5x43ifHzpDVURAhxvAJ4gKj/2S3oRPnzeJEq83VtMDc0SGQCeIJyK
kZCjTfKIU+lEHKWJcPgdIsA=
=mC/h
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Gentoo kernel and NFS groups limitation

2006-08-23 Thread Robert Szentmihalyi
Hi,

does any of the Gentoo kernel sources in Portage contain the nfs-ngroups patch 
(http://www.frankvm.com/nfs-ngroups/)?
I'm looking for an easily maintainable solution to bypass the NFS limitation of 
16 groups per user.

Thanks,
 Robert
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Missing icons in Evolution

2006-08-23 Thread sdoma
Hi,

since rebuilding my system to a stable one using the 2006.0 live CD
there are most of the icons in Evolution missing. They are replaced by
this "Broken picture" symbol or just empty (see the attachement).

Should I file a bug?

I could take them from the live CD and copy them to the proper location
to make Evolution find them. Does anyone know where this location is?

Thanks in advance
Frank



evo3.png
Description: PNG image


evo2.png
Description: PNG image


evo3.png
Description: PNG image


evo4.png
Description: PNG image


Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Alan Mckinnon
On Wed, 2006-08-23 at 13:29 +0200, Bo Ørsted Andresen wrote:
> On Wednesday 23 August 2006 09:43, Alan Mckinnon wrote:
> > I believe the gcc ebuild does do a bootstrap compile, which does imply
> > that emerge -e system is redundant.
> >
> > But, we had a huge long rambling thread on this point recently which I'd
> > rather not rehash again :-) and IIRC the general consensus was that
> > 'emerge -e system ; emerge -e world' was the way to go, for reasons
> > broader than just gcc. I forget the details, maybe we should both check
> > the archives.
> 
> Back then we were speaking of a gcc upgrade in which case Richard doesn't 
> disagree with the emerge -e system step which is also mentioned in [1]. We 
> were definitely NOT talking about a minor modification of CFLAGS between -Os 
> and -O3! That's where you're wrong.

Can you be absolutely certain I'm wrong? Can you absolutely guarantee
that a recompile with a different config MUST be treated differently to
an upgrade?

As I see it the only difference I can count on is that the first just
happens to not involve a change in version number. In both cases a new
binary is made which replaces the old one, and said new binary may or
may not include features/configurations that are incompatible with other
already existing software.

The only way you could guarantee that is if the gcc sources ignore
CFLAGS and other settings when compiling gcc in an effort to build a
compiler that is always in a known state with known output. That would
be an awfully good idea for a compiler but I haven't seen a clear
statement anywhere that this is in fact what is done, so I don't assume
that it is that way.

Unless you have assumed that gcc is not to be recompiled, but only given
different options to use in the future when doing it's thing, in which
case we are both right, but talking about different things

alan


> 
> [1] http://www.gentoo.org/doc/en/gcc-upgrading.xml
> 

-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Fernando Ferrari
Hi Frank, look this http://gentoo-wiki.com/Ethereal

Saludos
Fernando Ferrari
http://fernandorferrari.blogspot.com


-Mensaje original-
De: sdoma [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 23 de Agosto de 2006 11:03 a.m.
Para: gentoo-user@lists.gentoo.org
Asunto: [gentoo-user] Ethereal on the LiveCD but not in portage?

Hi,

I've tried to emerge Ethereal but I got this:

frankies ~ # emerge -s ethereal
Searching...   
[ Results for search key : ethereal ]
[ Applications found : 0 ]

Any suggestions?

Thanks in advance
Frank


-- 
gentoo-user@gentoo.org mailing list





__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread fire-eyes
On Wednesday 23 August 2006 10:03, sdoma wrote:
> Any suggestions?

The project moved to the name wireshark, try that instead.

-- 
99% of politicians make the rest look bad.
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Neata Alexandru
It's been renamed as Wireshark.

On Wed, 2006-08-23 at 11:28 -0300, Fernando Ferrari wrote:
> Hi Frank, look this http://gentoo-wiki.com/Ethereal
> 
> Saludos
> Fernando Ferrari
> http://fernandorferrari.blogspot.com
> 
> 
> -Mensaje original-
> De: sdoma [mailto:[EMAIL PROTECTED] 
> Enviado el: Miércoles, 23 de Agosto de 2006 11:03 a.m.
> Para: gentoo-user@lists.gentoo.org
> Asunto: [gentoo-user] Ethereal on the LiveCD but not in portage?
> 
> Hi,
> 
> I've tried to emerge Ethereal but I got this:
> 
> frankies ~ # emerge -s ethereal
> Searching...   
> [ Results for search key : ethereal ]
> [ Applications found : 0 ]
> 
> Any suggestions?
> 
> Thanks in advance
> Frank
> 
> 
> -- 
> gentoo-user@gentoo.org mailing list
> 
> 
>   
>   
>   
> __
> Preguntá. Respondé. Descubrí.
> Todo lo que querías saber, y lo que ni imaginabas,
> está en Yahoo! Respuestas (Beta).
> ¡Probalo ya! 
> http://www.yahoo.com.ar/respuestas
> 
> 
> 

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Help with bash/awk script

2006-08-23 Thread Ow Mun Heng
I'm trying to figure out how to do this sequence in this bash script.
The problem I'm having is how to make $i to change according to the
changes in $x

My current solution is a bit of a hack and stupid.

One more thing, my current solution will parse the file _each_ time for
_each_value/head which essentially means it reads the file multiple
times. Is there a better way so to reduce the # of reads/parses? (Does
awk parse the file once or multiple times, that is if I were to rewrite
the below entirely in awk language)

Thanks


#!/bin/bash

filename=$1
heads=6
tpi=7
x=0
y=1
z=1
clear
while  (( $x < $heads ))
  do
finaltpi=`cat $1 | awk  "/TPI chosen/" | awk -v pat="$x" '{if
(NR==pat+1) print $5}'`
  while (( $y <= $tpi ))
  do
if [ "$x" -eq 0 ]
then
  for i in `seq 1 7` <-
do
 tpiert=`egrep -i "(average)" $1 | awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done

elif [ "$x" -eq 1 ]
then
  for i in `seq 8 14` <-
do
 tpiert=`egrep -i "(average)"  $1| awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done
elif [ "$x" -eq 2 ]
then
  for i in `seq 15 21` <-
do
 tpiert=`egrep -i "(average)"  $1 | awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done
elif [ "$x" -eq 3 ]
then
  for i in `seq 22 28` <-
do
 tpiert=`egrep -i "(average)"  $1 | awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done
   elif [ "$x" -eq 4 ]
then
  for i in `seq 29 35` <-
do
 tpiert=`egrep -i "(average)"  $1 | awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done
   elif [ "$x" -eq 5 ]
then
  for i in `seq 36 42` <-
do
 tpiert=`egrep -i "(average)"  $1 | awk -v pat="$i"
'{ if(NR==pat) print $5","$10}'`
 echo $filename,$x,$y,$finaltpi,$tpiert
((y++))
done
fi  
  done
let "y=1"
((x++))
  done


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] initng or runit?

2006-08-23 Thread Hans-Werner Hilse
Hi,

On Wed, 23 Aug 2006 13:58:01 +1200 "Thomas Kear"
<[EMAIL PROTECTED]> wrote:

> Having just had a quick look at runit, it appears we have the larger
> collection of init scripts, however being simple bash scripts it could
> be expected that runit's are slightly easier to make.

Runit does *not* depend on bash scripts but whatever you want. The
runsv binary just starts ./run in the service directory.

I like fefe's minit better, because you can even set arguments to
that ./run binary. That way, you can just make a symlink to the daemon's
executable and store the params in that mentioned file. This means you
don't have to start some kind of shell or script in order to execute
the daemon.

> The real advantage that initng posesses are, unless runit's website is
> simply failing to mention it, auto-restarting of failed daemons,

heh, runit's main purpose is "service supervision". If it wouldn't
restart failed daemons, the easiest approach would have bin
a /bin/sh-skript as init.

> virtual dependencies,

Yep, that's right. Minit has better dependency management, though, but
I think this would be overkill in most embedded systems anyway.

> and clever multi-distro compatible scripts that
> use a preprocessor at install time (see the #ifd / #elsed / #endd
> statements in a file like
> http://svn.initng.org/initng-ifiles/trunk/initfiles/system/modules.ii).

I don't think that start scripts for various daemons are absolutely
needed. They're more part of the init's documentation. And hey: For
best speed, multi-distro compatibility is a no-no.

> I've never tried RC_PARALLEL_STARTUP, haven't used sysvinit at all in
> 9 months.

I'd like to add that gentoo's own /sbin/rc is not a feature of
sysvinit. sysvinit is not *that* bad, after all. What has gone wild is
the /etc/init.d style of doing things.

-hwh

PS: the mentioned 30secs boot time in my previous mail to this thread
are for a Pentium MMX 166. Using Gentoo's init scheme, that would have
been forever.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Help with bash/awk script

2006-08-23 Thread Etaoin Shrdlu
On Wednesday 23 August 2006 16:30, Ow Mun Heng wrote:

> if [ "$x" -eq 0 ]
>            then
>    for i in `seq 1 7` <-
>                     do
>                      tpiert=`egrep -i "(average)" $1 | awk -v pat="$i"
> '{ if(NR==pat) print $5","$10}'`
>                          echo $filename,$x,$y,$finaltpi,$tpiert
>                         ((y++))
>                     done
>                        
>                 elif [ "$x" -eq 1 ]
>             then
>                   for i in `seq 8 14` <-
>                     do
>                      tpiert=`egrep -i "(average)"  $1| awk -v pat="$i"
> '{ if(NR==pat) print $5","$10}'`
>                          echo $filename,$x,$y,$finaltpi,$tpiert
>                         ((y++))
>                     done
>                 elif [ "$x" -eq 2 ]

If I understand correctly, you want to avoid all the if/elif tests on $x.

What about

low=`expr $x \* 7 + 1`
high=`expr $low + 6`

for i in `seq $low $high` ; do

#  your code here

done

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Keith Kastorff
On Wed, 2006-08-23 at 16:03 +0200, sdoma wrote:
> Any suggestions?

Ethereal has been renamed Wireshark.

-- 
Keith Kastorff
[EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] the user mode linux can't access network..

2006-08-23 Thread fei huang
thanks for helping...the problem has been solved by applying iptable rules on my ppp0 instead of eth0. since ppp0 is the real device that conncts to the Internet.tks again.daniel


Re: [gentoo-user] Help with bash/awk script

2006-08-23 Thread Bo Ørsted Andresen
On Wednesday 23 August 2006 16:30, Ow Mun Heng wrote:
> (Does awk parse the file once or multiple times, that is if I were to
> rewrite the below entirely in awk language)

awk parses the file only once. One line at a time. Of course that goes for
every invocation of awk... ;)

> finaltpi=`cat $1 | awk  "/TPI chosen/" | awk -v pat="$x" '{if
> (NR==pat+1) print $5}'`

finaltpi=`awk -v pat="$x" '/TPI chosen/{if (NR==pat+1) print $5' < $x`

>  tpiert=`egrep -i "(average)" $1 | awk -v pat="$i"
> '{ if(NR==pat) print $5","$10}'`

tpiert=`awk -v pat="$i" 'tolower($0)~/(average)/{ if(NR==pat) print $5","$10}' 
< $1`

If you want more help with this I would suggest that you posted a short sample
input file and a sample of the output you want to achieve. It does make it a
heck of a lot easier to grasp what it is you want to do...

-- 
Bo Andresen


pgpTxkwuQN3Kq.pgp
Description: PGP signature


Re: [gentoo-user] Help with bash/awk script

2006-08-23 Thread Ow Mun Heng
On Wed, 2006-08-23 at 17:17 +0200, Etaoin Shrdlu wrote:
> On Wednesday 23 August 2006 16:30, Ow Mun Heng wrote:
> 
> > if [ "$x" -eq 0 ]
> >then
> >for i in `seq 1 7` <-
> > do
> >  tpiert=`egrep -i "(average)" $1 | awk -v pat="$i"
> > '{ if(NR==pat) print $5","$10}'`
> >  echo $filename,$x,$y,$finaltpi,$tpiert
> > ((y++))
> > done
> >
> > elif [ "$x" -eq 1 ]
> > then
> >   for i in `seq 8 14` <-
> > do
> >  tpiert=`egrep -i "(average)"  $1| awk -v pat="$i"
> > '{ if(NR==pat) print $5","$10}'`
> >  echo $filename,$x,$y,$finaltpi,$tpiert
> > ((y++))
> > done
> > elif [ "$x" -eq 2 ]
> 
> If I understand correctly, you want to avoid all the if/elif tests on $x.
> 
> What about
> 
> low=`expr $x \* 7 + 1`
> high=`expr $low + 6`
> 
> for i in `seq $low $high` ; do
> 
> #  your code here
> 

This works _Great_!!

Thanks. I was thinking along the same lines, but somehow can't get it
right.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Arnau Bria
On Wed, 23 Aug 2006 11:28:50 -0300
Fernando Ferrari wrote:

Hi,
> Hi Frank, look this http://gentoo-wiki.com/Ethereal

few days (or weeks) ago I asked for same thing to list. I installed
wireshark and, as it did not work, I forgot about it.

Now, after reading mini how-to, I found I have no wiresahrk "binary":

# equery files wireshark
[ Searching for packages matching wireshark... ]
* Contents of net-analyzer/wireshark-0.99.2:
/usr
/usr/bin
/usr/bin/capinfos
/usr/bin/dftest
/usr/bin/dumpcap
/usr/bin/editcap
/usr/bin/ethereal -> wireshark
/usr/bin/idl2wrs
/usr/bin/mergecap
/usr/bin/randpkt
/usr/bin/tethereal -> tshark
/usr/bin/text2pcap
/usr/bin/tshark
/usr/lib

# ls -lsa /usr/bin/wire*
ls: /usr/bin/wire*: No existe el fichero o el directorio (no file found)

and ethereal is (obviously) a broken link...

is there any consideration to take care of when installing wireshark?

Thansk in advance,
Arnau
> Saludos
> Fernando Ferrari


-- 
Arnau Bria
http://blog.emergetux.net
Wiggum: Dispara a las ruedas Lou.
Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Help with bash/awk script

2006-08-23 Thread Ow Mun Heng
On Wed, 2006-08-23 at 17:20 +0200, Bo Ørsted Andresen wrote:
> On Wednesday 23 August 2006 16:30, Ow Mun Heng wrote:
> > (Does awk parse the file once or multiple times, that is if I were to
> > rewrite the below entirely in awk language)
> 
> awk parses the file only once. One line at a time. Of course that goes for
> every invocation of awk... ;)
> 
> > finaltpi=`cat $1 | awk  "/TPI chosen/" | awk -v pat="$x" '{if
> > (NR==pat+1) print $5}'`
> 
> finaltpi=`awk -v pat="$x" '/TPI chosen/{if (NR==pat+1) print $5' < $x`
> 
> >  tpiert=`egrep -i "(average)" $1 | awk -v pat="$i"
> > '{ if(NR==pat) print $5","$10}'`
> 
> tpiert=`awk -v pat="$i" 'tolower($0)~/(average)/{ if(NR==pat) print 
> $5","$10}' < $1`
> 
> If you want more help with this I would suggest that you posted a short sample
> input file and a sample of the output you want to achieve. It does make it a
> heck of a lot easier to grasp what it is you want to do...

I've managed to solve it using Etaoin's help but I'll post the input and
output files here anyway, (as I can't understand why you're using $x in
the 1st query. Ah.. Figured it out, you meant to use $1 (to subtitute
the cat $1. Is there a performance difference?

I can't use the 2nd invocation of awk (for tpiert) mainly because the NR
is different

$awk 'tolower($0)~/(average)/{ print NR,$5","$10}' < test 
4 1.4E+005,1.0E+000
6 1.9E+004,9.0E+001

it doesn't line up. the grep makes it this way

$egrep -i "(average)" test | awk '{print NR,$5","$10}'
1 1.4E+005,1.0E+000
2 1.9E+004,9.0E+001

HEnce I can use the NR sequentially.

Thanks

$cat test 
TPI chosen for x[0]: 7
TPI chosen for x[1]: 6

---
 => average before = 1.4E+005 ,   average
after = 1.0E+000 

---
 => average before = 1.9E+004 ,   average
after = 9.0E+001 

---

$cat output
test,0,1,7,1.4E+005,1.0E+000
test,0,2,7,1.9E+004,9.0E+001


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Bind (Named) SOA Records

2006-08-23 Thread Michael Crute

I am trying to write a scrip to maintain my Bind zone files and I was
wondering if it is valid to cram the SOA all onto one line. I have
scoured the internet and can't find anyone who does it that way. My
question is... will it break stuff? Right now my SOA looks like:

@   IN  SOA ns1.domain.com.  hostmaster.domain.com. (
2006082201  ; serial number
12h  ; Refresh
1h ; Retry
2w ; Expire
1h ; Min TTL
)

what I am proposing is this:

@ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )

Are the two equivalent?

-Mike

--

Michael E. Crute
http://mike.crute.org

I may not have gone where I intended to go, but I think I have ended
up where I intended to be. --Douglas Adams
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Server disabled: baselayout or /etc/conf.d/net ?

2006-08-23 Thread Grant

Hello,

I updated my remote server to the latest baselayout this morning.  I
received an elog mail about /etc/conf.d/net containing deprecated
config so I updated that according to net.example.  Then I rebooted
and now there is no response from the server when I try to connect
over the Internet.

The new baselayout doesn't agree with my laptop very well during the
runlevels, but it does end up fully functional.  My server's old
/etc/conf.d/net contained *only* these:

ifconfig_eth0=
gateway=

and they weren't mentioned in net.example so I replaced them with what
seemed to be their replacements:

config_eth0=
gateways_eth0=

I triple-checked my syntax before I rebooted.  Does my /etc/conf.d/net
sound OK?  If so, it's probably a baselayout problem and I'll roll
back to baselayout-1.11.15-r3 .

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



Re: [gentoo-user] Bind (Named) SOA Records

2006-08-23 Thread Robert Welz

Michael Crute wrote:

I am trying to write a scrip to maintain my Bind zone files and I was
wondering if it is valid to cram the SOA all onto one line. I have
scoured the internet and can't find anyone who does it that way. My
question is... will it break stuff? Right now my SOA looks like:

@   IN  SOA ns1.domain.com.  hostmaster.domain.com. (
2006082201  ; serial number
12h  ; Refresh
1h ; Retry
2w ; Expire
1h ; Min TTL
)

what I am proposing is this:

@ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )

Are the two equivalent?

-Mike



They should be.
"DNS and BIND", 4th issue, German iprint, from Paul Albitz & Cricket 
Liu, O'Reilly 2004 says (I translate free): The brackets allow the 
SOA-Record to go over several lines.


So I would assume they allow but this is an option only.

Greetings,
Robert

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Missing icons in Evolution

2006-08-23 Thread Richard Fish

On 8/23/06, sdoma <[EMAIL PROTECTED]> wrote:

Thanks, this was it. Where did you find this info? Why the normal user
doesn't have a clue about this? ... and meanly ... where are the
icons???


Well, "normal" users shouldn't have to worry about this.  In fact
there should now be a global gtkrc file that sets the fallback theme,
although there is still an issue for KDE users due to the way KDE
tries to 'integrate' gtk/gnome apps.  You might be interested in
reading the comments on this bug:

http://bugs.gentoo.org/show_bug.cgi?id=133241

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



[gentoo-user] emege -e system; emerge -e world and GCC4

2006-08-23 Thread michael higgins
Hello, list.

I have a silly (I expect) question about the topic in the subject line. After 
(if and when?) this completes -- as I've had to "emerge --resume --skip-first" 
a bunch of times -- how will I be able to determine which packages failed so I 
may then attempt to emerge them individually (or remove them from world)?

. . .

Also:
# gcc-config -c
i686-pc-linux-gnu-4.0.3

# gcc-config -l
 [1] i386-pc-linux-gnu-3.3.3
 [2] i686-pc-linux-gnu-3.4.6
 [3] i686-pc-linux-gnu-3.4.6-hardened
 [4] i686-pc-linux-gnu-3.4.6-hardenednopie
 [5] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [6] i686-pc-linux-gnu-3.4.6-hardenednossp
 [7] i686-pc-linux-gnu-4.0.3 *
 [8] i686-pc-linux-gnu-4.1.1

...I didn't expect to compile [8]. I must have set my portage/package.* files 
up incorrectly[?] 

Any suggestions? Should I choose [8] now? If so, will I then have to re-emerge 
world and system?

Any suggestions appreciated.

TIA

-- 
 |\  /||   |  ~ ~  
 | \/ ||---|  `|` ?
 ||ichael  |   |iggins\^ /
 michael.higgins[at]evolone[dot]org
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Richard Fish

On 8/23/06, Arnau Bria <[EMAIL PROTECTED]> wrote:

Now, after reading mini how-to, I found I have no wiresahrk "binary":


You probably need to add the gtk useflag.  "echo
net-analyzer-wireshark gtk >>/etc/portage/package.use".  Otherwise you
just get the console version, tshark.

HTH,
-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emege -e system; emerge -e world and GCC4

2006-08-23 Thread Richard Fish

On 8/23/06, michael higgins <[EMAIL PROTECTED]> wrote:

I have a silly (I expect) question about the topic in the subject line. After (if and 
when?) this completes -- as I've had to "emerge --resume --skip-first" a bunch 
of times -- how will I be able to determine which packages failed so I may then attempt 
to emerge them individually (or remove them from world)?


Search the package database for packages installed more than X days
ago.  To find everything that was last installed more than 3 days ago,
you can use:

cd /var/db/pkg
find ./ -name "*.ebuild" -mtime +3


# gcc-config -l
 [1] i386-pc-linux-gnu-3.3.3
 [2] i686-pc-linux-gnu-3.4.6
 [3] i686-pc-linux-gnu-3.4.6-hardened
 [4] i686-pc-linux-gnu-3.4.6-hardenednopie
 [5] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [6] i686-pc-linux-gnu-3.4.6-hardenednossp
 [7] i686-pc-linux-gnu-4.0.3 *
 [8] i686-pc-linux-gnu-4.1.1

...I didn't expect to compile [8]. I must have set my portage/package.* files 
up incorrectly[?]


Um, oops.  4.0.3 is masked  by "missing keyword" for every arch except
~ia64.  Unless you have "-*" in  ACCEPT_KEYWORDS  or
/e/p/package.keywords, you should not have been able to install this.
FYI 4.1.1 is the current ~x86 version.

You should take a look at "emerge --info | grep KEYWORDS" and "grep
gcc /etc/portage/*".


Any suggestions? Should I choose [8] now? If so, will I then have to re-emerge 
world and system?


Considering that you just recompiled your system with a gcc version
that the gentoo devs consider to be broken for your archyes, yes,
and yes. :-(

Now that sounds rather doomsday-ish, it probably really just means
there are a lot of things in the tree that will not build with it, and
not that it produces broken binaries.  But it is better to be safe on
this one.

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



[gentoo-user] mod_security: apr_thread_create error, apache chroot not starting...

2006-08-23 Thread Jarry

Hi,

I'm trying to configure my apache to run in chroot using
mod_secure, following info on gentoo-wiki:
http://gentoo-wiki.com/Apache_chroot:_the_mod_security_way

After modifying my apache config and creating chroot
I tried to restart apache, but it is not running:

obelix ~ # /etc/init.d/apache2 restart
 * Caching service dependencies ...  [ ok ]
 * Stopping apache2 ...  [ ok ]
 * Starting apache2 ...  [ ok ]
obelix ~ # ps -e | grep apache


Then I found following erros in /var/log/apache2/error_log:

[Wed Aug 23 18:18:12 2006] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec2)
[Wed Aug 23 18:18:12 2006] [notice] mod_security: chroot checkpoint #1
(pid=3080 ppid=3077)
[Wed Aug 23 18:18:12 2006] [notice] Digest: generating secret for digest
authentication ...
[Wed Aug 23 18:18:12 2006] [notice] Digest: done
[Wed Aug 23 18:18:12 2006] [notice] mod_security: chroot checkpoint #2
(pid=3081 ppid=1)
[Wed Aug 23 18:18:12 2006] [notice] mod_security: chroot successful,
path=/chroot/apache
[Wed Aug 23 18:18:12 2006] [warn] pid file /var/run/apache2.pid
overwritten -- Unclean shutdown of previous Apache run?
[Wed Aug 23 18:18:12 2006] [notice] Apache configured -- resuming normal
operations
[Wed Aug 23 18:18:12 2006] [alert] (11)Resource temporarily unavailable:
apr_thread_create: unable to create worker thread
[Wed Aug 23 18:18:12 2006] [alert] (11)Resource temporarily unavailable:
apr_thread_create: unable to create worker thread
[Wed Aug 23 18:18:13 2006] [alert] (11)Resource temporarily unavailable:
apr_thread_create: unable to create worker thread
[Wed Aug 23 18:18:14 2006] [alert] No active workers found... Apache is
exiting!


What does it mean, and how can I fix it? I doublechecked
my configuration, I did it exactly as advised on
gentoo-wiki, and despite of that it is not working... :-(

Jarry

--
gentoo-user@gentoo.org mailing list



[gentoo-user] [OT] Servidor Web com HTML/URL reescrito

2006-08-23 Thread Daniel da Veiga

Totalmente OT, mas usuários Gentoo são uma das melhores fontes de
informação depois do Google :) em todo caso, me desculpem se deveria
ter postado em outro lugar...

Existe algum módulo para o Apache ou outro server que me permita,
através de um formulário, acessar uma página que é acessível pelo meu
servidor, mas não pelo meu cliente?

No caso, estou atrás de um squid que não permite HTTPS, e preciso
acessar uma página segura (não possuo acesso ao servidor squid),
pensei em instalar no meu Gentoo de casa um web server que
reescrevesse tanto o HTML como os forms para surfar HTTPS através do
computador de casa.

Eu andei pesquisando e achei, dentro do apache, diversos módulos e
configurações ligados a proxy reverso, mas não sei se entendi bem, é
disso que eu preciso?

Eu gostaria exatamente de algo que funcionasse como o site:
http://www.the-cloak.com

Isso existe ou vou ter que escrever meu próprio em PHP?

--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Richard Fish

On 8/23/06, Alan Mckinnon <[EMAIL PROTECTED]> wrote:

Incidentally, gcc cannot use itself to compile itself - that's
nonsensical and a classic bootstrap problem. It uses a binary (which
happens to be a gcc) to compile the source code for gcc which produces
another binary. That binary then compiles the same source for gcc to
produce yet another binary, etc, etc. For stage 1 to work at all, there
has to be a compiler available to compile a compiler, and that first
compiler that *must* be available is probably the compiler that the rest
of the system uses, or the one on the LiveCD. So if you want to be
pedantic about building gcc, then please be correctly pedantic and
pedantically correct :-)


Yes, I'm aware of how the bootstrapping process works.  And if we want
to be really pedantic about it, I'm still right, because the stage1
compiler that is built using the existing system compiler isn't called
gcc...hmm, what is it...xcc, xgcc...something with an x in it anyway!
So there is still no such thing as a "gcc built with the 'system
compiler'" :-P

More seriously, there is some really _stupid_ information about
upgrading gcc on the gentoo-wiki and forums that seems to crop up here
every few months, and it makes me really, really angry.  Stupid crap
like needing to "emerge -e system ; emerge -e system; emerge -e world;
emerge -e world".  Or needing to rebuild all binaries that link
against a library whenever you rebuild the library.  Or that you
should merge gcc twice because you want a version of gcc that is built
with the same version of gcc.  All of which is utter nonsense.

FYI, as Bo pointed out, I am _not_ saying that the emerge -e system
step is redundant.  I completely agree that "emerge -e system ; emerge
-e world" is the safe route for upgrading gcc.  I've been convinced of
that by the previous threads on this topic.

I was specifically replying to your comment: "Your current compiler
was built with -O3, and you want to rebuild the system using a
compiler compiled as -O2, hence the 2 step process."  This is very
much in the same line of thinking as those wiki pages and forum
postings, and is wrong.  Giving a newbie misinformation doesn't help
them in any way.

Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
or nothing, because all other -O options are replaced with -O2 by
toolchain.eclass.

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



[gentoo-user] Re: [OT] Servidor Web com HTML/URL reescrito

2006-08-23 Thread Daniel da Veiga

I'm really sorry, got the wrong address, it was supposed to go to
gentoo-user-br, anyway, I'll try to translate it for you people and
forward the original message to the right email.

This is completely OT.

I would like to access an HTTPS page using a server at my home machine
trough the squid server of my work place using some type of HTML form,
I would like to know if there's an apache module, or maybe another
software that would allow me to do this.

I've checked reverse proxy configurations for apache, but I'm not sure
if that's what I want, in fact, I want something similar to what's
done by:

http://www.the-cloak.com

If there's something already written, I would like to know, but if not
I'm going to write my own PHP for that. Thanks in advance.

--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Richard Fish

On 8/23/06, Alan Mckinnon <[EMAIL PROTECTED]> wrote:

Can you be absolutely certain I'm wrong? Can you absolutely guarantee
that a recompile with a different config MUST be treated differently to
an upgrade?


We are still talking about CFLAGS here, right?  Then ok, no, it is not
_necessary_ to treat this differently than an upgrade in gcc versions.
One can happily run "emerge -e system; emerge -e world" and get to
the same result.  But that doesn't change the fact that the emerge -e
system step is redundant _in this case_.

Why am I sure?  Because many ebuilds in the tree already replace -O3
or -Os with -O2, or add/remove -fsome-flag based on useflags and what
is known to break (or fix) something.  So on any Gentoo system, you
are practically guaranteed to have some binaries that are built with
different flags than the libraries they link against, and they all
play nicely together.  It is part of the standard C/C++ ABI that gcc
defines, and compiler flags must not have any effect on that.


As I see it the only difference I can count on is that the first just
happens to not involve a change in version number.


No change in version number means no change in ABI.


The only way you could guarantee that is if the gcc sources ignore
CFLAGS and other settings when compiling gcc in an effort to build a


Gcc is (almost) always built with -O2 on Gentoo, but it does not
matter anyway.  The CFLAGS that gcc is built with does not effect the
binaries it generates...only the code and the flags passed to gcc
during the compilation effect this.  If your model were correct, you
would need a gcc built with -Os for using -Os, a gcc built with "-Os
-fweb" for building with "-Os -fweb", "-O3" for building with -O3,
"-O3 -mmx" for ... and so on.

Think about this for a second.  What you are claiming here is that the
output of this bash script can depend upon what CFLAGS bash was built
with:

#!/bin/bash
echo -e "\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x21"

Admittedly a compiler is many orders of magnitude more complex than
this, but functionally the same.  Only the code and the options passed
to the compiler can effect its output.  Or to put another way, one
could write a C compiler in java, C#, python, or even shell script
that would support the exact same flags as gcc and generate the exact
same code.  They would almost certainly be much, much slower, but the
output would be the same.  It is identical in concept to changing the
flags that _gcc_ is built with...the gcc program itself changes
(hopefully gets faster), but the output remains the same.

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



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Stefan G. Weichinger
Richard Fish wrote:

> Gcc is (almost) always built with -O2 on Gentoo, but it does not
> matter anyway.  The CFLAGS that gcc is built with does not effect the
> binaries it generates...only the code and the flags passed to gcc
> during the compilation effect this.  If your model were correct, you
> would need a gcc built with -Os for using -Os, a gcc built with "-Os
> -fweb" for building with "-Os -fweb", "-O3" for building with -O3,
> "-O3 -mmx" for ... and so on.
> 
> Think about this for a second.  What you are claiming here is that the
> output of this bash script can depend upon what CFLAGS bash was built
> with:
> 
> #!/bin/bash
> echo -e "\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x21"
> 
> Admittedly a compiler is many orders of magnitude more complex than
> this, but functionally the same.  Only the code and the options passed
> to the compiler can effect its output.  Or to put another way, one
> could write a C compiler in java, C#, python, or even shell script
> that would support the exact same flags as gcc and generate the exact
> same code.  They would almost certainly be much, much slower, but the
> output would be the same.  It is identical in concept to changing the
> flags that _gcc_ is built with...the gcc program itself changes
> (hopefully gets faster), but the output remains the same.

I might be a newbie in terms of this list, but this is completely clear
to *me*.

Thanks anyway,
maybe this helps in getting this to the Howtos, the Wiki, etc.

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



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Michael Hennebry
On Wed, 23 Aug 2006, Richard Fish wrote:

> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
> or nothing, because all other -O options are replaced with -O2 by
> toolchain.eclass.

Since the OP wanted -Os, the question remains:
How, if at all, can he get -Os ?

-- 
Mike   [EMAIL PROTECTED]
"it stands to reason that they weren't always called the ancients."
  --  Daniel Jackson

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Wednesday 23 August 2006 22:22, Michael Hennebry wrote:
> > Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
> > or nothing, because all other -O options are replaced with -O2 by
> > toolchain.eclass.
>
> Since the OP wanted -Os, the question remains:
> How, if at all, can he get -Os ?

Assuming that the OP doesn't want a broken gcc he will probably be happy 
with -Os for the packages that doesn't break with it... ;)

-- 
Bo Andresen


pgpHV2wtQmQ8I.pgp
Description: PGP signature


Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Stefan G. Weichinger
Bo Ørsted Andresen wrote:
> On Wednesday 23 August 2006 22:22, Michael Hennebry wrote:
>>> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
>>> or nothing, because all other -O options are replaced with -O2 by
>>> toolchain.eclass.
>> Since the OP wanted -Os, the question remains:
>> How, if at all, can he get -Os ?
> 
> Assuming that the OP doesn't want a broken gcc he will probably be happy 
> with -Os for the packages that doesn't break with it... ;)

Being the OP in this case, I want to state that I didn't want "-Os for
all pkgs". I just decided to set "-Os" inside my CFLAGS, and I am
perfectly happy with any working gcc resulting from this.

This isn't only about control, this is also about trust:
I may control which settings to use for any pkg, but then I also have to
trust the decisions of the maintainers which choices they made for
individual pkgs (apart from overriding their settings, which somehow
questions the usage of portage IMO).

In fact, from my point of view, I am *allowed* to trust in this.

Stefan

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: [OT] Servidor Web com HTML/URL reescrito

2006-08-23 Thread Etaoin Shrdlu
On Wednesday 23 August 2006 21:11, Daniel da Veiga wrote:

> I've checked reverse proxy configurations for apache, but I'm not sure
> if that's what I want, in fact, I want something similar to what's
> done by:
>
> http://www.the-cloak.com
>
> If there's something already written, I would like to know, but if not
> I'm going to write my own PHP for that. Thanks in advance.

the-cloak mostly looks like an ordinary anonymizing proxy to me (except 
it uses encryption).
I'm not sure I understand your request correctly, but have you looked at 
proxytunnel (http://proxytunnel.sf.net)?
It lets you use nearly any service through an SSL-enabled proxy, it's in 
portage.
If you just want anonimity, try tor.

(it's entirely possible that I misunderstood your request)
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Tuesday 22 August 2006 05:18, Richard Fish wrote:
> Actually there is.  You can find all packages not compiled with -Os
> and rebuild them with something like:
>
> cd /var/db/pkg
> for pkg in */* ; do
>     grep -v -- "-Os" $pkg/CFLAGS >/dev/null
>     test $? -eq 0 && emerge --oneshot =$pkg
> done

Discussion further down this thread has made us aware that this will always 
make stuff like gcc, mozilla-firefox and openoffice become rebuilt despite 
that rebuilding them won't change their CFLAGS at all...

-- 
Bo Andresen


pgp2pi0Fm39Ld.pgp
Description: PGP signature


[gentoo-user] Neither klibc nor splashutils will emerge

2006-08-23 Thread Mick
Hi All,

I can't emerge either of these packages.  I have remerged gcc to no avail.  
How do I troubleshoot this?

These are the error messages for klibc:
=
 KLIBCAS klibc/syscalls/__reboot.o 
  KLIBCAS klibc/syscalls/sysinfo.o 
  KLIBCAS klibc/syscalls/klogctl.o 
  KLIBCAS klibc/syscalls/iopl.o 
  KLIBCAS klibc/syscalls/ioperm.o 
  KLIBCAS klibc/syscalls/vm86.o 
  KLIBCLD klibc/syscalls/syscalls.o 
make[1]: *** [all] Error 2 
make: *** [klibc] Error 2 

!!! ERROR: dev-libs/klibc-1.2.1-r2 failed. 
Call stack: 
  ebuild.sh, line 1539:   Called dyn_compile 
  ebuild.sh, line 939:   Called src_compile 
  klibc-1.2.1-r2.ebuild, line 138:   Called die 

!!! Compile failed!
=

and these for splashutils:
=
/usr/lib/klibc/include/linux/device.h: In function `dev_get_drvdata': 
/usr/lib/klibc/include/linux/device.h:348: error: dereferencing pointer to 
incomplete type 
/usr/lib/klibc/include/linux/device.h: In function `dev_set_drvdata': 
/usr/lib/klibc/include/linux/device.h:354: error: dereferencing pointer to 
incomplete type 
/usr/lib/klibc/include/linux/device.h: In function `device_is_registered': 
/usr/lib/klibc/include/linux/device.h:359: error: dereferencing pointer to 
incomplete type 
In file included from /usr/lib/klibc/include/linux/notifier.h:13, 
 from /usr/lib/klibc/include/linux/backlight.h:12, 
 from /usr/lib/klibc/include/linux/fb.h:4, 
 from kernel.c:16: 
/usr/lib/klibc/include/linux/mutex.h: At top level: 
/usr/lib/klibc/include/linux/mutex.h:51: error: field `wait_list' has 
incomplete type 
/usr/lib/klibc/include/linux/mutex.h:67: error: field `list' has incomplete 
type 
In file included from /usr/lib/klibc/include/linux/backlight.h:12, 
 from /usr/lib/klibc/include/linux/fb.h:4, 
 from kernel.c:16: 
/usr/lib/klibc/include/linux/notifier.h:47: error: field `rwsem' has 
incomplete type 
In file included from /usr/lib/klibc/include/linux/fb.h:4, 
 from kernel.c:16: 
/usr/lib/klibc/include/linux/backlight.h:47: error: field `sem' has incomplete 
type 
kernel.c: In function `handle_init': 
kernel.c:191: error: `MAX_NR_CONSOLES' undeclared (first use in this function) 
kernel.c: At top level: 
/usr/lib/klibc/include/linux/device.h:332: error: storage size of `dma_pools' 
isn't known 
/usr/lib/klibc/include/linux/device.h:338: error: storage size of `node' isn't 
known 
make: *** [kernel/kernel.o] Error 1 

!!! ERROR: media-gfx/splashutils-1.1.9.10-r1 failed. 
Call stack: 
  ebuild.sh, line 1539:   Called dyn_compile 
  ebuild.sh, line 939:   Called src_compile 
  splashutils-1.1.9.10-r1.ebuild, line 141:   Called die 

!!! failed to build splashutils
=

The reason I tried to remerge klibc was to solve the spashutils problem in the 
first instance, but now I'm stuck.  :(
-- 
Regards,
Mick


pgpPcIaKi0Dbz.pgp
Description: PGP signature


Re: [gentoo-user] Re: OT: A netbios-ssn blocking rule?

2006-08-23 Thread Daniel Iliev
James wrote:
>> Daniel Iliev  ilievnet.com> writes:
>> 
>
>
> My iptables based firewall seem to be working, However, I keep getting 
> triplets
> of this activity:
>
> curious.ip www.me.com tcp 2286 > netbios-ssn Seq=0 Len=0 MSS=1460
> www.me.com curious.ip tcp netbios-ssn > 2286 [RST, ACK] Seq=0 Ack=1 
>  Win=0 Len=0
>
> similar problem (2469 > microsoft-ds)
>  Other problems are (info section is only difference) epmap > 3081
>
>
>
>   
>> "iptables -A INPUT -p tcp --dport microsoft-ds -j DROP" ( < the packets
>> have destination the FW itself)
>> "iptables -A FORWARD -d *target-PC* -p tcp --dport microsoft-ds -j DROP"
>> ( < the packets have destination the "target-PC". )
>> 
>
>
> Your advice is working, beautiful
>
> Much Thanks!
>
>
> James
>
>
>
>   
I'm not sure if get this message right, but if it is a question how to
deal with packets like these:

>curious.ip www.me.com tcp 2286 > netbios-ssn Seq=0 Len=0 MSS=1460
>www.me.com curious.ip tcp netbios-ssn > 2286 [RST, ACK] Seq=0 Ack=1 

the answer is: Add the same rules, but replace "microsoft-ds" with 
"netbios-ssn" or the corresponding number from /etc/services. Those rules would 
look like:
"iptables -A INPUT -p tcp --dport netbios-ssn -j DROP"
 it's the same as:
"iptables -A INPUT -p tcp --dport 139 -j DROP"

And if the target is not the FW:
iptables -A FORWARD -d *target-PC* -p tcp --dport netbios-ssn -j DROP
or
iptables -A FORWARD -d *target-PC* -p tcp --dport 139 -j DROP


It seems that you want to stop the ms netbios activity. The ports used
for this service are 137,138,139 and 445 so the rule-set could be
something like this:

iptables -A FORWARD -d *target-PC* -p tcp --dport 445 -j DROP
iptables -A FORWARD -d *target-PC* -p tcp --dport 137:139 -j DROP

or 

iptables -A INPUT -p tcp --dport 445 -j DROP
iptables -A INPUT -p tcp --dport 137:139 -j DROP




-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Michael Hennebry
On Wed, 23 Aug 2006, Stefan G. Weichinger wrote:

> Bo Ørsted Andresen wrote:
> > On Wednesday 23 August 2006 22:22, Michael Hennebry wrote:
> >>> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
> >>> or nothing, because all other -O options are replaced with -O2 by
> >>> toolchain.eclass.

Perhaps I misunderstood the preceeding.
I'd taken it to mean that recompiling any package with gentoo tools
would result in -Os being replaced by  -O2 .

> >> Since the OP wanted -Os, the question remains:
> >> How, if at all, can he get -Os ?
> >
> > Assuming that the OP doesn't want a broken gcc he will probably be happy
> > with -Os for the packages that doesn't break with it... ;)

What would break with -Os that wouldn't break with -O2?
I was under the impression that both flags only allowed
changes that didn't affect the output.

> Being the OP in this case, I want to state that I didn't want "-Os for
> all pkgs". I just decided to set "-Os" inside my CFLAGS, and I am
> perfectly happy with any working gcc resulting from this.

A statement quoted above suggested to me that
you were unlikely to get -Os for anything.

> This isn't only about control, this is also about trust:
> I may control which settings to use for any pkg, but then I also have to
> trust the decisions of the maintainers which choices they made for
> individual pkgs (apart from overriding their settings, which somehow
> questions the usage of portage IMO).
>
> In fact, from my point of view, I am *allowed* to trust in this.

-- 
Mike   [EMAIL PROTECTED]
"it stands to reason that they weren't always called the ancients."
  --  Daniel Jackson


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Stefan G. Weichinger
Michael Hennebry wrote:

> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
> or nothing, because all other -O options are replaced with -O2 by
> toolchain.eclass.
> 
> Perhaps I misunderstood the preceeding.
> I'd taken it to mean that recompiling any package with gentoo tools
> would result in -Os being replaced by  -O2 .

AFAI understood the preceeding Richard wrote:

"on gentoo your optimization choices for gcc are ... "

I interpret this as:

emerge gcc with CFLAGS containing -Os
get gcc compiled with -O2

Not "any package", gcc (due to toolchain.eclass ...).

My way of seeing this, corrections welcome.

>> Being the OP in this case, I want to state that I didn't want "-Os for
>> all pkgs". I just decided to set "-Os" inside my CFLAGS, and I am
>> perfectly happy with any working gcc resulting from this.
> 
> A statement quoted above suggested to me that
> you were unlikely to get -Os for anything.

Earlier in this thread I went -O3, then -O2, now -Os ...
As I stated several times, I learn.

Greets, Stefan.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Wednesday 23 August 2006 23:48, Michael Hennebry wrote:
> > >>> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
   note 'choices for gcc' above ^
> > >>> or nothing, because all other -O options are replaced with -O2 by
> > >>> toolchain.eclass.
>
> Perhaps I misunderstood the preceeding.
> I'd taken it to mean that recompiling any package with gentoo tools
> would result in -Os being replaced by  -O2 .

I probably should have explained it better before. If you look at the gcc 
ebuild (/usr/portage/sys-devel/gcc/gcc-YOUR_VERSION.ebuild) you will note a 
line that says:

inherit toolchain

This inherits the toolchain.eclass for the gcc ebuild. In 
the /usr/portage/eclass/toolchain.eclass you will find the following:

# In general gcc does not like optimization, and add -O2 where
# it is safe.  This is especially true for gcc 3.3 + 3.4
replace-flags -O? -O2

This replaces -Os, -O3 or any other -O? with -O2. But it only applies to 
ebuilds that inherits the toolchain.eclass.

In conclusion in order to find out what packages don't use your CFLAGS you 
will either have to look at the ebuilds and any eclasses that they append or 
simply install it and look at the CFLAGS in the pkg database when it is 
installed:

# grep ^CFLAGS /etc/make.conf
CFLAGS="-O2 -march=pentium-m -pipe"

# cat /var/db/pkg/www-client/mozilla-firefox-1.5.0.6/CFLAGS
-march=pentium-m -pipe -Wno-return-type -w -freorder-blocks 
-fno-reorder-functions

As you can see the mozilla-firefox ebuild or any of it's eclasses has stripped 
any -O? CFLAGS entirely...

The following command should show you a complete list of packages that you 
have currently installed but which wasn't installed with your current CFLAGS:

# CFLAGS=$(source /etc/make.conf && echo "${CFLAGS}") ; \
grep -v "${CFLAGS//\-/\\-}" /var/db/pkg/*/*/CFLAGS

-- 
Bo Andresen


pgpAlYpbAPOat.pgp
Description: PGP signature


Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Thursday 24 August 2006 00:21, Bo Ørsted Andresen wrote:
> will either have to look at the ebuilds and any eclasses that they append

s/append/inherit/

-- 
Bo Andresen


pgpJ5logQmBhQ.pgp
Description: PGP signature


Re: [gentoo-user] initng or runit?

2006-08-23 Thread Daniel Iliev
Jerry McBride wrote:
> Would some kind soul save me a bit of research time? Which of the two 
> alternative init schemes are faster, initng or runit?
>
>
> Thank you in advance , Jerry
>   
I have tried initng several months ago. It rocks. It's several times
faster then the "normal" init. The problem at the time was there were no
scripts for everything I wanted to start automatically. So one day I
figured out that writing scripts and using faster init takes me more
time then using slower init which works with almost no maintenance. This
made me go back to the normal init. I have to say that while using
initng I noticed that many scripts were added for a relatively short
time. It is possible that now there are initng scripts for most of the
services one would ever use, but you have to check it out for yourself.

I can't say a word about "runit", because it's the first time I read
about it.

My next experiment for speeding the boot up will be fcache, but I'm
waiting for a proper mood to try it ( it means: "I'm too lazy" )


-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Richard Fish

On 8/23/06, Michael Hennebry <[EMAIL PROTECTED]> wrote:

Perhaps I misunderstood the preceeding.
I'd taken it to mean that recompiling any package with gentoo tools
would result in -Os being replaced by  -O2 .


Sorry if I wasn't clear.  I'm only referring to the build of gcc itself here.

To try and clarify, when you set CFLAGS in make.conf, you are really
telling portage what you would /like/ to use to build programs.  They
are, in effect, just the default settings.

A particular ebuild is allowed to remove, replace, or even add its own
flags as the maintainer of that package sees fit.  There are many
packages that do this, and gcc is one of them.


What would break with -Os that wouldn't break with -O2?
I was under the impression that both flags only allowed
changes that didn't affect the output.


No, the output *is* allowed to change based on -Os, -O2, or -O3.  This
is the entire point of optimizations, after all.  What is *not*
allowed to change is the ABI.

For example, glibc contains a very freqeuntly used function called
"printf".  Any program that wants to call printf needs to pass it
arguments to tell it what to print.  The method of passing those
arguments and the return value (such as the order of the arguments,
their alignment in memory, how the stack is managed, etc) is known as
an ABI (application binary interface).  And the ABI is not allowed to
change based on CFLAGS, or a program compiled with -O3 could have
trouble calling printf in a glibc compiled with -Os.

Now, the actual implementation of printf...how many processor
registers it uses, the order of the instructions within the function,
whether loops are expanded, how it calculates floating point numbers
(not really applicable to printf..but bear with me) etc...those things
are allowed to be changed by CFLAGS.

So when we talk about optimizations breaking code, we are talking
about the implementation of functions.  With unsafe flags, the
compiler can make bad choices in some cases like trying to use the
result of a calculation before the calculation is made, dereferencing
a memory address before the correct address is actually known, etc.

HTH,
-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Richard Fish

On 8/23/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:

Discussion further down this thread has made us aware that this will always
make stuff like gcc, mozilla-firefox and openoffice become rebuilt despite
that rebuilding them won't change their CFLAGS at all...


Um, yeah.  Definitely not perfect.  :-/

Maybe searching by mtime is better...

-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to properly change CFLAGS ?

2006-08-23 Thread Bo Ørsted Andresen
On Thursday 24 August 2006 00:54, Richard Fish wrote:
> On 8/23/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:
> > Discussion further down this thread has made us aware that this will
> > always make stuff like gcc, mozilla-firefox and openoffice become rebuilt
> > despite that rebuilding them won't change their CFLAGS at all...
>
> Um, yeah.  Definitely not perfect.  :-/
>
> Maybe searching by mtime is better...

In the case of the OP the best approach might be to simply grep for -O3. I at 
least don't have any packages installed that use -O3 when it isn't in the 
CFLAGS.

# emerge --verbose --ask --oneshot \
`grep -l "\-O3" /var/db/pkg/*/*/CFLAGS | cut -d'/' -f5-6 | sed -e 
's/^/=/'`

-- 
Bo Andresen


pgp8o42Cj7ROq.pgp
Description: PGP signature


Re: [gentoo-user] initng or runit?

2006-08-23 Thread Jerry McBride
On Wednesday 23 August 2006 18:42, Daniel Iliev wrote:
> Jerry McBride wrote:
> > Would some kind soul save me a bit of research time? Which of the two
> > alternative init schemes are faster, initng or runit?
> >
> >
> > Thank you in advance , Jerry
>
> I have tried initng several months ago. It rocks. It's several times
> faster then the "normal" init. The problem at the time was there were no
> scripts for everything I wanted to start automatically. So one day I
> figured out that writing scripts and using faster init takes me more
> time then using slower init which works with almost no maintenance. This
> made me go back to the normal init. I have to say that while using
> initng I noticed that many scripts were added for a relatively short
> time. It is possible that now there are initng scripts for most of the
> services one would ever use, but you have to check it out for yourself.
>
> I can't say a word about "runit", because it's the first time I read
> about it.
>
> My next experiment for speeding the boot up will be fcache, but I'm
> waiting for a proper mood to try it ( it means: "I'm too lazy" )
>

Hi Daniel,

Fcache works, but we didn't see the performance boost that going to initng 
gave. Since it requires it's very own ext3 partition to work, plus a kernel 
patch... we dropped it.  

Using initng is the ticket... Maybe the gentoo devs will directly support it 
or a variant someday...

Cheers, Jerry



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] initng or runit?

2006-08-23 Thread Jerry McBride
On Wednesday 23 August 2006 10:17, Hans-Werner Hilse wrote:
> Hi,

--snip--

>
> I'd like to add that gentoo's own /sbin/rc is not a feature of
> sysvinit. sysvinit is not *that* bad, after all. What has gone wild is
> the /etc/init.d style of doing things.
>

Amen! And a bottle neck of epic proportions.

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Missing icons in Evolution

2006-08-23 Thread Stefan Wimmer
* sdoma <[EMAIL PROTECTED]> [2006-08-23 17:26] :
>  Thanks, this was it. Where did you find this info? Why the normal user
>  doesn't have a clue about this? ... and meanly ... where are the
>  icons???
> 
>  Such issues is the main reason for me not to use GNOME.
> 
>  BTW: I didn't have the file ``~/.gtkrc-2.0'' at all.
> 
>> Hi Frank, 
>> 
>> no need to copy the icons since they are still there ;-)
>> 
>> Just do 
>> 
>>   echo "gtk-icon-theme-name=\"gnome\"" >> ~/.gtkrc-2.0
>> 
>> and the icons should be back again.
>> 
>> But please keep in mind that this file will be overwritten when you use 
>> something like gtk-theme-switch to change settings!!!
>> 

A simple search for "evolution icons" in the gentoo forums revealed me this:

  http://forums.gentoo.org/viewtopic-t-461365.html

There you find the solution I told you before ...

In the bug-entry at bugs.gentoo.org which Richard Fish brought to info you'll 
find an even better solution: 

  echo 'include "/home//.gtkrc.mine"' >> ~/.gtkrc-2.0
  echo 'gtk-icon-theme-name="gnome"' >> ~/.gtkrc.mine

Then it will not be overwritten if you change themes or fonts ...

Greetz
Stefan

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] initng or runit?

2006-08-23 Thread Daniel Iliev
Jerry McBride wrote:
> On Wednesday 23 August 2006 18:42, Daniel Iliev wrote:
>   
>> Jerry McBride wrote:
>> 
>>> Would some kind soul save me a bit of research time? Which of the two
>>> alternative init schemes are faster, initng or runit?
>>>
>>>
>>> Thank you in advance , Jerry
>>>   
>> I have tried initng several months ago. It rocks. It's several times
>> faster then the "normal" init. The problem at the time was there were no
>> scripts for everything I wanted to start automatically. So one day I
>> figured out that writing scripts and using faster init takes me more
>> time then using slower init which works with almost no maintenance. This
>> made me go back to the normal init. I have to say that while using
>> initng I noticed that many scripts were added for a relatively short
>> time. It is possible that now there are initng scripts for most of the
>> services one would ever use, but you have to check it out for yourself.
>>
>> I can't say a word about "runit", because it's the first time I read
>> about it.
>>
>> My next experiment for speeding the boot up will be fcache, but I'm
>> waiting for a proper mood to try it ( it means: "I'm too lazy" )
>>
>> 
>
> Hi Daniel,
>
> Fcache works, but we didn't see the performance boost that going to initng 
> gave. Since it requires it's very own ext3 partition to work, plus a kernel 
> patch... we dropped it.  
>
> Using initng is the ticket... Maybe the gentoo devs will directly support it 
> or a variant someday...
>
> Cheers, Jerry
>
>
>
>   
Thanks, Jerry

I appreciate this info about fcache. Now I have a good idea of what I
have to expect.
I've got some unpartitioned space and nothing prevents me to do some
tests. The only question that I have is how much space does fcache need?

BTW, the "ck-sources", which can be found in the portage comes with
several performance related patches. Emerge automatically applies these
patches and fcache is among them.

-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: OT: A netbios-ssn blocking rule?

2006-08-23 Thread Daniel Iliev
gentuxx wrote:
> Actually, some of those ports are UDP.  /etc/services says the same for
> both TCP and UDP.  So if -p is required for --dport, you would have to
> add rules for UDP as well.
>
> iptables -A FORWARD -d *target-PC* -p udp --dport 137:139 -j DROP
> iptables -A INPUT -p udp --dport 137:139 -j DROP
>

gentuxx, I'm not 100% sure about this, but I think MS NetBIOS doesn't
use UDP (only TCP). However theoretically you are absolutely right.

--
Best Regards,
Daniel
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Little OT: Real transparency of terminal windows ?

2006-08-23 Thread Meino Christian Cramer
Hi,

 a longer time ago I read about terminal emulators, which claimed to
 have "transparency" enabled. I tried them but found, that this
 "transparency" was only a copy of the background. Moving the window
 around shows, that it was not real transparent.

 Is there any terminal emulator available, which offers real
 transparency and/or need I to tweak some X11 settings to achieve this
 effekt ?

 Kind regards and thank you very much fro any help in advance,
 mcc



 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to create a LiveCD with madwifi and wpa_supplicant support?

2006-08-23 Thread Nick Rout
On Tue, 22 Aug 2006 11:02:01 +0200
"Johan Tibell" <[EMAIL PROTECTED]> wrote:

> I would like to create a custom LiveCD which is identical to the x86
> 2006.0 one but includes the latest madwifi (madwifi-ng?) and
> wpa_supplicant ebuilds so my WLAN works out-of-the-box when I boot
> using it. What would be the simplest way to achieve this? lspci
> reports that my WLAN card is a:
> 
> :02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212
> 802.11abg NIC (rev 03)
> 
> Thanks in advance,
> 
> Johan
> -- 
> gentoo-user@gentoo.org mailing list

Check out catalyst, it is the tool the devs use to build a cd. The .spec 
(config) files are in gentoo's cvs, and probably elsewhere as well. It takes a 
while to build a cd as it installs a system image and then builds the cd from 
that.

You'll need to change the .spec file to get it to build the packages you want. 

You should emerge catalyst with the dos USE flag to get the samples.

There are easier ways to make a custom boot cd, slax springs to mind: 
http://www.slax.org/ However that will not get you the gentoo install packages 
onto the cd. It should get you a bootable cd from which you can do the usual 
gentoo install from.

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



Re: [gentoo-user] Greylisting vs. reject_rbl_client

2006-08-23 Thread Nick Rout
On Mon, 21 Aug 2006 20:28:16 -0700
Grant <[EMAIL PROTECTED]> wrote:

> Would it be OK to remove the following aliases since I never use them:
> 
> # Well-known aliases -- these should be filled in!
> root:   grant
> operator:   grant
> 
> # Standard RFC2142 aliases
> abuse:  grant
> ftp:grant
> hostmaster: grant
> news:   grant
> noc:grant
> security:   grant
> usenet: grant
> uucp:   grant
> webmaster:  grant
> www:grant

Don't remove the root one, some packages send emails to their owner, and if 
they are (for example) privileged daemons the message will go to root. It needs 
to be pointed elsewhere.

The others, I am not sure. You probably should have an abuse address and a 
postmaster address, other than that I am not sure what the custom is or what 
the rfc's say about what email accounts are expected in a domain. Don't forget 
that your web server (if you have one) may deliver pages that say to contact a 
certain mail address in the event of problems, obviously that address should be 
available.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Neither klibc nor splashutils will emerge

2006-08-23 Thread Mick
Any ideas at all, please?

On Wednesday 23 August 2006 22:11, Mick wrote:
> Hi All,
>
> I can't emerge either of these packages.  I have remerged gcc to no avail.
> How do I troubleshoot this?
>
> These are the error messages for klibc:
> =
>  KLIBCAS klibc/syscalls/__reboot.o
>   KLIBCAS klibc/syscalls/sysinfo.o
>   KLIBCAS klibc/syscalls/klogctl.o
>   KLIBCAS klibc/syscalls/iopl.o
>   KLIBCAS klibc/syscalls/ioperm.o
>   KLIBCAS klibc/syscalls/vm86.o
>   KLIBCLD klibc/syscalls/syscalls.o
> make[1]: *** [all] Error 2
> make: *** [klibc] Error 2
>
> !!! ERROR: dev-libs/klibc-1.2.1-r2 failed.
> Call stack:
>   ebuild.sh, line 1539:   Called dyn_compile
>   ebuild.sh, line 939:   Called src_compile
>   klibc-1.2.1-r2.ebuild, line 138:   Called die
>
> !!! Compile failed!
> =
>
> and these for splashutils:
> =
> /usr/lib/klibc/include/linux/device.h: In function `dev_get_drvdata':
> /usr/lib/klibc/include/linux/device.h:348: error: dereferencing pointer to
> incomplete type
> /usr/lib/klibc/include/linux/device.h: In function `dev_set_drvdata':
> /usr/lib/klibc/include/linux/device.h:354: error: dereferencing pointer to
> incomplete type
> /usr/lib/klibc/include/linux/device.h: In function `device_is_registered':
> /usr/lib/klibc/include/linux/device.h:359: error: dereferencing pointer to
> incomplete type
> In file included from /usr/lib/klibc/include/linux/notifier.h:13,
>  from /usr/lib/klibc/include/linux/backlight.h:12,
>  from /usr/lib/klibc/include/linux/fb.h:4,
>  from kernel.c:16:
> /usr/lib/klibc/include/linux/mutex.h: At top level:
> /usr/lib/klibc/include/linux/mutex.h:51: error: field `wait_list' has
> incomplete type
> /usr/lib/klibc/include/linux/mutex.h:67: error: field `list' has incomplete
> type
> In file included from /usr/lib/klibc/include/linux/backlight.h:12,
>  from /usr/lib/klibc/include/linux/fb.h:4,
>  from kernel.c:16:
> /usr/lib/klibc/include/linux/notifier.h:47: error: field `rwsem' has
> incomplete type
> In file included from /usr/lib/klibc/include/linux/fb.h:4,
>  from kernel.c:16:
> /usr/lib/klibc/include/linux/backlight.h:47: error: field `sem' has
> incomplete type
> kernel.c: In function `handle_init':
> kernel.c:191: error: `MAX_NR_CONSOLES' undeclared (first use in this
> function) kernel.c: At top level:
> /usr/lib/klibc/include/linux/device.h:332: error: storage size of
> `dma_pools' isn't known
> /usr/lib/klibc/include/linux/device.h:338: error: storage size of `node'
> isn't known
> make: *** [kernel/kernel.o] Error 1
>
> !!! ERROR: media-gfx/splashutils-1.1.9.10-r1 failed.
> Call stack:
>   ebuild.sh, line 1539:   Called dyn_compile
>   ebuild.sh, line 939:   Called src_compile
>   splashutils-1.1.9.10-r1.ebuild, line 141:   Called die
>
> !!! failed to build splashutils
> =
>
> The reason I tried to remerge klibc was to solve the spashutils problem in
> the first instance, but now I'm stuck.  :(

-- 
Regards,
Mick


pgp0ikWoPELsu.pgp
Description: PGP signature


Re: [gentoo-user] Re: Neither klibc nor splashutils will emerge

2006-08-23 Thread Donnie Berkholz
Mick wrote:
> Any ideas at all, please?

Tried bugs.gentoo.org? If you don't find it there yet, file a new bug.

Thanks,
Donnie



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Neither klibc nor splashutils will emerge

2006-08-23 Thread Richard Fish

On 8/23/06, Mick <[EMAIL PROTECTED]> wrote:

Any ideas at all, please?


I'm pretty sure both of these require configured kernel sources.  They
should have checks for this, but I guess those checks could be
confused.  Does /usr/src/linux point to a configured kernel?  Are you
using the "symlink" use flag?  (which could be the culprit in this
case)

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