[gentoo-user] openwatcom ebuild question

2009-11-14 Thread David Relson
As background, http://bugs.gentoo.org/show_bug.cgi?id=233097 has an
experimental, unsupported ebuild for openwatcom-1.7.1 and it doesn't
quite work :-

The ebuild's src_compile function is:

src_compile() {
./build.sh || die build.sh failed
}

When I run emerge =dev-lang/openwatcom-1.7.1, the build fails with

/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
i386:x86-64 architecture of input file `bootstrp/clibext.o' is
incompatible with i386 output distcc[16016] ERROR: compile (null)
on localhost failed

The full output of the emerge command is in the attached file.

Alternatively, I can manually unpack and build with commands:

ebuild =dev-lang/openwatcom-1.7.1.ebuild unpack
cd /var/tmp/dev-lang/openwatcom-1.7.1/work
./build.sh

With the steps performed manually, the compilation works properly.

Anybody familiar with the i386:x86-64 ... incompatible ... i386
message and know what it means?

Any suggestions on ebuild changes to correct this behavior?

Thanks !

David
 Unpacking source...
 Unpacking open_watcom_1.7.1-src.tar.bz2 to /var/tmp/portage/dev-lang/openwatcom-1.7.1/work
 * Applying build.sh.patch ...
  [ ok ]
 Source unpacked in /var/tmp/portage/dev-lang/openwatcom-1.7.1/work
 Compiling source in /var/tmp/portage/dev-lang/openwatcom-1.7.1/work ...
Open Watcom compiler build environment
mkdir bootstrp
cc -c -funsigned-char -fno-common -g -O2 -Wall -Wno-switch -Ibootstrp -Ih -I../watcom/h -I../lib_misc/h -D__LINUX__ -D__UNIX__= -DUNIX -Uunix -DBOOTSTRAP -DWMAKE -Ibootstrp -o bootstrp/wsplice.o ../builder/c/wsplice.c
cc -c -funsigned-char -fno-common -g -O2 -Wall -Wno-switch -Ibootstrp -Ih -I../watcom/h -I../lib_misc/h -D__LINUX__ -D__UNIX__= -DUNIX -Uunix -DBOOTSTRAP -DWMAKE -Ibootstrp -o bootstrp/clibext.o ../watcom/c/clibext.c
cc -g bootstrp/wsplice.o bootstrp/clibext.o -o bootstrp/wsplice
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `bootstrp/wsplice.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `bootstrp/clibext.o' is incompatible with i386 output
distcc[16016] ERROR: compile (null) on localhost failed
make: *** [bootstrp/wsplice] Error 1
./build.sh: line 19: wmake: command not found
./build.sh: line 22: builder: command not found
 Source compiled.
 Test phase [not enabled]: dev-lang/openwatcom-1.7.1

 Install openwatcom-1.7.1 into /var/tmp/portage/dev-lang/openwatcom-1.7.1/image/ category dev-lang
cp: cannot stat `rel2': No such file or directory
ln: creating symbolic link `/var/tmp/portage/dev-lang/openwatcom-1.7.1/image//opt/openwatcom/bin': No such file or directory
 Completed installing openwatcom-1.7.1 into /var/tmp/portage/dev-lang/openwatcom-1.7.1/image/

 Done.


Re: [gentoo-user] openwatcom ebuild question

2009-11-14 Thread David Relson
On Sat, 14 Nov 2009 22:21:50 +0100
Xavier Parizet wrote:

 David Relson a écrit :
  As background, http://bugs.gentoo.org/show_bug.cgi?id=233097 has an
  experimental, unsupported ebuild for openwatcom-1.7.1 and it doesn't
  quite work :-
  
  The ebuild's src_compile function is:
  
  src_compile() {
  ./build.sh || die build.sh failed
  }
  
  When I run emerge =dev-lang/openwatcom-1.7.1, the build fails with
  
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
  i386:x86-64 architecture of input file `bootstrp/clibext.o' is
  incompatible with i386 output distcc[16016] ERROR: compile
  (null) on localhost failed
 
 You use distcc. But seems to be not well configured. Just disable
 distcc to build the package (FEATURES=-distcc in /etc/make.conf).
 
 HTH.

Xavier,

It helps a lot!  I had installed distcc, but never quite got it
working.  Getting it working is on my TODO list, but I hadn't thought
of it when the problem occurred.

Thanks!

David



Re: [gentoo-user] openwatcom ebuild question

2009-11-14 Thread David Relson
On Sat, 14 Nov 2009 23:34:46 +0100
Daniel Pielmeier wrote:

 David Relson schrieb am 14.11.2009 21:33:
  As background, http://bugs.gentoo.org/show_bug.cgi?id=233097 has an
  experimental, unsupported ebuild for openwatcom-1.7.1 and it doesn't
  quite work :-
  
  The ebuild's src_compile function is:
  
  src_compile() {
  ./build.sh || die build.sh failed
  }
  
  When I run emerge =dev-lang/openwatcom-1.7.1, the build fails with
  
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
  i386:x86-64 architecture of input file `bootstrp/clibext.o' is
  incompatible with i386 output distcc[16016] ERROR: compile
  (null) on localhost failed
  
  The full output of the emerge command is in the attached file.
  
  Alternatively, I can manually unpack and build with commands:
  
  ebuild =dev-lang/openwatcom-1.7.1.ebuild unpack
  cd /var/tmp/dev-lang/openwatcom-1.7.1/work
  ./build.sh
  
  With the steps performed manually, the compilation works properly.
  
  Anybody familiar with the i386:x86-64 ... incompatible ... i386
  message and know what it means?
  
  Any suggestions on ebuild changes to correct this behavior?
  
  Thanks !
  
  David
 
 Okay, this is not a distcc problem.
 
 From looking at the bug. Do you really think by just tricking the
 architecture check to accept x86_64 will make it magically compile.
 You can't be serious! This software does not build on x86_64 at the
 moment. If you don't have the appropriate programming skills to fix
 this yourself you have to wait for the openwatcom developers to make
 it x86_64 ready.
 
 -- 
 Daniel Pielmeier

Daniel,

A detail I meant to include in my original posting is that I'm
attempting the build on (and for) a 32 bit machine.  So distcc _is_
the problem.

The lack of 64-bit buildability for openwatcom is a whole 'nother
subject and I'm in communication with the developer about it.

Regards,

David



Re: [gentoo-user] openwatcom ebuild question

2009-11-15 Thread David Relson
On Sun, 15 Nov 2009 10:29:12 +0200
Alan McKinnon wrote:

 On Sunday 15 November 2009 06:07:59 David Relson wrote:
  The lack of 64-bit buildability for openwatcom is a whole 'nother
  subject and I'm in communication with the developer about it.
  
 
 Is this the very famous watcom compiler that's been around longer
 than MS-DOS and eventually ended up being owned by Sybase?

You are correct -- though lacking the Sybase released it to the open
source world detail. 



Re: [gentoo-user] openwatcom ebuild question

2009-11-15 Thread David Relson
On Sun, 15 Nov 2009 17:06:27 +0200
Alan McKinnon wrote:

 On Sunday 15 November 2009 15:44:16 David Relson wrote:
  On Sun, 15 Nov 2009 10:29:12 +0200
  
  Alan McKinnon wrote:
   On Sunday 15 November 2009 06:07:59 David Relson wrote:
The lack of 64-bit buildability for openwatcom is a whole
'nother subject and I'm in communication with the developer
about it.
  
   Is this the very famous watcom compiler that's been around longer
   than MS-DOS and eventually ended up being owned by Sybase?
  
  You are correct -- though lacking the Sybase released it to the
  open source world detail.
 
 Sybase actually release the source to something? Surely you jest?
 
 I used to work for the local Sybase reseller. I would not have
 thought management would ever have open-sourced anything.
 
 Well, well, whaddayaknow. Miracles do happen.
 
 watcom was a very nice compiler back in the day. I remember it
 trashing the pants off anything else in the market (this was in the
 DOS-3.x era)

For more on Watcom C's history, including the Sybase release as open
source, see http://www.openwatcom.org/index.php/History

I used Watcom C quite a bit in the mid '90s to develop a bookkeepping
program for Michigan Bingo games, and even made some spending money
off of the project :-  

At that time, my host operating system was 32-bit OS/2 and the target
was 16-bit DOS.  Watcom worked like a champion for me!



Re: [gentoo-user] Quick quesition regarding linux-2.6.31.x and gentoo-sources-2.6.31-rx

2009-11-19 Thread David Relson
On Thu, 19 Nov 2009 15:49:19 -0500
Marcus Wanner wrote:

 I was just wondering if a package such as gentoo-sources-2.6.31-r6 
 uses kernel 2.6.31.6, or just 2.6.31. I have been digging through 
 timestamps and the like for a while, but I just can't figure it out.
 
 Thanks, and sorry for my noobishness.
 
 Marcus

It uses a tarball and patches:


$$ ( cd /usr/portage/distfiles ; ls -l *2.6.31* )
...   114701 2009-11-07 17:37 genpatches-2.6.31-6.base.tar.bz2 
...24961 2009-11-07 17:37 genpatches-2.6.31-6.extras.tar.bz2 
...   139031 2009-11-16 14:50 genpatches-2.6.31-7.base.tar.bz2 
...24961 2009-11-16 14:50 genpatches-2.6.31-7.extras.tar.bz2 
... 61494822 2009-09-12 20:14 linux-2.6.31.tar.bz2



Re: [gentoo-user] eclipse portage package

2009-11-26 Thread David Relson
On Wed, 25 Nov 2009 13:14:39 -0500
Marcus Wanner wrote:

 On 11/25/2009 12:20 PM, Chuck Robey wrote:
  Mark Knecht wrote:

  m...@dragonfly ~/Desktop $ eix eclipse
  * dev-java/ant-eclipse-ecj
   Available versions:
  (3.3)   3.3.0-r1
  (3.4)   3.4
  (3.5)   ~3.5.1
  {elibc_FreeBSD}
   Homepage:http://www.eclipse.org/
   Description: Ant Compiler Adapter for Eclipse Java
  Compiler
 
  
 This shows that 3.5.1 is available, but is masked by a ~arch keyword. 
 This means that the ebuild for 3.5.1 is not stable yet, and is not 
 guaranteed to work (though it most likely will).
  * dev-java/eclipse-ecj
   Available versions:
  (3.3)   3.3.0-r3
  (3.4)   3.4-r4
  (3.5)   ~3.5.1
  {ant elibc_FreeBSD java6}
   Homepage:http://www.eclipse.org/
   Description: Eclipse Compiler for Java
 
  
 Same for eclipse-ecj...
  * dev-util/eclipse-sdk
   Available versions:  (3.4)  3.4-r2
  {doc elibc_FreeBSD java6}
   Homepage:http://www.eclipse.org/
   Description: Eclipse Tools Platform
 
  
 But not eclipse-sdk.
  dragonfly ~ # emerge -pv eclipse-ecj
 
  These are the packages that would be merged, in order:
 
  Calculating dependencies... done!
  [ebuild  N] app-admin/eselect-ecj-0.3  0 kB
  [ebuild  N] dev-java/eclipse-ecj-3.4-r4  USE=-java6 1,251 kB
 
  Total: 2 packages (2 new), Size of downloads: 1,251 kB
  
 Here, he shows what would be installed if you ran emerge elipse-ecj.
  dragonfly ~ # ACCEPT_KEYWORDS=~x86 emerge -pv eclipse-ecj
 
  These are the packages that would be merged, in order:
 
  Calculating dependencies... done!
  [ebuild  N] dev-python/pyxml-0.8.4-r2  USE=-doc -examples 0
  kB [ebuild  N] dev-java/javatoolkit-0.3.0-r3  17 kB
  [ebuild  N] dev-java/ant-core-1.7.1-r4  USE=-doc -source
  6,828 kB [ebuild  N] app-admin/eselect-ecj-0.3  0 kB
  [ebuild  N] dev-java/eclipse-ecj-3.5.1  USE=ant 1,268 kB
  [ebuild  N] dev-java/ant-eclipse-ecj-3.5.1  0 kB
 
  Total: 6 packages (6 new), Size of downloads: 8,111 kB
  
 This is what would happen if you temporarily told the system to allow 
 the installation of ~arch packages. Temporarily setting ~arch is a
 Bad Idea!
  I need to get an up-to-date version of eclipse working on my gentoo
  box.  First question is, is there a Galileo (3.5+) version of
  eclipse available as a portage package?  I can't find it, so I'd
  really appreciate a pointer.  The only thing I can see is a fairly
  old eclipse version (I think a year or more out of date). 
 That is because the newer version is keyworded with ~arch. Emerge
 will not tell you that there is a newer, keyworded version available.
  Second question, at the eclipse website, I see a binary version of
  the latest Linux-eclipse (the version I'm after).  If I *can't* get
  a portage package version of Galileo-eclipse,
 Don't worry, I'll show you how in a little bit!
  then if I install the binary package (non-portage)
  from the eclipse website, can I get (and how can I get) portage to
  consider this package as supplying any dependency which would be
  otherwise supplied by the latest (ganymede, 3.4+) portage version
  of the eclipse tool 
 As far as I know of, that is not possible without ugly hacks.
  Unless I'm completely misreading your stuff, your examples tell me
  how to install the (too old) portage version, which is in all cases
  just too old for me, so my 2 questions boil down to (1) must I?,
  and (2) How do I? 
 I don't know what you mean by must I?, but the answer to How do
 I? is right here:
 First, you need to create a folder called /etc/portage as root. Then, 
 create a file called package.keywords in that directory. When you
 want to install a keyworded package (dev-java/eclipse-ecj-3.5.1 in
 this case), you run
 
 ACCEPT_KEYWORDS=~x86 emerge -pv eclipse-ecj
 
 to see what packages are needed for the keyworded version. Then, you 
 copy the the package names mentioned to package.keywords. In the
 example above, the command outputted:
 
 [ebuild  N] dev-python/pyxml-0.8.4-r2  USE=-doc -examples 0 kB
 [ebuild  N] dev-java/javatoolkit-0.3.0-r3  17 kB
 [ebuild  N] dev-java/ant-core-1.7.1-r4  USE=-doc -source 6,828
 kB [ebuild  N] app-admin/eselect-ecj-0.3  0 kB
 [ebuild  N] dev-java/eclipse-ecj-3.5.1  USE=ant 1,268 kB
 [ebuild  N] dev-java/ant-eclipse-ecj-3.5.1  0 kB
 
 So you would add this:
 
 dev-python/pyxml-0.8.4-r2
 dev-java/javatoolkit-0.3.0-r3
 dev-java/ant-core-1.7.1-r4
 app-admin/eselect-ecj-0.3
 dev-java/eclipse-ecj-3.5.1
 dev-java/ant-eclipse-ecj-3.5.1
 
 to the package.keywords file (note that this will probably be
 different for your system, you should run the command yourself and
 use that output to find out what you should put in the file). I would
 also put a note above the lines to say why and when they were added,
 in case I forget.
 
 Then 

Re: [gentoo-user] udev broken...

2009-11-28 Thread David Relson
On Fri, 27 Nov 2009 20:06:59 -0800 (PST)
BRM wrote:

...[snip]...

 Either way, I need to figure out how to get read-access to the root
 partition again. Any advice on either of the above (or other
 options), and more importantly (since any options depend on it) how
 to get read-write access to the root partition again?

I've encountered the root is read-only and I need read-write
problem.  My solution is the script below.

#!/bin/sh
sync
/bin/mount -o remount,rw /
/bin/mount -o remount,rw /boot

Of course you can type the commands by hand.  Since you've only got one
partition mounted and it's ro, you don't need the sync.

HTH,

David



Re: [gentoo-user] Re: How to determine which mobo without opening case

2009-12-01 Thread David Relson
On Mon, 30 Nov 2009 20:10:41 -0600
Harry Putnam wrote:

 Neil Bothwick n...@digimed.co.uk writes:
 
  On Sun, 29 Nov 2009 08:37:49 -0600, Harry Putnam wrote:
 
  How can I determine the motherboard make and model?  I mean without
  opening the case.
 
  sys-apps/lshw
 
 Good call Neil, I found that tool shortly after posting.  It gives as
 good as dmidecode, at least in my case.
 

hwinfo and lspci provide similar info to lshw.  They can be found in
sys-apps/hwinfo and sys-apps/pciutil.

For grins, whenever I restart my computer I run hwinfo, lshw, lspci,
and a variety of other utilities and save the results.  

That way, when next something goes wrong, I'll have a record of when
things went right and will (hopefully) be able to recover.



Re: [gentoo-user] Re: How to determine which mobo without opening case

2009-12-02 Thread David Relson
On Tue, 01 Dec 2009 22:21:18 -0600
Dale wrote:

 Peter Humphrey wrote:
  On Wednesday 02 December 2009 01:25:16 David Relson wrote:
 

  For grins, whenever I restart my computer I run hwinfo, lshw,
  lspci, and a variety of other utilities and save the results.
  
 
  Good God. I hope you don't do that more than once a decade. Just
  how long can a life be?
 

 
 Unless he changes hardware while it is shutdown.  I don't think the 
 drivers have ever changed on my system since I built it.  I have had
 to add a couple, ethernet card and a SATA card, but other than that,
 it should be the same.
 
 I have to say tho, booting a CD and doing lspci -k or -v is the best
 way to get the right drivers.  That is providing the hardware works
 when that is done.
 
 Dale

Changing kernels can have undesired side effects.  The log files help
to figure out what went wrong.



[gentoo-user] Looking for x86 or AMD64 disassembler

2009-12-05 Thread David Relson
G'day,

I'm looking for a disassembler so that I can see the underlying
assembly code in a variety of files, for example elf executables, DOS
executables, binary files (such as the master boot record (MBR)), etc.

Portage doesn't seem to include any, leastways eix hasn't revealed any
to me.

Searching google for disassemblers, I find a variety exist, but I
haven't yet encountered any with ebuilds.  If needs be, I can build
direct from source or create a wrapper ebuild for the build.

What do you all recommend for disassemblers?   Are there any good ones
for Gentoo?

Regards,

David



Re: [gentoo-user] Looking for x86 or AMD64 disassembler

2009-12-05 Thread David Relson
On Sat, 05 Dec 2009 18:29:50 -0700
Brandon Vargo wrote:

 On Sat, 2009-12-05 at 19:33 -0500, David Relson wrote:
  I'm looking for a disassembler so that I can see the underlying
  assembly code in a variety of files, for example elf executables,
  DOS executables, binary files (such as the master boot record
  (MBR)), etc.
 [snip]
  What do you all recommend for disassemblers?   Are there any good
  ones for Gentoo?
 
 I've used objdump (part of binutils) in the past for looking at ELF
 files; look at the -d option for disassembly. A quick test shows that
 it seems to work for exe files too, but I've never used it that way
 as I don't use Windows much, so I don't know for sure.
 
 For the MBR, I don't know of any disassemblers per-se, but hex editors
 work well depending on what you are doing. hexdump (part of
 sys-apps/util-linux) works well. You might want to make an image of
 the MBR first with dd, depending on which tool you use, as some do not
 support reading from the disk directly.
 
 Regards,
 
 Brandon Vargo
 

Hi Brandon,

Indeed, hexdump mbr would show me the bytes but I want to see the code
as instructions.

objdump works fine for ELF.  Being greedy, the ideal tool would handle
all 3 formats.

The immediate need is pure binary (like the MBR).  A couple of weeks
ago I had to resort to an old DOS disassembler for a DOS executable.

I'd be much happier with a straight Linux solution.

Regards,

David



[gentoo-user] serial port identification question

2009-12-25 Thread David Relson
My mobo has two serial ports.

As reported by hwinfo they are:

  Serial Port 0: 0x3f8
  Serial Port 1: 0x2f8

After booting the machine, dmesg indicates that tty0 is the console
with message:

console [tty0] enabled

/dev names a multitude of tty devices, i.e. /dev/tty0, /dev/tty1, ...

How do I determine which devices correspond to the serial ports?

Thanks.

David





Re: [gentoo-user] serial port identification question

2009-12-25 Thread David Relson
On Fri, 25 Dec 2009 14:10:46 -0600
Dale wrote:

 David Relson wrote:
  My mobo has two serial ports.
 
  As reported by hwinfo they are:
 
Serial Port 0: 0x3f8
Serial Port 1: 0x2f8
 
  After booting the machine, dmesg indicates that tty0 is the console
  with message:
 
  console [tty0] enabled
 
  /dev names a multitude of tty devices,
  i.e. /dev/tty0, /dev/tty1, ...
 
  How do I determine which devices correspond to the serial ports?
 
  Thanks.
 
  David
 

 
 Mine is /dev/ttyS0 and /dev/ttyS1 .  I put both devices so you will 
 notice what is alpha and what is numeric.  Also note the S is capitol
 as well.
 
 Dale
 
 :-)  :-) 

My /dev/tty* didn't include any /dev/ttyS* entries.  Searching the web,
I learned that MAKEDEV /dev/ttyS0 and MAKEDEV /dev/ttyS1 will
create the missing entries and that stty -F /dev/ttyS0 -a will
provide configuration information for the port.

My little Serial.cpp class is now successfully writing to the port (as
proved by my son running Hyperterminal and receiving the sent
characters).  However, receiving characters isn't yet working.
Neither his hyperterminal nor my sender (with a loopback plug) is
receiving.



Re: [gentoo-user] serial port identification question

2009-12-25 Thread David Relson
On Fri, 25 Dec 2009 16:56:00 -0600
Dale wrote:

...[snip]...

 Are you sure you enabled this in the kernel?  It is under   Device 
 Drivers  Character devices  Serial Drivers then enable these:
 
 * 8250/16550 and compatible serial support
 (4) Maximum number of 8250/16550 serial ports
 (4) Number of 8250/16550 serial ports to register at runtime
 
 At least that works for my dial-up modem and my UPS.
 
 You may be able to put two instead of four but as I said, it works
 here like this.  I only have two ports tho.
 
 Dale
 
 :-)  :-)

Hello Dale,

My 32-bit gentoo system, which is the one in question, has the
following options set:

   #
   # Serial drivers
   # CONFIG_SERIAL_8250=m
   CONFIG_FIX_EARLYCON_MEM=y
   CONFIG_SERIAL_8250_PCI=m
   # CONFIG_SERIAL_8250_CS is not set
   CONFIG_SERIAL_8250_NR_UARTS=4
   CONFIG_SERIAL_8250_RUNTIME_UARTS=4
   # CONFIG_SERIAL_8250_EXTENDED is not set

This should be sufficient to create /dev/ttyS0 thru /dev/ttyS3, though
they are not created.

(In truth NR_UARTS=2 is the proper value.)

Using MAKEDEV, I can manually create ttyS0 thru ttyS3.  

Running stty -f /dev/ttyS? -a indicates that ttyS0 and ttyS1 are fine
while ttyS2 and ttyS3 gives:


stty: /dev/ttyS2: Input/output error
stty: /dev/ttyS3: Input/output error

Regards,

David




Re: [gentoo-user] Re: serial port identification question

2009-12-27 Thread David Relson
Hello James,

Thanks for writing.  Lots of good information in your post!

I've working on porting some DOS code to Linux and (as you likely know)
the code needed for serial communications differs greatly between the 2
environments.

The initial problem was trying to identify COM1, COM2, etc from lots
of /dev/tty?? entries.  There were no /dev/ttyS? entries.  This was
solved thru googling and running MAKEDEV (for COM1, COM2, etc).

The second problem seems to be an odd pinout.  The device has an RJ11
connector and came with an RJ11 to RS232 cable.  The DB9 connector is
documented as TX on pin 2 and RX on pin 3 (which is normal).
Connecting a breakout box, indicated TX on pin 3.  With a null-modem
and a loopback plug, send/receive started working using my program.

Send/receive was also verified using 2 terminal sessions and commands:

   cat /dev/ttyS0
   echo this is a test  /dev/ttyS0

The tip on setserial is appreciated.  I learned of stty's -F ... -a
options, but didn't know of setserial.

Having solved/learned the above on the Gentoo box, the next trick is
getting my code to work on the embedded 486SX linux system (non-Gentoo).

So far I know that programmed setting of baud rate is working (as
confirmed with stty).  However no data is being seen  from the keypad
or the two connected preamps.  They should all be continuously sending
data to com3, com2, and com4 (respectively).

The programming world is full of strange and wonderful problems to
solve, isn't it?

Regards,

David



Re: [gentoo-user] Recompiling already installed packages with modification

2009-12-31 Thread David Relson
On Wed, 30 Dec 2009 14:34:42 +0100
Volker Armin Hemmann wrote:

 On Mittwoch 30 Dezember 2009, Willie Wong wrote:
  On Wed, Dec 30, 2009 at 02:02:56PM +0100, Penguin Lover Volker
  Armin Hemmann 
 squawked:
   you can make it even easier:
   create:
   /etc/portage/env/PKG_CATEGORY
   put patch in that directory
   create file:
   /etc/portage/PKG_CATEGORY/PKGNAME
   with this:
  
 post_src_prepare() {
   epatch /etc/portage/env/PKG_CATEGORY/NAMEOF:PATCH
}
  
  Ooh, I didn't know that. I've gotta go write it down somewhere.
  Thanks.
 
 learned that from Nicos (RealNC) ;)

Similar, but slightly different:

I have a patch in file /etc/portage/patches/chkrootkit.patch

and in file /etc/portage/env/app-forensics/chkrootkit is

 post_src_unpack() {
epatch /etc/portage/patches/chkrootkit.patch
 }

Portage automagically finds the script in .../env/... and applies the
patch!



[gentoo-user] MARK

2010-01-16 Thread David Relson
From /var/log/messages:

  Jan 16 01:35:27 osage -- MARK --
  Jan 16 01:55:37 osage -- MARK --
  Jan 16 02:15:44 osage -- MARK --
  Jan 16 02:35:52 osage -- MARK --
  Jan 16 02:55:58 osage -- MARK --

This morning my computer was foobar'd (after 200+ days uptime).

Initially the screen was black -- not surprising as that's the screen
saver mode.

Moving the mouse didn't wake up Gnome.  Pushing a key caused the screen
to refresh (after more seconds than is normal) and show the VirtualBox
session I was using last night.

On the down side, moving the mouse didn't move the on-screen cursor.
There was no apparent keyboard response, and I didn't think to try the
magic SYSRQ key.

Switching to a second machine, I could ping the first machine just
fine.  However ssh didn't produce a prompt.  I let the connect attempt
continue while I ate breakfast (say 15 or 20 minutes).

So, I pushed the big red switch, rebooted the machine, then looked
at /var/log/messages.  From 01:35 until 06:35, at intervals of 20
minutes and 7 seconds, there were MARK messages as shown above.  In
addition to that there was only 1 statistics message from syslog-ng.

Anybody know what a --- MARK --- message mean??

Regards,

David

P.S. The machine is an AMD64 running 2.6.28-gentoo-r5.  Overnight,
VirtualBox was running (though in an idle state) and (probably)
BackupPC was also running.  Other than those 2 processes, nothing of
significance was running, AFAIK.



Re: [gentoo-user] MARK

2010-01-16 Thread David Relson
On Sat, 16 Jan 2010 20:11:54 -0500
Albert Hopkins wrote:

 On Sat, 2010-01-16 at 17:08 -0500, David Relson wrote:
  From /var/log/messages:
  
Jan 16 01:35:27 osage -- MARK --
Jan 16 01:55:37 osage -- MARK --
Jan 16 02:15:44 osage -- MARK --
Jan 16 02:35:52 osage -- MARK --
Jan 16 02:55:58 osage -- MARK --
 
  Anybody know what a --- MARK --- message mean??
 
 It's just your syslog popping in occasionally and saying Hey, I'm
 still alive!  Notice that it occurs (almost) exactly every 20
 minutes.

Kind of like syslog saying nobody told me to log anything, so I'll log
something to show I (at the least) am still OK.

 So you probably need to look elsewhere to diagnose your problem.

I suspect some sort of interaction between the 2 known/suspected heavy
users -- VirtualBox and BackupPC.  

Guess it's time for a monitor to snapshot system status every 5 minutes
so that if/when the problem occurs again, there's some info to look at.



[gentoo-user] VirtualBox, Gentoo, and USB thumb drives

2010-01-19 Thread David Relson
I've been using VirtualBox recently with 32-bit Ubuntu for a work
project. It seems that whenever my thumb drive is moved between host and
guest operating system, Gentoo is mounts it as a new device (see
below).  Can these extra device mounts be avoided?

Regards,

David

osage relson # df -h 
FilesystemSize  Used Avail Use% Mounted on
/dev/sda1  99M   17M   78M  18% /boot
/dev/sda4 437G  226G  189G  55% /
/dev/sdb1 466G  259G  208G  56% /mnt/usbhd
/dev/sdc  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdd  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sde  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdf  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdg  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdh  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdi  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdj  7.5G  2.7G  4.8G  36% /mnt/usbkey
/dev/sdk  7.5G  2.7G  4.8G  36% /mnt/usbkey



[gentoo-user] baselayout2/openrc question

2010-02-01 Thread David Relson
G'day,

I've been running baselayout-2 for several months and it's been working
fine AFAICT.  Over the weekend I noticed that my USB thumb drive is no
longer automounting.  

This evening I ran /etc/init.d/udev status which reported:

 * status: stopped.  

Running /etc/init.d/udev start reported:

 * The udev init-script is written for baselayout-2!
 * Please do not use it with baselayout-1!.
 * ERROR: udev failed to start

The message occurs because /etc/init.d/udev checks for
/etc/init.d/sysfs, which is not present.  

Googling indicates that /etc/init.d/sysf comes from sys-apps/openrc.  I
have openrc-0.3.0-r1 installed (from long ago).  openrc-0.6.0-r1 is
available, though keyworded ~amd64.  Unmasking it and running emerge
-p ... shows that sysvinit is a blocker.

Is it safe to delete sysvinit and emerge openrc-0.6.0-r1?  Am I likely
to get myself into troubleif I do this?  If so, how much and how deep?

Regards,

David




Re: [gentoo-user] baselayout2/openrc question

2010-02-02 Thread David Relson
On Tue, 2 Feb 2010 08:08:25 +0200
Alan McKinnon wrote:

 On Tuesday 02 February 2010 06:03:10 David Relson wrote:
  G'day,
  
  I've been running baselayout-2 for several months and it's been
  working fine AFAICT.  Over the weekend I noticed that my USB thumb
  drive is no longer automounting.
  
  This evening I ran /etc/init.d/udev status which reported:
  
   * status: stopped.
  
  Running /etc/init.d/udev start reported:
  
   * The udev init-script is written for baselayout-2!
   * Please do not use it with baselayout-1!.
   * ERROR: udev failed to start
  
  The message occurs because /etc/init.d/udev checks for
  /etc/init.d/sysfs, which is not present.
  
  Googling indicates that /etc/init.d/sysf comes from
  sys-apps/openrc.  I have openrc-0.3.0-r1 installed (from long
  ago).  openrc-0.6.0-r1 is available, though keyworded ~amd64.
  Unmasking it and running emerge -p ... shows that sysvinit is a
  blocker.
  
  Is it safe to delete sysvinit and emerge openrc-0.6.0-r1?  Am I
  likely to get myself into troubleif I do this?  If so, how much and
  how deep?
 
 very very very very deep trouble if you restart the machine and
 everything is not complete yet. Do not do that.
 
 all version of baselayout-2 are marked unstable and you likely have
 an old version of sysvinit that is not compatible with the ancient
 openrc you do have. That openrc is not in portage anymore.
 
 You should upgrade to the latest unstable portage (which supports 
 automatically resolving blockers). You need baselayout, openrc and
 sysvinit as well as /etc/init.d/sysfs. I have none of these in world
 yet all are present.
 
 With the latest portage, try again and let portage figure out for
 itself what it wants to do.

Hi Alan,

Reply appreciated!

I've been running unstable versions of portage for many months and
currently have 2.1.7.17, which _is_ the newest non-masked version.

With it, sysvinit is blocking (capital B) openrc-0.6.0-r1
and /etc/init.d/sysfs is not present (which makes /etc/init.d/udev
unhappy).

Since /etc/init.d/udev only _checks_ for the presence of 
/etc/init.d/sysfs but doesn't run it (or anything), would creating a
dummy (zero length) sysfs file be workable?

Regards,

David




[gentoo-user] trouble starting bash

2010-02-06 Thread David Relson
Greetings,

This morning, all of the sudden, I'm encountering process creation
problems.  The problems seem to affect only bash.  There are no problems
starting X applications like firefox and open office.

FWIW, my usual update world was done yesterday (and emerged the
packages listed at the end of this message). 

Anybody have suggestions regarding the symptoms given below?

Regards,

David

### symptoms ###

Attempting to start a new terminal session from an existing terminal
session (using ctrl-shft-N). 

   There was an error creating the child process for this terminal

and a terminal window without a prompt (not running bash??)  The same
message and window appear when I try to start one from the GNOME menu.

From emacs, running the shell command produces the following message
(and a usable shell window):

  bash: cannot set terminal process group (-1): Invalid argument
  bash: no job control in this shell

ssh into box gives:

PTY allocation request failed on channel 0

Neither dmesg nor /var/log/messages has any unusual messages


### recently emerged packages ###

app-crypt/gnupg-2.0.14
app-text/poppler-0.12.3-r3
dev-libs/libgcrypt-1.4.5
dev-util/global-5.7.7
media-libs/alsa-lib-1.0.21a
media-sound/alsa-headers-1.0.21
media-sound/alsa-utils-1.0.21-r1
sys-apps/util-linux-2.16.2
virtual/poppler-0.12.3-r1
virtual/poppler-glib-0.12.3-r2
virtual/poppler-utils-0.12.3-r1



Re: [gentoo-user] trouble starting bash

2010-02-06 Thread David Relson
H'lo Willie,

The output of ls /dev/pt* is suspiciously short:
 
   r...@osage / # ls /dev/pts
  /dev/ptmx

  /dev/pts:

udev was emerged twice quite recently:  
  1/26 upgrade from 141-r1 to 146-r2
  1/32 downgrade from 146-r2 to 146-r1

My computer was last rebooted 21 days ago.

As you seem to suspect udev and /dev/pt* seems b0rked, I'll try
downgrading back to 141-r1 to see what happens.

Regards,

David


On Sat, 6 Feb 2010 10:00:33 -0500
Willie Wong wrote:

 Stabbing in the dark here: I don't think this is a bash problem. Most
 likely something else broke on your system. 
 
 On Sat, Feb 06, 2010 at 08:33:44AM -0500, David Relson wrote:
  ssh into box gives:
  
  PTY allocation request failed on channel 0
 
 Issue 'ls /dev/pt*' for me?
 
  ### recently emerged packages ###
 
 How complete is this list? I assume you didn't reboot recently into a
 new kernel? Did you upgrade udev by any chance? The only other suspect
 that I see is util-linux, but you are on the stable version. 
  
  app-crypt/gnupg-2.0.14
  app-text/poppler-0.12.3-r3
  dev-libs/libgcrypt-1.4.5
  dev-util/global-5.7.7
  media-libs/alsa-lib-1.0.21a
  media-sound/alsa-headers-1.0.21
  media-sound/alsa-utils-1.0.21-r1
  sys-apps/util-linux-2.16.2
  virtual/poppler-0.12.3-r1
  virtual/poppler-glib-0.12.3-r2
  virtual/poppler-utils-0.12.3-r1
 
 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] trouble starting bash

2010-02-06 Thread David Relson
On Sat, 6 Feb 2010 10:13:02 -0500
Willie Wong wrote:

 On Sat, Feb 06, 2010 at 10:00:33AM -0500, Willie Wong wrote:
  How complete is this list? I assume you didn't reboot recently into
  a new kernel? 
 
 Also, if you did reboot recently (maybe into the same kernel), cat
 /etc/fstab for me?

It's been 3 weeks ...

FWIW, I've downgraded udev from 146-r1 to 141 (what was running 2
weeks ago) with no change in system behavior.  Upgrading back to
146-r1 didn't fix or break anything additional.



Re: [gentoo-user] trouble starting bash

2010-02-06 Thread David Relson
On Sat, 6 Feb 2010 10:11:07 -0500
Willie Wong wrote:

 On Sat, Feb 06, 2010 at 08:33:44AM -0500, David Relson wrote:
  This morning, all of the sudden, I'm encountering process creation
  problems.  The problems seem to affect only bash.  There are no
  problems starting X applications like firefox and open office.
 
 Also, can you log-in on a vc? If you are in X, hit ctrl-alt-f2 and try
 to log into the console?

Works fine ...

Looking at ls -l /dev/vc* I see timestamps of 2010-02-02 23:34.  At
23:31 that day, 

   openrc was upgraded from 0.3.0-r1 to 0.6.0-r1.
   sysvinit was upgraded from 2.86-r10 to 2.87-r

The openrc upgrade occured because I had noticed automounting of my
flash drives had stopped working.  Attempts to restart udev had
failed because /etc/init.d/sysfs wasn't present and that generated a
baselayout related complaint (because I installed baselayout-2 months
ago).  Aren't dependencies wonderful?



Re: [gentoo-user] trouble starting bash

2010-02-06 Thread David Relson
On Sat, 6 Feb 2010 17:27:14 -0500
Willie Wong wrote:

 On Sat, Feb 06, 2010 at 04:08:58PM -0500, David Relson wrote:
  The output of ls /dev/pt* is suspiciously short:
   
 r...@osage / # ls /dev/pts
/dev/ptmx
  
/dev/pts:
 
 That's it? There's nothing under /dev/pts? And you have terminals
 running in X?
 
   On Sat, Feb 06, 2010 at 08:33:44AM -0500, David Relson wrote:
This morning, all of the sudden, I'm encountering process
creation problems.  The problems seem to affect only bash.
There are no problems starting X applications like firefox and
open office.
   
   Also, can you log-in on a vc? If you are in X, hit ctrl-alt-f2
   and try to log into the console?
  
  Works fine ...
  
  Looking at ls -l /dev/vc* I see timestamps of 2010-02-02
  23:34.  At 23:31 that day, 
  
 openrc was upgraded from 0.3.0-r1 to 0.6.0-r1.
 sysvinit was upgraded from 2.86-r10 to 2.87-r
 
 This is possibly a problem. I am guessing that if you issue 'mount',
 devpts is not mounted. The mounting of that pseudo filesystem is
 relegated to /etc/init.d/devfs, which belongs to openrc. 
 
 What is the output of 'rc-status sysinit'?

Hi Willie,

Your replies are much appreciated as we're in an area of Linux about
which I'm poorly informed.

Output (below) of rc-status sysinit indicated devfs stopped, so I
started devfs (which didn't change /dev/pt*), then restarted udev
(which didn't affect /dev/pt*).

Regards,

David

### output follows ###


r...@osage portage # rc-status sysinit
Runlevel: sysinit
 dmesg [  stopped  ]
 udev [  started  ]
 devfs [  stopped  ]

r...@osage portage # service devfs status
 * status: started

r...@osage portage # rc-status sysinit
Runlevel: sysinit
 dmesg [  stopped  ]
 udev [  started  ]
 devfs [  started  ]

r...@osage portage # ls /dev/pt*
/dev/ptmx

/dev/pts:

r...@osage portage # service udev restart
 * WARNING: you are stopping a sysinit service
 * Stopping udevd ... [ ok ]
 * Starting udevd ... [ ok ]
 * Populating /dev with existing devices through uevents ... [ ok ]
 * Waiting for uevents to be processed ... [ ok ]

r...@osage portage # ls /dev/pt*
/dev/ptmx

/dev/pts:
r...@osage portage # 



Re: [gentoo-user] trouble starting bash

2010-02-06 Thread David Relson
On Sat, 6 Feb 2010 19:13:33 -0500
Willie Wong wrote:

 On Sat, Feb 06, 2010 at 06:29:27PM -0500, David Relson wrote:
  Your replies are much appreciated as we're in an area of Linux about
  which I'm poorly informed.
  
  Output (below) of rc-status sysinit indicated devfs stopped, so I
  started devfs (which didn't change /dev/pt*), then restarted udev
  (which didn't affect /dev/pt*).
 
 Right, but can you ssh in to the machine now (or open a terminal
 emulator in X)? 
 
 /dev/pts is just the mount point for the devpts pseudo filesystem. In
 modern versions of linux the pts devices are created on-the-fly when
 requested (as opposed to other versions and some modern unixes where
 there will be a fixed number of device nodes under /dev/pts or
 equivalent). All that just goes to say that if /dev/pts is empty
 right after you restart the devfs service, it is normal. A device file
 should be created automatically now when userspace programs demand it.
 (E.g. if you now ssh in, and if it succeeds, ls /dev/pts should show
 one entry.) 
 
 Try it, let me know if the problem is still there. 

Nope.  Both ssh and X terminal emulators are still broken.  No change
in behavior.

FWIW, most of the entries in /dev are timestamped 02/02 23:34 which is
when I updated udev earlier this week. Today's upgrade/downgrade emerge
hasn't affected the timestamps.

A comparison of /etc/udev/rules.d to a saved copy didn't show
much.  The only puzzling difference is:
  --- 90-hal.rules  (revision 51)
   +++ 90-hal.rules (working copy)
   @@ -1,2 +1,2 @@
# pass all events to the HAL daemon
   -RUN+=socket:/org/freedesktop/hal/udev_event
   +RUN+=socket:@/org/freedesktop/hal/udev_event

removing the @ and restarting udev hasn't helped.  Since the rule is
hal related, I also restarted hald -- which hasn't helped.



Re: [gentoo-user] trouble starting bash

2010-02-07 Thread David Relson
On Sun, 7 Feb 2010 02:20:19 -0800
James Ausmus wrote:

 On Sat, Feb 6, 2010 at 8:07 PM, David Relson
 rel...@osagesoftware.comwrote:
 
  On Sat, 6 Feb 2010 19:13:33 -0500
  Willie Wong wrote:
 
   On Sat, Feb 06, 2010 at 06:29:27PM -0500, David Relson wrote:
Your replies are much appreciated as we're in an area of Linux
about which I'm poorly informed.
   
Output (below) of rc-status sysinit indicated devfs stopped,
so I started devfs (which didn't change /dev/pt*), then
restarted udev (which didn't affect /dev/pt*).
  
   Right, but can you ssh in to the machine now (or open a terminal
   emulator in X)?
  
   /dev/pts is just the mount point for the devpts pseudo
   filesystem. In modern versions of linux the pts devices are
   created on-the-fly when requested (as opposed to other versions
   and some modern unixes where there will be a fixed number of
   device nodes under /dev/pts or equivalent). All that just goes to
   say that if /dev/pts is empty right after you restart the devfs
   service, it is normal. A device file should be created
   automatically now when userspace programs demand it. (E.g. if you
   now ssh in, and if it succeeds, ls /dev/pts should show one
   entry.)
  
   Try it, let me know if the problem is still there.
 
  Nope.  Both ssh and X terminal emulators are still broken.  No
  change in behavior.
 
  FWIW, most of the entries in /dev are timestamped 02/02 23:34 which
  is when I updated udev earlier this week. Today's upgrade/downgrade
  emerge hasn't affected the timestamps.
 
  A comparison of /etc/udev/rules.d to a saved copy didn't show
  much.  The only puzzling difference is:
   --- 90-hal.rules  (revision 51)
+++ 90-hal.rules (working copy)
@@ -1,2 +1,2 @@
 # pass all events to the HAL daemon
-RUN+=socket:/org/freedesktop/hal/udev_event
+RUN+=socket:@/org/freedesktop/hal/udev_event
 
  removing the @ and restarting udev hasn't helped.  Since the rule
  is hal related, I also restarted hald -- which hasn't helped.
 
 
 What happens if you do:
 
 mount -t devpts none /dev/pts
 
 Does the problem go away?
 
 -James

Eureka!  Problem fixed.

Looking in /etc/mtab, the last line is:

   none /dev/pts devpts rw 0 0

Perhaps the mount devpts command should have been issued as part of
emerging udev, openrc, or sysinit ???  Should this be reported to
b.g.o.??

David



[gentoo-user] problem with firefox-bin

2010-03-20 Thread David Relson
firefox seems to have a problem with pricewatch pages.  For example, if
I navigate to http://www.pricewatch.com/gallery/monitors/lcd_24in, I
have a header panel, and a brands/stores panel, but no list of 24 LCD
monitors.  Right clicking and selecting save page as lets me save the
page as lcd_24in.htm.  Using File//Open I can view the saved page fine.

This happens with both www-client/firefox-bin-3.5.8 and
www-client/firefox-bin-3.6-r1

I'm linux 2.6.28-gentoo-r5 SMP built for x86_6.

Any suggestions about what's borked with firefox-bin?

FWIW, my son has firefox 3.6 on Windoze and it has no problem with
pricewatch.

David.



[gentoo-user] SOLVED ( problem with firefox-bin )

2010-03-20 Thread David Relson
For no particular reason, I decided to remove all my firefox addons.

Problem solved!

On Sat, 20 Mar 2010 18:36:30 -0400
David Relson wrote:

 firefox seems to have a problem with pricewatch pages.  For example,
 if I navigate to http://www.pricewatch.com/gallery/monitors/lcd_24in,
 I have a header panel, and a brands/stores panel, but no list of 24
 LCD monitors.  Right clicking and selecting save page as lets me
 save the page as lcd_24in.htm.  Using File//Open I can view the saved
 page fine.
 
 This happens with both www-client/firefox-bin-3.5.8 and
 www-client/firefox-bin-3.6-r1
 
 I'm linux 2.6.28-gentoo-r5 SMP built for x86_6.
 
 Any suggestions about what's borked with firefox-bin?
 
 FWIW, my son has firefox 3.6 on Windoze and it has no problem with
 pricewatch.
 
 David.



[gentoo-user] gconf errors

2010-03-27 Thread David Relson
Recently noticed:  error popup when starting firefox, gnumeric, archive
manager, etc:


  An error occurred while loading or saving configuration information
  for {program}.  Some of your configuration settings may not work
  properly.

The details window says (in all cases):

  Failed to contact configuration server; some possible causes are that
  you need to enable TCP/IP networking for ORBit, or you have stale NFS
  locks due to a system crash. See http://projects.gnome.org/gconf/ for
  information. (Details -  1: Server ping error:
  IDL:omg.org/CORBA/COMM_FAILURE:1.0) 

gconfd isn't running.  Manually starting /usr/libexec/gconfd-2 worked
to start gconfd-2, but hasn't affected the gconf errors.

Possibly relevant: Yesterday openrc was updated from 0.6.0-r1 to 0.6.1-r1.
gconfd 

Any suggestions regarding what's actually broken and how to fix it?

Thanks.

David



[gentoo-user] backups [was: Boot speedup]

2010-04-13 Thread David Relson
On Tue, 13 Apr 2010 12:44:31 +0200
Alex Schuster wrote:

 Peter Humphrey writes:
 
  On Monday 12 April 2010 17:17:52 Florian Philipp wrote:
   Unless something is broken, I hardly ever reboot.
  
  How do you take backups?
 
 I do my backups from the running system, not from a live-cd. I create
 an LVM snapshot of the partition, and backup with use rdiff-backup.
 his way it does not matter if the partition itself is being modified
 during the backup.
 
   Wonko

Backuppc works nicely here!



[gentoo-user] monitor identification question (Gnome)

2010-04-15 Thread David Relson
I just retired my Viewsonic 19 CRT in favor of a Viewsonic VX2433WM.
Looking in Xorg.0.log it's obviously recognized (as the following lines
indicate):

(II) RADEON(0): Serial No: R4F100901594
(II) RADEON(0): Ranges: V min: 50 V max: 75 Hz, H min: 24 H max: 82
kHz, PixClock max 210 MHz 
(II) RADEON(0): Monitor name: VX2433wm

However in Gnome's Display Preferences dialog, the monitor type shows
up as Unknown.  What can be done about this?

Additionally, a box saying Unknown (black text on cyan background)
appears on my screen at the upper left corner.  This wouldn't matter
except that I like my Gnome panel at the top of the screen and the box
blocks the Main Menu icon.  The box appears to be a repeat of the Gnome
Display Preferences dialog's Unknown monitor info.  How can one nuke
the box?



Re: [gentoo-user] Re: monitor identification question (Gnome)

2010-04-16 Thread David Relson
On Fri, 16 Apr 2010 15:08:55 -0700
walt wrote:

 On 04/15/2010 05:38 PM, David Relson wrote:
  I just retired my Viewsonic 19 CRT in favor of a Viewsonic
  VX2433WM. Looking in Xorg.0.log it's obviously recognized (as the
  following lines indicate):
 
  (II) RADEON(0): Serial No: R4F100901594
  (II) RADEON(0): Ranges: V min: 50 V max: 75 Hz, H min: 24 H max: 82
  kHz, PixClock max 210 MHz
  (II) RADEON(0): Monitor name: VX2433wm
 
  However in Gnome's Display Preferences dialog, the monitor type
  shows up as Unknown.  What can be done about this?
 
  Additionally, a box saying Unknown (black text on cyan background)
  appears on my screen at the upper left corner.  This wouldn't matter
  except that I like my Gnome panel at the top of the screen and the
  box blocks the Main Menu icon.  The box appears to be a repeat of
  the Gnome Display Preferences dialog's Unknown monitor info.  How
  can one nuke the box?
 
 Hm.  I see the same annoying box at the top left, but only while I
 have the Display preferences dialog open.  When I close the dialog,
 the top- left box disappears.
 
 Do you still have a process running named gnome-display-properties
 even after you close the Display preferences dialog box?

Interesting question, but it's too late for me to answer it.  While
googling the subject I learned that the ATI driver (or some of
its revisions) only check monitor type upon startup.  I restarted
X with ctl-alt-backspace and the extra box went away.
gnome-display-properties _still_ says unknown, but the annoying
box is gone.



Re: [gentoo-user] Re: vixie-cron keeps stopping

2010-04-17 Thread David Relson
On Sat, 17 Apr 2010 22:59:09 +1000
Lie Ryan wrote:

 On 04/17/10 18:47, Mick wrote:
  On Friday 16 April 2010 22:25:47 Alan McKinnon wrote:
  On Friday 16 April 2010 20:29:27 Dale wrote:
  
  Blimey!  That sounds like horribly_broken!
  
  Which cron do you recommend for a desktop?
 
 
 One question, do you actually need cron for desktop? I installed vixie
 because the installation manual says to, but never need to write any
 cron rule for anything and I don't think there any program I uses
 installs a cron rule. So why bother with cron?

Possibly not.  ... depends on what you have installed.  /etc/cron.daily
has some useful stuff, notably slocate.cron.



[gentoo-user] Java problem

2010-05-22 Thread David Relson
Greetings,

I'd like to install eclipse, to experiment with it.  Emerging
eclipse-sdk wants to pull in a whole lot of packages which is not a bad
thing except that about 12 or 15 of the emerges fail, apparently for
the same reason:

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1
   source? ( app-arch/zip ) 

=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for 
   building.
 * 
 * If you need support, post the output of 'emerge --info
   =dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv
   =dev-java/ant-core-1.8.1'. !!! When you file a bug report, please
   include the following information: GENTOO_VM=  CLASSPATH=
   JAVA_HOME= JAVACFLAGS= COMPILER=
and of course, the output of emerge --info

I do have virtual/jdk, dev-java/sun-jdk and many other dev-java and
java-virtuals packages installed and OpenOffice runs.  As advised by
the Gentoo Java Packaging Guide, I've created the following symlink:

  HOME/.gentoo/java-config-2/current-user-vm
- /etc/java-config-2/current-system-vm

Where/how are variables GENTOO_VM, CLASSPATH, JAVA_HOME, JAVACFLAGS, and
COMPILER supposed to be set ???

What else am I missing?

Thanks.

David



Re: [gentoo-user] Java problem

2010-05-22 Thread David Relson
On Sat, 22 May 2010 17:35:24 -0400
Kenneth Prugh wrote:

 On Sat, 22 May 2010 16:10:39 -0400
 David Relson rel...@osagesoftware.com wrote:
 
  [...]
 
 What does `eselect java-vm list` say?
 
 Also, You might need to manually emerge dev-java/ant-junit.

r...@osage ~ # eselect java-vm list
Available Java Virtual Machines:
  [1]   emul-linux-x86-java-1.6 
  [2]   sun-jdk-1.6  system-vm
  [3]   sun-jre-bin-1.6 

For all 3 packages, version 1.6.0.20 is installed.

Manually emerging ant-junit pulls in ant-core as a dependency which
fails in the manner previously reported, i.e. 

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1
   source? ( app-arch/zip ) 

=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for building.
 * 
 * If you need support, post the output of 'emerge --info
   =dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv
   =dev-java/ant-core-1.8.1'. !!! When you file a bug report, please
   include the following information: GENTOO_VM=  CLASSPATH=
   JAVA_HOME= JAVACFLAGS= COMPILER=
and of course, the output of emerge --info



Re: [gentoo-user] Java problem

2010-05-22 Thread David Relson
On Sat, 22 May 2010 20:51:35 -0400
Kenneth Prugh wrote:

 On Sat, 22 May 2010 20:43:54 -0400
 David Relson rel...@osagesoftware.com wrote:
  [...]
  r...@osage ~ # eselect java-vm list
  Available Java Virtual Machines:
[1]   emul-linux-x86-java-1.6 
[2]   sun-jdk-1.6  system-vm
[3]   sun-jre-bin-1.6 
  
  For all 3 packages, version 1.6.0.20 is installed.
  
  Manually emerging ant-junit pulls in ant-core as a dependency which
  fails in the manner previously reported, i.e. 
 
 How about `java-check-environment`, does it report as sane?

It's not happy.  It says to install ant-junit (see first attachment),
which fails (see second attachment).
r...@osage ~ #java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ... [ ok ]

 * Checking vm_environment_files ... [ ok ]

 * Checking user_settings ... * Running as root. Don't need to check user 
settings.
 [ ok ]

 * Checking generation_1_system_vm ... [ ok ]

 * Checking java_config_1 ... [ ok ]

 * Checking global_classpath ... [ ok ]

 * Checking virtual_provides ... [ ok ]

 * Checking overlays_eclasses ... [ ok ]

 * Checking package_env ...!!! ERROR: Package ant-junit was not found!
 * Broken dependencies for
 * Please try emerge -uD1 =
 [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun 
java-check-environment
r...@osage ~ # emerge -uD1 ant-junit

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies ... done!
 Verifying ebuild manifests
 Starting parallel fetch
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.24, 0.10, 0.05
 Emerging (1 of 2) dev-java/ant-core-1.8.1
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.24, 0.10, 0.05
 Failed to emerge dev-java/ant-core-1.8.1, Log file:
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.22, 0.10, 0.05
  '/var/log/portage/dev-java:ant-core-1.8.1:20100523-005423.log'
 Jobs: 0 of 2 complete, 1 runningLoad avg: 0.22, 0.10, 0.05
 Jobs: 0 of 2 complete, 1 running, 1 failed  Load avg: 0.22, 0.10, 0.05
 Jobs: 0 of 2 complete, 1 failed Load avg: 0.22, 0.10, 0.05

 * CPV:  dev-java/ant-core-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: =virtual/jdk-1.4
!dev-java/ant-tasks
!dev-java/ant-optional  =dev-java/java-config-2.1.9-r1  source? ( 
app-arch/zip ) 


=dev-java/javatoolkit-0.3.0-r2
 * ERROR: dev-java/ant-core-1.8.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for building.
 * 
 * If you need support, post the output of 'emerge --info 
=dev-java/ant-core-1.8.1',
 * the complete build log and the output of 'emerge -pqv 
=dev-java/ant-core-1.8.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH= JAVA_HOME=
JAVACFLAGS= COMPILER=
and of course, the output of emerge --info
 * The complete build log is located at 
'/var/log/portage/dev-java:ant-core-1.8.1:20100523-005423.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-java/ant-core-1.8.1/temp/die.env'.
 * S: '/var/tmp/portage/dev-java/ant-core-1.8.1/work/apache-ant-1.8.1'

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Re: [gentoo-user] Re: Java problem

2010-05-23 Thread David Relson
Walt and Kenneth,

Your help with this problem is appreciated, though the problem still
persists.

What versions of java do you guys have installed?  What does eselect
java-vm list show on your machines?

I'm on AMD64, what architectures are you running?

Looking around, /usr/bin/java is a symlink to run-java-tool which is
working.  For example java -version displays an appropriate value.


Output from multiple tests of eselect, java-config, and emerge is
attached.  To summarize the attachment:

 /usr/lib/jvm reports icedtea6 and sun-jdk-1.6.0.20

 eselect java-vm list shows sun-jdk as active

 eix -e --nocolor ant-core shows ant-core installed

 eselect java-vm set system 1 successfully changes to icedtea6

 emerge -qv ant-junit fails because ant-junit isn't found

 eselect java-vm set system 2 successfully changes to sun-jdk-1.6.0.20

 emerge -qv ant-junit fails because ant-junit isn't found

 notice that both icedtea6 and sun-jdk-1.6.0.20 have been tried and emerge 
ant-junit fails with both


On a related note,

 java-config -S only works for user 'root'.  It doesn't work for an 
individual user, e.g. 'relson'

 eselect java-vm set allows system-wide setting of the vm and also has a 
per-user option.

 Also, eselect includes an unnecessary (but harmless) / in the sym-link, i.e.

   eselect: current-system-vm - /usr/lib/jvm//icedtea6
   java-config: current-system-vm - /usr/lib/jvm/icedtea6



 On Sat, 22 May 2010 20:41:19 -0700
walt wrote:

 On 05/22/2010 01:10 PM, David Relson wrote:
 
* Unable to determine VM for building from dependencies:
*   Failed to determine VM for building.
 
 Well, I've seen those error messages more than once.  If I were
 half-a-bottle more sober, I'm sure I could remember how I fixed
 the problem.
 
 Gentoo offers two (competing?) ways to specify the system-vm.
 
 #eselect java-vm
 Usage: eselect java-vm action options
 Extra actions:
list  List Available Virtual Machines
set   Set a new system or user vm
show  Show the current vm
 
 #java-config
 Usage: java-config [options]
-L, --list-available-vms
  List available Java Virtual Machines
-S VM, --set-system-vm=VM
  Set the default Java VM for the system
 
 I seem to recall that the important things changed by these two
 gizmos are some symlinks like, for example:
 
 /etc/java-config-2/current-system-vm - /usr/lib/jvm//sun-jdk-1.6/
 /usr/bin/java - run-java-tool
 
 Maybe I can remember more details tomorrow.
 
 
 

/usr/lib/jvm has:

lrwxrwxrwx 1 root root 17 May 22 23:44 icedtea6 - /usr/lib/icedtea6
lrwxrwxrwx 1 root root 21 May 22 21:29 sun-jdk-1.6 - /opt/sun-jdk-1.6.0.20

eselect java-vm list reports:

Available Java Virtual Machines:
  [1]   icedtea6 
  [2]   sun-jdk-1.6  system-vm

eselect java-vm set system 1 runs without complaint, after which eselect 
java-vm list reports:

Available Java Virtual Machines:
  [1]   icedtea6  system-vm
  [2]   sun-jdk-1.6 

eix -e --nocolor ant-core reports:

[I] dev-java/ant-core
 Available versions:  1.7.1-r4{tbz2} ~1.7.1-r5 ~1.8.0-r1 ~1.8.0-r2 
~1.8.1 {doc elibc_FreeBSD source}
 Installed versions:  1.7.1-r4{tbz2}(08:02:48 AM 03/08/2010)(-doc 
-elibc_FreeBSD -source)
 Homepage:http://ant.apache.org/
 Description: Java-based build tool similar to 'make' that uses 
XML configuration files.

emerge -qv ant-junit fails because ant-junit isn't found

 * CPV:  dev-java/ant-junit-1.7.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: dev-java/junit:0  =dev-java/java-config-2.1.9-r1 
=sys-apps/portage-2.1.2.7 

=sys-apps/portage-2.1.2.7
=dev-java/javatoolkit-0.3.0-r2 =virtual/jdk-1.4
=virtual/jre-1.4
~dev-java/ant-core-1.7.1
!dev-java/ant-tasks

r...@osage tmp # eselect java-vm set system 2

r...@osage tmp # eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6 
  [2]   sun-jdk-1.6  system-vm

!!! Warning: VMs marked as Build Only may contain Security Vulnerabilities 
and/or be EOL.
!!! Warning: Gentoo recommends not setting these VMs as either your System or 
User VM.
!!! Warning: Please see http://www.gentoo.org/doc/en/java.xml#build-only for 
more information.

r...@osage tmp # emerge -qv ant-junit

 * CPV:  dev-java/ant-junit-1.7.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: dev-java/junit:0  =dev-java/java-config-2.1.9-r1 
=sys-apps/portage-2.1.2.7 

=sys-apps/portage-2.1.2.7
=dev-java/javatoolkit-0.3.0-r2 =virtual/jdk-1.4
=virtual/jre-1.4
~dev-java/ant-core

Re: [gentoo-user] Re: Java problem

2010-05-23 Thread David Relson
On Sun, 23 May 2010 17:32:50 +0300
Arttu V. wrote:

 On 5/23/10, David Relson rel...@osagesoftware.com wrote:
   emerge -qv ant-junit fails because ant-junit isn't found
 
 Is your portage tree or the underlying filesystem broken? You use eix,
 so what does eix ant-junit output? Are there really no versions of
 ant-junit available on your system?
 
 Also, from your b.g.o report:
 
  EMERGE_DEFAULT_OPTS=--with-bdeps y --color=n --jobs 4
 
 How about trying it without the parallel emerges?
 
 -- 
 Arttu V.

Hi Arttu,

The portage tree is fine, AFAICT.  emerge finds the ebuild, but
the emerge fails.  Removing --jobs 4 doesn't change the result.

ant-junit is not installed and emerge ant-junit fails (shown below).

The important failure line seems to be:

 * Unable to determine VM for building from dependencies:
NV_DEPEND: dev-java/junit:0  =dev-java/java-config-2.1.9-r1

The ant-junit ebuild seems unusual because it doesn't download anything


### output of emerge ant-junit ###
Calculating dependencies... done!

 Verifying ebuild manifests

 Emerging (1 of 1) dev-java/ant-junit-1.7.1
 * apache-ant-1.7.1-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
[ ok ]
 * ant-1.7.1-gentoo.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
[ ok ]
 * checking ebuild checksums ;-) ...
[ ok ]
 * checking auxfile checksums ;-) ...
[ ok ]
 * checking miscfile checksums ;-) ...
[ ok ]
 * CPV:  dev-java/ant-junit-1.7.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
!!! ERROR: Package ant-junit was not found!
 * Unable to determine VM for building from dependencies:
NV_DEPEND: dev-java/junit:0  =dev-java/java-config-2.1.9-r1
=sys-apps/portage-2.1.2.7 
=sys-apps/portage-2.1.2.7
=dev-java/javatoolkit-0.3.0-r2 =virtual/jdk-1.4
=virtual/jre-1.4
~dev-java/ant-core-1.7.1
!dev-java/ant-tasks
 * ERROR: dev-java/ant-junit-1.7.1 failed:
 *   Failed to determine VM for building.
 * 
 * Call stack:
 * ebuild.sh, line   48:  Called pkg_setup
 * ebuild.sh, line 1346:  Called java-pkg-2_pkg_setup
 * java-pkg-2.eclass, line   63:  Called java-pkg_init
 *   java-utils-2.eclass, line 2126:  Called java-pkg_switch-vm
 *   java-utils-2.eclass, line 2550:  Called die
 * The specific snippet of code:
 *  die Failed to determine VM for
building.
 * 
 * If you need support, post the output of 'emerge --info
=dev-java/ant-junit-1.7.1',
 * the complete build log and the output of 'emerge -pqv
=dev-java/ant-junit-1.7.1'. !!! When you file a bug report, please
include the following information: GENTOO_VM=  CLASSPATH= JAVA_HOME=
JAVACFLAGS= COMPILER=
and of course, the output of emerge --info
 * The complete build log is located at
'/var/log/portage/dev-java:ant-junit-1.7.1:20100523-144943.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-java/ant-junit-1.7.1/temp/die.env'.
 * S: '/var/tmp/portage/dev-java/ant-junit-1.7.1/work/apache-ant-1.7.1'

 Failed to emerge dev-java/ant-junit-1.7.1, Log file:

  '/var/log/portage/dev-java:ant-junit-1.7.1:20100523-144943.log'



Re: [gentoo-user] Re: Java problem

2010-05-23 Thread David Relson
On Sun, 23 May 2010 18:16:53 +0300
Arttu V. wrote:

 On 5/23/10, David Relson rel...@osagesoftware.com wrote:
  Hi Arttu,
 
  The portage tree is fine, AFAICT.  emerge finds the ebuild, but
  the emerge fails.  Removing --jobs 4 doesn't change the result.
 
 Ok, then that could be discarded as just some wild speculation.
 
 Next idea, how about just marking a single arch:
 
  ACCEPT_KEYWORDS=amd64 x86

Wonder how that got there?  I must have been in a creative mood
when I did that.

The extra arch has been removed, but didn't help matters ...

 I don't know if the java ebuilds, eclasses and wrapper-scripts are
 wise enough to figure out the correct dependencies with such keywords.
 I could imagine some part might figure out the arch as x86, but then
 your system vm would be set to the x86_64 vm, i.e., no x86 system vm
 set ... (again, just some more wild speculation ;) )

Have started emerge -auNDtqv world.  Emerge has found a bunch of
packages to downgrade, including several java related ones.  I'll
report back later (after a family picnic this afternoon).

Regards,

David



Re: [gentoo-user] Re: Java problem

2010-05-23 Thread David Relson
On Sun, 23 May 2010 11:01:53 -0700
walt wrote:

 On 05/23/2010 09:56 AM, David Relson wrote:
 
  Output of emerge -d ant-junit is attached, though I don't
  understand what the additional info means.
 
 The 'build.log' should contain the actual error message following the
 test for the system-vm.  The test code will look something like this:
 
 + java-pkg_switch-vm
 + debug-print-function java-pkg_switch-vm
 + str='java-pkg_switch-vm: entering function'
 + shift
 + debug-print 'java-pkg_switch-vm: entering function, parameters: '
 + '[' '!' -d /media/d/portage/dev-java/ant-junit-1.7.1/temp ']'
 + '[' 'java-pkg_switch-vm: entering function, parameters: ' ']'
 + '[' '' == on ']'
 + '[' -n '' ']'
 + echo 'java-pkg_switch-vm: entering function, parameters: '
 + chmod
 g+w /media/d/portage/dev-java/ant-junit-1.7.1/temp/eclass-debug.log
 + shift
 + '[' '' ']'
 + java-pkg_needs-vm
 + debug-print-function java-pkg_needs-vm
 lots of snippage
 
 There are no error messages in my build.log but I expect there will
 be some obvious ones in yours.
 

Hi Walt,

What build.log file do you mean?

Running emerge -d ant-junit produces files:

  /var/log/portage/dev-java:ant-junit-1.7.1:20100524-010955.log
  /var/log/portage/elog/dev-java:ant-junit-1.7.1:20100524-010957.log

Neither file mentions java-pkg_needs-vm.  From where does
java-pkg_needs-vm come?  Are there other files generated during
emerge -d ...?

I found java-pkg_needs-vm in /usr/portage/eclass/java-utils-2.eclass.
However equery belongs /usr/portage/eclass/java-utils-2.eclass
doesn't find an owning package for this file.  Do you have this file?
What package owns it?




Re: [gentoo-user] Re: Java problem

2010-05-24 Thread David Relson
On Mon, 24 May 2010 04:11:45 -0700
walt wrote:

 On 05/23/2010 06:26 PM, David Relson wrote:
  On Sun, 23 May 2010 11:01:53 -0700
  walt wrote:
 
  On 05/23/2010 09:56 AM, David Relson wrote:
 
  Output of emerge -d ant-junit is attached, though I don't
  understand what the additional info means.
 
  The 'build.log' should contain the actual error message following
  the test for the system-vm.  The test code will look something
  like this:
 
  + java-pkg_switch-vm
  + debug-print-function java-pkg_switch-vm
  + str='java-pkg_switch-vm: entering function'
  + shift
  + debug-print 'java-pkg_switch-vm: entering function, parameters: '
  + '[' '!' -d /media/d/portage/dev-java/ant-junit-1.7.1/temp ']'
  + '[' 'java-pkg_switch-vm: entering function, parameters: ' ']'
  + '[' '' == on ']'
  + '[' -n '' ']'
  + echo 'java-pkg_switch-vm: entering function, parameters: '
  + chmod
  g+w /media/d/portage/dev-java/ant-junit-1.7.1/temp/eclass-debug.log
  + shift
  + '[' '' ']'
  + java-pkg_needs-vm
  + debug-print-function java-pkg_needs-vm
  lots of snippage
 
  There are no error messages in my build.log but I expect there will
  be some obvious ones in yours.
 
 
  Hi Walt,
 
  What build.log file do you mean?
 
 /var/tmp/portage/dev-java/ant-junit-1.7.1/temp/build.log (unless you
 changed the default $PORTAGE_TMPDIR in make.conf).  The
 eclass-debug.log is in the same directory.
 
  Running emerge -d ant-junit produces files:
 
 /var/log/portage/dev-java:ant-junit-1.7.1:20100524-010955.log
 /var/log/portage/elog/dev-java:ant-junit-1.7.1:20100524-010957.log
 
with PORT_LOGDIR=/var/log/portage in /etc/make.conf, the build.log
files go into /var/log/portage (as reported above).

 Thanks, I never knew about those logs.  Maybe they only appear if the
 build fails because I don't have them on my machine.
 
  I found java-pkg_needs-vm
  in /usr/portage/eclass/java-utils-2.eclass. However equery
  belongs /usr/portage/eclass/java-utils-2.eclass doesn't find an
  owning package for this file.  Do you have this file? What package
  owns it?
 
 As Kenneth said, it doesn't belong to any one package, but eclass
 files are useful for storing code that can be shared by several
 similar packages, like a group of related java packages.
 
 The ant-junit-1.7.1.ebuild file says inherit ant-tasks, which means
 that the ant-tasks.eclass file is read before beginning the actual
 build. You can see the sequence of events in the eclass-debug.log.
 

I've had an initial response from b.g.o. and will follow along with
that as well as this thread.

Attached is the eclass-debug.log file which contains:

  java-pkg_switch-vm: entering function, parameters: 
  java-pkg_needs-vm: entering function, parameters: 
  depend-java-query:  NV_DEPEND:dev-java/junit:0
   =dev-java/java-config-2.1.9-r1 =sys-apps/portage-2.1.2.7

It seems wrong that the parameter list is empty.inherit: ant-tasks - /usr/portage/eclass/ant-tasks.eclass
*** Multiple Inheritence (Level: 2)
inherit: versionator - /usr/portage/eclass/versionator.eclass
inherit: java-pkg-2 - /usr/portage/eclass/java-pkg-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 - /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils - /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib - /usr/portage/eclass/multilib.eclass
*** Multiple Inheritence (Level: 6)
inherit: toolchain-funcs - /usr/portage/eclass/toolchain-funcs.eclass
inherit: portability - /usr/portage/eclass/portability.eclass
inherit: versionator - /usr/portage/eclass/versionator.eclass
inherit: multilib - /usr/portage/eclass/multilib.eclass
EXPORT_FUNCTIONS: pkg_setup - java-pkg-2_pkg_setup
EXPORT_FUNCTIONS: src_compile - java-pkg-2_src_compile
EXPORT_FUNCTIONS: pkg_preinst - java-pkg-2_pkg_preinst
inherit: java-ant-2 - /usr/portage/eclass/java-ant-2.eclass
*** Multiple Inheritence (Level: 3)
inherit: java-utils-2 - /usr/portage/eclass/java-utils-2.eclass
*** Multiple Inheritence (Level: 4)
inherit: eutils - /usr/portage/eclass/eutils.eclass
*** Multiple Inheritence (Level: 5)
inherit: multilib - /usr/portage/eclass/multilib.eclass
inherit: portability - /usr/portage/eclass/portability.eclass
inherit: versionator - /usr/portage/eclass/versionator.eclass
inherit: multilib - /usr/portage/eclass/multilib.eclass
java-pkg_ant-tasks-depend: entering function, parameters: 
EXPORT_FUNCTIONS: src_unpack - ant-tasks_src_unpack
EXPORT_FUNCTIONS: src_compile - ant-tasks_src_compile
EXPORT_FUNCTIONS: src_install - ant-tasks_src_install
RDEPEND: not set... Setting to: dev-java/junit:0
java-pkg_init: entering function, parameters: 
java-pkg_init_paths_: entering function, parameters: 
JAVA_PKG_SHAREPATH: /usr/share/ant-junit
JAVA_PKG_ENV: /var/tmp/portage/dev-java/ant-junit-1.7.1/image//usr/share/ant-junit/package.env
JAVA_PKG_JARDEST: /usr/share/ant-junit/lib
JAVA_PKG_LIBDEST: /usr/lib64/ant-junit
JAVA_PKG_WARDEST: /usr/share/ant-junit/webapps

[gentoo-user] SOLVED Java problem

2010-05-25 Thread David Relson
Problem solved!  caster at b.g.o. suggested running

   Must be some orphan file.
   Try grep ant-junit /usr/share/*/package.env

which found CLASSPATH and DEPEND lines in .../ant-tasks/package.env.
After removing the ant-junit references, emerge gave a different error
message. I then disabled all the /usr/share/ant* directories by
renaming them to /usr/share/ant*.xxx 

After running the following commands (with results shown):

1) emerge ant-junit failed saying !!! ERROR: Package ant-core was not
found!

2) emerge ant-core succeeded

3) emerge eclipse-sdk successfully built multiple packages until
dev-java/ant-apache-bcel-1.7.1 failed saying !!! ERROR: Package
ant-nodeps was not found!

4) emerge ant-nodeps succeeded

emerge eclipse-sdk has succeeded !!!

Conclusions:

1 - jar file references in /usr/share/ant-tasks/package.env caused the
error messages I didn't understand

2 - ant-nodeps is needed for ant-apache-bcel, but is incorrect in the
ebuild

3 - install problem has been solved



Re: [gentoo-user] new user can't run X apps

2010-05-27 Thread David Relson
On Wed, 5 May 2010 13:41:19 -0700
Grant wrote:

 I created a new user with useradd but I get X errors like cannot open
 display and cannot connect to X server when I try to run X apps as
 the new user.  I've tried restarting with the same results.  Does
 anyone know why this is happening?
 
 - Grant

Have you tried strace?  It'll help tell what the app is doing just
before the cannot open ... message is displayed.

HTH,

David



Re: [gentoo-user] rsync to a USB stick

2010-05-29 Thread David Relson
On Sat, 29 May 2010 10:01:39 +0100
Mick wrote:

 Hi All,
 
 I run:
 
  rsync -a -l --delete -v /mnt/Business_dir /media/sdf1
 
 to back up a directory from a PC to a USB stick.  However, from a
 cursory look this *seems* to copy the complete directory (every time
 I run it) and overwrites the USB stick.  Carrying on like this it
 will life-expire the USB stick in no time, plus it takes ages to
 complete as it copies over every single file again and again.
 
 Is there a cleverer option I can add to rsync so that it only copies
 new files, overwrites older versions of the same and only deletes any
 files or directories that have been deleted from the source directory?
 -- 
 Regards,
 Mick


For years I've used rsync -Cavzu ... to do updates.  That's been my
mantra for so long I don't recall what each option does do know that it
updates (rather than copies everything).

Indeed flash drives _do_ have a lifetime.  My recollection is that it's
in the thousands of writes if not the hundreds of thousands of writes.
Assuming a life of 1,000 writes and you backup once daily, that's 3
years of backups.  10,000 writes would be 30 years.  Of course if you
backup every hour, 10,000 writes is a year (or so).

Honestly, I've stopped worrying about manual copies to flash drives.  

Of course if you have a program that writes to a flash drive
frequently, that's a very different story ...

HTH,

David



Re: [gentoo-user] rsync to a USB stick

2010-05-30 Thread David Relson
On Sun, 30 May 2010 11:48:21 +0100
Neil Bothwick wrote:

 On Sat, 29 May 2010 07:59:31 -0400, David Relson wrote:
 
  Indeed flash drives _do_ have a lifetime.  My recollection is that
  it's in the thousands of writes if not the hundreds of thousands of
  writes. Assuming a life of 1,000 writes and you backup once daily,
  that's 3 years of backups.  10,000 writes would be 30 years.  Of
  course if you backup every hour, 10,000 writes is a year (or so).
 
 You're assuming that each backup only writes once, which is far from
 true. If you mount a drive with the sync option, the FAT is updated
 for every block you write, so even a single file can cause thousands
 of writes to the same location.
 
 
 -- 
 Neil Bothwick

Neil,

Correct -- if the USB is mounted synchronously.  

Normally Linux uses asynchronous writes (caching), so will hit the FAT
much less often. 

I've tried synchronous writes and it's a real performance killer.

However for a DOS formatted stick (which is the norm) the FAT does seem
to be the week link.

David



Re: [gentoo-user] Re: rsync to a USB stick

2010-05-30 Thread David Relson
On Sun, 30 May 2010 14:20:36 + (UTC)
Grant Edwards wrote:

 On 2010-05-30, Neil Bothwick n...@digimed.co.uk wrote:
  On Sat, 29 May 2010 07:59:31 -0400, David Relson wrote:
 
  Indeed flash drives _do_ have a lifetime.  My recollection is that
  it's in the thousands of writes if not the hundreds of thousands
  of writes. Assuming a life of 1,000 writes and you backup once
  daily, that's 3 years of backups.  10,000 writes would be 30
  years.  Of course if you backup every hour, 10,000 writes is a
  year (or so).
 
  You're assuming that each backup only writes once, which is far from
  true. If you mount a drive with the sync option, the FAT is updated
  for every block you write, so even a single file can cause
  thousands of writes to the same location.
 
 And you're assuming that the flash controller chip in the USB drive
 doesn't do wear-leavelling.

FWIW, I have enabled synchronous writes for a Disk-On-Module (SSD)
formatted ext2. It makes writing take significantly longer and I have
had a DOM go bad (become unusable).  Admittedly, I don't know whether
the DOM does wear-levelling and I don't know the underlying cause of
the failure.  In any case it was Not Good (tm) ...



Re: [gentoo-user] Trying to expunge virtualbox

2010-06-17 Thread David Relson
On Thu, 17 Jun 2010 21:03:45 -0400
Walter Dnes wrote:

   Just recently switched to a backup machine and I notice the
 following. Some time ago, I had tried Virtualbox, and uninstalled
 it.  I still get the following as the final 2 lines of the bootup
 process...
 
  * Starting VirtualBox kernel module ...
  * modprobe vboxdrv failed. Please use 'dmesg' to find out why
 
   - I've tried dmesg | grep -i box, and it shows nothing.
   - emerge -pv --depclean | grep -i box
 only hits on busybox, dosbox, and sandbox
   - There is no mention of vboxdrv
 in /etc/modules.autoload.d/kernel-2.6 or in /var/lib/portage/world or
 in /etc/conf.d/local.start
 
   Any more ideas?

Have you looked in /etc/mod*.conf and /etc/mod*.d/* ??



[gentoo-user] dying hard drive

2010-07-21 Thread David Relson
/var/log/messages has indicated a slew of XFS problems on an external
USB hard drive (see attachment).  These look pretty fatal.  Anybody
think the file system is recoverable?

Also, palimpsest is reporting (graphically) that my external hard drive is
about to die.  Can I save it's report to a text file???
Jul 21 23:53:23 osage kernel: usb 2-1: new high speed USB device using ehci_hcd 
and address 2
Jul 21 23:53:23 osage kernel: usb 2-1: New USB device found, idVendor=0bc2, 
idProduct=3001
Jul 21 23:53:23 osage kernel: usb 2-1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=3
Jul 21 23:53:23 osage kernel: usb 2-1: Product: FreeAgent
Jul 21 23:53:23 osage kernel: usb 2-1: Manufacturer: Seagate
Jul 21 23:53:23 osage kernel: usb 2-1: SerialNumber: 2GEX0DP4
Jul 21 23:53:23 osage kernel: scsi4 : usb-storage 2-1:1.0
Jul 21 23:53:24 osage kernel: scsi 4:0:0:0: Direct-Access Seagate  
FreeAgent102D PQ: 0 ANSI: 4
Jul 21 23:53:24 osage kernel: sd 4:0:0:0: Attached scsi generic sg1 type 0
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] 976773168 512-byte logical 
blocks: (500 GB/465 GiB)
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Write Protect is off
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Mode Sense: 1c 00 00 00
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write 
through
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write 
through
Jul 21 23:53:28 osage kernel: sdb: sdb1
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write 
through
Jul 21 23:53:28 osage kernel: sd 4:0:0:0: [sdb] Attached SCSI disk

Jul 21 23:54:18 osage kernel: XFS: bad magic number
Jul 21 23:54:18 osage kernel: XFS: SB validate failed
Jul 21 23:54:36 osage kernel: XFS mounting filesystem sdb1
Jul 21 23:54:36 osage kernel: Starting XFS recovery on filesystem: sdb1 
(logdev: internal)

Jul 21 23:55:12 osage kernel: XFS internal error XFS_WANT_CORRUPTED_GOTO at 
line 1544 of file fs/xfs/xfs_alloc.c.  Caller
 0x81122bf8
Jul 21 23:55:12 osage kernel: Pid: 4415, comm: mount Not tainted 
2.6.34-gentoo-r1 #1
Jul 21 23:55:12 osage kernel: Call Trace:
Jul 21 23:55:12 osage kernel: [81122bf8] ? xfs_free_extent+0x7d/0x94
Jul 21 23:55:12 osage kernel: [81121289] ? 
xfs_free_ag_extent+0x42e/0x662
Jul 21 23:55:12 osage kernel: [81122bf8] ? xfs_free_extent+0x7d/0x94
Jul 21 23:55:12 osage kernel: [81158832] ? xfs_trans_get_efd+0x21/0x29
Jul 21 23:55:12 osage kernel: [8114f069] ? 
xlog_recover_process_efi+0x113/0x171
Jul 21 23:55:12 osage kernel: [8114f114] ? 
xlog_recover_process_efis+0x4d/0x8a
Jul 21 23:55:12 osage kernel: [8114f475] ? 
xlog_recover_finish+0x14/0xac
Jul 21 23:55:12 osage kernel: [81155101] ? xfs_mountfs+0x48f/0x556
Jul 21 23:55:12 osage kernel: [8115cb13] ? kmem_zalloc+0xd/0x28
Jul 21 23:55:12 osage kernel: [811557ca] ? 
xfs_mru_cache_create+0x111/0x14c
Jul 21 23:55:12 osage kernel: [81165c89] ? 
xfs_fs_fill_super+0x199/0x300
Jul 21 23:55:12 osage kernel: [8108f7aa] ? get_sb_bdev+0x125/0x16d
Jul 21 23:55:12 osage kernel: [81165af0] ? xfs_fs_fill_super+0x0/0x300
Jul 21 23:55:12 osage kernel: [8108f3a1] ? vfs_kern_mount+0xaa/0x179
Jul 21 23:55:12 osage kernel: [8108f4c3] ? do_kern_mount+0x43/0xe1
Jul 21 23:55:12 osage kernel: [810a2e93] ? do_mount+0x766/0x7e2
Jul 21 23:55:12 osage kernel: [81072562] ? copy_from_user+0x13/0x25
Jul 21 23:55:12 osage kernel: [810a2f93] ? sys_mount+0x84/0xc5
Jul 21 23:55:12 osage kernel: [8100202b] ? 
system_call_fastpath+0x16/0x1b
Jul 21 23:55:12 osage kernel: Filesystem sdb1: XFS internal error 
xfs_trans_cancel at line 1161 of file fs/xfs/xfs_trans.c.  Caller 
0x8114f0b9
Jul 21 23:55:12 osage kernel: 
Jul 21 23:55:12 osage kernel: Pid: 4415, comm: mount Not tainted 
2.6.34-gentoo-r1 #1
Jul 21 23:55:12 osage kernel: Call Trace:
Jul 21 23:55:12 osage kernel: [8114f0b9] ? 
xlog_recover_process_efi+0x163/0x171
Jul 21 23:55:12 osage kernel: [81156cbc] ? xfs_trans_cancel+0x56/0xd3
Jul 21 23:55:12 osage kernel: [8114f0b9] ? 
xlog_recover_process_efi+0x163/0x171
Jul 21 23:55:12 osage kernel: [8114f114] ? 
xlog_recover_process_efis+0x4d/0x8a
Jul 21 23:55:12 osage udevd-work[3570]: '/bin/mount -a' unexpected exit with 
status 0x000b
Jul 21 23:55:12 osage kernel: [8114f475] ? 
xlog_recover_finish+0x14/0xac
Jul 21 23:55:12 osage kernel: [81155101] ? xfs_mountfs+0x48f/0x556
Jul 21 23:55:12 osage kernel: [8115cb13] ? kmem_zalloc+0xd/0x28
Jul 21 23:55:12 osage kernel: [811557ca] ? 
xfs_mru_cache_create+0x111/0x14c
Jul 21 23:55:12 osage kernel: [81165c89] ? 
xfs_fs_fill_super+0x199/0x300
Jul 21 23:55:12 osage kernel: [8108f7aa] ? get_sb_bdev+0x125/0x16d
Jul 21 23:55:12 osage kernel: [81165af0] ? xfs_fs_fill_super+0x0/0x300
Jul 21 23:55:12 osage kernel: [8108f3a1] ? 

Re: [gentoo-user] help with Persistent hard disk device names with udev

2010-09-01 Thread David Relson
My udev rules use a combination of KERNEL, ATTRS(serial), and SYMLINK to
create named entries in /dev for my 2 USB hard drives.

With the following rules in /etc/udev/rules.d/10-local.rules: 

KERNEL==sd*, ATTRS{serial}==FD...7264507, SYMLINK+=WD1 
KERNEL==sd*, ATTRS{serial}==FD...7285643, SYMLINK+=WD2

Plugging them in results in /dev entries like:

  brw-rw  1 root disk8,  32 Aug 21 13:55 sdc
  lrwxrwxrwx  1 root root 3 Aug 21 13:55 WD1 - sdc
  brw-rw  1 root disk8,  32 Aug 21 13:55 sdd
  lrwxrwxrwx  1 root root 3 Aug 21 13:55 WD2 - sdd

And in /etc/fstab, I reference /dev/WD1 and /dev/WD2

HTH,

David

On Mon, 30 Aug 2010 15:00:28 +0200
Pau Peris wrote:

 Hi, i would like to give persistent device names to the system hard
 drives (just renaming its original device name to the one i want using
 its serial number as identifier). I've created the following rules
 which are not currently working. I'm trying to use device serial
 numbers to properly set its device name. One of the main reasons for
 doing that is i have a RAID composed by 3 disk (let's say sda sdc sdd)
 and when i plug another 4 disks sda becomes sde, sdc becomes sdg and
 so on while new drives take old device names, that's why i would like
 to make it sure device names remains always the same.
 Here are the rules
 Código:
 
 SUBSYSTEM==block, ATTR{serial}=VNVB05G2RKTRZH, NAME=hda
 SUBSYSTEM==block, ATTR{serial}=9QK0T4WM, NAME=sda
 SUBSYSTEM==block, ATTR{serial}=3QD0X58D, NAME=sdb
 SUBSYSTEM==block, ATTR{serial}=9QK0RS9G, NAME=sdc
 SUBSYSTEM==block, ATTR{serial}=9VP0SBVN, NAME=sdc
 
 KERNEL==hd*, SUBSYSTEM==block, ATTR{serial}=VNVB05G2RKTRZH,
 NAME=hda%n KERNEL==sd*, SUBSYSTEM==block,
 ATTR{serial}=9QK0T4WM, NAME=sda%n KERNEL==sd*,
 SUBSYSTEM==block, ATTR{serial}=3QD0X58D, NAME=sdb%n
 KERNEL==sd*, SUBSYSTEM==block, ATTR{serial}=9QK0RS9G,
 NAME=sdc%n KERNEL==sd*, SUBSYSTEM==block,
 ATTR{serial}=9VP0SBVN, NAME=sdc%n
 
 
 Should this work? Do some one know how can i get it to work? thanks
 in advanced



[gentoo-user] problem with PORTAGE_ELOG_MAILURI

2010-09-03 Thread David Relson
I'm trying to setup mailing of emerge logs, but it's failing for
reasons I don't grasp. 

In /etc/make.conf I have the following:

PORTAGE_ELOG_MAILURI=use...@mydomain.com

Running emerge, for example emerge -1 uptimed give the following
message:

!!! A network error occured while trying to send logmail:
[Errno 111] Connection refused
Sure you configured PORTAGE_ELOG_MAILURI correctly?

As a test, from a bash command line I have run:

echo testing use...@mydomain.com | \
mail -stesting  use...@mydomain.com use...@mydomain.com

The command line test works fine which indicates that the value of
PORTAGE_ELOG_MAILURI is correct.  However emerge is giving the message
shown above. 

Any thoughts on what I've done wrong?

Regards,

David



[gentoo-user] SOLVED: problem with PORTAGE_ELOG_MAILURI

2010-09-03 Thread David Relson
Needed to use:

PORTAGE_ELOG_MAILURI=use...@mydomain.com mymailserver.com

On Fri, 3 Sep 2010 21:01:24 -0400
David Relson wrote:

 I'm trying to setup mailing of emerge logs, but it's failing for
 reasons I don't grasp. 
 
 In /etc/make.conf I have the following:
 
 PORTAGE_ELOG_MAILURI=use...@mydomain.com
 
 Running emerge, for example emerge -1 uptimed give the following
 message:
 
 !!! A network error occured while trying to send logmail:
 [Errno 111] Connection refused
 Sure you configured PORTAGE_ELOG_MAILURI correctly?
 
 As a test, from a bash command line I have run:
 
 echo testing use...@mydomain.com | \
 mail -stesting  use...@mydomain.com use...@mydomain.com
 
 The command line test works fine which indicates that the value of
 PORTAGE_ELOG_MAILURI is correct.  However emerge is giving the message
 shown above. 
 
 Any thoughts on what I've done wrong?
 
 Regards,
 
 David



Re: [gentoo-user] SOLVED: problem with PORTAGE_ELOG_MAILURI

2010-09-05 Thread David Relson
On Sun, 5 Sep 2010 10:14:18 +0100
Stroller wrote:

 
 On 4 Sep 2010, at 15:32, Neil Bothwick wrote:
  On Sat, 4 Sep 2010 12:15:01 +0100, Stroller wrote:
 
  Needed to use:
 
  PORTAGE_ELOG_MAILURI=use...@mydomain.com mymailserver.com
 
  I've got it without that, Portage 2.1.8.3.
 
  $ grep ELOG /etc/make.conf
  PORTAGE_ELOG_CLASSES=warn error log
  PORTAGE_ELOG_SYSTEM=save mail
  PORTAGE_ELOG_MAILURI=root
  PORTAGE_ELOG_MAILFROM=port...@hex
  $
 
  Works fine here.
 
  Are you running a mailserver on localhost?
 
 Well, David's problem is SOLVED now, so I'm not sure that it
 matters, but yes.
 
 I assumed he would also have to be running a sendmail-replacement
 for the example he gave to work:
 
  echo testing use...@mydomain.com | \
  mail -stesting  use...@mydomain.com use...@mydomain.com
 
 I kinda assumed his problem was that `mail` would provide a valid  
 sender address, whereas the upstream ISP might reject mails from  
 portage with a dodgy from address.
 
 Stroller.
 

OP here ...

Having my own domain, I run my own mailserver -- but it's not on my
gentoo development machine.  I read the emerge python code,
specifically mail.py, to find how PORTAGE_ELOG_MAILURI is handled.
Reading the code lead me to (finally) realize that I need to have a
PORTAGE_ELOG_MAILURI value with two (2) fields separated by a space
character.

David



Re: [gentoo-user] SOLVED: problem with PORTAGE_ELOG_MAILURI

2010-09-06 Thread David Relson
On Mon, 6 Sep 2010 11:32:16 +0100
Stroller wrote:

 
 On 5 Sep 2010, at 17:54, David Relson wrote:
  ...
  I've got it without that, Portage 2.1.8.3.
 
  $ grep ELOG /etc/make.conf
  PORTAGE_ELOG_CLASSES=warn error log
  PORTAGE_ELOG_SYSTEM=save mail
  PORTAGE_ELOG_MAILURI=root
  PORTAGE_ELOG_MAILFROM=port...@hex
  $
 
  Works fine here.
 
  I assumed he would also have to be running a sendmail-replacement
  for the example he gave to work:
 
  echo testing use...@mydomain.com | \
  mail -stesting  use...@mydomain.com use...@mydomain.com
 
  I kinda assumed his problem was that `mail` would provide a valid
  sender address, whereas the upstream ISP might reject mails from
  portage with a dodgy from address.
  ...
 
  OP here ...
 
  Having my own domain, I run my own mailserver -- but it's not on my
  gentoo development machine.  I read the emerge python code,
  specifically mail.py, to find how PORTAGE_ELOG_MAILURI is handled.
  Reading the code lead me to (finally) realize that I need to have a
  PORTAGE_ELOG_MAILURI value with two (2) fields separated by a space
  character.
 
 What version of portage, please? I certainly don't have that here,
 and it seems to be working.
 
 Stroller. 2.2_rc75

I'm running the latest and greatest 2.2_rc7.  Are you running a mail
server on your local machine?  My not doing so is why I need the space.



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-10 Thread David Relson
On Fri, 10 Sep 2010 11:05:12 +0200
J. Roeleveld wrote:

 On Friday 10 September 2010 10:43:30 Jake Moe wrote:
On 10/09/2010 5:27 PM, Maciej Grela wrote:
   2010/9/10 Jake Moejakesaddr...@gmail.com:
 Hello all,
   
   I've been thinking about creating a Gentoo USB stick for install
   and rescue purposes (and, of course, just to see if I could).
   I've mostly followed the Gentoo handbook (I used a single 4GB
   partition for the whole system, and no swap).  I've used
   genkernel for the kernel (so I can have a multi-system capable
   kernel).  I've gotten GRUB installed and working.  My problem
   comes in after what I believe is the init process:
   
   
   Gentoo Linux; http://www.gentoo.org
   
 Copyright 1999-2009 Gentoo Foundation; Distributed under the
   GPLv2
   
   Press I to enter interactive boot mode
   
 * Mounting proc
   at /proc ... [
   
   ok ]
   
 * Mounting sysfs
   at /sys ... [
   
   ok ]
   
 *
   Mounting /dev ... [
   
   ok ]
   
 * Starting
   udevd ... [
   
   ok ]
   
 * Populating /dev with existing devices through
   uevents ... [
   
   ok ]
   
 * Waiting for uevents to be
   processed ... [
   
   ok ]
   
 * Mounting devpts
   at /dev/pts ... [
   
   ok ]
   
 * Checking root filesystem ...
   
   fsck.ext2: No such file or directory while trying to
   open /dev/sda1 /dev/sda1:
   The superblock could not be read or does not describe a correct
   ext2 filesystem.  If the device is valid and it really contains
   an ext2 filesystem (and not swap or ufs or something else), then
   the superblock
   
   is corrupt, and you might try running e2fsck with an alternate 
 superblock:
   e2fsck -b 8193device
 
 * Filesystem couldn't be
   fixed :( [
   
   !! ]
   Give root password for maintenance
   (or type Control-D to continue):
   
   
   If I give the root password, I can find no /dev/sda1.  However,
   mount shows /dev/sda1 on /, and there *is* a /sys/block/sda
   folders, with a sda1 folder in that as well.  It's almost like
   it had /dev/sda1, but then lost it somehow.
   
   Does anyone have any idea what's going on here?  Any help would
   be appreciated.
   
   Have you seen http://www.sysresccd.org/Main_Page ? It's based on
   Gentoo, you could check what they did to boot from a usb stick.
   
   Br,
   Maciej Grela
  
  Excellent, thanks for that, I hadn't found it in my previous
  searches. I'll have a look there.
  
  Jake Moe
 
 Had a similar issue a while ago when I was playing around with this
 myself.
 
 Take a look at the linux boot parameters.
 
 The 'theoretical' part is: You need to let the kernel initialize the
 USB-stick before trying to access it. (This can take some time)
 
 There is a delay-option, just can't remember the proper name off-hand.
 
 --
 Joost

I've got USB booting working in a syslinux environment.  A delay of 12
seconds is working for me.  The syslinux.cfg stanza I use is:

LABEL usb
KERNEL linux
APPEND rootdelay=12 root=/dev/sda2

HTH,

David



Re: [gentoo-user] Native 32 and 64-bit linux Flash 10 Preview Release available

2010-09-19 Thread David Relson
On Sun, 19 Sep 2010 02:05:51 -0400
Walter Dnes wrote:

   This is of interest to those of us running old versions of Flash,
 especially on 64-bit installs without 32-bit support (looks in
 mirrorg).
 
   Download site is http://labs.adobe.com/downloads/flashplayer10.html
 To find out where to install, go to about:plugins in Firefox, and
 see where your current version of libflashplayer.so is installed.  In
 my case it's /opt/Adobe/flash-player/libflashplayer.so
 
   To install...
 
 * for 64-bit version download the file
 http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p1_64bit_linux_091510.tar.gz
 
 * for 32-bit version download the file
 http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p1_32bit_linux_091510.tar.gz
 
 * exit Firefox
 
 * mv your current copy of libflashplayer.so to another directory as a
 backup, in case the new one doesn't work for you
 
 * extract libflashplayer.so from the downloaded tar.gz into the
 directory which you removed libflashplayer.so from.
 
 * fire up Firefox, and away you go
 
 * note that when the release version comes out, you'll need to
 manually remove the Preview Release libflashplayer.so

I've just installed it and it's working nicely for me.

Thanks for the link and install instructions.  After creating
directory /opt/Adobe/flash-player/ and extracting the tarball,
I needed to create a symlink for 
/usr/lib/mozilla/plugins/libflashplayer.so, and then restart firefox.

David



Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread David Relson
Or, as a script ...

--- begin bin/belly ---
RANGE=$1
shift
sed -n ${RANGE}p $*
--- end --


On Wed, 22 Sep 2010 17:04:43 +0200
Maciej Grela wrote:

 2010/9/22 Al oss.el...@googlemail.com:
  Hi,
 
  I am looking for a program similar to head or tail. It should
  display a given range of lines or take a line and a context number
  like grep.
 
  Any suggestions? Thanks in advance.
 
 
 gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'
 adm:x:3:4:adm:/var/adm:/bin/false
 lp:x:4:7:lp:/var/spool/lpd:/bin/false
 sync:x:5:0:sync:/sbin:/bin/sync
 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
 halt:x:7:0:halt:/sbin:/sbin/halt
 mail:x:8:12:mail:/var/spool/mail:/bin/false
 news:x:9:13:news:/usr/lib/news:/bin/false
 
 Br,
 Maciej Grela



Re: [gentoo-user] oder of files opened by a process

2010-10-02 Thread David Relson
On Fri, 1 Oct 2010 11:00:33 -0600
Darren Kirby wrote:

 On Fri, Oct 1, 2010 at 10:29 AM, Dale rdalek1...@gmail.com wrote:
  Al wrote:
 
  Hello,
 
  I want to find out by which file and line the */temp/environment
  script is run or sourced.
 
  As a am always interested in a general way to solve something, I
  ask if there is a tool, that displays me the order in which  files
  are read by a process.
 
  Al
 
 
 
  I'm not sure but you may want to check into strace.  It may be what
  you are looking for.
 
 
 strace may do the job in a pinch, but there is almost certainly
 something better suited to the task...however I don't know what it is.
 You may want to use like this:
 
 $ strace YourScript 21 | grep open

No need to use grep to find the open operations.  strace has a -feopen
option, i.e.

  strace -feopen YourScript

 
 which will run YourScript and print all open() system calls to the
 console. You will have to sort through many unrelated calls (such as
 reading shared library calls) but it will show the order in which your
 script is opening external files. Presumably you could key in on the
 relevant files using more grep calls and pipes...
 
 
  Dale
 
  :-)  :-)
 
 
 
 
 D
 -- 
 --
 Support the mob or mysteriously disappear...
 I'm on flickr: http://www.flickr.com/photos/badcomputer/



Re: [gentoo-user] Re: Firefox and Thunderbird spell-checker is offering too many languages

2010-10-07 Thread David Relson
On Thu, 07 Oct 2010 06:55:18 +0300
Nikos Chantziaras wrote:

 On 10/06/2010 09:58 PM, Dale wrote:
  Nikos Chantziaras wrote:
  The list of spell-check languages offered by Firefox and
  Thunderbird looks like this:
 
  English (AU)
  English (CA)
  English (GB)
  English (GB-oed)
  English (NZ)
  English (US)
  English (ZA)
  German (DE)
  Greek (GR)
 
  All this English stuff needs to do away, I only want English (US).
  Is there a way to do that?
 
 
 
  I have this set in my make.conf.
 
  LINGUAS=en_US en
  LANG=en_US
  LC_ALL=en_US.utf8
 
  Do you have something close to this as well? I can't think of
  anything else at the moment. Maybe someone else will post a
  different idea.
 
 No, that's not it.  I have LINGUAS=en_US en in my make.conf too.  I 
 found out that Firefox now uses hunspell for spell checking.  Maybe
 that has something to do with it.  So I guess the question now should
 be how to tell hunspell to only offer the US-English dictionary.
 

run eix -e hunspell to show the languages supported/activated for
hunspell



Re: [gentoo-user] baselayout -- openrc ?

2010-10-22 Thread David Relson
On Fri, 22 Oct 2010 12:13:16 +0200
Michael Hampicke wrote:

  Any caveats with openrc we should be aware of?
 
 # genlop -l | grep openrc
  Thu Apr 24 14:05:53 2008  sys-apps/openrc-0.2.2
 
 I've been running baselayout2/openrc oder 2.5 years now without any
 problems. Of course this does not mean it will run smoothly on your
 gentoo box.
 
 As I recall upgrading to b2/openrc involves lots of changed config
 files (mostly conf.d init init.d), so you have to be a little careful.

My recollection was of

(1) being scared that I'd get the changes wrong for baselayout2
(2) the changes were easy and went smoothly
(3) no problems!

FWIW, i've been using baselayout2/openrc since August 2008.



[gentoo-user] usb write delay

2010-11-22 Thread David Relson
I'd like to reduce the time delay between a command or program's writing
to a file on a flash drive and when ext2 actually writes the data to the
drive.  How can I do this?



Re: [gentoo-user] usb write delay

2010-11-26 Thread David Relson
On Tue, 23 Nov 2010 07:31:48 +0100
Florian Philipp wrote:

 Am 23.11.2010 04:52, schrieb David Relson:
  I'd like to reduce the time delay between a command or program's
  writing to a file on a flash drive and when ext2 actually writes
  the data to the drive.  How can I do this?
  
 
 Mount with the option commit=x where x is a time in seconds. 0 means
 default (=5).
 
 Hope this helps,
 Florian Philipp
 

It doesn't work for my USB memory stick which has the default
filesystem, i.e. vfat

According to mount's man page, commit=n is for ext3.



Re: [gentoo-user] usb write delay

2010-11-26 Thread David Relson
On Tue, 23 Nov 2010 09:04:54 -0600
Paul Hartman wrote:

 On Mon, Nov 22, 2010 at 9:52 PM, David Relson
 rel...@osagesoftware.com wrote:
  I'd like to reduce the time delay between a command or program's
  writing to a file on a flash drive and when ext2 actually writes
  the data to the drive.  How can I do this?
 
 In addition to Florian's tip, you can also remove the delay completely
 by mounting with sync option. This may negatively impact performance.
 
 Alternatively you can leave it caching as normal and then issue the
 sync command when you're done doing your USB operations and it'll
 flush remaining data to the flash drive immediately. (I think
 unmount/eject will do this too.) That's what I usually do.

Sync really, really slows down writes, at least for a solid state
drive.  I'm looking for a way to avoid that slowdown without the
dangers of a user yanking a flash drive before the cache is
completely written out.




[gentoo-user] modprobe warnings

2011-01-15 Thread David Relson
My /etc/modprobe.d directory is under configuration management using
subversion.  Whenever modprobe runs, it reads the files in the .svn
directory and complains about all the stuff it doesn't understand, for
example:

Jan 15 08:57:22 osage modprobe: WARNING: /etc/modprobe.d/.svn/entries
line 266: ignoring bad line starting with '

How can I turn off these warnings?


Regards,

David



Re: [gentoo-user] VirtualBox

2011-01-15 Thread David Relson
With my AMD Phenom, v-4.0.0 doesn't work at all.  After clicking on the
icon (or running /usr/bin/VirtualBox - a link
to /opt/VirtualBox/VBox.sh), nothing happens -- specifically VBox's
window doesn't appear.

After reverting to v-3.2.12-r2, all is fine.

FWIW, I'm using virtualbox-bin.


On Sat, 15 Jan 2011 22:51:47 +0200
Alan McKinnon wrote:

 Apparently, though unproven, at 02:23 on Saturday 15 January 2011,
 john did opine thusly:
 
  Any one having issues with version 4 of VirtualBox.
  
  Mouse integration does not work any more. I can no longer use mouse
  within VirtualBox.
  
  I have disabled/enabled mosue integration.
 
 make sure you did rebuild the virtual box modules after upgrading
 virtualbox.
 
 They come as a pair at v-4.0.0 but you might have some odd masks that 
 prevented it.
 
 -- 
 alan dot mckinnon at gmail dot com



[gentoo-user] emacs iso-8859-1

2011-02-18 Thread David Relson
G'day,

ISO-8859-1 uses byte values 0xC0 to 0xFF for European accented
characters (amongst otherss).

I have a binary file whose bytes have values 0xC0 to 0xFF.  Emacs is
presently displaying them as octal, i.e. \300\301\302\303 etc.  

How do I get emacs to display them as accented characters?

set-language-environment gives me some of the capability I want, but
not all because it isn't sticky.  Ideally setting a mode (or a
variable) in my .emacs would affect newly opened files and show the
accents.

Thanks,

David




[gentoo-user] flash drive mounting is very slow

2011-02-20 Thread David Relson
Mounting USB devices is very, very slow.  This morning I inserted my
PNY memory stick at 10:18:22 but df didn't show it mounted until 3
minutes later at 10:21:05.

As  background information, in /etc/udev/rules.d/10-local.rules is: 

KERNEL==sd*1, ATTRS{manufacturer}==PNY, SYMLINK+=PNY, 
RUN+=/bin/mount -a

and in /etc/fstab is:

/dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0

The kernel messages in /var/log/messages for this period of time are in
the attached file (to avoid line wrapping by mail clients).

Any thoughts on why it takes so long and how I can speed up
recognition?

Ideas for enabling more messages (from udev, the kernel, etc) to see
what's happening would also be helpful.

TIA,

David

Feb 20 10:18:22 osage kernel: usb 1-4.1: new high speed USB device using 
ehci_hcd and address 25
Feb 20 10:18:22 osage kernel: usb 1-4.1: New USB device found, idVendor=154b, 
idProduct=0016
Feb 20 10:18:22 osage kernel: usb 1-4.1: New USB device strings: Mfr=1, 
Product=2, SerialNumber=3
Feb 20 10:18:22 osage kernel: usb 1-4.1: Product: USB 2.0 FD  
Feb 20 10:18:22 osage kernel: usb 1-4.1: Manufacturer: PNY 
Feb 20 10:18:22 osage kernel: usb 1-4.1: SerialNumber: 6E821D1300DE
Feb 20 10:18:22 osage kernel: scsi26 : usb-storage 1-4.1:1.0
Feb 20 10:18:23 osage kernel: scsi 26:0:0:0: Direct-Access PNY  USB 2.0 
FD   PMAP PQ: 0 ANSI: 0 CCS
Feb 20 10:18:23 osage kernel: sd 26:0:0:0: Attached scsi generic sg2 type 0
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] 15663104 512-byte logical 
blocks: (8.01 GB/7.46 GiB)
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Write Protect is off
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Mode Sense: 23 00 00 00
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Assuming drive cache: write 
through
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Assuming drive cache: write 
through
Feb 20 10:18:24 osage kernel: sdc: sdc1
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Assuming drive cache: write 
through
Feb 20 10:18:24 osage kernel: sd 26:0:0:0: [sdc] Attached SCSI removable disk
Feb 20 10:18:38 osage usb_id[16872]: unable to access 
'/devices/pci:00/:00:13.5/usb1/1-4/1-4.1/1-4.1:1.0/host25/target25:0:0/25:0:0:0/block/sdc'

Feb 20 10:20:01 osage cron[17659]: (root) CMD (test -x /usr/sbin/run-crons  
/usr/sbin/run-crons )
Feb 20 10:20:01 osage cron[17660]: (health) CMD 
(/home/health/bin/system_health.py --log --graph  /dev/null 21)
Feb 20 10:25:01 osage cron[18431]: (health) CMD 
(/home/health/bin/system_health.py --log --graph  /dev/null 21)


Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread David Relson
On Sun, 20 Feb 2011 18:03:24 +
Mick wrote:

 On Sunday 20 February 2011 17:44:58 Neil Bothwick wrote:
  On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:
   As  background information, in /etc/udev/rules.d/10-local.rules
   is: KERNEL==sd*1, ATTRS{manufacturer}==PNY, SYMLINK+=PNY,
   
   RUN+=/bin/mount -a
   
   and in /etc/fstab is:
   /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
  
  Could the delay be caused by something else is fstab trying to mount
  and failing? Try with mount /dev/PNY instead of mount -a.
  
  Even better use pmount /dev/PNY.
  
  Either way, you should run the command with  because udev blocks
  while running commands.
 
 To state the obvious ... have you tried it on a different USB port, a 
 different PC and finally a different OS?
 
 I've had a USB stick failing recently and there was a mechanical
 (contact) problem.  So a process of elimination would at least do
 away with physical level problems and indirectly confirm if there is
 something wrong with your system.
 -- 
 Regards,
 Mick

The PNY stick mentioned runs very nicely on a machine at work.  The
environment there is Ubuntu (as guest OS) running in VMWare on
WinXP (as host OS).  Automounting works very nicely.

The slowness is true of several USB sticks. 



Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread David Relson
On Sun, 20 Feb 2011 17:44:58 +
Neil Bothwick wrote:

 On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:
 
  As  background information, in /etc/udev/rules.d/10-local.rules is: 
  
  KERNEL==sd*1, ATTRS{manufacturer}==PNY, SYMLINK+=PNY,
  RUN+=/bin/mount -a
  
  and in /etc/fstab is:
  
  /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
 
 Could the delay be caused by something else is fstab trying to mount
 and failing? Try with mount /dev/PNY instead of mount -a.
 
 Even better use pmount /dev/PNY.
 
 Either way, you should run the command with  because udev blocks
 while running commands.

You're suggesting that the RUN clause be

   RUN+=pmount /dev/PNY 

right?




[gentoo-user] pmount question

2011-02-21 Thread David Relson
G'day,

My USB subsystem is working much better now (than it was this
weekend).  /etc/fstab had a reference to /dev/hdb which no my current
kernel no longer supports.  Removing this has improved flash drive
mounting a whole lot!

I've also modified /etc/udev/rules.d/10-local.rules to use pmount
device label rather than mount -a.  This is mounting flash drives
in /media as desired:

root@osage media # ls -l
total 32
drwx-- 19 root plugdev 16384 Dec 31  1969 PNY
drwx--  3 root plugdev 16384 Dec 31  1969 SD_2G

However (as can be seen above) the permissions are 700, which
makes the drives unusable by members of the plugdev group.

Alternatively, I can use pmount -u 007 device label to provide full
access to the plugdev group.  This seems awkward and inelegant.

What's the right way to use pmount and set permissions?

Regards,

David



Re: [gentoo-user] pmount question

2011-02-22 Thread David Relson
On Tue, 22 Feb 2011 08:37:06 +
Neil Bothwick wrote:

 On Mon, 21 Feb 2011 21:01:25 -0500, David Relson wrote:
 
   pmount is supposed to be run as a user and it mounts the
   filesystem owned by the user running it. If you only have a
   single user, you could call pmount with su. If you have multiple
   users, you should be letting a desktop tool handle the mounting
   anyway.  
 
  I've heard pmount ... as a user before, but never understood what
  it meant.  If pmount ... is run by a rule
  in /etc/udev/rules.d/10-local.rules, how is it known what userid to
  use?  Does pmount ... as a user assume particular settings in
  gnome, the kernel, or ???
 
 pmount is meant to be run by a normal user, usually from an
 automounter, as its main objective is to allow normal users to mount
 removable devices without fstab rules, while udev rules are run as
 root. So if you want it to run as a user from a udev rule you'll have
 to use su, as in
 
 su youruser -c 'pmount /dev/PTY'

Neil:

I'm currently using pmount -u 007 /dev/PTY as this gives rwx
permissions for root and group plugdev, which is adequate for my
workstation (which only ever has me using it).

I've seen that Ubuntu with Gnome automounts USB sticks.  That seems
pleasantly convenient and is done without any rules (such as I
presently have) in /etc/udev/rules.d. Do you know what they're doing?

Regards,

David



Re: [gentoo-user] setting locale

2011-05-31 Thread David Relson
On Mon, 30 May 2011 22:34:46 +0200
Nils Larsson wrote:

 Eh... Right, so ...
 
 The echo example might have been a bit blunt. I've found myself using
 echo examples as a general you need to add this setting here
 device, like you learn to do when you start using Gentoo, might have
 been a bit presumptuous of me.
 
 As for the incorrect locale string, copypaste from parent.
 

Why not use echo  ... ?? 

Since the  does an append, the original file contents are still
available for reference. 

Since the added line is at the end of the file, the new value will be
used instead of the old value.



Re: [gentoo-user] Thanks for all the fish!

2011-06-06 Thread David Relson
Long live emacs !

emacs is an essential part of my personal toolkit.  I've been using it
since 1996.  For 11 yrs before that I used epsilon - an editor
with much the same keymappings.  


I started using epsilon (


On Mon, 6 Jun 2011 18:32:11 +
Alan Mackenzie wrote:

 Hi, Gentoo.
 
 Just to say I'll be withdrawing from this list in a few days,
 unsubscribing actually, mainly so that I can go back to being an Emacs
 developer; the number of emails on both lists combined is just more
 than I can handle comfortably.
 
 I've counted 28 questions I've asked since late 2009, and every single
 one of them bar two got good answers too.  One of those two I answered
 myself just after posting the email ;-), and the other is currently a
 bug report.
 
 I'd like to say THANK YOU to everybody who helped me get a well
 running Gentoo system and patiently taught me about it, but in
 particular to Alan McKinnon because he's got such a splendid name.
 
 -- 
 Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] virtualbox 4.1.2 problem

2011-09-08 Thread David Relson
On Thu, 8 Sep 2011 11:58:21 +0200
Alan McKinnon wrote:

 On Wed, 7 Sep 2011 19:08:21 -0400
 David Relson rel...@osagesoftware.com wrote:
 
  G'day,
  
  I'm having a problem with VirtualBox and am looking for ideas.
  
  As background, I'm running virtualbox-bin-4.1.2 on a
  2.6.39-gentoo-r2 kernel on an AMD Phenom 9850.  My vmware install
  no longer works because vmware wants the BKL and the 2.6.39 kernel
  doesn't have it. Using vmware-converted the WinXP vmware guest has
  been converted to .ova format.
  
  VirtualBox-4.1.2 loads the .ova OK.  After clicking start the
  guest starts up, shows the splash screen, then aborts with a blue
  screen saying:
  
  A problem has been detected and windows has been shut down to
  prevent damage to your computer.
  
  If this is the first time you've seen this Stop error screen,
  restart your computer. If this screen appears again, follow
  these steps:
  
  Check to be sure you have adequate disk space. If a driver is
  identified in the Stop message, disable the driver or check with
  the manufacturer for driver updates. Try changing video
  adapters.
  
  Check with your hardware vendor for any BIOS updates. Disable
  BIOS memory options such as caching or shadowing. If you need to use
  Safe Mode to remove or disable components, restart your
  computer, press F8 to select Advanced Startup options, and then
  select Safe Mode.
  
  Technical information:
 Verifying ebuild manifests
 Jobs: 0 of 1 complete, 1 runningLoad avg: 1.05,
 0.72, 0.55 Emerging (1 of 1) app-emulation/virtualbox-4.1.2
 Jobs: 0 of 1 complete, 1 runningLoad avg: 1.05,
 0.72, 0.55 Jobs: 0 of 1 complete   Load
 avg: 2.10, 3.99, 3.56
  
  *** STOP: 0x008E
  (0xC005,0x8053A8E3,0xF779E610,0x)
  
  Using virtualbox-4.1.2 on my wife's Win 7 laptop, the same .ova file
  works fine.
  
  Any thoughts on what needs changing in my gentoo environment to
  successfully run the guest?
  
  Thank you.
  
  David
  
  P.S. The most recent log file is attached.
  
  
 
 Did you import the .ova file first?

Yes.  I imported the .ova file -- a process that took several minutes
and resulted in .vbox (6.5K) and .vmdk (7.4G) files in directory
~/VirtualBox/Machines/WinXP. 

In the log file (attached to the original message) can be seen the
following VM state messages:

00:00:01.535 Changing the VM state from 'CREATING' to 'CREATED'.
00:00:01.535 Changing the VM state from 'CREATED' to 'POWERING_ON'.
00:00:01.535 Changing the VM state from 'POWERING_ON' to 'RUNNING'.
00:00:29.481 Changing the VM state from 'RUNNING' to 'RESETTING'.
00:00:29.509 Changing the VM state from 'RESETTING' to 'RUNNING'.
00:00:35.391 Changing the VM state from 'RUNNING' to 'SUSPENDING'.
00:00:35.420 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'.
00:00:38.711 Changing the VM state from 'SUSPENDED' to 'POWERING_OFF'.
00:00:38.711 Changing the VM state from 'POWERING_OFF' to 'OFF'.
00:00:38.722 Changing the VM state from 'OFF' to 'DESTROYING'.
00:00:38.731 Changing the VM state from 'DESTROYING' to 'TERMINATED'.

Looking at the log file, I interpret RESETTING to RUNNING as good,
and the messages after that as bad, i.e. indicating that vbox wasn't
happy with the VM.  

Why vbox wasn't happy is not at all clear to me.

Any thoughts?

Regards,

David



[gentoo-user] vmware-player problem

2011-09-14 Thread David Relson
G'day,

Using files pointed to from BGO, I have successfully installed
vmware-player and vmware-modules-238-r1 on my 64-bit gentoo system
running kernel 2.6.39-gentoo-r2

However, vmware-player won't start.  Checking in 
/var/tmp/vmware-relson, I found the following message:  

   Could not open /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so

The message is correct, libvmware.so does not exist at the path above
(or anywhere else).

The complete logfile (appLoader-15378.log) is attached.

Any suggestions on how to make vmware happy?

Thanks.

David
Sep 14 07:47:41.622: app-140469027788544| Log for VMware Workstation pid=15378 version=7.1.4 build=build-385536 option=Release
Sep 14 07:47:41.622: app-140469027788544| The process is 64-bit.
Sep 14 07:47:41.622: app-140469027788544| Host codepage=UTF-8 encoding=UTF-8
Sep 14 07:47:41.622: app-140469027788544| Calling: /usr/bin/vmware
Sep 14 07:47:41.745: app-140469027788544| Using configuration file /etc/vmware/config.
Sep 14 07:47:41.746: app-140469027788544| Using library directory:  /opt/vmware/lib/vmware.
LOG NOT INITIALIZED | Unable to map /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so.
LOG NOT INITIALIZED | Created dependency tree.
LOG NOT INITIALIZED | libvmware.so SHIPPED
LOG NOT INITIALIZED | LoadLibraryArray: Nothing to load, nodeCount is 0.
LOG NOT INITIALIZED | Error loading application library: /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so: cannot open shared object file: No such file or directory
LOG NOT INITIALIZED | Could not open /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so


Re: [gentoo-user] Re: vmware-player problem

2011-09-14 Thread David Relson
On Wed, 14 Sep 2011 16:45:58 +0300
Nikos Chantziaras wrote:

 On 09/14/2011 03:00 PM, David Relson wrote:
  Using files pointed to from BGO, I have successfully installed
  vmware-player and vmware-modules-238-r1 on my 64-bit gentoo system
  running kernel 2.6.39-gentoo-r2
 
  However, vmware-player won't start.  Checking in
  /var/tmp/vmware-relson, I found the following message:
 
  Could not
  open /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so
 
  The message is correct, libvmware.so does not exist at the path
  above (or anywhere else).
 
 Try installing vmware-workstation and try again.
 

vmware-workstation costs more $$ than I'm willing to pay.

Of course, vmware-server also exists.  However it depends on
vmware-modules-208 which doesn't support my 2.6.39 kernel.



Re: [gentoo-user] Re: vmware-player problem

2011-09-14 Thread David Relson
On Thu, 15 Sep 2011 01:32:59 +0300
Nikos Chantziaras wrote:

 On 09/15/2011 01:28 AM, David Relson wrote:
  On Wed, 14 Sep 2011 16:45:58 +0300
  Nikos Chantziaras wrote:
 
  On 09/14/2011 03:00 PM, David Relson wrote:
  Using files pointed to from BGO, I have successfully installed
  vmware-player and vmware-modules-238-r1 on my 64-bit gentoo system
  running kernel 2.6.39-gentoo-r2
 
  However, vmware-player won't start.  Checking in
  /var/tmp/vmware-relson, I found the following message:
 
   Could not
  open /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so
 
  The message is correct, libvmware.so does not exist at the path
  above (or anywhere else).
 
  Try installing vmware-workstation and try again.
 
 
  vmware-workstation costs more $$ than I'm willing to pay.
 
 You don't have to use it.  You just install it in order to get 
 libvmware.so.  You then use Player, not Workstation.
 
 It's fetch-restricted, so portage will tell you which file to
 download. To download, you need to register, but creating an account
 doesn't cost.
 

I wish it were that simple.

vmware-8.0.0 was released today and the vmware site seems not to
include older versions.  (If they're still available, they're well
hidden).

I've created an 8.0.0 ebuild by making the obvious modification to the
7.1.4 ebuild.  However when I run

  ebuild /usr/local/portage/..vmware-workstation-8.0.8...digest 

portage gives a fetch restricted; download and copy
to .../distfiles/... message.  This happens even though I _have_
downloaded the bundle and put it in the distfiles directory.

What the heck?

David



Re: [gentoo-user] Re: vmware-player problem

2011-09-14 Thread David Relson
On Wed, 14 Sep 2011 22:11:35 -0400
David Relson wrote:

 On Thu, 15 Sep 2011 01:32:59 +0300
 Nikos Chantziaras wrote:
 
  On 09/15/2011 01:28 AM, David Relson wrote:
   On Wed, 14 Sep 2011 16:45:58 +0300
   Nikos Chantziaras wrote:
  
   On 09/14/2011 03:00 PM, David Relson wrote:
   Using files pointed to from BGO, I have successfully installed
   vmware-player and vmware-modules-238-r1 on my 64-bit gentoo
   system running kernel 2.6.39-gentoo-r2
  
   However, vmware-player won't start.  Checking in
   /var/tmp/vmware-relson, I found the following message:
  
Could not
   open /opt/vmware/lib/vmware/lib/libvmware.so/libvmware.so
  
   The message is correct, libvmware.so does not exist at the path
   above (or anywhere else).
  
   Try installing vmware-workstation and try again.
  
  
   vmware-workstation costs more $$ than I'm willing to pay.
  
  You don't have to use it.  You just install it in order to get 
  libvmware.so.  You then use Player, not Workstation.
  
  It's fetch-restricted, so portage will tell you which file to
  download. To download, you need to register, but creating an account
  doesn't cost.
  
 
 I wish it were that simple.
 
 vmware-8.0.0 was released today and the vmware site seems not to
 include older versions.  (If they're still available, they're well
 hidden).
 
 I've created an 8.0.0 ebuild by making the obvious modification to the
 7.1.4 ebuild.  However when I run
 
   ebuild /usr/local/portage/..vmware-workstation-8.0.8...digest 
 
 portage gives a fetch restricted; download and copy
 to .../distfiles/... message.  This happens even though I _have_
 downloaded the bundle and put it in the distfiles directory.
 
 What the heck?
 
 David

Note:  I found the x86_64 bundle for 7.1.4 (the most recent ebuild) by
googling.



Re: [gentoo-user] crossdev avr compile failing on crtm328p.o

2011-12-29 Thread David Relson
On Sun, 08 May 2011 11:40:58 +0800
William Kenworthy wrote:

...snip...
 
 oh, and I should add that the above make.conf entries exist and are
 correct - but if I copy crtm328p.o from /usr/avr/lib/avr5
 to /usr/avr/lib it all works fine.  So while it now works, its ot
 fixed :)
 
 I have decided to emerge -ep world after doing the python update - and
 see what that fixes/breaks!
 
 BillK

Hello Bill,

I encountered the same toolchain problem for an Open-USB-IO board,
which also uses an ATmega32 microcontroller.  In my case it was
avr5/crtm32.o that wasn't being found.  Experimentation found that
crtm32.o is found if either of the following symlinks is created

   ln -s /usr/avr/lib/avr5/crtm32.o /usr/avr/lib/crtm32.o

   ln -s /usr/avr/lib/avr5 /usr/avr/lib/avr/4.5.3

The 4.5.3 is the avr-gcc version I have.

HTH,

David



Re: [gentoo-user] Re: Floppy support question for old farts. lol

2012-01-29 Thread David Relson

 My earliest new and shiny then would be a honkin' big desktop
 horizontal all-steel box, with a Turbo switch that toggles a
 front-panel (7-segment LED)  display between 4.77 and 8.00
 
 And of floppies that really *are* floppy (5.25)...
 
 And of copy-protected diskettes and CopyIIpc and CopyWrite...
 
 As you can see, I have a severely traumatic childhood...
 
 Rgds,

You mean those small floppies?  Remember the big 8 inchers?

In the early days, putting a computer together took more than a screw
driver.  Remember soldering irons and PC board kits with discrete
components?  I do believe I still have an S-100 bus machine in my attic.

Regards,

David



[gentoo-user] emacs - problem rendering pdf files

2012-04-01 Thread David Relson
G'day,

A few weeks ago I discovered that emacs is no longer rendering pdf
files.  Before, I could open a pdf file and read it using emacs, but no
longer.  

When I open a pdf I get the following messages:

### message #1 ### in buffer that used to show the rendered pdf ###

Welcome to DocView!
 
 
If you see this buffer it means that the document you want to view is
being converted to PNG and the conversion of the first page hasn't
finished yet or `doc-view-conversion-refresh-interval' is set to nil.

For now these keys are useful:

`q' : Bury this buffer.  Conversion will go on in background.
`k' : Kill the conversion process and this buffer.
`K' : Kill the conversion process.\n

### message #2 ### in the emacs status bar ###

DocView: process pdf/ps-png changed status to exited anbormally with
code 127

### end of messages ###

Research shows that both messages come from file 
/usr/share/emacs/23.4/lisp/doc-view.el.  The first messsages is from
function doc-view-buffer-message() and the second is from function
doc-view-sentinel(proc event).

Any suggestions of what's gone missing on my system ???

Thanks.

David

P.S. emacs is still rendering images (jpg, png, tiff, etc).




Re: [gentoo-user] Portage telling me what it's doing

2012-06-02 Thread David Relson
On Sat, 02 Jun 2012 14:08:39 +0800
Andrew Lowe wrote:

 Hi all,
   I've just kicked off an emerge -NuD world and will now head
 out for a while. My emerge has to do, amongst others, gcc,
 libreoffice, Firefox  Thunderbird. Now when I get back I'll want to
 know where the emerge is up to so, in my ignorance of portage/emerge
 in great depth and with only compiler output spewing up the screen,
 I'll fire up another terminal, and now don't laugh, I'll do emerge
 --pretend -NuD world. That will tell me what's currently being
 compiled as it will be the top thingy on the list. There has to be a
 better way
 
   Is there a way so that the terminal that the emerge is
 happening in can display additional info? At the moment, I get:
 
 /home/agl: emerge
 
 can I get, say:
 
 /home/agl: emerge www-client/firefox
 
 by setting some config variable? Failing that is there a log file
 that lists just what's been emerged, not a whole lot of checking
 this, checking that, compiling this file, linking that library,
 whoops, error here... sort of thing.
 
   Any thoughts, greatly appreciated,
 
   Andrew

I use emerge -auDtqv world to update.  

The uD identifies all the updates (from world) and the packages used
in lower levels.  The t uses indented names to show levels of
dependency.  Lastly qv suppresses (from my console) all the
configuration and build details while that information is written
to /var/lib/portage.

In short, I can see what's being emerged without being overwhelmed by
details.

HTH,

David



[gentoo-user] eix needs GLIBCXX_3.4.xxx

2012-07-22 Thread David Relson
G'day,

I've got a problem with eix on my 32-bit system (but not on my 64-bit
system).  Some GLIBCXX_3.4.?? symbols are not being found.  emerge -e
world didn't correct the problem.

Any suggestions?

Details are below.

Regards,

David

*** details ***

On my 64-bit workstation (x86_64 AMD Phenom(tm) running
3.2.11-gentoo), eix runs fine.

On my 32-bit machine (AMD Geode running kernel 2.6.31-gentoo-r6),
running eix reports:

eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
(required by eix) 
eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found 
(required by eix)
eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found
(required by eix)

I've run emege -w world and the problem has not gone away

Notes:
eix-0.23.10 is installed on both machines
gcc 4.6.3 is installed on the good (64-bit) machine
gcc 4.5.3-r2 is installed on the problem (32-bit) machine

Testing with ldd gives:

32-bit:

relson@fit-pc ~ $ ldd /usr/bin/eix
/usr/bin/eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not
found (required by /usr/bin/eix) 
/usr/bin/eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not
found (required by /usr/bin/eix) 
/usr/bin/eix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not 
found (required by /usr/bin/eix)
linux-gate.so.1 =  (0xb77e) 
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb76f7000) 
libgcc_s.so.1 = /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgcc_s.so.1 
(0xb76d9000) 
libc.so.6 = /lib/libc.so.6 (0xb757e000) 
libm.so.6 = /lib/libm.so.6 (0xb7557000) /lib/ld-linux.so.2 (0xb77e1000)

64-bit:

linux-vdso.so.1 =  (0x7fffa2091000)
libstdc++.so.6 =
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6
(0x7faea2444000) 
libgcc_s.so.1 = 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/libgcc_s.so.1
(0x7faea222d000)  
libc.so.6 = /lib64/libc.so.6 (0x7faea1e9b000) 
libm.so.6 = /lib64/libm.so.6 (0x7faea1c17000) 
/lib64/ld-linux-x86-64.so.2 (0x7faea274c000)



Re: [gentoo-user] eix needs GLIBCXX_3.4.xxx

2012-07-22 Thread David Relson
On Sun, 22 Jul 2012 18:23:47 +0200
Volker Armin Hemmann wrote:

 Am Sonntag, 22. Juli 2012, 09:52:06 schrieb David Relson:
  /usr/lib/libstdc++.so.6
 
 how about moving that stuff away and creating a symlink to the
 correct version?

Such a simple fix...

/usr/lib/libstdc++.so.6 was linked to libstdc++.so.6.0.8 rather than
6.0.14.

All is good now.

Thanks.

David



Re: [gentoo-user] Re: eix needs GLIBCXX_3.4.xxx

2012-07-22 Thread David Relson
On Sun, 22 Jul 2012 16:33:18 -0700
walt wrote:

 On 07/22/2012 10:41 AM, David Relson wrote:
  On Sun, 22 Jul 2012 18:23:47 +0200
  Volker Armin Hemmann wrote:
  
  Am Sonntag, 22. Juli 2012, 09:52:06 schrieb David Relson:
  /usr/lib/libstdc++.so.6
 
  how about moving that stuff away and creating a symlink to the
  correct version?
  
  Such a simple fix...
  
  /usr/lib/libstdc++.so.6 was linked to libstdc++.so.6.0.8 rather than
  6.0.14.
  
  All is good now.
 
 I'm guessing that you have more than one version of gcc on the 32-bit
 machine?  Any time you use gcc-config to change the working version of
 gcc, the symlink to libstdc++.so will also be changed automatically to
 point at the matching library version.
 
 

Nope.  I only have gcc-4.5.3.  Evidently symlink 
/usr/lib/libstdc++.so.6 didn't get updated when libstdc++.so.6.0.14 was
built.

FWIW, the machine has the following versions of libstdc++.so

6.0.14 - Jul 21 2012 ( in /usr/lib/gcc/.../4.5.3 )
6.0.8  - May 15 2007 ( in /usr/lib )
6.0.6  - Aug  3 2006 ( in /usr/lib )

Regards,

David




[gentoo-user] SSH question

2012-08-19 Thread David Relson
G'day,

I've volunteered to do some data entry for my local bike club.  This
involves a java application (jar  file) and a tunnel to a mysql
server.  I have detailed PuTTY configuration instructions but haven't
yet succeeded in converting them to ssh options.

The configuration options include:

Seconds between keepalives -- 120
Don't start a shell or command
Forwarded port:
source port number - PORT
Destionation: MACHINE.DOMAIN.COM
Host - IP_Address
Login - userid
Password - pw

Using ssh -N userid@IP_Address gives me a password prompt and no
command prompt - both good.

How do I specify the forwarded port?

Thank you.

David



Re: [gentoo-user] SSH question

2012-08-20 Thread David Relson
On Mon, 20 Aug 2012 06:50:29 +0100
Mick wrote:

 On Monday 20 Aug 2012 04:48:40 Canek Peláez Valdés wrote:
  On Sun, Aug 19, 2012 at 10:31 PM, David Relson
  rel...@osagesoftware.com 
 wrote:
   G'day,
   
   I've volunteered to do some data entry for my local bike club.
   This involves a java application (jar  file) and a tunnel to a
   mysql server.  I have detailed PuTTY configuration instructions
   but haven't yet succeeded in converting them to ssh options.
   
   The configuration options include:
   Seconds between keepalives -- 120
   Don't start a shell or command
   
   Forwarded port:
   source port number - PORT
   Destionation: MACHINE.DOMAIN.COM
   
   Host - IP_Address
   Login - userid
   Password - pw
   
   Using ssh -N userid@IP_Address gives me a password prompt and no
   command prompt - both good.
   
   How do I specify the forwarded port?
  
  If I understand correctly, with -L:
  
  ssh -L XX:machine2:YY user@machine1
  
  This command will connect you to the machine1 host with user
  user, and any connection to the port XX to the machine you are
  running the ssh command from, will redirect the connection to the
  machine2 host in the YY port.
 
 If you want to forward a local port XX to a remote port YY then
 Canek's suggestion will do what you want, assuming that the correct
 remote application is listening on port YY.
 
 When you have more than one application this can soon become
 tedious.  So, if you want to set up the remote machine as a SOCKS
 proxy so that any socks-ified applications on the local machine can
 connect to the remote SOCKS, then you can use:
 
   ssh -N -D  user@machine1
 
 For applications that do not have built in proxy capability you can
 use e.g. proxychains.
 
 HTH.
 -- 
 Regards,
 Mick

H'lo Mick and Carnek,

The mention of XX and YY wasn't transparent, but a bit of
experimentation gave a good connection.  Using the terms in my original
post, I now have the following working command: 

   ssh -2 -N -L PORT:MACHINE.DOMAIN.COM:22 userid@IP_Address

Just need to add an appropriate TCPKeepAlive and all will be good.

Thank you both for your tips..

Regards,
David



Re: [gentoo-user] SSH question

2012-08-22 Thread David Relson
On Mon, 20 Aug 2012 19:04:38 +0100
Mick wrote:

...[snip]...

 You're welcome.  BTW, port 22 in your example above does not *have*
 to be port 22.  As a matter of fact if it isn't, it would avoid
 zillions of connection attempts by stupid botnets that could drive up
 your bandwidth consumption. It could also be the same port as the one
 you use at your local host. Whichever port you choose, you'll have to
 allow it through the firewall at the remote machine and of course
 whichever application is running at the remote host that you want to
 connect to, should be listening on said port. -- 
 Regards,
 Mick

The remote machine(s) were set up by someone else.

My firewall deals with port 22 by periodically checking for multiple
failed logins from the same IP address and then blocking that address.
The list gets long, but with the automatic handling, it's not a
problem :-



[gentoo-user] udev rules

2012-09-30 Thread David Relson
Good morning!

I have a Rosewill 75 in 1 card reader with slots for USB, SATA, SD,
microSD, etc.  udev recognizes USB devices and mounts them
as /media/whatever.  

However, when SD and microSD cards are inserted, /var/log/messages
doesn't report anything and the cards aren't mounted.

Any suggestions where to look? what to fix?

I'm running kernel 3.2.11 on an AMD64 with udev-171.

Here's a link to the card reader
http://rosewill.com/products/1610/ProductDetail_Overview.htm

Regards,

David



Re: [gentoo-user] udev rules

2012-09-30 Thread David Relson
On Sun, 30 Sep 2012 10:58:42 -0500
Dale wrote:

 David Relson wrote:
  Good morning!
 
  I have a Rosewill 75 in 1 card reader with slots for USB, SATA, SD,
  microSD, etc.  udev recognizes USB devices and mounts them
  as /media/whatever.  
 
  However, when SD and microSD cards are inserted, /var/log/messages
  doesn't report anything and the cards aren't mounted.
 
  Any suggestions where to look? what to fix?
 
  I'm running kernel 3.2.11 on an AMD64 with udev-171.
 
  Here's a link to the card reader
  http://rosewill.com/products/1610/ProductDetail_Overview.htm
 
  Regards,
 
  David
 
 
 
 Have you tried those cards on a different system to see if they work? 
 If they do, then the reader may be bad.  May want to look for dust but
 if it is new, surely not.  ;-)  Packing peanut maybe?  o_O
 
 I have bought a couple thinks made by Rosewill.  Neither of them
 worked for long.  I sent one back for repair/replacement and got a
 new one with about the same problem.  I didn't send it back again
 because it wasn't worth shipping back again plus I was expecting it
 to work at least for a little while.  It lasted overnight  My new
 policy, don't buy Rosewill products.  They may work fine for someone
 else but they don't for me. 
 
 Dale

Actually what I've got is a SanDisk 16GB microSD with an SD adapter.
Using my wife's windoze laptop, the SD/microSD combo works fine.

My initial use of the card is for Ubuntu linux for a MK802+ mini-pc.
The MK802+ boots Android off its internal storage or Ubuntu off of the
microSD.  So, yes, the card appears to work.

David



Re: [gentoo-user] Re: [OT] Questions about building from source tarball

2012-11-01 Thread David Relson
In the past when I wanted/needed a newer version of a package than is
in portage, I'd create an entry in /usr/local/portage.

For example for app-example/some-package/some-package.x.y.z.ebuild, I'd

1) create directory /usr/local/portage/app-example/some-package
2) copy some-package.x.y.z.ebuild to some-package.x.y.z-r1.ebuild (in the
new directory).  
3) Some editing of the new ebuild might be needed here...
4) Run ebuild ... digest on the new ebuild to create the Manifest
file.
5) test with ebuild ... compile or emerge some-package.
6) when errors are encountered, repeat steps 3, 4, and 5.

HTH,

David
 

On Wed, 31 Oct 2012 20:29:10 -0400
Walter Dnes wrote:

   Thanks for the pointer.  It got me going... sort of.  Now I know why
 we don't have the latest seamonkey in the Gentoo tree.  It requires
 =dev-libs/nspr-4.9.3 and the highest ebuild of nspr in the tree is
 4.9.2, even though I did an emerge sync today.  So I'd have to build
 nspr and nss locally from tarballs, and then set .mozconfig's
 nspr-prefix and nss-prefix to the local copy... bleagh.  I'll just
 wait until nspr gets at least a keyworded 4.9.3 in the tree.
 
 -- 
 Walter Dnes waltd...@waltdnes.org
 I don't run desktop environments; I run useful applications



[gentoo-user] Xorg - RADEON vs VESA

2012-11-24 Thread David Relson
Greetings,

Last night I had to reboot my box because the screen had gone all
wonky.  The reboot has resulted in an obviously different font being
used in terminal windows, emacs, etc, etc.

Comparing Xorg logs from Oct (the previous reboot) to now, Xorg has
been upgraded from 1.12.2 to 1.13.0.  The logs are similar for approx
400 lines, then diverge.  Below is shown the beginning of the log
file differences.

Any suggestions?

Thanks.

David



** 1.12.2 **

 (++) using VT number 7

 (II)  drm report modesetting isn't supported.
 (II) RADEON(0): TOTO SAYS fdbf
 (II) RADEON(0): MMIO registers at 0xfdbf: size 64KB
 (II) RADEON(0): PCI bus 1 card 5 func 0
 (II) RADEON(0): Creating default Display subsection in Screen section
Default Screen Section for depth/fbbpp 24/32
 (==) RADEON(0): Depth 24, (--) framebuffer bpp 32
 (II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
 (==) RADEON(0): Default visual is TrueColor
 (II) Loading sub module vgahw
 (II) LoadModule: vgahw
 (II) Loading /usr/lib64/xorg/modules/libvgahw.so
 (II) Module vgahw: vendor=X.Org Foundation
compiled for 1.12.2, module version = 0.1.0
ABI class: X.Org Video Driver, version 12.0

 (II) RADEON(0): vgaHWGetIOBase: hwp-IOBase is 0x03d0
 (==) RADEON(0): RGB weight 888
 (II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
 (--) RADEON(0): Chipset: ATI Radeon X1200 (ChipID = 0x791e)
 (--) RADEON(0): Linear framebuffer at 0xf000
 (II) RADEON(0): PCI card detected
 (II) Loading sub module int10
 (II) LoadModule: int10
 (II) Loading /usr/lib64/xorg/modules/libint10.so
 (II) Module int10: vendor=X.Org Foundation
compiled for 1.12.2, module version = 1.0.0
ABI class: X.Org Video Driver, version 12.0
 (II) RADEON(0): initializing int10
 (II) RADEON(0): Primary V_BIOS segment is: 0xc000
 (II) RADEON(0): ATOM BIOS detected
 (II) RADEON(0): ATOM BIOS Rom: 
SubsystemVendorID: 0x1043 SubsystemID: 0x826d
IOBaseAddress: 0xcc00
Filename: BR25534.BIN 
BIOS Bootup Message: 
ATI Radeon Xpress ?1250? for Asus/M2A-VM

 (II) RADEON(0): Framebuffer space used by Firmware (kb): 16
 (II) RADEON(0): Start of VRAM area used by Firmware: 0x7ffc000
 (II) RADEON(0): AtomBIOS requests 16kB of VRAM scratch space
 (II) RADEON(0): AtomBIOS VRAM scratch base: 0x7ffc000
 (II) RADEON(0): Cannot get VRAM scratch space. Allocating in main memory 
instead
 (II) RADEON(0): Default Engine Clock: 40
 (II) RADEON(0): Default Memory Clock: 20
 (II) RADEON(0): Maximum Pixel ClockPLL Frequency Output: 120
 (II) RADEON(0): Minimum Pixel ClockPLL Frequency Output: 0
 (II) RADEON(0): Maximum Pixel ClockPLL Frequency Input: 13500
 (II) RADEON(0): Minimum Pixel ClockPLL Frequency Input: 1000
 (II) RADEON(0): Maximum Pixel Clock: 40
 (II) RADEON(0): Reference Clock: 14320
 drmOpenDevice: node name is /dev/dri/card0
  failed to load kernel module radeon

** 1.13.0 **

 (++) using VT number 7

 (II) [KMS] drm report modesetting isn't supported.
 (WW) Falling back to old probe method for fbdev
 (II) Loading sub module fbdevhw
 (II) LoadModule: fbdevhw
 (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
 (II) Module fbdevhw: vendor=X.Org Foundation
compiled for 1.13.0, module version = 0.0.2
ABI class: X.Org Video Driver, version 13.0
 (EE) open /dev/fb0: No such file or directory
 (EE) Screen 0 deleted because of no matching config section.
 (II) UnloadModule: radeon
 (II) Loading sub module vbe
 (II) LoadModule: vbe
 (II) Loading /usr/lib64/xorg/modules/libvbe.so
 (II) Module vbe: vendor=X.Org Foundation
compiled for 1.13.0, module version = 1.1.0
ABI class: X.Org Video Driver, version 13.0
 (II) Loading sub module int10
 (II) LoadModule: int10
 (II) Loading /usr/lib64/xorg/modules/libint10.so
 (II) Module int10: vendor=X.Org Foundation
compiled for 1.13.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 13.0
 (II) VESA(0): initializing int10
 (II) VESA(0): Primary V_BIOS segment is: 0xc000



Re: [gentoo-user] Re: [gentoo-user] Re: bus error during compilation of gcc

2013-04-22 Thread David Relson
On Sun, 21 Apr 2013 00:44:46 +0400
the guard wrote:

 
 
 
 Суббота, 20 апреля 2013, 19:56 UTC от Grant Edwards
 grant.b.edwa...@gmail.com:
  On 2013-04-20, the guard the.gu...@mail.ru wrote:
  
   The package i decided to install required a gcc rebuild so I
   started rebuilding it and got a bus error. I've googled and found
   suggestions to lower makeopts, but it didn't help. 
  
  Every time I've gotten bus errors when building things it turned out
  to be a hardware problem.
  
  Bad RAM, failing CPU, failing motherboard power supply capacitors,
  bad disk controller card (obviously, that was a _long_ time ago).
  
  If I were you, I'd start by running memtest86+ overnight.
  
  -- 
  Grant
  
  
  
  
  
 memtest revealed nothing

We had an old QNX machine start giving bus errors during compilation of
a large application.  Running memtest (for approx 40 hrs) showed
nothing, but a close visual examination of the motherboard showed
bulging capacitors, i.e. failing capacitors.



Re: [gentoo-user] Gcc compiling, is this normal?

2013-05-12 Thread David Relson
On Sun, 12 May 2013 23:27:48 +0200
Alan McKinnon wrote:

 On 12/05/2013 23:16, Dale wrote:
  Howdy,
  
  I been noticing something weird when I upgrade gcc.  Is this normal?
  
  root@fireball / # genlop -c
  
   Currently merging 2 out of 5
  
   * sys-devel/gcc-4.4.7
  
 current merge time: 6 seconds.
 ETA: 24 minutes and 27 seconds.
  
   Currently merging 3 out of 5
  
   * net-misc/curl-7.30.0
  
 current merge time: 7 seconds.
 ETA: 18 minutes and 50 seconds.
  
   Currently merging 2 out of 5
  
   * sys-devel/gcc-4.4.7
  
 current merge time: 7 seconds.
 ETA: 21 minutes and 14 seconds.
  root@fireball / #
  
  
  I'm not worried about curl.  It just happened to be there.  This is
  the list of packages it is supposed to update:
  
  root@fireball / # emerge -uvaDN world
  
  These are the packages that would be merged, in order:
  
  Calculating dependencies... done!
  [ebuild   R] sys-devel/gcc-4.5.4:4.5  USE=gtk mudflap
  (multilib) nls nptl openmp (-altivec) -cxx -doc (-fixed-point)
  -fortran -gcj (-hardened) (-libssp) -lto -multislot -nopie -nossp
  -objc -objc++ -objc-gc {-test} -vanilla (-graphite%) 0 kB
  [ebuild   R] sys-devel/gcc-4.4.7:4.4  USE=gtk mudflap
  (multilib) nls nptl openmp (-altivec) -cxx -doc (-fixed-point)
  -fortran -gcj (-hardened) (-libssp) -multislot -nopie -nossp -objc
  -objc++ -objc-gc {-test} -vanilla (-graphite%) 0 kB
  [ebuild U  ] net-misc/curl-7.30.0 [7.29.0-r1] USE=ipv6 ssl
  threads -adns -idn -kerberos -ldap -metalink -rtmp -ssh
  -static-libs {-test} CURL_SSL=openssl -axtls -cyassl -gnutls -nss
  -polarssl 0 kB [ebuild U  ] app-misc/tmux-1.8 [1.6]
  USE=-vim-syntax 0 kB [ebuild U ~]
  kde-base/kdelibs-4.10.3-r2:4 [4.10.3:4] USE=3dnow alsa bzip2 fam
  handbook jpeg2k lzma mmx nls opengl (policykit) semantic-desktop
  spell sse sse2 ssl udev udisks upower zeroconf -acl (-altivec)
  (-aqua) -debug -doc -kerberos -openexr {-test} 0 kB
  
  Total: 5 packages (3 upgrades, 2 reinstalls), Size of downloads: 0
  kB
  
  Would you like to merge these packages? [Yes/No] y
  
  I noticed this one or twice before.  It is compiling the same
  compiler version twice when it should be upgrading/recompiling two
  *different* versions.  I read before that gcc compiles three times
  or something but the thing is, it can compile for HOURS and never
  finish.  Usually I stop it and restart emerge and it compiles as it
  should, one for each version and finishes as it should time wise.
  I once started the upgrade and went to take a nap.  I woke up
  around 5 or 6 hours later to find gcc compiling twice on the same
  version.  Even libreoffice only takes a hour or so. 
  
  Anyone else see this before?   Now to go stop this one and get it to
  update right and not take all week. 
 
 What have you got in world for gcc?
 What's in make.conf?
 
 gcc's build system does cause gcc tro be built three times[1], but
 that's internal to gcc and has nothing to do with portage. There
 should still only be one emerge for a SLOT. If it's doing the same
 package twice, then the files in /var/tmp/portage are liable to get
 continually clobbered and who knows what will happen.
 
 
 [1]  The logic goes something like this: it's a compiler, so the code
 it produces must be consistently identical for identical inputs. So,
 the current compiler builds gcc, giving version Y built by version X.
 That instance of gcc in turn builds a gcc, giving version Y built by
 version Y.

Haven't you left out the third compile?

Let me rephrase the 3 builds.

1) gcc-X builds gcc-Y giving gcc-Y1
2) gcc-Y1 builds gcc-Y giving gcc-Y2
3) gcc-Y2 builds gcc-Y giving gcc-Y3

gcc-Y1 and gcc-Y2 are likely to be different (since they were build by
gcc-X and gcc-Y which are likely to have optimizations).

gcc-Y2 and gcc-Y3 should be identical (since both were built by gcc-Y)

 Now you should have two copies of the same version of gcc, and they
 should be identical, plus the output code must also be identical. The
 gcc builds system checks for this by actually doing compiles and
 comparing the results. I've gotten a bit hazy on what specific bits
 actually do what, but that's the general concept. But all this
 rebuilding is internal and you only see it if you examine the console
 output scrolling by, it will never show up in any portage tools.
 
 -- 
 Alan McKinnon
 alan.mckin...@gmail.com
 



Re: [gentoo-user] {OT} backups... still backups....

2013-06-30 Thread David Relson
On Sun, 30 Jun 2013 01:11:35 -0700
Grant wrote:

  Can anyone think of an automated method that remotely and securely
  backs up data from one system to another, preserves permissions and
  ownership, and keeps the backups safe even if the backed-up system
  is compromised?
 
  app-backup/backuppc
 
  It uses hard links, but to save space, so all versions of all files
  are kept for your entire history, but unchanged files are kept only
  once, even if present on multiple targets.
 
 Thank you for the recommendation.
 
 How far would I have to open my systems in order for backuppc to
 function?
 
 Can the web server reside on a different system than the backup
 server?
 
 - Grant

I've been using backuppc since 2007 and am very happy with it.



Re: [gentoo-user] xscavenger - game

2013-07-05 Thread David Relson
On Fri, 5 Jul 2013 18:49:20 -0600
Joseph wrote:

 I installed xscavenger and it installed without any problems but I
 can seems to find this game anywhere. Yes, I'm in games group.
 
 From the command line:
 /usr/games/bin/scavenger
 -bash: /usr/games/bin/scavenger: Permission denied
 
 /usr/games/bin/scavenger
 -rwxr-x--- 1 root games 70496 Jul  5 18:39 /usr/games/bin/scavenger
 
 -- 
 Joseph

User root has permissions rwx.  Group games has permissions
r-x.  Everyone else has no access (permission ---).

You're getting Permission denied because you're not running as root and 
you're not a member
of group games.

Regards,

David



<    1   2   3