Re: [gentoo-user] Kgamma 4.6.3 fails prepare phase

2011-05-09 Thread Mick
On Sunday 08 May 2011 23:24:21 Dale wrote:
 john wrote:
  Weather widgets running fine here:-
  Namely LCD Weather Station and Weather Station . I have only have ever
  run kde 4-6.2 and 4.6-3 so perhaps there is a problem upgrading from
  previous versions.
  
  Great widgets. Not sure what a Molar Mass Calculator does? Perhaps
  weighs your teeth??
 
 Do you use noaa stations or something else?  I can't get noaa stations
 to show up.  It worked with 4.6.1 tho.

If it worked before it ought to work now too.  Compare the contents of your 
previous ~/.kde4/share/config/plasma-desktop-appletsr with what you have now 
and adjust the lines that point to the NOAA RSS feed accordingly.

If it still doesn't work, then you've discovered a bug.
-- 
Regards,
Mick


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


Re: [gentoo-user] scanner CanoScan LiDE210

2011-05-09 Thread pat
On Sun, 8 May 2011 23:28:39 +0100, Neil Bothwick wrote
 On Mon, 9 May 2011 00:17:42 +0200, pat wrote:
 
  I've bought USB scanner CanoScan LiDE210 which is listed with status
  complete on sane-project. The driver backend name is genesys.
  
  I've followed the instructions on [1]. The sane-find-device -q finds
  my scanner as:
  found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan],
  chip=GL848+) at libusb:002:006
  
  But when trying to use xsane or scanimage -L ends with information
  that there's not a scanner device.
 
 What happens when you run scanimage -L as root? When I've seen this
 problem before, it was caused by permissions in /dev/usb.
 

Hi,

Nothing :-( Same output as for user: No scanners were identified. If you were
expecting something different, check that the scanner is plugged in, turned on
and detected by the sane-find-scanner tool (if appropriate). Please read the
documentation which came with this software (README, FAQ, manpages).

 Pat



Freehosting PIPNI - http://www.pipni.cz/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Nils Andresen
Hi,
have you tried /bin/bash -x your.script.sh - see what get's expanded ?

Nils

2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.




Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
yes, you are right.

+ curl_opts='-x '\'''\'''

the -x '' expands to too many quotes. I tried to replace the
double-quotes to single-quotes, but still not working.

any idea how to fix this?


On Mon, May 9, 2011 at 2:43 PM, Nils Andresen n...@nils-andresen.de wrote:
 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Kfir Lavi
On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils


 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
- curl_opts=-x ''
+ curl_opts=-x 

Run your program with bash -x as Nils said, and you will see the expansion.

Kfir


Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
yes, i use the '-x' option, and i can see the expansion now. and i
found there are too many quotes.

i tried curl_opts=-x , does not work.


On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
 - curl_opts=-x ''
 + curl_opts=-x 

 Run your program with bash -x as Nils said, and you will see the expansion.

 Kfir




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] Kgamma 4.6.3 fails prepare phase

2011-05-09 Thread Dale

Mick wrote:

On Sunday 08 May 2011 23:24:21 Dale wrote:
   

john wrote:
 

Weather widgets running fine here:-
Namely LCD Weather Station and Weather Station . I have only have ever
run kde 4-6.2 and 4.6-3 so perhaps there is a problem upgrading from
previous versions.

Great widgets. Not sure what a Molar Mass Calculator does? Perhaps
weighs your teeth??
   

Do you use noaa stations or something else?  I can't get noaa stations
to show up.  It worked with 4.6.1 tho.
 

If it worked before it ought to work now too.  Compare the contents of your
previous ~/.kde4/share/config/plasma-desktop-appletsr with what you have now
and adjust the lines that point to the NOAA RSS feed accordingly.

If it still doesn't work, then you've discovered a bug.
   


I don't have the previous one tho.  At least I don't think I do.  I have 
a backup but I think I have updated it already.  I'll check just in case 
tho.


The thing is, when I type in my location and click search, it returns my 
location but the service is wettercom not noaa.  Apparently wettercom 
doesn't actually have info for my location.  It just thinks it does.


I did a google search and it is a known problem.  I found others talking 
about it.  So, it's not just me.


Dale

:-)  :-)



Re: [gentoo-user] scanner CanoScan LiDE210

2011-05-09 Thread Neil Bothwick
On Mon, 9 May 2011 08:41:04 +0200, pat wrote:

 Nothing :-( Same output as for user: No scanners were identified. If
 you were expecting something different, check that the scanner is
 plugged in, turned on and detected by the sane-find-scanner tool (if
 appropriate). Please read the documentation which came with this
 software (README, FAQ, manpages).

An update to sane-backends appeared when I updated today. This adds
entries for the LiDE210 to genesys.conf, so updating to 1.0.22 may solve
this for you.


-- 
Neil Bothwick

There is never enough beer, sex or disk space!


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
if i use -x '', or -x , it expands to -x. the quotes are removed as
they are empty.

if i use -x \'\', the expanded quotes are quoted again...resulting too
many quotes

it is driving me crazy o_O! please help.


On Mon, May 9, 2011 at 4:14 PM, Xi Shen davidshe...@googlemail.com wrote:
 yes, i use the '-x' option, and i can see the expansion now. and i
 found there are too many quotes.

 i tried curl_opts=-x , does not work.


 On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
 - curl_opts=-x ''
 + curl_opts=-x 

 Run your program with bash -x as Nils said, and you will see the expansion.

 Kfir




 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] scanner CanoScan LiDE210

2011-05-09 Thread Joost Roeleveld
On Monday 09 May 2011 08:41:04 pat wrote:
 On Sun, 8 May 2011 23:28:39 +0100, Neil Bothwick wrote
 
  On Mon, 9 May 2011 00:17:42 +0200, pat wrote:
   I've bought USB scanner CanoScan LiDE210 which is listed with status
   complete on sane-project. The driver backend name is genesys.
   
   I've followed the instructions on [1]. The sane-find-device -q
   finds
   my scanner as:
   found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan],
   chip=GL848+) at libusb:002:006
   
   But when trying to use xsane or scanimage -L ends with
   information
   that there's not a scanner device.
  
  What happens when you run scanimage -L as root? When I've seen this
  problem before, it was caused by permissions in /dev/usb.
 
 Hi,
 
 Nothing :-( Same output as for user: No scanners were identified. If you
 were expecting something different, check that the scanner is plugged in,
 turned on and detected by the sane-find-scanner tool (if appropriate).
 Please read the documentation which came with this software (README, FAQ,
 manpages).
 

Do you have the correct driver included on your system and enabled in 
/etc/sane.d/dll.conf ?

Any messages in dmesg?

--
Joost



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Pandu Poluan
(Forgive my top-posting)

try:

curl_opts=-x \'\'

Rgds,


On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:
 yes, i use the '-x' option, and i can see the expansion now. and i
 found there are too many quotes.

 i tried curl_opts=-x , does not work.


 On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de
 wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
 - curl_opts=-x ''
 + curl_opts=-x 

 Run your program with bash -x as Nils said, and you will see the
 expansion.

 Kfir




 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Pandu Poluan
(Again, sorry for top-posting)

BTW, there are lots of bash gurus in stackovervlow.com. My handle
there is 'pepoluan'.

Rgds,


On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:
 It is not specific to Gentoo. But do not know where to search or post it :)

 My script looks like:

 url=http://mypage;
 curl_opts=-x ''
 curl $url -d \mydata\ $curl_opts

 If I execute it, I got an error from curl, saying it cannot resolve
 the proxy ''.

 But If I modify the script to:

 url=http://mypage;
 curl $url -d \mydata\ -x ''

 It works fine.

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.


 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
i tried that already. not working. i will try the stackoverflow.com. thanks


On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info wrote:
 (Again, sorry for top-posting)

 BTW, there are lots of bash gurus in stackovervlow.com. My handle
 there is 'pepoluan'.

 Rgds,


 On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:
 It is not specific to Gentoo. But do not know where to search or post it :)

 My script looks like:

 url=http://mypage;
 curl_opts=-x ''
 curl $url -d \mydata\ $curl_opts

 If I execute it, I got an error from curl, saying it cannot resolve
 the proxy ''.

 But If I modify the script to:

 url=http://mypage;
 curl $url -d \mydata\ -x ''

 It works fine.

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.


 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




 --
 --
 Pandu E Poluan - IT Optimizer
 My website: http://pandu.poluan.info/





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Kfir Lavi
On Mon, May 9, 2011 at 12:00 PM, Xi Shen davidshe...@googlemail.com wrote:

 i tried that already. not working. i will try the stackoverflow.com.
 thanks


 On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info wrote:
  (Again, sorry for top-posting)
 
  BTW, there are lots of bash gurus in stackovervlow.com. My handle
  there is 'pepoluan'.
 
  Rgds,
 
 
  On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:
  It is not specific to Gentoo. But do not know where to search or post it
 :)
 
  My script looks like:
 
  url=http://mypage;
  curl_opts=-x ''
  curl $url -d \mydata\ $curl_opts
 
  If I execute it, I got an error from curl, saying it cannot resolve
  the proxy ''.
 
  But If I modify the script to:
 
  url=http://mypage;
  curl $url -d \mydata\ -x ''
 
  It works fine.
 
  I guess there's something wrong with the argument expansion. Just do
  not know how to fix it. Please help.
 
 
  --
  Best Regards,
  Xi Shen (David)
 
  http://twitter.com/davidshen84/
 
 
 
 
  --
  --
  Pandu E Poluan - IT Optimizer
  My website: http://pandu.poluan.info/
 
 



 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/

 I have replied you before.
What I have sent you is the solution to your problems.
Try to run what I told you.
I ran it successfully on my comp.
curl_opts=-x 

Kfir


Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Alex Schuster
Kfir Lavi writes:

 On Mon, May 9, 2011 at 12:00 PM, Xi Shen davidshe...@googlemail.com
 wrote:

  On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info wrote:

   On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:

   My script looks like:
   
   url=http://mypage;
   curl_opts=-x ''
   curl $url -d \mydata\ $curl_opts
   
   If I execute it, I got an error from curl, saying it cannot resolve
   the proxy ''.
   
   But If I modify the script to:
   
   url=http://mypage;
   curl $url -d \mydata\ -x ''
   
   It works fine.
   
   I guess there's something wrong with the argument expansion. Just do
   not know how to fix it. Please help.

Do as you tried first, but add an eval:
eval curl $url -d \mydata\ $curl_opts

  I have replied you before.
 
 What I have sent you is the solution to your problems.
 Try to run what I told you.
 I ran it successfully on my comp.
 curl_opts=-x 

This gives a command not found error, as bash tries to execute the empty 
command . Are you using another shell?

Wonko



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread JDM
He

--Original Message--
From: Alex Schuster
To: gentoo-user@lists.gentoo.org
ReplyTo: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] bash script error
Sent: 9 May 2011 11:36

Kfir Lavi writes:

 On Mon, May 9, 2011 at 12:00 PM, Xi Shen davidshe...@googlemail.com
 wrote:

  On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info wrote:

   On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:

   My script looks like:
   
   url=http://mypage;
   curl_opts=-x ''
   curl $url -d \mydata\ $curl_opts
   
   If I execute it, I got an error from curl, saying it cannot resolve
   the proxy ''.
   
   But If I modify the script to:
   
   url=http://mypage;
   curl $url -d \mydata\ -x ''
   
   It works fine.
   
   I guess there's something wrong with the argument expansion. Just do
   not know how to fix it. Please help.

Do as you tried first, but add an eval:
eval curl $url -d \mydata\ $curl_opts

  I have replied you before.
 
 What I have sent you is the solution to your problems.
 Try to run what I told you.
 I ran it successfully on my comp.
 curl_opts=-x 

This gives a command not found error, as bash tries to execute the empty 
command . Are you using another shell?

Wonko



Sent from my BlackBerry® wireless device

Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Kfir Lavi
On Mon, May 9, 2011 at 1:36 PM, Alex Schuster wo...@wonkology.org wrote:

 Kfir Lavi writes:

  On Mon, May 9, 2011 at 12:00 PM, Xi Shen davidshe...@googlemail.com
  wrote:

   On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info
 wrote:

On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:

My script looks like:
   
url=http://mypage;
curl_opts=-x ''
curl $url -d \mydata\ $curl_opts
   
If I execute it, I got an error from curl, saying it cannot resolve
the proxy ''.
   
But If I modify the script to:
   
url=http://mypage;
curl $url -d \mydata\ -x ''
   
It works fine.
   
I guess there's something wrong with the argument expansion. Just do
not know how to fix it. Please help.

 Do as you tried first, but add an eval:
 eval curl $url -d \mydata\ $curl_opts

   I have replied you before.
 
  What I have sent you is the solution to your problems.
  Try to run what I told you.
  I ran it successfully on my comp.
  curl_opts=-x 

 This gives a command not found error, as bash tries to execute the empty
 command . Are you using another shell?

Wonko

 Sorry,
I have put www.google.com in th url, so got the page, and didn't notice the
error. hehe

Kfir


Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread BRM
Well, I saw a lot of advice on this but no real solution - just some debugging 
help.

At least from my own experience with Bash Scripting, I find that you can never 
use enough braces when referencing variables.

So, the script should read:

url=http://mypage;
curl_opts=-x
curl ${url} -d \mydata\ ${curl_opts}


I would probably even go one further and use quotes in the final line as well, 
thus producing:

curl ${url}-d \mydata\ ${curl_opts}

Please note that the single and double quotes have meanings as far as expansion.

Also, the guys on IRC (#bash) are quite helpful - a great resource in addition 
to 'man bash'.

$0.02

Ben


- Original Message 
 From: Xi Shen davidshe...@googlemail.com
 To: gentoo-user gentoo-user@lists.gentoo.org
 Sent: Mon, May 9, 2011 1:44:58 AM
 Subject: [gentoo-user] [OT] bash script error
 
 It is not specific to Gentoo. But do not know where to search or post it  :)
 
 My script looks like:
 
 url=http://mypage;
 curl_opts=-x  ''
 curl $url -d \mydata\ $curl_opts
 
 If I execute it, I got an error  from curl, saying it cannot resolve
 the proxy ''.
 
 But If I modify the  script to:
 
 url=http://mypage;
 curl $url -d \mydata\ -x ''
 
 It works  fine.
 
 I guess there's something wrong with the argument expansion. Just  do
 not know how to fix it. Please help.
 
 
 -- 
 Best Regards,
 Xi  Shen (David)
 
 http://twitter.com/davidshen84/
 
 



Re: [gentoo-user] QA Notice: libdialog.la appears to contain PORTAGE_TMPDIR paths

2011-05-09 Thread Rafael Barrera Oro
I can't believe it!!!

Since the purpose of the whole installation was to start using a machine
that has been abandoned for some time i paid no attention to a CMOS alert
that came up on the screen the first time i turned it on, shrugging it off
as one more error message of a machine aproaching the end of its useful
life. After reading your responses i went straight to the CMOS clock and,
non surprisingly, it was not set correctly, i corrected the time and date
and the weird errors dissapeared.

I can't say i fully understand why the unset clock caused this but i do can
say that this was a tough one and never would have figured it out without
your expertise, so thanks, much obliged

Considering the confusing nature of the error and the easyness which it is
fixed with, should'n it be in a faq or something?

truly yours

Rafael


2011/5/6 Mick michaelkintz...@gmail.com

 On Friday 06 May 2011 19:57:36 Kevin McCarthy wrote:
  On Fri, May 06, 2011 at 03:25:31PM -0300, Rafael Barrera Oro wrote:
   2011/5/6 Kevin McCarthy sign...@gentoo.org
  
On Fri, May 06, 2011 at 01:45:01PM -0300, Rafael Barrera Oro wrote:
 Attached to this message are the contents of the afforementioned
 file, thanks for the help!!!
 
  This seems like cause for alarm:
Unpacking source...
Unpacking dialog-1.1-20100428.tgz to
/var/tmp/portage/dev-util/dialog-1.1.20100428/work
  
   tar: dialog-1.1-20100428/aclocal.m4: time stamp 2010-04-28 17:36:28 is
   252636716.880100597 s in the future
 
  Something is definitely wrong with your clock.
 
  Then we have this:
Source configured.
Compiling source in
   
 /var/tmp/portage/dev-util/dialog-1.1.20100428/work/dialog-1.1-201004
28 ...
  
   make
   make: Warning: File `trace.c' has modification time 2.4e+08 s in the
   future
 
  Here is the libtool link from the compile phase. It looks correct, but
 
  notice that it warns you about the clock problems:
   libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o
   .libs/dialog .libs/dialog.o
  
 -L/var/tmp/portage/dev-util/dialog-1.1.20100428/work/dialog-1.1-20100428
  
 /var/tmp/portage/dev-util/dialog-1.1.20100428/work/dialog-1.1-20100428/.
   libs/libdialog.so -L/usr/lib -lncursesw -lm make: warning:  Clock skew
   detected.  Your build may be incomplete.
  
Source compiled.
Test phase [not enabled]: dev-util/dialog-1.1.20100428
 
  Then in the install phase, you will see that make can't figure out what
  is up-to-date (because the clock is off) so it decides everything needs
  to be rebuilt.
 
Install dialog-1.1.20100428 into
/var/tmp/portage/dev-util/dialog-1.1.20100428/image/ category
dev-util
 
  ---8---SNIP---8---
 
   make: Warning: File `trace.c' has modification time 2.4e+08 s in the
   future /usr/bin/libtool --tag=CC  --mode=compile i686-pc-linux-gnu-gcc
   -O2 -march=i686 -pipe  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
   -I/usr/include/ncursesw -D_XOPEN_SOURCE_EXTENDED -DHAVE_CONFIG_H -I.
 -I.
   -DLOCALEDIR=\/usr/share/locale\ -c trace.c
 
  In the install phase, DESTDIR is set to the PORTAGE_TEMP directory and
  libtool is called with -rpath set to the temp dir. This is what's
  causing the QA warning. The problem is that we aren't supposed to be
 
  building anything at this point. It is the INSTALL phase after all:
   /usr/bin/libtool --tag=CC  --mode=link i686-pc-linux-gnu-gcc -rpath
   /var/tmp/portage/dev-util/dialog-1.1.20100428/image//usr/lib
   -version-info `cut -f1 ./VERSION`   -Wl,-O1 -Wl,--as-needed -o
   libdialog.la trace.lo rc.lo calendar.lo fselect.lo timebox.lo
 formbox.lo
   guage.lo pause.lo progressbox.lo tailbox.lo mixedform.lo mixedgauge.lo
   arrows.lo buttons.lo checklist.lo columns.lo dlg_keys.lo editbox.lo
   inputbox.lo inputstr.lo menubox.lo mouse.lo mousewget.lo msgbox.lo
   textbox.lo ui_getc.lo util.lo version.lo yesno.lo -L/usr/lib -lncursesw
   -lm
 
  So, the short of it is that you need to fix your clock. It needs to be
  set reasonably close to the actual time and the timezone needs to be set
  correctly as well. You might also look into net-misc/ntp to set the
  clock from the network.
 
  If your clock is set correctly, there's something horribly wrong and it
  will require additional troubleshooting.

  O_O

 Thanks for an excellent and very educational explanation!  I don't think
 I've
 come across anything like this clock skew generated problem before.  I'll
 know
 what to look for in the future.

 The OP may also want to check out chrony in case he's using a laptop.
 --
 Regards,
 Mick



Re: [gentoo-user] QA Notice: libdialog.la appears to contain PORTAGE_TMPDIR paths

2011-05-09 Thread Kevin McCarthy
On Mon, May 09, 2011 at 10:44:10AM -0300, Rafael Barrera Oro wrote:
 
 Considering the confusing nature of the error and the easyness which it is
 fixed with, should'n it be in a faq or something?
 

Well, I suppose the handbook could be changed to explain that no only do
you have to set the timezone and UTC/local settings for you clock, but
you also have to make sure it is set. Unfortunately, adding this
specific problem to a FAQ is problematic because there are dozens of
errors and problems that can come from a mis-set clock. It would be
difficult to cover them all.

-- 
Kevin McCarthy sign...@gentoo.org



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Kevin McCarthy
On Mon, May 09, 2011 at 01:44:58PM +0800, Xi Shen wrote:
 It is not specific to Gentoo. But do not know where to search or post it :)
 
 My script looks like:
 
 url=http://mypage;
 curl_opts=-x ''
 curl $url -d \mydata\ $curl_opts
 
 If I execute it, I got an error from curl, saying it cannot resolve
 the proxy ''.
 

While bash arrays probably aren't required for this, the following seems
to work OK:

curl_opts=(-x )
curl $url -d \mydata\ ${curl_opts[@]}

But I'm sure there's a quotes-only solution, too. 

-- 
Kevin McCarthy sign...@gentoo.org



Re: [gentoo-user] Cmdline image resizer understanding gamma ?

2011-05-09 Thread Sebastian Pipping
On 05/06/2011 05:06 AM, Kfir Lavi wrote:
 What about using gimp in scripting mode?

I've been working on a pygimp-based plugin for the GIMP yesterday.

It's a bit slow but it does the job, and comes with a simple GUI [1].
After running

  # sudo layman -a betagarden
  # sudo emerge -av media-plugins/gimp-imagescaler

you should find an item

  Scale Image with correct Gamma...

at the bottom of the Image menu as seen on [2].
The sources are up at [3].

Best,



Sebastian


[1] https://blog.hartwork.org/__images/imagescalerplugin-dialog-332x395.png
[2] https://blog.hartwork.org/__images/imagescalerplugin-menu-394x449.png
[3] http://git.goodpoint.de/?p=imagescaler.git;a=summary



Re: [gentoo-user] Unable to set wireless regulatory domain

2011-05-09 Thread John Nielsen
On May 6, 2011, at 4:14 PM, Mick wrote:

 On Friday 06 May 2011 18:04:31 John Nielsen wrote:
 Doesn't look like this went through the first time; re-sending without
 attachment.
 
 On May 5, 2011, at 6:52 PM, Paul Hartman wrote:
 On Thu, May 5, 2011 at 12:40 PM, John Nielsen li...@jnielsen.net wrote:
 I am trying to set up a 5GHz wireless access point on an Alix 3d2 board
 with an AR9220 (ath9k Merlin) PCI card. I have done so successfully
 using Fedora 14 on identical hardware but I would greatly prefer to use
 Gentoo so I can use a more recent kernel and customize things
 appropriately for the platform.
 
 It seems like everything is pretty much the same, other than the
 kernel (and presumably the ath9k driver). But I would look at the udev
 rules for CRDA to be sure they match and are being applied the same on
 both systems. You shouldn't ever need to iw reg set on a system with
 CRDA, it should do it for you. So I wonder if you're setting it, and
 then CRDA is immediately setting it back to 00...
 
 The udev rule for CRDA is the same on both systems, and matches what is
 shown on http://wireless.kernel.org/en/developers/Regulatory/CRDA. The
 Fedora box also has a magic rule to call /sbin/setregdomain when an 80211
 interface is added, which is a shell script that infers the regdomain from
 the currently set timezone. The punch line of the script is simply a call
 to iw reg set $COUNTRY
 
 However, I'm not sure crda is being called appropriately on the Gentoo box. 
 On the Fedora machine I see this in dmesg:
 [   17.248674] cfg80211: Calling CRDA for country: US
 [   18.848206] cfg80211: Regulatory domain changed to country: US
 
 and I don't ever see anything similar on the Gentoo machine, even when
 running iw reg set by hand. Further, I don't see anything in the output
 of udevadm monitor --environment kernel.
 
 I just dropped the kernel from the Fedora machine on to the Gentoo box and
 (somewhat surprisingly) it works just fine. The reg domain gets set no
 problem, hostapd starts, life is good--except that now I feel like I've
 sinned against nature and I'd like to get my own, smaller kernel back.
 
 While it's possible the new kernel version is broken I rather suspect that
 I have configured it badly. I set out to configure a minimal kernel with
 just the features and drivers I want on this hardware and no need for
 modules or an initramfs. Does cfg80211 need to be a module to work
 properly? I wouldn't think so.
 
 I'll do some more experimenting but in the mean time here's my kernel
 config in case anyone has ideas on what could be wrong. Thanks!
 
 Config file here: http://pastebin.com/S68ye6Pz
 
 I suggest that you run a diff --suppress-common-lines -y between the Fedora 
 and your own kernel to find out what's different between the two as far as 
 your driver is concerned.

The outright diff was far too verbose to be useful, but looking at lsmod 
output when running the Fedora kernel was instructive. I recognized everything 
as being in by Gentoo kernel except for rfkill, which was listed as a 
dependency of cfg80211. Long story short, I got it working like I want by:

1) Including RFKILL in my kernel config and
2) Building cfg80211, mac80211, rfkill, and all parts of the ath9k driver as 
modules

Just adding RFKILL to a static (module-less) kernel didn't fix it, and just 
building cfg80211 and friends as modules without RFKILL also didn't fix it; I 
had to do both.

Thanks all for your responses so far. I'll be happy to ditch Fedora. :)

For future reference, does anyone know why either of the above would be 
required? If I see the same behavior in the latest git kernel should I file a 
bug? If so, where (since I doubt this is a Gentoo issue)?

JN




Re: [gentoo-user] Unable to set wireless regulatory domain

2011-05-09 Thread Mick
On Monday 09 May 2011 17:20:49 John Nielsen wrote:
 On May 6, 2011, at 4:14 PM, Mick wrote:
  On Friday 06 May 2011 18:04:31 John Nielsen wrote:
  Doesn't look like this went through the first time; re-sending without
  attachment.
  
  On May 5, 2011, at 6:52 PM, Paul Hartman wrote:
  On Thu, May 5, 2011 at 12:40 PM, John Nielsen li...@jnielsen.net 
wrote:
  I am trying to set up a 5GHz wireless access point on an Alix 3d2
  board with an AR9220 (ath9k Merlin) PCI card. I have done so
  successfully using Fedora 14 on identical hardware but I would
  greatly prefer to use Gentoo so I can use a more recent kernel and
  customize things appropriately for the platform.
  
  It seems like everything is pretty much the same, other than the
  kernel (and presumably the ath9k driver). But I would look at the udev
  rules for CRDA to be sure they match and are being applied the same on
  both systems. You shouldn't ever need to iw reg set on a system with
  CRDA, it should do it for you. So I wonder if you're setting it, and
  then CRDA is immediately setting it back to 00...
  
  The udev rule for CRDA is the same on both systems, and matches what is
  shown on http://wireless.kernel.org/en/developers/Regulatory/CRDA. The
  Fedora box also has a magic rule to call /sbin/setregdomain when an
  80211 interface is added, which is a shell script that infers the
  regdomain from the currently set timezone. The punch line of the script
  is simply a call to iw reg set $COUNTRY
  
  However, I'm not sure crda is being called appropriately on the Gentoo
  box.
  
  On the Fedora machine I see this in dmesg:
  [   17.248674] cfg80211: Calling CRDA for country: US
  [   18.848206] cfg80211: Regulatory domain changed to country: US
  
  and I don't ever see anything similar on the Gentoo machine, even when
  running iw reg set by hand. Further, I don't see anything in the
  output of udevadm monitor --environment kernel.
  
  I just dropped the kernel from the Fedora machine on to the Gentoo box
  and (somewhat surprisingly) it works just fine. The reg domain gets set
  no problem, hostapd starts, life is good--except that now I feel like
  I've sinned against nature and I'd like to get my own, smaller kernel
  back.
  
  While it's possible the new kernel version is broken I rather suspect
  that I have configured it badly. I set out to configure a minimal
  kernel with just the features and drivers I want on this hardware and
  no need for modules or an initramfs. Does cfg80211 need to be a module
  to work properly? I wouldn't think so.
  
  I'll do some more experimenting but in the mean time here's my kernel
  config in case anyone has ideas on what could be wrong. Thanks!
  
  Config file here: http://pastebin.com/S68ye6Pz
  
  I suggest that you run a diff --suppress-common-lines -y between the
  Fedora and your own kernel to find out what's different between the two
  as far as your driver is concerned.
 
 The outright diff was far too verbose to be useful, but looking at lsmod
 output when running the Fedora kernel was instructive. I recognized
 everything as being in by Gentoo kernel except for rfkill, which was
 listed as a dependency of cfg80211. Long story short, I got it working
 like I want by:
 
 1) Including RFKILL in my kernel config and
 2) Building cfg80211, mac80211, rfkill, and all parts of the ath9k driver
 as modules
 
 Just adding RFKILL to a static (module-less) kernel didn't fix it, and just
 building cfg80211 and friends as modules without RFKILL also didn't fix
 it; I had to do both.
 
 Thanks all for your responses so far. I'll be happy to ditch Fedora. :)
 
 For future reference, does anyone know why either of the above would be
 required? If I see the same behavior in the latest git kernel should I
 file a bug? If so, where (since I doubt this is a Gentoo issue)?

I wouldn't have thought that you *must* have rfkill built in as a module for 
it to work.

However, I have my wireless drivers (inc. rfkill) built in as modules.  I did 
this because I need to pass some options to the wireless driver at some point.

The only time I had to build something as a module was alsa, because otherwise 
I couldn't configure my sound card on a particular box (alsaconf/alsactl 
expected it to be a module so that it can probe it).  I ended up compiling it 
as a module since.

Perhaps someone else can advise on this rfkill issue.
-- 
Regards,
Mick


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


Re: [gentoo-user] Tool to check PDF against PDF/X-3 ?

2011-05-09 Thread Sebastian Pipping
On 05/05/2011 11:01 PM, Florian Philipp wrote:
 I'm not aware of any real verification tool. I guess you could easily
 build one using one of the free pdf libraries for introspecting the file
 and matching all requirements.

If you ever find yourself making such a tool please make it free
software and send me a link.


 A quick and dirty check would be to look for the identification string.
 Every PDF/X has to specify its conformance using a plaintext string. I
 can't provide you with an PDF/X example but this is how it looks for
 PDF/A1 created by OOo:
 `strings pdf | grep PDFA
 /Type/OutputIntent/S/GTS_PDFA1/OutputConditionIdentifier(sRGB
 IEC61966-2.1)/DestOutputProfile 76 0 R

Thanks.

Best,



Sebastian



[gentoo-user] Need Preferred Applications help

2011-05-09 Thread Michael Sullivan
A couple of weeks ago I switched my gcc profile over and rebuilt
everything with emerge -e system and emerge -e world.  Now, when I click
on a link in Evolution, seamonkey opens to a blank page instead of to
the link that I clicked on.  I'm using gnome-base/gnome-2.32.1.
Seamonkey is my preferred web browser, but I used to have the abiltiy to
supply other options (a.k.a. /usr/bin/seamonkey %s I think it was).  Now
I don't have that ability.  How can I get this back?  I'm getting very
tired of having to copy the link location and manually paste it into an
active seamonkey window...




[gentoo-user] Re: Unable to set wireless regulatory domain

2011-05-09 Thread walt
On 05/09/2011 09:20 AM, John Nielsen wrote:

  I got it working like I want by:
 
 1) Including RFKILL in my kernel config and 2) Building cfg80211,
 mac80211, rfkill, and all parts of the ath9k driver as modules
 
 Just adding RFKILL to a static (module-less) kernel didn't fix it,
 and just building cfg80211 and friends as modules without RFKILL also
 didn't fix it; I had to do both.

Some drivers contains quite a few distinct subsystems, and I can
imagine a scenario where some section of code is executed only when
it gets loaded by another driver module.

If my SWAG is correct, then I think a bug report would be appropriate.
Unfortunately I have no idea if I'm guessing right or wrong :)

As Mick said, the same problem has been reported with alsa drivers,
and I would consider that to be buggy behavior as well and I would
file a bug report if I had the same problem.  (But I don't.)




[SOLVED] Re: [gentoo-user] scanner CanoScan LiDE210

2011-05-09 Thread pat
On Mon, 9 May 2011 09:15:33 +0100, Neil Bothwick wrote
 On Mon, 9 May 2011 08:41:04 +0200, pat wrote:
 
  Nothing :-( Same output as for user: No scanners were identified. If
  you were expecting something different, check that the scanner is
  plugged in, turned on and detected by the sane-find-scanner tool (if
  appropriate). Please read the documentation which came with this
  software (README, FAQ, manpages).
 
 An update to sane-backends appeared when I updated today. This adds
 entries for the LiDE210 to genesys.conf, so updating to 1.0.22 may solve
 this for you.
 
 -- 
 Neil Bothwick
 
 There is never enough beer, sex or disk space!

Thanks Neil !!! It works :-D

 Pat


Freehosting PIPNI - http://www.pipni.cz/



Re: [gentoo-user] Re: Unable to set wireless regulatory domain

2011-05-09 Thread Mick
On Monday 09 May 2011 23:46:06 walt wrote:
 On 05/09/2011 09:20 AM, John Nielsen wrote:
   I got it working like I want by:
  1) Including RFKILL in my kernel config and 2) Building cfg80211,
  mac80211, rfkill, and all parts of the ath9k driver as modules
  
  Just adding RFKILL to a static (module-less) kernel didn't fix it,
  and just building cfg80211 and friends as modules without RFKILL also
  didn't fix it; I had to do both.
 
 Some drivers contains quite a few distinct subsystems, and I can
 imagine a scenario where some section of code is executed only when
 it gets loaded by another driver module.
 
 If my SWAG is correct, then I think a bug report would be appropriate.
 Unfortunately I have no idea if I'm guessing right or wrong :)
 
 As Mick said, the same problem has been reported with alsa drivers,
 and I would consider that to be buggy behavior as well and I would
 file a bug report if I had the same problem.  (But I don't.)

Funny you should say that ... I remember raising a bug at the time, only to be 
told by a dev that this is what alsactl expects (i.e. alsa modules to probe in 
a particular order).  I was reluctant to engage in an argument with a dev 
about the logic of all this, so I left happy knowing that I could hear sound 
coming out of my machine again.
-- 
Regards,
Mick


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


Re: [gentoo-user] QA Notice: libdialog.la appears to contain PORTAGE_TMPDIR paths

2011-05-09 Thread Indi
On Sat, May 07, 2011 at 11:20:02AM +0200, Mick wrote:
 On Saturday 07 May 2011 01:40:54 Indi wrote:
  On Sat, May 07, 2011 at 02:10:01AM +0200, Indi wrote:
   Speaking of that, I always get that notice the PGP signature could
   not be verified on your mails, Neil.
  
  Never mind, sorry -- that was my configuration needed updating.
 
 Just a thought - I had to change the default public key server the other day, 
 because connecting to it was timing out.  Not sure if it was the 
 subkeys.pgp.net that I was having trouble with.  Now it seems to work fine 
 again and it finds said key:
 
 ===
 $ gpg --keyserver hkp://subkeys.pgp.net --search-keys sign...@gentoo.org
 gpg: enabled debug flags: memstat
 gpg: searching for sign...@gentoo.org from hkp server subkeys.pgp.net
 (1)   Kevin McCarthy sign...@gentoo.org
 2048 bit RSA key D0AE2DE8, created: 2011-02-22
 Keys 1-1 of 1 for sign...@gentoo.org.  Enter number(s), N)ext, or Q)uit  Q
 ===
 -- 
 Regards,
 Mick

Thanks, but it was self-induced -- shot myself in the foot
fooling about with .muttrc and failing to proofread all the 
changes properly.  

-- 
caveat utilitor




Re: [gentoo-user] Check CPU for throttling

2011-05-09 Thread Volker Armin Hemmann
On Sunday 08 May 2011 12:59:57 Helmut Jarausch wrote:
 On 05/08/2011 11:21:06 AM, Florian Philipp wrote:
 
 sys-process/atop shows current CPU freqency
 I use it to check the effect of sys-power/powernowd

why are you using powernowd?