Re: [gentoo-user] Re: Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-18 Thread Willie Wong
On Thu, Nov 17, 2011 at 07:41:21PM +, James wrote:
  Now, why can't the USE descriptions be like the kernel option
  descriptions and have something like what Pandu wrote included? 
 
 I added this to root's  .bashrc a long time ago:
 
 # USE flag settings hack by Ciaran McCreesh:
 explainuseflag(){ sed -ne s,^\([^ ]*:\)\?$1 - ,,p $(portageq
 portdir)/profiles/use.{,local.}desc; }
 alias ef=explainuseflag
 
 
 Then simply use the alias for a quick check to learn about all the different
 uses of a given flag:
 
 'ef graphite'
 
 # ef graphite
 Enable support for non-Roman fonts via media-gfx/graphite2
 Enable support for non-Roman fonts via media-gfx/graphite2
 Add support for the framework for loop optimizations based on a polyhedral
 intermediate representation
 
 Then drill down into the a specific package's use flag meaning, using the
 aforementioned 'equery u' delineated by Albert.

You people seem to miss my point. I know perfectly well how to find 
the USE descriptions. It is just that the USE description, in this 
case (as in many others) isn't terribly useful. 

Add support for the framework for loop optimizations based on a 
polyhedral intermediate representation means absolutely gibberish to
me.

But if one were to add an additional one or two lines a la Pandu, 
about how it is supposed to make  gcc-4.5.3 use a newer method to 
detect parallelism, thus (potentially) makes programs compiled by gcc 
to have better multithreaded performance and perhaps even a Kernel 
help page style It is mostly stable. If unsure, say Yes.

It would be ever so much more helpful for people who would like to
find out what new flags do before deciding whether or not to follow
the default recommended by the devs which are set into the profile.

(I'm not saying this type of hand holding is necessary for all flags:
enable support for non-Roman fonts via media-gfx/graphite2 is 
perfectly understandable, as are most other flags about features a 
user is likely to interact with. But for some of the more system 
type flags (see also that python/perl flag business from the recent 
months), I think the USE descriptions can stand some improvement.)

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] why can't use print after installed CUPS ?

2011-11-18 Thread Willie Wong
On Fri, Nov 18, 2011 at 04:17:11PM +0800, 俞强 wrote:
 thanks for you reply,
 
 yes, i compile cups just by hand, and i compared with the files you send,
 though you cups version is 1.4.8, but i think the compare result is
 also value. most of files are the same as mine, but my libs are installed
 in /usr/lib64, not in /usr/lib. btw, my hadrware is ARMv7(omap3730).

Most likely than not that is because your programs are
not compiled with printing support? 

~ $ euse -i cups
global use flags (searching: cups)

[+ CD   ] cups - Add support for CUPS (Common Unix Printing System)
cups - Add support for CUPS (Common Unix Printing System)

~ $ equery hasuse cups
 * Searching for USE flag cups ... 
[IP-] [  ] app-text/epdfview-0.1.8:0
[IP-] [  ] app-text/ghostscript-gpl-9.04-r4:0
[IP-] [  ] gnome-base/libgnomeprint-2.18.8:2.2
[IP-] [  ] x11-libs/gtk+-2.24.8-r1:2
[IP-] [  ] x11-libs/gtk+-3.2.2-r1:3
[I-O] [  ] x11-libs/qt-gui-4.7.4:4

Judging by the fact that you installed cups by hand and portage didn't
want to install its own version of cups, I'd say more likely than not
you have the cups flag disabled. 

What you can try to do (if you don't want to use the in portage cups
ebuild) is to 

  (a) enable the cups flag
  (b) edit the /etc/portage/profile/package.provided file to include
  cups. 
  (See http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3chap=5 )

This may or may not work, but is worth a try if you insist on not
using the standard ebuild. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-16 Thread Willie Wong
On Wed, Nov 16, 2011 at 03:29:27PM +0700, Pandu Poluan wrote:
  what does graphite add ?
 
 
 It makes gcc-4.5.3 use a newer method to detect parallelism, thus
 (potentially) makes programs compiled by gcc to have better multithreaded
 performance.

Now, why can't the USE descriptions be like the kernel option
descriptions and have something like what Pandu wrote included? 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] java java everywhere

2011-11-14 Thread Willie Wong
On Fri, Nov 11, 2011 at 08:07:43PM +0100, Florian Philipp wrote:
 To find out why portage wants the JDK, run `emerge -pv --depclean
 virtual/jdk`. Repeat until you find @world or something looking familiar.
 
 I bet you have LibreOffice installed with USE=java. There is an old
 thread from earlier this year which describes what functionality you
 loose when you deactivate that flag. All things considered, though, I
 think it will be faster to install a JDK than to re-emerge LibreOffice
 with USE=-java.
 
Heh, you guess wrong :p

I actually just have virtual/jdk in world (I can't remember why I
didn't use virtual/jre instead) because of some binaries-only,
non-portage stuff I run. 

What caught me off-guard was the fact that the upgrade did not offer
the -bin option. (Which, as I mentioned in a different branch of this
thread, you helped me figure out why.)

Thank you again for all the help, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] bash date puzzle

2011-11-14 Thread Willie Wong
On Mon, Nov 14, 2011 at 06:13:34AM -0500, Philip Webb wrote:
   alias th='date -d @$1'
 
 was the first try, then adding '+' /or '\' to escape '+' or '@'.
 I also tried a function along similar lines.
 

That is not how you use alias. 

What you want is to use a function. Replace the alias line by

function th { date -d @$1; }

in your bashrc you'l probably be ok. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] java java everywhere

2011-11-11 Thread Willie Wong
On Thu, Nov 10, 2011 at 11:01:56PM +0200, Alan McKinnon wrote:
   (i) What is icedtea-web?
 
 If you had actually clicked on the homepage link in the emerge -s
 output you posted, you would have seen in the very first bullet point
 right at the start of the page that icedtea-web is mostly Java Web Start

The problem is: that doesn't help me at all. What the heck is Web
Start? The corporate-lese at 
 http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136112.html
doesn't really tell me why or whether I need it. 

   (iv) Do I really need to have so many different java things on my
  computer?
 
 Do you need to have so many different browsers on your computer?
 How about editors? Or for that matter why do you have so many coding
 languages available? How about openoffice?
 
 It's not so many, that's a ridiculous assertion. First you have
 a choice between iced-tea built from source or a bin package. Firefox
 and OOo do the same. Then there's icedtea-web which is a whole
 different package altogether, implementing Java Web Start (which is not
 the java language, the sdk or a jvm).
 
 So, if you want Java as implemented by iced-tea, pick between source
 and -bin. If you want JWS, then emerge that too.
 
 Did you even attempt to google this and find answers yourself?

Did you read my question? The problem is not that so many JDKs are
available. The problem is why does portage want to install them all?
(Scroll up to the top of my message and see the emerge --update output
which wants to SLOT all three of icedtea, icedtea-bin, icedtea-web.)

So cut the snark, Alan. To spell out the question for you more
clearly:

Why does portage want to install ALL three kinds of icedteas,
when all I really need is a JRE? Is there some subtle differences
between the three such that I must have all three available? Is the
6-7 major version update one which they significantly changed the API
so things start breaking left and right? 

rant
I have two GCCs on my computer because some legacy code won't build
with GCC4. I have both perl and python for the obvious reasons. I've
long exorcised Emacs because I never use it and prefer Vim. So I do
know a thing or two about this choice business in FOSS. What I don't
know (as I admitted so much in the first sentence of my original post)
is Java. I don't code in it. I don't (to the best of my knowledge)
have any packages installed via portage that has code written in Java.
All I need is a JRE to look at some applets on the internet and run a
couple pre-compiled Java applications on my desktop. It may be that I 
somehow acquired a need for a JDK and I forgot, I don't know, but why
is it that portage wants to installed two JDKS and on top of that some
web-based JRE at the same time? 
/rant

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] java java everywhere

2011-11-11 Thread Willie Wong
On Fri, Nov 11, 2011 at 12:00:51AM +0100, Florian Philipp wrote:
 Well, while Willie picks himself up after being slammed like this (Had
 bad day, Alan?), I might add that the only reason why portage wants to
 emerge icedtea and icedtea-bin is that apparently virtual/jre:1.7 has
 been keyworded. On a stable system, this should not happen. At least for
 me, it still reads
 KEYWORDS=~amd64 ~x86
 
And the only thing that satisfies virtual/j{dk,re}:1.7 right now is the
oracle-jdk binaries and icedtea-7...

The list of RDEPENDS for jdk and jre 1.7 is surprisingly short
compared to that of the 1.6 version. I guess I'll just ignore that
update for now and wait for the -bin version [1]

[1] https://bugs.gentoo.org/show_bug.cgi?id=388917

Thanks, Florian, for hinting me to the right direction, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] java java everywhere

2011-11-10 Thread Willie Wong
Hi list, 

I've not been keeping up with the developments in the Java world, and
now am getting a bit confused. 

Currently my computer is using the icedtea jdk, in fact, I am running
icedtea-bin-1.10.4. Today, portage wants to 

[ebuild U  ] dev-java/icedtea-bin-6.1.10.4 [1.10.4]
[ebuild  N ] sys-apps/attr-2.4.46-r1  USE=nls -static-libs
[ebuild  NS] virtual/jre-1.7.0 [1.6.0]
[ebuild  N ] dev-java/icedtea-7.2.0-r1  USE=nsplugin -debug -doc -examples 
-jamvm -javascript -pulseaudio -systemtap -webstart -zero
[ebuild  NS] virtual/jdk-1.7.0 [1.6.0]
[ebuild  N ] dev-java/icedtea-web-1.1.3-r7  USE=nsplugin -build -doc


And apparently I have many different choices of icedtea:

*  dev-java/icedtea
  Latest version available: 7.2.0-r1
  Latest version installed: [ Not Installed ]
  Size of files: 65,904 kB
  Homepage:  http://icedtea.classpath.org
  Description:   A harness to build OpenJDK using Free Software build tools 
and dependencies
  License:   Apache-1.1 Apache-2.0 GPL-1 GPL-2 
GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C

*  dev-java/icedtea-bin
  Latest version available: 6.1.10.4
  Latest version installed: 1.10.4
  Size of files: 36,173 kB
  Homepage:  http://icedtea.classpath.org
  Description:   A Gentoo-made binary build of the Icedtea6 JDK
  License:   GPL-2-with-linking-exception

*  dev-java/icedtea-web
  Latest version available: 1.1.3-r7
  Latest version installed: [ Not Installed ]
  Size of files: 791 kB
  Homepage:  http://icedtea.classpath.org
  Description:   FOSS Java browser plugin and Web Start implementation
  License:   GPL-2 GPL-2-with-linking-exception LGPL-2

I figure that icedtea-bin is the binary version of icedtea, but 

 (i) What is icedtea-web?
 (ii) Why the version jump from 1.10.4 to 6.1.10.4?
 (iii) Why is the -bin one major version behind icedtee?
 (iv) Do I really need to have so many different java things on my computer?

Thanks, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Combining multiple pointer devices into one

2011-10-31 Thread Willie Wong
Hi list, 

When I look at /dev/input I see the devices mice, mouse0, mouse1,
mouse2, mouse3. The first one, mice, seems to be a combination of all
other mouse devices. 

On the console I want to use gpm to get a pointer, but gpm can only
take one MOUSEDEV entry at a time (as far as I know), so currently I
have it set on /dev/input/mice. Ideally, however, I only want to use
mouse0 and mouse2 on the console (mouse1 is actually a touchscreen and
its output is junk from the point of view of the ps2 driver, and
actually causes problems). 

How does one create, using udev, an input device that aggregates just
the data from mouse0 and mouse2? 

Thanks, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Combining multiple pointer devices into one

2011-10-31 Thread Willie Wong
On Mon, Oct 31, 2011 at 09:57:10AM +, James Broadhead wrote:
 On 31 October 2011 09:13, Willie Wong ww...@math.princeton.edu wrote:
  When I look at /dev/input I see the devices mice, mouse0, mouse1,
  mouse2, mouse3. The first one, mice, seems to be a combination of all
  other mouse devices.
 
  On the console I want to use gpm to get a pointer, but gpm can only
  take one MOUSEDEV entry at a time (as far as I know), so currently I
  have it set on /dev/input/mice. Ideally, however, I only want to use
  mouse0 and mouse2 on the console (mouse1 is actually a touchscreen and
  its output is junk from the point of view of the ps2 driver, and
  actually causes problems).
 
  How does one create, using udev, an input device that aggregates just
  the data from mouse0 and mouse2?
 
 Do you mean for X, or a /dev/ node for gpm ? Like /dev/input/most_mice ?
 
 For the first, this is configurable in xorg.conf. No clue about the second.

The second. Like you said, in xorg.conf I can select multiple pointer
devices, so there's no need to worry about X (and in fact the X events
driver is capable of dealing with the touchscreen). So yes, I would 
like something in the spirit of /dev/input/all_but_one_mice. 

Thanks

W
 

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] portage wants to remove less and nano

2011-10-07 Thread Willie Wong
On Fri, Oct 07, 2011 at 11:15:33AM +0200, Niccolò Belli wrote:
 Il 06/10/2011 23:09, David Abbott ha scritto:
 To see your default editor and pager;
 eselect editor list  eselect pager list
 
 It's strange, there was no defaults editor and pager...
 
 laptop ~ # eselect editor list  eselect pager list
 Available targets for the EDITOR variable:
   [1]   /bin/nano
   [2]   /usr/bin/ex
   [3]   /usr/bin/vi
   [ ]   (free form)
 Available targets for the PAGER variable:
   [1]   /bin/more
   [2]   /usr/bin/less
   [ ]   (free form)

Most likely you've never set them. Use 'eselect editor set X' where X
is 1 for nano, 2 for ex, and 3 for vi etc. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Problem build gconf

2011-10-04 Thread Willie Wong
On Tue, Oct 04, 2011 at 02:15:34PM +0200, 4k3nd0 wrote:
 i put the build log into pastbin: http://pastebin.com/CXEFY342
 

What is the version of pango you have installed? It may be related to
this bug:

https://bugs.gentoo.org/show_bug.cgi?id=384779

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] pstree for modules ?

2011-09-28 Thread Willie Wong
On Wed, Sep 28, 2011 at 09:42:09AM +0200, Florian Philipp wrote:
 You could still create a tree, but only by making most modules appear
 multiple times.

Just like the '--tree' option for 'emerge'

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] texlive-2011 upgrade headsup

2011-08-14 Thread Willie Wong
Hi list, 

Just a minor glitch I ran into in upgrading texlive-2010 to
texlive-2011, I am not sure how reproducible this is, so I am posting
it here instead of filing a bug, just in case someone else runs into
the same problem. It is likely that this problem won't occur at all
for those not using the cjk option. 

  Problem: 
When issuing 'emerge --update texlive', the emerge chokes on the
package 'dev-texlive/texlive-latex'. Checking the logs reveal that
during compile it tries to load 'loadhyphen-zh-latn.tex' which
does not exist on the system. 

  Solution:
'emerge --oneshot texlive-langcjk' first. One of the config file
updates with the 2011 version of that package changes the filename
to load to 'loadhypher-zh-latn-pinyin.tex', which does exist on
the system. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] portage no longer in world?

2011-08-04 Thread Willie Wong
On Thu, Aug 04, 2011 at 12:10:25AM +0200, Alan McKinnon wrote:
  Though it is silly IMHO that portage would want to remove itself
  with depclean. Could it not be hardcoded into portage that it
  should try to keep itself updated and not commit suicide?
  (Independently of the @system sets.)
 
 What about replacing portage with paludis? In your scenario, portage 
 could not do that.

emerge paludis and then use paludis to remove portage?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] portage no longer in world?

2011-08-03 Thread Willie Wong
On Sun, Jul 31, 2011 at 01:38:58PM +0200, Alan McKinnon wrote:
 It's sensible really - portage is not the only package manager out 
 there and therefore should not be in @system. The user did not put 
 portage in world, and did not use -D, so portage is not updating the 
 package.
 
 The solution is simple - all users should put their preferred package 
 manager into world and what Stroller is seeing will stop happening.
 
 Zac can't force portage into system like he could with less and nano 
 and have few or non side-effects. A virtual package manager only says 
 that you *have* one, not *which* one. So as usual for Gentoo, the user 
 gets to tell the software which one it is.
 
 I don't see a problem.

Though it is silly IMHO that portage would want to remove itself with
depclean. Could it not be hardcoded into portage that it should try to
keep itself updated and not commit suicide? (Independently of the
@system sets.)

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] X Freezes With Firefox on Many Post 2.6.38 Kernels

2011-07-28 Thread Willie Wong
On Thu, Jul 28, 2011 at 06:37:24PM -0500, Dale wrote:
 
 Pardon me.  My brain passed gas here.  lol  Could it be that my
 drives file system has ran out of inodes or whatever they are
 called? 

That usually won't throw a kernel panic. That usually just gives an
error. 

W 
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: Kernel panics and more info

2011-07-23 Thread Willie Wong
On Sat, Jul 23, 2011 at 09:45:07AM -0500, Dale wrote:
 YoYo Siska wrote:
 I guess it starts to download it to a temp file, than moves it to the
 file you choose (never looked into it)... so the problem would be most
 likely in that operation..

 I just find it downright odd that a browser causes a panic because
 of a download when other programs, like emerge, can download just
 fine.

Dale, what YoYo meant was precisely that: emerge gets files using wget
(unless you configured it otherwise) which writes directly to the
directory, whereas Firefox would first download something to (I guess)
/tmp and (according to YoYo) write it to the correct name/directory
once you give it to the browser. So YoYo is suspecting that it is this
move of the file from /tmp (or whereever) to your download directory
that is giving the kernel panic.

BTW, you mentioned that this happened after a power-outage. Have you
completely checked your disks and filesystem's health?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: Firefox and kernel panics.

2011-07-14 Thread Willie Wong
On Thu, Jul 14, 2011 at 06:52:12AM -0700, Mark Knecht wrote:
 A complete reboot like that might be software jumping to the wrong
 address but, if so, it seems to me that it's more likely caused by how
 you've built the machine and not the software itself having a bug. 

If this is a continuation of Dale's previous problems, it is most
likely that the reboot is caused by him having enabled the kernel
option to reboot on panic. The question then is, what is causing the
kernel to panic?

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: Firefox and kernel panics.

2011-07-10 Thread Willie Wong
On Sun, Jul 10, 2011 at 01:46:08AM -0500, Dale wrote:
 Joshua Murphy wrote:

 gdb is the GNU Debugger. As for the usability of strace in your case,
 if you can see the last few calls before the lock-up occurs, it could
 help narrow things down a bit. Also, if you SSH into the machine and
 run firefox through strace via that (drawing to the machine's local
 screen, not the SSH client's), you will have anything it can give in a
 workable form, even after the system hangs. You might also test
 whether it crashes while running Firefox via SSH and drawing to a
 different machine, which (if it does) would allow you to sit on a real
 terminal on the main system and see the kernel's output in the instant
 of the crash or (if it doesn't) would narrow it down to X being a key
 factor.
 
 
 I'm like Peanut on the Jeff Dunham comedy skit.  Take your hand and
 go over your head and say whsh.  I better wait on a fix because
 I may break more than I learn.  O_O
 

I second what Joshua says. It can help narrow down the cause. 

One question: when Firefox causes the panic, does the Firefox window
appear, or does it not? If not, then it would cover up the terminal
emulator your are running `strace firefox` from, so you can still copy
down the few lines of output. 

What Joshua is suggesting is to give your machine another way to show
its outputs. So take another box (a laptop or a desktop on your LAN)
and SSH into your problem box.

 (1) Starting Firefox from the remote box. 
i. On your problem box, open up console and issue `xhost +` (eh...
you probably want to be behind a firewall when you do this)
ii. ssh from your other box to the problem box
iii. issue now, in the ssh terminal `export DISPLAY=:0`
iv. issue `strace firefox`
  This should let you start firefox on your problem box while having
the strace output sent to your other box. Maybe you'd be able to see
something there. 

 (2) Starting Firefox remotely. There are two versions of this. 
(a) Run firefox on problem box.
 i. ssh from your other box to the problem box, with the `-Y`
option set to allow X forwarding
 ii. run `firefox` from the SSH console (this should run firefox
on the problem box and have it draw the display on your other box; if
this doesn't cause your problem box to lock up, it should tell us
something. What exactly I am not sure)
(b) Run firefox on other box.
 i. ssh from your problem box to the other box, again with the
`-Y` option to allow X forwarding
 ii. run `firefox` from the SSH console (if this doesn't crash,
then it is likely something funny with your local firefox; if it does
crash, then something real strange is going on)

Can you report on those experiments?

Good luck, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] net-print/hplip-3.11.5 compile fails

2011-06-20 Thread Willie Wong
On Sun, Jun 19, 2011 at 01:40:06PM +0200, Daniel Pielmeier wrote:
 +*hplip-3.11.5-r1 (19 Jun 2011)
 +
 +  19 Jun 2011; Daniel Pielmeier bil...@gentoo.org
 +hplip-3.11.5-r1.ebuild,
 +  +files/hplip-3.11.5-cups-1.5.patch:
 +  Fix build with cups-1.5, thanks to Dale for the report on the gentoo-user
 +  mailing list.
 
 
 Well now that I am aware of it, the issue is known.

One of the many reasons I love gentoo. Thanks Daniel. 

W 

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] crontab not executing

2011-06-20 Thread Willie Wong
On Mon, Jun 20, 2011 at 08:39:00PM +1000, Adam Carter wrote:
  /bin/sh is a symlink to bash.
 
  Which runs as sh when run from the symlink.
 
 I dont understand. runs as usually means runs under the user
 context to me - are you saying bash has an sh compatibility mode?


Yes, from the bash man page:

   If  bash  is  invoked  with  the name sh, it tries to mimic the startup
   behavior of historical versions of sh as  closely  as possible,  while
   conforming  to the POSIX standard as well.  When invoked as an interac‐
   tive login shell, or a non-interactive shell with the  --login option,
   it  first  attempts  to read and execute commands from /etc/profile and
   ~/.profile, in that order.  The  --noprofile  option  may  be used  to
   inhibit  this  behavior.  When invoked as an interactive shell with the
   name sh, bash looks for the variable ENV, expands its value  if it  is
   defined,  and uses the expanded value as the name of a file to read and
   execute.  Since a shell invoked as sh does not attempt to read and exe‐
   cute  commands from any other startup files, the --rcfile option has no
   effect.  A non-interactive shell invoked with  the  name  sh  does  not
   attempt  to  read  any  other  startup files.  When invoked as sh, bash
   enters posix mode after the startup files are read.

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] mutt: Tagging on the contents of mails

2011-06-01 Thread Willie Wong
On Sat, May 28, 2011 at 08:01:00AM -0400, Todd Goodman wrote:
  
  Yes, Dale, I tried that before. T tage mail matching a pattern does
  not what I seems to be: It matches only against the subject line.
  This was the reason, why I asked here...
  
  Best regards,
  mcc
  
 
 Hi mcc,
 
 What are you using for a pattern?
 
 If I want to find pineapple anywhere in the message then I press 'T' and
 then '~B pineapple'
 
 There are lots of other '~' selectors.  I use ~f quite often to find
 mail from a specific address.
 
 If you want space you need to escape them or enclose the whole pattern
 in quotes.
 

The applicable manual page is this:

http://www.mutt.org/doc/manual/manual-4.html#patterns

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] is a nice place :-D

2011-05-16 Thread Willie Wong
On Tue, May 17, 2011 at 01:33:39AM +0200, Alan McKinnon wrote:
 grep GET /Tmp/Linux/G | /var/log/apache2/access_log | grep-v myip | \
 awk '{print $1}' | sort | uniq | wc
 
 In true grand Unix tradition you cannot get quicker, dirtier or more 
 effective 
 than that
 

You can replace sort | uniq by sort -u

And the Grand Unix Tradition probably would 'cut' instead of awk :)

While you are at it, an incantation that pipes grep to awk? Seriously?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] site:www.gentoo.org (compile phase)...die econf failed

2011-05-15 Thread Willie Wong
On Sun, May 15, 2011 at 02:24:12AM -0400, Felix Miata wrote:
 Googling above or similar is getting me nothing useful: 70%
 non-English pages, and of the remainder, 90% questions without
 answers (from forums.gentoo.org), and of those with answers, answers
 specific to packages bearing no apparent relationship to those
 failing to emerge for me. There are plenty hits for 'die econf
 failed' and 'ERROR:...failed (compile phase)', just nothing useful.

Because that is not the real error message. That just tells you when
(whether during configuration or compilation) the build failed. The
actual error is a few tens of lines earlier in the display (so
possibly 1 screen or 2 up in the console). 

Also, instead of posting the complete log on the external site (and
sometimes run into access problems), it may be easier to attach a
partial log to the e-mails to the forum. Something like 'tail -n 100
build.log' usually contains enough information. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] site:www.gentoo.org (compile phase)...die econf failed

2011-05-15 Thread Willie Wong
On Sun, May 15, 2011 at 09:14:55PM -0400, Michael Orlitzky wrote:
 On 05/15/2011 06:29 PM, Felix Miata wrote:
  http://fm.no-ip.com/Tmp/Linux/G/ has system info, bash_history, and logs 
  from 
  my 7th attempt to install from the beginning, using 
  http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 as the battle 
  plan.
  
  Among the 8 attempts, once I used the 0514 portage, twice I used the 0507 
  portage, and the rest I used the 0511 portage. I'm surprised I ever got a 
  kernel, networking, and mc working on the first try, because I've been 
  unable 
  to get anything except kernel sources to emerge since the first attempt. 
  Every other emerge attempt has generated either ERROR:...(compile 
  phase)... 
  or ERROR:...(configure phase)..., plus 'die econf failed'.
  
  At this point I have to believe there's a Gentoo bug(s) I'm hitting rather 
  than mistakes following instructions. I've put in most of the past 5 days 
  trying, and have to quit real soon unless I get a whole lot better help. 
  I'm 
  sure I've used up my quota of better efficiency just trying to get started, 
  and need to get back to normal life soon.
 
 Purge ccache entirely from your system, it's bad news. Then `source
 /etc/profile  env-update`.

What's strange is that the emerge --info Felix linked to does not have
ccache in Features. But it is timestamped earlier than the other
logs...

Is ccache installed? (emerge --search ccache) if yes unmerge it
(emerge --unmerge ccache). And you may want to use gcc-config to reset
the links to gcc. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] chicken -- egg (NFS tty video)

2011-05-14 Thread Willie Wong
On Sat, May 14, 2011 at 05:38:04AM -0400, Felix Miata wrote:
 Felix Miata composed:
 
  emerge: there are no ebuilds built with USE flags to satisfy
  =media-libs/libcanberra-0.4[gtk].
  !!! One of the following packages is required to complete your request:
  - media-libs/libcanberra-0.26 (Change USE: +gtk)
  (dependency required by x11-misc/notification-daemon-0.5.0 [ebuild])
  (dependency required by virtual/notification-daemon-0[gnome] [ebuild])
  (dependency required by x11-libs/libnotify-0.7.2 [ebuild])
  (dependency required by media-video/vlc-1.1.9[libnotify] [ebuild])
  (dependency required by media-libs/phonon-vlc-0.3.2 [ebuild])
  (dependency required by media-libs/phonon-4.5.0[vlc] [ebuild])
  (dependency required by kde-base/kdelibs-4.6.2-r3 [ebuild])
  (dependency required by kde-misc/polkit-kde-kcmodules-0.98_pre20101127
  [ebuild])
  end screen output
 
  Is it telling me I have to change my USE from -gtk to +gtk, or can emerging
  one of those 8 packages listed satisfy the dep? IOW, it's unclear to me
  what One of the following packages actually refers to.
 
 It's telling you that you must enable USE=gtk for libcanberra for that build
 to succeed. The chain of packages listed won't solve the problem, they are
 causing it.
 
 That's what I was afraid of, a list of one followed by a genuine list. :-(
 
 Easiest is to list gtk in USE in make.conf, then everything that uses gtk 
 will
 link against it. If you are worried about Gnome, this wil not cause gnome to
 be installed, just gtk+
 
 Maybe someone can humor me and not go with the easiest route.
 Let's assume I could live without any Mozilla products or Gimp, and
 want a system free not just of Gnome but also of GTK. Let's say I'm
 deaf, and no speakers will ever be attached to the system, which has
 an onboard sound chip rather than a PCI sound card I could simply
 remove. What would it take to eliminate this apparent KDE dependence
 on GTK (and sound support)? How portable is a sound event library
 that makes KDE depend on GTK? For now, I've cut USE down to only
 bash-completion ncurses samba slang xattr, but it hasn't helped me
 to get everything I need to work outside of X. 

The above listing shows that phonon will be built with the vlc use
flag, so clearly you haven't trimmed USE down to just
bash-completion, ncurses, samba, slang, xattr. In fact, if you had
done so you would've also trimmed out cxx, posix, and threads, which
would probably not be the best idea. 

So for concreteness, can you post the complete USE list, _not_ the
list in /etc/make.conf, since that does not show you the USE enabled
*by default* on whichever profile you have chosen to use. To get the
list of all USE flags, try 
  emerge --info

In this particular case, you can consider adding -vlc to your USE
and try again. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] openrc update : locale variables are gone

2011-05-14 Thread Willie Wong
On Sat, May 14, 2011 at 03:41:37PM +0200, Alain DIDIERJEAN wrote:
 As the subject line says, all variables pertaining to locale are gone (LANG  
 LINGUAS not set, LC_* set to POSIX).
 In which file are they supposed to be set these days ?
 

/etc/env.d/02locale

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] chicken -- egg (NFS tty video)

2011-05-14 Thread Willie Wong
On Sat, May 14, 2011 at 11:07:33AM -0400, Felix Miata wrote:
 Does [1] default/linux/x86/10.0 from 'eselect profile list' amount
 to a minimal install (no X)? If so, is there any reason not to
 switch to it instead of setting -vlc, and then later when actually
 ready to enable X, switching back to kde?

There's no big harm, except that you may end up rebuilding a bunch of
packages. One way to get a lot of hands-on control on precisely what
USE you want it via the -* flag. But be VERY careful if you are
going to use it. A USE variable set in /etc/make.conf starting with it

  USE=-* X vim ...

will use nothing but those variables (plus the package specific ones
specified in /etc/portage). There are certain flags that you most
likely don't want to turn off: cxx, posix, and threads for example. 

It is a powerful tool; which means you can also seriously hurt
yourself from it. 

Note that the profiles are not only if things. You can still run
the KDE desktop without being on the KDE profile. You should think of
the profile as a default bundle that the developers think you may like
if you want to use KDE. You can of course completely customise it just
from the default/linux/x86/10.0 profile. So if you start your system
on this profile, and build it up to your liking, there's no need to
switch over to the KDE profile. 

 
 What is the [7] hardened/linux/x86 profile, or better yet, the
 incantation to get descriptions descriptions of all the available
 targets?

hardened is maintained by the gentoo hardened project
  http://www.gentoo.org/proj/en/hardened/

If this is a desktop you probably don't want to use it. And SELinux
you can just google to find out. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] chicken -- egg (NFS tty video)

2011-05-14 Thread Willie Wong
On Sat, May 14, 2011 at 12:01:20PM -0400, Indi wrote:
 Sounds like the old 6 of one, a half-dozen of the other to me...
 What makes the subtractive method better?
 

This is how I interpret Alan's message:

For certain flags when you enable it for a package you will have to
also enable it for its dependencies. So you'll have to chase down the
dependency tree if you enable a flag for a user package and several of
the libraries it uses need the flag too, which may end up requiring
doing several emerge --pretend cycles to sort out.

Whereas if you subtract functionality, you usually won't have to
change the libraries. (The corollary being that if you are going to
remove functionality from the libraries, you should do so by globally
removing the use flag, rather than on the package level.)

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Firefox 4 hard freeze

2011-04-15 Thread Willie Wong
On Thu, Apr 14, 2011 at 03:47:22PM -0500, Paul Hartman wrote:
  Update: seems that only some keyboard input is affected. For example,
  arrow keys for scrolling, and typing things in text/input boxes on
  webpages are fine. But hotkeys interacting with Firefox, or typing
  in the Address bar or Search bar freezes the program.
 
 Have you tried as a different user or with a fresh Firefox profile? I
 wonder if it would make a difference.

Hum, this morning the problem was still there. I turned off the
computer. Tonight I came home, booted it up, and it is no longer a
problem. I am not going to pretend I know what just happened.

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Firefox 4 hard freeze

2011-04-14 Thread Willie Wong
Hi list, 

I'm running into some weird problem. Firefox was upgraded to version 4
a few days ago. And up until last night I have had no problems with
it. Starting this morning, however, it seems that Firefox would freeze
up whenever I touch the keyboard with the window in focus!

I can open new tabs, go visit links in the history, etc, with no
problems. But any keyboard input (hitting Ctrl-t for new tab, Ctrl-n
for new Window, or trying to enter an address into the address bar)
completely freezes the program. 

Running from command line produced no outputs. 

Running with `strace` gives the following output near the end. I am
not sure what's going on with the read(3, 0x9038118, 4096) thing which
keeps giving Reseource temporarily unavailable: it keeps flashing by
once Firefox has started, seems like firefox keep trying to poll
something, but I have no idea what it is doing. 

But at the very least, even when I just leave the window alone, I knew
firefox was doing something. 

But the minute I hit the keyboard, the rapidly scrolling output of
strace stops, and I had to hit Ctrl-C to terminate the process
(resulting in the last line of the posted trace). 

The running versions of firefox is 4.0-r3, and xulrunner is at 2.0-r1

[ebuild   R   ] net-libs/xulrunner-2.0-r1  USE=alsa ipc webm wifi 
-crashreporter -custom-optimization -dbus -debug -gconf -libnotify 
-startup-notification -system-sqlite 0 kB
[ebuild   R   ] www-client/firefox-4.0-r3  USE=alsa ipc webm wifi -bindist 
-custom-optimization -dbus -debug -libnotify -startup-notification 
-system-sqlite LINGUAS=en fr -af -ak -ar -ast -be -bg -bn -bn_BD -bn_IN -br 
-bs -ca -cs -cy -da -de -el -en_ZA -eo -es -es_ES -et -eu -fa -fi -fy -fy_NL 
-ga -ga_IE -gd -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -hy -hy_AM -id -is -it -ja 
-kk -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb -nb_NO -nl -nn -nn_NO -nso -or 
-pa -pa_IN -pl -pt -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -sv_SE -ta 
-ta_LK -te -th -tr -uk -vi -zu 0 kB

Any ideas?

--strace output snip
writev(3, [{\221\6\2\0\3\0 \1, 8}, {NULL, 0}, {, 0}], 3) = 8
poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}])
read(3, 
\1\3\354\4\17\0\0\0\1\1\1\0\0\0\0\0\0\0\0\0\224\2(\0,\1,\1\240\0(\0..., 4096) 
= 92
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{\221\10\7\0\3\0G\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\5, 28}, 
{NULL, 0}, {, 0}], 3) = 28
poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}])
read(3, 
\1\3\355\4\f\4\0\0\0\0\10\377G\0\0\31\31\10\351\0\370\0\0\0\0\0\0\0\0\0\0\10...,
 4096) = 4096
read(3, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 
80) = 80
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1302810140, 819284}, NULL) = 0
futex(0x905a888, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x905a884, {FUTEX_OP_SET, 0, 
FUTEX_OP_CMP_GT, 1}) = 1
gettimeofday({1302810140, 824690}, NULL) = 0
gettimeofday({1302810140, 824783}, NULL) = 0
futex(0x905a888, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x905a884, {FUTEX_OP_SET, 0, 
FUTEX_OP_CMP_GT, 1}) = 1
gettimeofday({1302810140, 825089}, NULL) = 0
gettimeofday({1302810140, 825183}, NULL) = 0
gettimeofday({1302810140, 825464}, NULL) = 0
read(16, \372, 1) = 1
gettimeofday({1302810140, 825899}, NULL) = 0
gettimeofday({1302810140, 825996}, NULL) = 0
gettimeofday({1302810140, 826099}, NULL) = 0
gettimeofday({1302810140, 826196}, NULL) = 0
gettimeofday({1302810140, 826287}, NULL) = 0
gettimeofday({1302810140, 826397}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=16, events=POLLIN}], 3, 
0) = 0 (Timeout)
gettimeofday({1302810140, 826733}, NULL) = 0
gettimeofday({1302810140, 826829}, NULL) = 0
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{\201\1\2\0\306\0\0\0, 8}, {NULL, 0}, {, 0}], 3) = 8
poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}])
read(3, 
\1\0\356\4\0\0\0\0\305\0\0\0\220'\t\\0\0\0\0\0\0\0\0\322\300\277\0\0\0\0, 
4096) = 32
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
read(3, 0x9038118, 4096)= -1 EAGAIN (Resource temporarily 
unavailable)
gettimeofday({1302810140, 827861}, NULL) = 0
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{\221\10\7\0\0\1\7\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\5, 28}, 
{NULL, 0}, {, 0}], 3) = 28
poll([{fd=3, events=POLLIN}], 1, -1)= 1 ([{fd=3, revents=POLLIN}])
read(3, 
\1\3\357\4\10\4\0\0\0\0\10\377\7\0\0\31\31\10\351\0\370\0\0\0\0\0\0\0\0\0\0\10...,
 4096) = 4096
read(3, 

Re: [gentoo-user] Firefox 4 hard freeze

2011-04-14 Thread Willie Wong
On Thu, Apr 14, 2011 at 03:53:39PM -0400, Willie Wong wrote:
 Hi list, 
 
 I'm running into some weird problem. Firefox was upgraded to version 4
 a few days ago. And up until last night I have had no problems with
 it. Starting this morning, however, it seems that Firefox would freeze
 up whenever I touch the keyboard with the window in focus!
 
 I can open new tabs, go visit links in the history, etc, with no
 problems. But any keyboard input (hitting Ctrl-t for new tab, Ctrl-n
 for new Window, or trying to enter an address into the address bar)
 completely freezes the program. 
 

Update: seems that only some keyboard input is affected. For example,
arrow keys for scrolling, and typing things in text/input boxes on
webpages are fine. But hotkeys interacting with Firefox, or typing
in the Address bar or Search bar freezes the program. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] *** URGENT *** xdg-open respawns itself until crash

2011-04-02 Thread Willie Wong
On Thu, Mar 31, 2011 at 01:44:14PM +0200, Helmut Jarausch wrote:
 Thanks, I'll try that - though I have not much time to do so, since the 
 machine starts swapping (though it has 8Gb memory).
 
 Furtheron I've found out, that sci-mathematics/dataplot
 had  BROWSER=xdg-open in it's /etc/env.d/90dataplot file.
 Thus it went into /etc/profile.env.
 
 I think it's very strange that a package may modify
 such a vital environment variable as 'BROWSER'.

That is just setting the default. If you have any preferences set in
your user's environment, it shouldn't be affected. 

 Is this a bug in sci-mathematics/dataplot ?
 

Not really. See `man xdg-open` for what this program does. (It is part
of x11-misc/xdg-utils, you may also want to look at the man page for
xdg-settings). The programs are *supposed* to provide
cross-platform/cross-desktop/cross-toolkit interoperability. Basically
trying to save you the problem from being either locked-down to your
current desktop environment's way of configuring which program is
used to open which type of documents and the problem of having to go
into every single program to change the preferred browser in their
settings when you decide that, say, you no longer want to use Firefox
and now prefers Opera. 

In terms of a default it is a fairly sensible one, and works okay with
full-blown desktop environments. (Does anyone know if it works with
enlightenment?) So on my work compute with Gnome it is great. But on
my home computer with Fvwm, not so much. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] renumber pages in pdf files

2011-04-02 Thread Willie Wong
On Sat, Apr 02, 2011 at 07:04:45PM -0300, luis jure wrote:
 i' currently using an application called jpdftweak to edit metadata in pdf
 files, like page numbers. jpdftweak is very useful, but being a gui app
 it's slow for repeatedly editing many files.
 

look at app-text/pdfjam

The first few lines of `pdfjam --help` probably contains enough
information for you to do what you want. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding

2011-03-23 Thread Willie Wong
On Tue, Mar 22, 2011 at 06:51:54AM -0700, fe...@crowfix.com wrote:
 I have an env var, WWW=/home/www/felix, which I have always used with
 tab completion without problems.
 
 cd $WWW/httabphtab20110318
 
 would expand in steps
 
 cd /home/www/felix/htdocs/
 cd /home/www/felix/htdocs/photos/
 cd /home/www/felix/htdocs/photos/20110318
 
 But some recent bash upgrade has scuppered this.  tab no longer
 expands the $WWW; instead, it escapes the $, adds a space at the end,
 and thinks itself clever.
 
 cd \$WWW/ht ph
 
 which does me no good.
 
 I'll be danged if I can figure out any google-fu to search for this,
 and 'bash help'  and 'info bash' have done me no good either.
 
 I do not know which specific bash upgrade changed this, since I don't
 have very many of these env vars I used similarly.  The current bash
 --version is 4.2.8(2)-release, gentoo version is app-shells/bash-4.2_p8.

A possible culprit maybe the bash-completion package. Have you updated
that recently?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Simplify finding the package?

2011-03-14 Thread Willie Wong
Hi list, sorry for the nondescript title. Let me described what
happened. 

I ran `emerge --update --deep world' over the weekend which updated
app-text/poppler:

Sat Mar 12 22:00:46 2011  app-text/poppler-0.16.3

Today I found out that a whole bunch of packages got broken, and so I
ran `revdep-rebuild -p'. To my surprise, revdep-rebuild wants to
downgrade to app-text/poppler-0.14.5. That's odd, I thought. 

So I ran `emerge --pretend --oneshot --verbose --tree' against the
list of packages produced by revdep-rebuild, and it displays near the
bottom that poppler-0.14.5 is a dependency of luatex-0.65 which is a
dependency of texlive-core-2010-r1. Okay. So I thought that one of
those two packages have an explicit dependency on a lower version of
poppler. And I thought I want to file a bug about that. 

Digging into the ebuilds for luatex and texlive, I can't find any
reason why they would require poppler-0.14.5, and not 0.16.3. So after
puzzling about it for 20 minutes, I did the stupid thing, and tried

`emerge --oneshot --pretend luatex texlive-core'

and lo-and-behold, the poppler dependency does not appear!

Then combing through the list of packages one-by-one, I finally found
(on the second-to-last package that I tried) that the culprit is
in fact python-poppler. 



Now, two questions:

  (a) Should this be considered a bug in portage? The presented
information from `emerge --pretend --tree' is misleading to which
package is actually causing the downgrade request. 
  (b) Is there a way to have found that python-poppler was the culprit
without running `emerge --pretend' on each of the list of 16 packages? 

Thanks, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: [OT] Re: PDF: convert to grayscale

2011-02-28 Thread Willie Wong
On Mon, Feb 28, 2011 at 03:08:23PM +, Grant Edwards wrote:
  That makes me wonder... in a color printer, I expect it not to print any
  color when it has no color ink, but do grayscale printers apply some
  conversion internally, to make sure that e.g. plain cyan is still
  visible (instead of making it white)?
 
 No.
 
 No matter what transformation you use from a 3-dimensional space into
 a 1-dimensional space, there will be sets of values that differ in the
 3-dimensional space which map to identical values in the 1-dimensional
 space.

But it is trivial to make a transformation that maps to certain sets
of values not more than once. In particular, there's nothing barring
the printer to make it so that only pure white and pure black gets
mapped to white and black, and everything else maps (nonuniquely) to a
shade of grey. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Search filesystem with a wildcard

2011-02-27 Thread Willie Wong
On Sun, Feb 27, 2011 at 06:52:36AM +, Stroller wrote:
 AIUI using `find /my/folder -name foo*.txt` (i.e. unquoted) the shell will 
 pass the * to find if it can't expand it itself.

Not necessarily true. 

On bash if you set the 'nullglob' option, if the shell can't find the
file the word will be removed. If you set the 'failglob' character,
the command will quit with an error if the shell can't complete the
path expansion. 

I expect there to be similar options in other shells. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] x11-terms/terminator and hide_window shortcut key

2011-02-17 Thread Willie Wong
On Thu, Feb 17, 2011 at 02:12:57PM +0800, Mark David Dumlao wrote:
 Terminator claims it depends on python-keybinder for the show/hide function
 to work, but even after installing dev-libs/keybinder +python, pressing the
 show/hide window shortcut doesnt seem to do anything. Well, today's not a
 bad day to try something new: does anyone use terminator, and if so, has
 anyone ever gotten the show/hide shortcut key to work?

Where do you see this information about show/hide window shortcut? I
don't see it in the man page
  http://www.tenshu.net/wp-content/uploads/terminator.html

A bit more searching shows that to be possibly a recent patch? 
  https://code.launchpad.net/~peterbjorgensen/terminator/dropdown
Does the gentoo install actually include that patch? (I think not. The
gentoo install uses the 0.95 sources which was released on August last
year, whereas the merge of the dropdown patch into trunk on launchpad
was approved in October.) Maybe you just need to wait until the 0.96
version. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Any way to get real text console without killing X capability?

2011-02-05 Thread Willie Wong
On Sat, Feb 05, 2011 at 06:43:32PM -0500, Walter Dnes wrote:
   The current ebuild is screen-4.0.3, and up to screen-4.0.3-r4 (with
 ~everything) shows up after an emerge --sync.  I can
 ./configure --with-various-options  make  make install with the
 best of them (not that I know what I'm doingG), but the latest builds
 of screen are in a git repository, which I'm not familiar with.  Plus
 which, these builds could be alpha or very early beta, so I don't really
 want to use them on a production machine.  Keywording ~amd64 ebuilds is
 as much bleeding edge as I want to go.

May be you want to try 'tmux', which was discussed on this list a
short while ago. The key combo for vertical splitting is C-b %

Since version 1.2 it supports vertical and horizontal splitting,
version 1.3 in portage is amd64, and 1.4 is ~amd64.

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] [OT] find lines in text file by length

2011-01-29 Thread Willie Wong
This is way OT, but I hope someone here can give me a quick answer:

I have a text-file. Individual lines of it run from 10 to several
thousand characters in length. Is there a simple* command that allows
me to only display the lines that are, say, at least 300 characters
long?

Thanks in advance, 

W


* simple of course includes appropriate incantations of sed/awk/perl/etc
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] [OT] find lines in text file by length

2011-01-29 Thread Willie Wong
On Sat, Jan 29, 2011 at 03:08:11PM +, Etaoin Shrdlu wrote:
 Oh, and obviously
 
 grep '.\{300\}' file
 

D'Oh! That's really obvious. Thanks!

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] config with wireless

2011-01-16 Thread Willie Wong
On Sun, Jan 16, 2011 at 11:27:27PM -0200, Zhu Sha Zang wrote:
 I think that this software, wicd, is just to ubuntu's users not to
 Gentoo. 

You are in the minority. Many on this list (including me) use wicd for
desktop/laptop use. 

 If work without gui,, why i need a gui?

wicd doesn't require a GUI. It has a CLI interface and a curses one (I
prefer to use the curses interface myself), in addition to the GTK
one. Which you install can be controlled by USE. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [SOLVED] Re: [gentoo-user] starting wlan0 only when wireless is turned on

2010-12-13 Thread Willie Wong
On Mon, Dec 13, 2010 at 02:02:55PM +, Mick wrote:
 Right, I thought as much, but Valmor's removal of
 /etc/wpa_supplicant/*.conf through me out.
 
 Can wicd write to /etc/wpa_supplicant/wpa_supplicant.conf?

I don't know, but, then again, why would it need to? 

I know that wicd does write *somewhere* to save the settings. If it
can call wpa_supplicant, it can also call it with the -c option if it
needs to, no?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: mutt+gnupg: how do you name the attached signature file ?

2010-12-11 Thread Willie Wong
Jean-Christophe:

On Sat, Dec 11, 2010 at 02:31:41PM +0100, Jean-Christophe Bach wrote:
 It would be great if this patch were added to the gentoo-patches when
 gpg flag is enabled for mutt.

Thanks for the work! If you want the patch merged into the gentoo
patch set, I think you should file a bug on bugs.gentoo.org, if you
haven't already done so. 

Cheers, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] rxvt-unicode has no transparency right after upgrade

2010-11-20 Thread Willie Wong
On Sat, Nov 20, 2010 at 07:58:01PM +0800, fei huang wrote:
I upgraded rxvt-unicode within just one or two days, right after a
 upgrade to version 9.09,
 
 it does not support transparency any more, but my Xresources had been always
 working for me.
 
 
 post a snippet of my config file here, thanks.
 
 URxvt.transparent:true
 URxvt.shading:20
 URxvt.tintColor:gray90

(1) To trouble shoot: is this an issue of Xresources or is this an
issue with urxvt itself? 

Does 'urxvt -tr -tint gra90 -sh 20' work?

(2) For pseudotransparency and tinting etc you need libafterimage
installed and with rxvt-unicode built against it, look at 
  'emerge -pv rxvt-unicode'
did you enable the afterimage USE?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] rxvt-unicode has no transparency right after upgrade

2010-11-20 Thread Willie Wong
On Sun, Nov 21, 2010 at 12:36:01AM +0800, fei huang wrote:
 ok, everything is back to normal again, I downgraded my rxvt-unicode to
 9.07-r2 and it worked as before. shall I report a bug or maybe I still
 missed something?
 

Go ahead and file a bug, but as pseudotransparency was never
officially supported by rxvt-unicode (see their FAQ on it), I'm not
sure if upstream will actually fix it. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] rxvt-unicode has no transparency right after upgrade

2010-11-20 Thread Willie Wong
On Sat, Nov 20, 2010 at 10:04:10AM -0800, Keith Dart wrote:
 I had previously used method 3, with an entry in my ~/.Xdefaults for
 it, that worked fine. It stopped for some reason with this new version.
 I suspect they may have removed the hacks they talked about and now
 depend on a properly functioning window manager. I am using xfwm4 with
 compositing enabled. Setting the property now works with it.

If that were indeed the case (that they are forcing migration away
from pseudotransparency and into real transparency), then it'd have
been nice if the +/-tr tags throw some error text rather than just 
being silently ignored. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Willie Wong
On Fri, Nov 19, 2010 at 05:36:05PM +0200, Alan McKinnon wrote:
 Prevailing opinion on /. 

That is a strange sentence itself. To see Alan deferring to the higher
authority of the collective wisdom of /. is... well... surprising. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Crufted with perl modules?

2010-11-16 Thread Willie Wong
On Tue, Nov 16, 2010 at 05:42:24PM -0800, Grant wrote:
  qfile -orphans ?
 
 That sounds promising but I get:
 
 # qfile --orphans
 Usage: qfile opts filename : list all pkgs owning files
 

qfile --orphans needs to take input a filename.

So to go through your system looking for all orphaned files, you do
something like

find / -exec qfile -o  '{}' \;

... which will produce a load of output that you don't want. So best
to (1) restrict to smaller subdirectories (instead of /, do
/usr/lib/perl5), and (2) redirect the output to disk. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] after update ssh with shared_keys don't work

2010-11-15 Thread Willie Wong
On Mon, Nov 15, 2010 at 05:56:18PM +0100, Tamer Higazi wrote:
 I updated yesterday my gentoo box. And now I can't login with SSH
 through shared keys on my clients Server what I did all the time.

I am confused (as usually is the case when I see someone trying to
describe a client/server setup):

There are at least two computers involved here:
  A  -- your desktop/laptop
  B  -- your client's server
Is this correct so far?

Now, A is running Gentoo. Correct?

What is B running?
Are you trying to SSH from A to B, or are you trying to SSH from B to
A?

When you say you can't login with SSH through shared keys, does that
mean you can log-in through password? 

 When I made the world update, there was the package udev. I guess it
 might have something todo with this.

Why would you think udev is causing the problem? Udev manages devices,
I fail to see what it has to do with SSH and public key
authentication. Rather than guessing by yourself, you may be better
off providing the whole list of recently updated packages. You can use
'genlop' or 'qlop' for that, or you can just read /var/log/emerge.log
by hand.

W 
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Postfix broken

2010-11-14 Thread Willie Wong
On Sat, Nov 13, 2010 at 09:57:42PM -0800, Kevin O'Gorman wrote:
 Some time ago, it appears, postfix stopped working for me.  I am no longer
 able
 to use it to send mail (usually to my ISP, where it gets routed).
 

Do you actually need a full blown mail server? If you just relay your
mail to your ISP, then you may be able to simplify your life using
something like nbsmtp. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: mutt attachment viewing

2010-11-08 Thread Willie Wong
On Mon, Nov 08, 2010 at 04:15:39PM -0200, José Romildo Malaquias wrote:
 With the entry:
 
 text/html; links %s; nametemplate=%s.html
 
 
 it does not work:
 
 [-- Autoview using /usr/bin/lynx -dump -force_html ''/tmp/mutt.html'' --]
 
 With the entry:
 
 
 text/html; links %s; nametemplate=%s.html; needsterminal
 
 
 it also does not work:
 
 [-- Autoview using /usr/bin/lynx -dump -force_html ''/tmp/mutt.html'' --]
 
 With the entry:
 
 
 text/html; links %s; nametemplate=%s.html; copiousoutput
 

What if you use 

   links -dump %s

I think if you use a textmode browser you need to tell it to dump the
parsed output to stdout for mutt to be able to deal with it. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Command-line wicd?

2010-11-04 Thread Willie Wong
On Thu, Nov 04, 2010 at 07:06:18PM +0200, Alan McKinnon wrote:
 Apparently, though unproven, at 18:55 on Thursday 04 November 2010, Peter 
 Humphrey did opine thusly:
 
  I'm installing Gentoo on a Thinkpad laptop 

 wicd is designed for laptops and mobile computers. 

Alan: time for new reading glasses?

Peter: I am pretty sure on my laptop I disabled the wicd gtk/X
interface (and only use the curses interface). Check the list of USE
for wicd again? Maybe you need to also issue -X? 

Best, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: When ls command fails but only on $HOME

2010-11-01 Thread Willie Wong
On Mon, Nov 01, 2010 at 01:07:34PM +0200, Alan McKinnon wrote:
   Something I have not run into before.
   
   Following a major update still in progress I find the ls command will
   not run on $HOME.
   
   By the time the command hits ls itself, the shell has already expanded
   the HOME variable. So it's unlikely to be the command and more something
   dodgy with your shell.
   
   What shell are you using?
   What is the output of echo $HOME?
  
  My shell is xterm... and was just updated to:
Wed Oct 27 10:15:06 2010  x11-terms/xterm-262
 
 That's the terminal.
 
 What shell do you use/
 
   echo $HOME
  /home/reader

Before we go further, when you said `ls' will not complete against
$HOME, which of the following scenario did you mean?

  a)  you typed `ls $HOME' as a user  (the one I think Alan thinks you
mean)
  b)  you type `ls' while in your home directory (/home/reader)
  c)  you typed `ls /home/reader' ?

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: Winter clock change did not happen

2010-10-31 Thread Willie Wong
On Sun, Oct 31, 2010 at 05:24:23PM +, Mick wrote:
 Thank you Graham for your very detailed reply!  I understand now why the 
 problem exists.  I have used the registry change suggested by Nuno on Win7 
 and 
 will see what gives next time DST changes.  I just hope that it'll work 
 without having *both* OS shifting the clock by one hour ...
 
 The more I read this page[1] the more I am tempted to format MSWindows out of 
 this box whether the warranty is still valid or not!
 
 [1] http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html

Or just cheat like I do. I set Windows to GMT with no daylight saving
offset, so it won't be tempted into playing with my system clock.
Gentoo thinks CLOCK=UTC. I don't boot into Windows often enough to
care about the clock being off by an hour during the summer (or
roughly 5 hours year-round when I move back to the States). Having
long accepted that Operating System is broken, when should I demand it
to keep the right time? ;)

Just my two pence

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Fluxbox and using kdm

2010-10-28 Thread Willie Wong
On Wed, Oct 27, 2010 at 10:43:34PM -0500, Dale wrote:
 I'm guessing it is a command line thing.  I like a GUI.  I could have 
 used Lynx to access my email and not even have fluxbox.  ^_^  Gmail has 
 web access so I could do it that way I guess.

You can, in fact, also read G-mail with Mutt through the imaps
interface. 

Cheers

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: DNS Issues [Was: [gentoo-user] Re: Slow Login, Sudo, etc.]

2010-10-13 Thread Willie Wong
On Wed, Oct 13, 2010 at 12:17:02PM -0500, Paul Hartman wrote:
 On Wed, Oct 13, 2010 at 11:40 AM, Neil Bothwick n...@digimed.co.uk wrote:
  On Wed, 13 Oct 2010 16:59:25 +0200, Alan McKinnon wrote:
 
  Seriously, just use wicd, dump the rest.
 
  +1
 
 Call me old-fashioned, I use wpa_supplicant. :)

Actually, I'll call you confused :)

Comparing wpa_supplicant and wicd is comparing the apples to, uh, pig,
I guess. wpa_supplicant provides the user-end of the WPA
authentication process; wicd provides a system of managing networks.
In fact, wicd calls wpa_supplicant on networks encrypted that way. 

It would be more proper for you to say (if it is true), that you
prefer to issue the '/etc/init.d/net.something start' commands by
hand. That will make you properly curmudgeonly. 

I was that way once. But after using one flaky network too many
(it is mighty annoying to have to open a console and type
'/etc/init.d/net.eth1 restart' every five minutes), I've since
converted to wicd too. 

HTH,

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] emerge --unmerge fails

2010-10-13 Thread Willie Wong
On Wed, Oct 13, 2010 at 12:05:40PM -0700, Hilco Wijbenga wrote:
  * The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
  * with exit value -1.
  *
  * The problem occurred while executing the ebuild file named
  * 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
  * client/arora-0.11.0' directory. If necessary, manually remove the
  * environment.bz2 file and/or the ebuild file located in that directory.
  *
  * Removal of the environment.bz2 file is preferred since it may allow the
  * removal phases to execute successfully. The ebuild will be sourced and
  * the eclasses from the current portage tree will be used when necessary.
  * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
  * removal phases to be skipped entirely.
 
  * Messages for package www-client/arora-0.11.0:
 
  * The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
  * with exit value -1.
  *
  * The problem occurred while executing the ebuild file named
  * 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
  * client/arora-0.11.0' directory. If necessary, manually remove the
  * environment.bz2 file and/or the ebuild file located in that directory.
  *
  * Removal of the environment.bz2 file is preferred since it may allow the
  * removal phases to execute successfully. The ebuild will be sourced and
  * the eclasses from the current portage tree will be used when necessary.
  * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
  * removal phases to be skipped entirely.
 Traceback (most recent call last):
   File /usr/bin/emerge, line 42, in module
 retval = emerge_main()
   File /usr/lib/portage/pym/_emerge/main.py, line 1492, in emerge_main
 myopts, myaction, myfiles, spinner)
   File /usr/lib/portage/pym/_emerge/actions.py, line 2305, in 
 action_uninstall
 valid_atoms, ldpath_mtimes, ordered=ordered)
   File /usr/lib/portage/pym/_emerge/unmerge.py, line 507, in unmerge
 scheduler=scheduler)
   File /usr/lib/portage/pym/portage/dbapi/vartree.py, line 4509, in unmerge
 ldpath_mtimes=ldpath_mtimes)
   File /usr/lib/portage/pym/portage/dbapi/vartree.py, line 2160, in unmerge
 vartree=self.vartree)
   File /usr/lib/portage/pym/portage/package/ebuild/doebuild.py, line
 793, in doebuild
 fd_pipes=fd_pipes, returnpid=returnpid)
   File /usr/lib/portage/pym/portage/package/ebuild/doebuild.py, line
 1261, in spawn
 buf.fromfile(f, buffsize)
 IOError: [Errno 5] Input/output error

Strange, an IO error? 
Which other packages do you have this problem with?


W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] text in xterm

2010-10-09 Thread Willie Wong
On Sat, Oct 09, 2010 at 09:29:36PM +, James wrote:
 Using various different hardware configurations -- my laptop has a
 Intel 915GM. The same thing happens on my iMac which has an nVidia
 card.
 
 I tried to take a screenshot of the issue, but the artifacts do NOT
 appear in the screenshot.
 

Hum, does http://www.nvnews.net/vbulletin/showthread.php?t=150390
help? (It suggests that it is a problem with Compiz 0.8.6 against
nVidia and Intel drivers, and a work around is to downgrade to 0.8.4.)

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe

2010-10-08 Thread Willie Wong
On Fri, Oct 08, 2010 at 10:05:50AM +0200, Andrea Conti wrote:
 Now, the remote sshd is never sent any information about what is
 connected to the local end of the pipe (which is not even known to
 ssh!), so there is no way to alter its behavior depending on that.
 
 IOW, nothing in the setup you and I proposed prevents the user from
 piping an arbitrary command into ssh (or even using a ssh-invoking
 wrapper such as scp or rsync) and getting successfully authenticated on
 the server. You are only guaranteed that the server will run tar in
 place of whatever remote command the client requests, so that the
 connection will break if the client side sends non-tar data.
 
 In my opinion this is quite different from [allowing] only one single
 command from a single cronjob to operate passwordless, but then I might
 just be splitting hairs.

Okay, reading your explanation I agree with you on both counts: the
behaviour does not exactly fit the letter of the question, and that
you are splitting hairs because I think the behaviour is good enough
for the spirit of the message. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] dev-util/autotoolset

2010-10-07 Thread Willie Wong
On Thu, Oct 07, 2010 at 04:01:14AM -0400, dhk wrote:
 
 I thought all the auto tools were in the autotoolset, that's not the
 case.  It looks like the only tool I use in autotoolset is acmkdir.  If
 I remove autotoolset, how can I get acmkdir back?  Even though it's not
 necessary, it's a nice tool for starting a project.

I have somewhat of a suspicious that `acmkdir' may be just a shell
script? (Never used it, so I don't know.) If so then you can just find
it on your system and copy it to /usr/local/bin or something like that
(it possibly copies the templates from somewhere else, so you will
need to find those also). 

Note that it may make use of deprecated autotool commands, and if not
updated, may break in the future. 

HTH, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe

2010-10-07 Thread Willie Wong
On Thu, Oct 07, 2010 at 06:45:49PM +0200, Momesso Andrea wrote:
 I need to set up a cron job to transfer a file every day from server A  
 to server B.
 
 I'd like to do that via ssh and with no user assistance, completely 
 automated.
 
 Setting up a public key, would do the job, but then, all the  
 connections between the servers would be passwordless, so if server A  
 gets compromised, also server B is screwed.
 
 Is there a way to allow only one single command from a single cronjob  
 to operate passwordless, while keeping all the other connections  
 secured by a password?

In the authorized_keys file, you need to include a specification of
command=insert command here. Which means that on log-in with the
public key, the sshd will execute that command, and any other commands
sent from the machine which originated the connection will not
execute. 

So I'd imagine you can untar with the command at the target, and
instead of scp, use something like

  tar file | ssh -i identity file u...@host

(of course, this still opens up the possibility that a partition gets
filled on your target machine by someone copying random string to it,
but you'd have to live with that). 

(Also, note, I haven't actually tried this method of copying files
myself, so while I'd imagine it'd work, you may need to play around
with it for a bit. What I've done before was to have a shell script
set to run, triggered by a public key login like this.)

See 'man sshd' for more detail.  

HTH, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe

2010-10-07 Thread Willie Wong
On Thu, Oct 07, 2010 at 02:14:47PM -0400, Willie Wong wrote:
 On Thu, Oct 07, 2010 at 06:45:49PM +0200, Momesso Andrea wrote:
  I need to set up a cron job to transfer a file every day from server A  
  to server B.
  
  I'd like to do that via ssh and with no user assistance, completely 
  automated.
  
  Setting up a public key, would do the job, but then, all the  
  connections between the servers would be passwordless, so if server A  
  gets compromised, also server B is screwed.
  
  Is there a way to allow only one single command from a single cronjob  
  to operate passwordless, while keeping all the other connections  
  secured by a password?
 
 In the authorized_keys file, you need to include a specification of
 command=insert command here. Which means that on log-in with the
 public key, the sshd will execute that command, and any other commands
 sent from the machine which originated the connection will not
 execute. 
 
 So I'd imagine you can untar with the command at the target, and
 instead of scp, use something like
 
   tar file | ssh -i identity file u...@host
 

These two links may also be helpful:

http://www.debian-administration.org/articles/438
http://sial.org/howto/rsync/

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Copying a file via ssh with no password, keeping the system safe

2010-10-07 Thread Willie Wong
On Thu, Oct 07, 2010 at 08:40:31PM +0200, Andrea Conti wrote:
  Is there a way to allow only one single command from a single cronjob to
  operate passwordless, while keeping all the other connections secured by
  a password?
 
 You can't do that on a per-command basis. You'd be trying to control the
 authentication method accepted by sshd on B according to which command
 is run on A -- something sshd on B knows nothing about.
 

That's partially false. See my response in this thread. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] ~40 new perl-related ebuilds, why???

2010-09-30 Thread Willie Wong
On Thu, Sep 30, 2010 at 06:20:54PM +0200, Jarry wrote:
  # emerge --pretend --update --deep --newuse world
 

snip
 [ebuild  N] perl-core/Module-Build-0.36.07
 [ebuild  N] virtual/perl-Module-Build-0.36.07
 [ebuild  N] dev-perl/Error-0.17.016  USE=-test
 [ebuild  N] dev-vcs/git-1.7.2.2  USE=blksha1 curl iconv perl 
 threads webdav -bash-completion -cgi -cvs -doc -emacs -gtk (-ppcsha1) 
 -subversion -tk -xinetd
 [ebuild U ] sys-devel/gettext-0.18.1.1-r1 [0.17-r1] USE=git%*
   ^

This is pulling in git. Git is pulling in everything else. Remove git
from your USE if you don't need it. For future reference it is easier
to see dependencies if you use the --tree option to emerge. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Protocol for bugs on Sunrise ebuilds

2010-08-28 Thread Willie Wong
What is the protocol for reporting bugs on ebuilds in the sunrise
overlay? 

In particular, media-gfx/ipe has an RDEPEND on 

   !seamonkey? ( || ( www-client/mozilla-firefox
www-client/firefox-bin ) )

which is broken by the recent move of www-client/mozilla-firefox to
www-client/firefox (and now it wants to pull in firefox-bin instead).

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Protocol for bugs on Sunrise ebuilds

2010-08-28 Thread Willie Wong
On Sat, Aug 28, 2010 at 01:56:43PM +0200, Pavel Sanda wrote:
  What is the protocol for reporting bugs on ebuilds in the sunrise
  overlay? 
 
 i would either write directly to the maintainer of the ebuild
 or send a note to irc channel dedicated to sunrise.

... and of course

/usr/local/portage/layman/sunrise/media-gfx/ipe $ grep maint metadata.xml 
maintaineremailmaintainer-wan...@gentoo.org/email/maintainer

D'Oh. I'll try asking around irc sometime later. Thanks. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] inkscape fails, cannot find boost

2010-08-28 Thread Willie Wong
Dear list, 

Just want a sanity check. I try to emerge the most recent version of
inkscape (media-gfx/inkscape-0.48.0), and the build fails in the
configuration stage


-snip build.log
checking for IMAGEMAGICK... yes
checking for CAIRO_USER_FONTS... yes
checking for INKSCAPE... yes
checking for Mac OS X Carbon support... no
checking boost/concept_check.hpp usability... no
checking boost/concept_check.hpp presence... no
checking for boost/concept_check.hpp... no
configure: error: You need the boost package (e.g. libboost-dev)
---

-snip config.log
configure:7205: checking for unistd.h
configure:7205: i686-pc-linux-gnu-g++ -c -O2 -march=native -pipe
-fno-strict-ali
asing -Werror=format-security -Wall -Wformat -Wformat-security -W
-D_FORTIFY_SOU
RCE=2  conftest.cpp 5
configure:7205: $? = 0
configure:7205: result: yes
configure:7218: checking boost/unordered_set.hpp usability
configure:7218: i686-pc-linux-gnu-g++ -c -O2 -march=native -pipe
-fno-strict-aliasing -Werror=format-security -Wall -Wformat
-Wformat-security -W -D_FORTIFY_SOURCE=2  conftest.cpp 5
conftest.cpp:55:35: error: boost/unordered_set.hpp: No such file or
directory
configure:7218: $? = 1
-

`qcheck boost' returns that all 7000+ files are good, and 
/usr/include/boost-1_42boost/unordered_set.hpp exists. 

Any thoughts what can be given me problems?

Cheers, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Flash player

2010-08-26 Thread Willie Wong
On Thu, Aug 26, 2010 at 06:40:18PM -0400, Daniel D Jones wrote:
 As shown, I have Flash Player 10 installed.  (I unmasked and upgraded to the 
 installed version in an effort to fix this issue.)  On multiple sites, 
 however, 
 using Firefox, I get the following message or similar:
 
 Sorry, the Flash Player version you are using is not supported by HBO.com
 
 It appears you are currently using Flash Player 9.0.115 and this site 
 supports 
 version 9.0.124 and up. In order to continue, please upgrade your Flash 
 Player.
 
 
 The same page will work in Opera.  Firefox is installed via the firefox-bin 
 package rather than the source package.  Fixes or suggestions for avenues of 
 investigation would be greatly appreciated.

Is there another copy of flash installed 'locally'? As in your home
directory? Check ~/.mozilla for a plugins subdirectory to see. 

Cheers, 
W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] I don't understand Perl. What do I do after an update?

2010-07-21 Thread Willie Wong
On Wed, Jul 21, 2010 at 08:04:54PM +0300, Nikos Chantziaras wrote:
 Portage recently updated Perl from 5.10.1 to 5.12.1 (and later -r1). 
 However, a crapload of files still remain in 
 /usr/lib/perl5/{site_perl,vendor_perl}/5.10.1.  I found out the hard way 
 after trying to emerge openoffice (and everyone knows how painful that 
 one is):
 
 What is the user required to do after updating Perl?  elogv doesn't tell 
 me anything about upgrading.

There's this neat little script called perl-cleaner

http://www.gentoo.org/proj/en/perl/perl-cleaner.xml

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] xorg-server 1.7.6 without mouse and keyboard

2010-07-13 Thread Willie Wong
On Tue, Jul 13, 2010 at 05:57:14PM +0200, Tamer Higazi wrote:
 After upgrading my system, xorg-server 1.7.6 is on my system. I 
 regenrated the config file Xorg -configure. The display is shown 
 proparly with everything around it but I don't have a mice and keyboard.
 
 How do I get the mouse and keyboard to run. I followed the steps from 
 the official gentoo xorg guide, and nothing changed.
 
 Any ideas?!

(1) Please post your xorg.conf
(2) Please show the output of emerge -pv xorg-server

Cheers, 
W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] revdep-rebuild + minimal output

2010-07-10 Thread Willie Wong
On Sat, Jul 10, 2010 at 06:52:35AM +0200, Enrico Weigelt wrote:
 is there an option to revdep-rebuild to only do output if it has 
 something to rebuild ? This should be run via cron to notify me
 via email.

Usually is there an option... questions are well-answered by man
program name. And in this case the closest thing from the man page
is the -q option, which doesn't do exactly what you want. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] CD boot - dmesg buffer depth option?

2010-07-06 Thread Willie Wong
On Mon, Jul 05, 2010 at 02:17:26PM -0700, Mark Knecht wrote:
 On Mon, Jul 5, 2010 at 12:11 PM, Willie Wong ww...@math.princeton.edu wrote:
  On Mon, Jul 05, 2010 at 09:16:14AM -0700, Mark Knecht wrote:
  I'm trying to capture the full boot log when booting from the Gentoo
  install CD but it seems the buffer isn't deep enough to get the whole
  thing. Is there by chance a command line option that will increase the
  depth of what's captured by dmesg so that I can get all the way back
  to the beginning?
 
  pass the following parameter to the kernel on GRUB/LILO:
 
  log_buf_len=n
 
  where n is a power of two. By default it is 16384. You can change it
  to 131072 (= 2^17) to get a much larger kernel log ring buffer. If you
  put in something that is not a power of two, the kernel will ignore
  the option.
 
Thanks for the ideas. I've been trying them but so far no luck.
 
In my normal booting kernel (on the system hard drive) I did push
 the length up to 18. With that setting dmesg prints all the way back
 to the beginning. However booting the Live CD I hit F1, it shows the
 kernels, so I type
 
 gentoo log_buf_len=18
 

18 is not a power of two. 

Why didn't you just try 131072, like I suggested? In maths notation, 

 n = 2^k 

for some natural number k. 18 fails that miserably. :)

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] CD boot - dmesg buffer depth option?

2010-07-06 Thread Willie Wong
On Mon, Jul 05, 2010 at 02:17:26PM -0700, Mark Knecht wrote:
 On Mon, Jul 5, 2010 at 12:11 PM, Willie Wong ww...@math.princeton.edu wrote:
  On Mon, Jul 05, 2010 at 09:16:14AM -0700, Mark Knecht wrote:
  I'm trying to capture the full boot log when booting from the Gentoo
  install CD but it seems the buffer isn't deep enough to get the whole
  thing. Is there by chance a command line option that will increase the
  depth of what's captured by dmesg so that I can get all the way back
  to the beginning?
 
  pass the following parameter to the kernel on GRUB/LILO:
 
  log_buf_len=n
 
  where n is a power of two. By default it is 16384. You can change it
  to 131072 (= 2^17) to get a much larger kernel log ring buffer. If you
  put in something that is not a power of two, the kernel will ignore
  the option.
 
In my normal booting kernel (on the system hard drive) I did push
 the length up to 18. With that setting dmesg prints all the way back
 to the beginning. However booting the Live CD I hit F1, it shows the
 kernels, so I type
 

to add to the confusion is probably the fact that the in-kernel
configuration parameter is a bit-shift number, and the boot-time
cmdline parameter is actually 2 to that power. So the in-kernel
configuration parameter should be k (=18 in your case), and the
boot-time parameter should be 2^k (=262144).

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] [bugzilla-dae...@gentoo.org: [Bug 326991] Testing release of sys-libs/zlib-1.2.5.3 from unofficial sources (???)]

2010-07-06 Thread Willie Wong
On Tue, Jul 06, 2010 at 01:29:04AM +0200, Enrico Weigelt wrote:
 
 Hi folks,
 
 
 does he speak for all of you ?
 
 --- Comment #4 from vap...@gentoo.org  2010-07-05 19:39  ---
 lemme clarify further: dont bother submitting ebuilds for any package in
 OSS-QM.  we arent interested.
 

What the heck is the OSS-QM?

No, the link in your sig didn't work, it returned a 404. 

In any case, if the gentoo maintainers don't want to deal with it, and
if you really need it, and if you can't convince them to switch, then
maybe it is time to try a new distro? 

Also, just because it is not *sanctioned* by the maintainers doesn't
mean it cannot go in an overlay somewhere. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] [OT] How to capture a screen video?

2010-07-05 Thread Willie Wong
On Mon, Jul 05, 2010 at 03:47:44PM +0800, Blackdream W wrote:
 发文档务必请用.txt格式。其它格式不会被打开

For someone whose signature asks all posts to be in txt, what are you
doing sending so many GIFs to the mailing list?

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] [OT] How to capture a screen video?

2010-07-05 Thread Willie Wong
On Mon, Jul 05, 2010 at 03:39:29PM +0200, Daniel Pielmeier wrote:
 2010/7/5 William Kenworthy bi...@iinet.net.au:
 
  There is a very informative movie that might help explain the process of
  asking a question, then asking what question you need to get the answer.
  Its called Hitch Hikers Guide to the Galaxy.
 
  Its obvious, the answers 24.
 
 24? I always thought The Answer to the Ultimate Question of Life, the
 Universe, and Everything was 42. Did I miss something? :)

Obviously William Kenworthy is actually from a planet in the vicinity
of Betelgeuse, and has three arms, 2 of which with 6 fingers, and 1
with 7. Else I cannot fathom why he would want to try to count in base
19. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] CD boot - dmesg buffer depth option?

2010-07-05 Thread Willie Wong
On Mon, Jul 05, 2010 at 09:16:14AM -0700, Mark Knecht wrote:
 I'm trying to capture the full boot log when booting from the Gentoo
 install CD but it seems the buffer isn't deep enough to get the whole
 thing. Is there by chance a command line option that will increase the
 depth of what's captured by dmesg so that I can get all the way back
 to the beginning?

pass the following parameter to the kernel on GRUB/LILO:

log_buf_len=n

where n is a power of two. By default it is 16384. You can change it
to 131072 (= 2^17) to get a much larger kernel log ring buffer. If you
put in something that is not a power of two, the kernel will ignore
the option. 

You may also have to pass an additional parameter to dmesg to read the
early messages: look at 'man dmesg' and the -s flag. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Mailing list policy on reply

2010-07-02 Thread Willie Wong
On Fri, Jul 02, 2010 at 02:54:33AM +0200, Nicolas Sebrecht wrote:
 Hi all,
 
 I'm often stucked by the current policy in this mailing list changing
 the 'Reply-To' header to the mailing list address.  Most mailing lists I
 use don't do that.
 
 It is usually better and prefer the answer to all policy as it permit
 to be notified of an answer without having to track the whole mailing
 list.
 
 What do you think about changing of policy?

Way to go! Reviving a five-year-old discussion:

http://www.mail-archive.com/gentoo-u...@gentoo.org/msg45780.html

Which at that time, was already an old discussion:

http://www.mail-archive.com/gentoo-u...@gentoo.org/msg45855.html

So let's just not much about with it, eh?

Cheers,

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Can we please get a USB-stick install boot image?

2010-06-30 Thread Willie Wong
On Wed, Jun 30, 2010 at 06:52:09PM -0400, waltd...@waltdnes.org wrote:
   I don't know if this is the proper list to post this request to.  I've
 been using linux for a dozen years, and am capable of reading and
 following instructions.  But, after a lot of dicking around, I still
 haven't been able to modify a CD boot image get Gentoo to boot from a
 USB stick.  For my netbook (look ma, no CD) I ended up booting Knoppix
 from a USB-stick, and installing Gentoo from there.
 
   There are quite a few machines without CD drives being sold today, but
 none that I'm aware of that won't boot from a USB stick.  I believe that
 USB-stick images, rather than CD images, should be the default
 distributed boot images on the mirrors.  And think of all the CD's that
 won't end up in the landfill, after an install image is used once.

While I'd also like to see USB boot media, I'd like to observe that
SystemRescueCD, which is based on Gentoo, is perfectly good to use as
an install medium. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] X-Server-1.8 and Intel i915 modesetting stability

2010-06-29 Thread Willie Wong
On Mon, Jun 28, 2010 at 06:47:42PM +0200, Florian Philipp wrote:
 1. On boot up, the screen goes completely black until the xserver is
 started. While I know my system long enough to recognize common boot
 errors by watching the disk and peripheral device activity, I wouldn't
 like to make a filesystem recovery blindfolded ;)

Any dmesg output?

 
 2. Once the XServer runs, it is extremely unstable. It gets killed and
 restarted by XDM every few minutes. dmesg and Xorg.0.log haven't shown
 anything suspicious.
 
 In the end that means that I'm currently stuck with xorg-server-1.7 and
 no modesetting.
 

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] X-Server-1.8 and Intel i915 modesetting stability

2010-06-29 Thread Willie Wong
On Tue, Jun 29, 2010 at 08:49:38PM +0200, Florian Philipp wrote:
 What, you mean after going blank? Not that I would have noticed. If you
 mean after the xserver crash, see three sentences below ;)

Oh, my bad. So I assumed that you also checked the kernel logs then. Are
you sure there's no kernel trouble _very early_ in the boot process?

I don't know about the Dell model you have, is it a laptop? Some
motherboard BIOS/ACPI are known to have a bug where they mis-report
the lid status of the laptop, and so on boot the computer thinks the
lid is closed and turns off the screen. Though the kernel would
usually complain about not finding an active screen attached to the
video card or something like that.  
 
 
  2. Once the XServer runs, it is extremely unstable. It gets killed and
  restarted by XDM every few minutes. dmesg and Xorg.0.log haven't shown
  anything suspicious.

Is this with a window manager or is this also with the vaniila TWM +
xterm?

I mean, if something crashes, somebody somewhere ought of have a log,
right? 

Best of luck, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Stable users: libpng-1.4

2010-06-29 Thread Willie Wong
On Tue, Jun 29, 2010 at 11:56:56PM +0200, Alan McKinnon wrote:
 He has this uncanny ability of almost 
 always being correct on technical toolchain matters

I disagree with the uncanny part. This is flameeyes we are talking
about. It's like saying Joerg Schilling has this uncanny ability
of almost always being correct on technical CD{ROM,R,RW} DVD, or
Dale has this uncanny ability of almost always jumping into a HAL
bashing thread...

:-)

Thanks for the link as always. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] X Windows setup questions on my new machine

2010-06-27 Thread Willie Wong
On Sun, Jun 27, 2010 at 12:13:13AM +0100, Mick wrote:
However, my new machine's Intel integrated graphics chip doesn't agree.
   X will *NOT* work unless I enable i915 DRM driver in make menuconfig,
   like so...
   
   *   Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  ---
   
This results in framebuffer being *FORCED* on.
   
   * Direct Rendering Manager (XFree86 4.1.0 and higher DRI support
   -*- Lowlevel video output switch controls
   -*- Support for frame buffer devices  ---

 Walter, have you tried to find the vga modes that your card supports using 
 vbetools (you'll need vbetest) or running 'hwinfo --vbe' ?

With the intel driver and X, he needs to have kernel mode setting
enabled. I seem to remember that it doesn't play well with the vga
mode setting for framebuffers. 

But Walter: you should be able to add a line on your lilo/grub prompt
for the Intel KMS to set the display resolution at boot time. See the
Kernel documentation in /usr/src/linux for the Intel GMA driver for
more info on that. (Technically you should be able to rung the console
at a different resolution than X; there may require another tweak at
the kernel level to make the switch to VT after starting X play nice.
See the gentoo-wiki article on Kernel Mode Setting.)

Also, have you tried just using larger fonts on the console? If you
emerge sys-apps/kbd, there should be some fonts in
/usr/share/consolefonts. You can use setfont name to test which
one you want to use (some of them are bigger fonts). You may also want
to try media-fonts/terminus-font (what I use), it claims to have a
16x32 variant which is twice as large as the default console fonts. 

After finding a font you like you can set it in
/etc/conf.d/consolefont to automatically load at boot time. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] turn on wifi enables also bluetooth

2010-06-17 Thread Willie Wong
On Thu, Jun 17, 2010 at 02:43:15PM +0200, pat wrote:
 I have Dell Latitude E4300 notebook where the wifi and bluetooth (BT) is
 turned on by one HW switch. So, on windows if the switch is turned on there is
 possible to turn off one of these devices (from windows try stop the device).
 Is there something similar in Linux? Some application which is opened right
 after turning on of the switch and the application allow me to choose to turn
 on wifi or bt or both? Or is there a script which can be used to turn of the
 device even if the switch is on?

Try net-wireless/rfkill
You may need to have kernel support compiled (CONFIG_RFKILL, if I
remember right). It also depends on rfkill support to have been coded
into the drivers for your bluetooth and/or wifi devices. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] [SOLVED] Phonon + PulseAudio Problem

2010-05-23 Thread Willie Wong
On Sun, May 23, 2010 at 03:05:03PM +0100, Peter Humphrey wrote:
 And how often would you impose refresher tests? Anyone's memory is 
 fallible, as no-one knows better than I do.

You just don't remember someone knowing it better. :)

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Deprecated installed packages

2010-05-20 Thread Willie Wong
On Thu, May 20, 2010 at 07:38:43AM +0200, Alan McKinnon wrote:
 On Thursday 20 May 2010 06:34:37 Willie Wong wrote:
  Hi list,
  
  I ran 'eclean-dist' last night (with no additional arguments) to clean
  out /usr/portage/distfiles. And it generated a bit of interesting
  output that I haven't seen before:
  
 The folowing Deprecated installed packages were found
   media-libs/libpng-1.2.43-r1
   dev-python/reportlab-2.3-r1
   app-i18n/gcin-1.4.7_pre17
   sys-kernel/gentoo-sources-2.6.31-r9
   dev-perl/URI-1.53
   dev-java/sun-jdk-1.5.0.22
  
  I don't see anything about this feature in 'man eclean'; does anyone know
  what this is all about?
 
 It means those package version are deprecated and you are encouraged to 
 upgrade them.
 

Ah... I see, I was trying to figure out what they meant by deprecated
and how they determined it. It seems that the only thing common to
those packages is that their ebuilds are no-longer in the tree. 

So I guess I'm not going to worry too much about it: if they haven't
gotten updated regularly that probably means they are either bdeps or
that they will be depcleaned the next time I do it.

Cheers, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Deprecated installed packages

2010-05-20 Thread Willie Wong
On Thu, May 20, 2010 at 10:20:54AM +0200, Alan McKinnon wrote:
  Ah... I see, I was trying to figure out what they meant by deprecated
  and how they determined it. It seems that the only thing common to
  those packages is that their ebuilds are no-longer in the tree.

 Each one of those packages you list has more up to date versions available in 
 the tree.

Precisely. But the exact version that is installed is no longer in
the tree. Seeing that I don't recall the portage system introducing a
deprecated flag (short of the removal notice and package.mask), I was
curious how eclean determined that those packages are deprecated. 

And also seeing that for many of the ones I listed, neither
  emerge --update --deep world
nor
  emerge --update --deep --with-bdeps=y world
suggest their updates, in my case they are probably just cruft that
ought to go away once the system is brought up to date and I can run
depclean. 

But am I wrong in my impression that with bdeps, the common thing to
do is to update them only when absolutely necessary? So in this case
the deprecation warning might introduce unnecessary cycles spent on
building those packages (among those who don't want to track down the
origins of those packages and just want the block of text to go away).

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Intel KMS LVDS; was X crashes, how to troubleshoot?

2010-05-19 Thread Willie Wong
On Sun, Apr 11, 2010 at 10:37:16AM -0400, Willie Wong wrote:
 On Sat, Apr 10, 2010 at 01:21:01AM +0700, Ngoc Nguyen Bao wrote:
  Seems that you also suffer problem with Intel driver and kernel
  2.6.32. Upgrade your xf86-video-intel to v2.11.0 may help.
 
 Actually, I am still on kernel 2.6.30; with .32 something's not quite
 right with the KMS and on boot my laptop's LCD is not detected. I'll
 try 2.11.0 to see if it also fixes my problem. 

Just as an aside, my issue with the 2.6.32 kernels turns out to be a
bios bug: the bios reports the lid to my netbook is closed even when
it is open (cat /proc/acpi/button/lid/LID0/state shows 'closed'). Now
starting kernel 2.6.32 apparently the KMS was 'fixed' to trust the
bios reporting, hence it does not think *any* computer display is
attached to the computer. 

This leads to a kernel error on boot and a blank screen. 

Anyway, Pablo (whoever you are: thanks!), a gentoo user, commented on
a Ubuntu bug report
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/515246/comments/55
and provided the RTFM response: apparently we can override the bios by
passing a suitable boot parameter to explicitly enable the LCD display
on the laptop. 

With this now I'll be able to upgrade to a newer version of the kernel
and test out the new intel X drivers. 

Cheers, 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



[gentoo-user] Deprecated installed packages

2010-05-19 Thread Willie Wong
Hi list, 

I ran 'eclean-dist' last night (with no additional arguments) to clean
out /usr/portage/distfiles. And it generated a bit of interesting
output that I haven't seen before:

   The folowing Deprecated installed packages were found
 media-libs/libpng-1.2.43-r1
 dev-python/reportlab-2.3-r1
 app-i18n/gcin-1.4.7_pre17
 sys-kernel/gentoo-sources-2.6.31-r9
 dev-perl/URI-1.53
 dev-java/sun-jdk-1.5.0.22

I don't see anything about this feature in 'man eclean'; does anyone know 
what this is all about?

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Gentoo decapitated

2010-05-16 Thread Willie Wong
On Sun, May 16, 2010 at 01:16:34PM -0700, Kevin O'Gorman wrote:
   These are the only lines with the word mouse in them.
 
  Kevin, what I would try first is to set INPUT_DEVICES=evdev mouse in your
  /etc/make.conf, then emerge x11-drivers/xf86-input-mouse and finally
  reboot.
  Unless your mouse needs some special driver it will just work.

The advice is to set the appropriate flag in /etc/make.conf 
NOT what you are doing below to /etc/X11/xorg.conf

 
 
 So I tried the same thing with two statements
 
 Section ServerLayout
 Identifier X.org Configured
 Screen  0  Screen0 0 0
 #InputDeviceMouse0 CorePointer
 #InputDeviceKeyboard0 CoreKeyboard
 InputDevice evdev
 InputDevice mouse
 EndSection
 

That is not exactly the right syntax for Xorg.conf
If you are using an xorg.conf and not just using evdev/hal, then you
should probably have something more like this in your configuration
file:

Section ServerLayout
Identifier X.org Configured
Screen  0  Screen0 0 0
InputDeviceMouse0 CorePointer
InputDeviceKeyboard0 CoreKeyboard
EndSection

Section InputDevice
Identifier  Keyboard0
Driver  kbd
EndSection

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol auto
Option  Device /dev/input/mouse1
EndSection

...plus other things. In the InputDevice section for Mouse0, note the
Option that sets the Device to /dev/input/mouse1. You will have to set
that to the appropriate path to the pointer device. It will most
likely by somewhere in /dev/input/  (often just mouse0 or mice, I have
a separate touchscreen device so mine is at mouse1). If you do not
have a mouse device listed in /dev/input, then you need to check
either your kernel configurations or your udev configurations. 

For more about the proper syntax in xorg.conf, try man xorg.conf.

If you are unsure about how to write your xorg.conf file, post its
full contents to the list and we'll take a look at it. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: can't create file but disk isn't full

2010-05-12 Thread Willie Wong
On Thu, May 13, 2010 at 12:25:08AM +0200, Alex Schuster wrote:
  The 5% is historical from days when disks are much smaller. If you
  have a sensible partition scheme you only really need to reserve the
  blocks on the $ROOT filesystem. If the partition in question (IIRC) is
  only for /home, then you can just turn off the reserved blocks all
  together.
 
 Isn't another purpose of those 5% the reduction of fragmentation that 
 occurs more when there is few free space left? Although I also reduce ift 
 on very large partitions. But I never set it to exactly zero.

Perhaps? I don't know. My ext3 partitions with 0% are all for large
files (videos and music) that are more or less static, so I can't say
anything about fragmentation on them. My other partitions are all
reiser, so can't say anything about fragmentation on them either :)

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: can't create file but disk isn't full

2010-05-10 Thread Willie Wong
On Sun, May 09, 2010 at 07:39:01PM -0300, Crístian Viana wrote:
 what exactly is this reserved block count? is it about the number of inodes?
 does that mean that, by default, regular users can only use 95% of the
 inodes? and why did I use all these inodes? I don't think I have that many
 small files on this partition...

When the filesystem fills up, services can start failing left and
right because they cannot write logs, cannot write temp files, etc. At
this point human intervention is necessary: root has to log in and
clear out the disk. But if the $ROOT filesystem is completely full,
one may not even be able to log in and/or that one cannot do any sort
of maintenance that is needed. So you have some sort of circularity. 
(In which case you have to reboot, perhaps using another medium...)

The way out is to reserve some breathing room for root so that when
everybody else is having problems he can still get in and fix the
problem. 

The 5% is historical from days when disks are much smaller. If you
have a sensible partition scheme you only really need to reserve the
blocks on the $ROOT filesystem. If the partition in question (IIRC) is
only for /home, then you can just turn off the reserved blocks all
together. 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Willie Wong
On Mon, May 03, 2010 at 04:56:04PM +0200, Alan McKinnon wrote:
  I don't understand what you mean by booting to a single user
  maintenance mode.  How do I do that?
 
 At the grub menu, select the kernel you wish to boot. 
 Press e
 Move cursor to the kernel line
 Press e
 Move cursor to the end of the line. Append  1 or  single

Uh, I thought that, per discussions a few weeks ago, we've concluded
that in Gentoo that will still land you in the default runlevel.
Instead you should append
  softlevel=single
to the end of the line, and continue from hereon. 

 Press enter
 Press b
 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] acroread-9.3.2 produces invalid postscript?

2010-04-29 Thread Willie Wong
On Thu, Apr 29, 2010 at 11:19:13AM +0200, Helmut Jarausch wrote:
 I have very bad experience with acroread-9.3.2.
 Some printers (claiming to support postscript level 3) just hang.
 When I first 'print' to a file,
 gv only shows some part of each page and evince just hangs.
 
 Has anybody similar experience?
 
 (Yes, I can use xpdf, but acroread has the nice feature of printing
 several pages on a sheet of paper which is very handy when printing
 slides of a presentation)

Not a solution: I've given up on using acroread long time ago. But I
am pretty sure that evince can also print multiple pages per sheet,
and since you mentioned it earlier: why not use it instead?

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] xypic wants ruby?

2010-04-25 Thread Willie Wong
On Sun, Apr 25, 2010 at 10:27:52PM +0100, Jorge Almeida wrote:
 I need dev-texlive/texlive-pictures because it seems that's what
 provides xy-pic.  Why in Hell am I obliged to install ruby? I
 currently have no use for it. I can't begin to imagine why this
 particular programming language should  be a must... Nothing in the
 use flags suggests a clue, for me anyway...

Probably because it installs a heck lot more than just xypic? The full
list gives

  asyfig autoarea bardiag cachepic combinedgraphics circuitikz curve
curve2e curves dcpic diagmac2 doc-pictex dottex dot2texi dratex eepic 
epspdf epspdfconversion fig4latex gnuplottex here hvfloat miniplot 
pb-diagram petri-nets pgf-soroban pgfopts pgfplots picinpar pict2e 
pictex pictex2 pinlabel pmgraph randbild schemabloc swimgraf texdraw 
tikz-inet tikz-qtree tikz-timing tkz-doc tkz-linknodes tkz-tab 
tufte-latex xypic collection-pictures

Ruby is a RDEPEND; if you are interested you certainly can try
Googling to find out which in the above list is the offender. One
that I recognize which requires a ruby runtime is the converter epspdf.

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Can't get a DVD to burn.

2010-04-20 Thread Willie Wong
On Tue, Apr 20, 2010 at 10:45:27AM -0500, Paul Hartman wrote:
  /dev/fd/0 is /dev/stdin
 
 I learned something new, thanks :)

To complete your education :) fd stands for file descriptor. 

fd/0 = stdin
fd/1 = stdout
fd/2 = stderr

You can create your own file descriptors and use them to manipulate
opened files. See man bash for more info. (It is, for example,
necessary if you do CLI scripting with a user interface using Dialog.)

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] X crashes, how to troubleshoot?

2010-04-11 Thread Willie Wong
On Fri, Apr 09, 2010 at 11:57:32AM -0400, AJ Spagnoletti wrote:
 This is a late reply and you might have already solved the issue,
 however, I was running into this problem as well, and it was resolved
 for my by backing my X packages back down to stable as I was running a
 stable kernel. Another fix was to upgrade to an unstable X. I was
 informed that there have bee problems mixing unstable drivers and
 stable kernel. Hope this helps

Thanks. I've already downgraded to an older version of the intel X
driver, which seems to have fixed the issue. Unfortunately I haven't
been able to get KMS working with the newer kernels (on boot it does
not detect the laptop's LCD and blanks out), so I am stuck with
not-upgrading the X drivers for the moment being.

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



  1   2   3   4   5   6   7   8   9   10   >