[gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
To eliminate bugs, I'm using this as xorg.conf.new:
Section "ServerLayout"
 Identifier "X.org Configured"
EndSection
Section "Files"
 ModulePath "/usr/lib/xorg/modules"
 FontPath ...
# ...
 FontPath ...
EndSection
Section "Module"
 Load "dbe"
 Load "dri"
 Load "dri2"
 Load "extmod"
 Load "glx"
 Load "record"
EndSection
Section "Device"
 Identifier "Radeon HD 4200"
 Driver "radeonhd"
EndSection
#end of xorg.conf.new

I get the following error lines in the console:
FATAL: Module radeon not found.
(EE) RADEONHD(0): RHDDRIVersionCheck: drmOpen("radeon",
"pci::05:05.0") failed.

[ 1256.744546] uvesafb: mode switch failed (eax=0x34f, err=0). Trying
again with default timings.

Radeon DRI is compiled into the kernel.
What do I do now?

(It's been quite a long while since I've installed X. My knowledge has
all but vanished.)

--
Andrey Vul
msn, home: andrey dot vul at gmail dot com
u of t: andrey dot vul at utoronto dot ca




Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
On Sat, Feb 20, 2010 at 03:43, Adam  wrote:
>> I get the following error lines in the console:
>> FATAL: Module radeon not found.
>> (EE) RADEONHD(0): RHDDRIVersionCheck: drmOpen("radeon",
>> "pci::05:05.0") failed.
>>
>> [ 1256.744546] uvesafb: mode switch failed (eax=0x34f, err=0). Trying
>> again with default timings.
>>
>> Radeon DRI is compiled into the kernel.
>> What do I do now?
>
> Probably emerge xf86-video-radeonhd?
>

It was emerged with no errors.

Build.log:
Script started on Sat Feb 20 09:42:53 2010
robot9000 ~ # emerge --color n -1 xf86-video-radeonhd
Calculating dependencies  ... done!

>>> Verifying ebuild manifests


>>> Emerging (1 of 1) x11-drivers/xf86-video-radeonhd-1.3.0

 * xf86-video-radeonhd-1.3.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...

  [ ok ]
 * checking ebuild checksums ;-) ...

  [ ok ]
 * checking auxfile checksums ;-) ...

  [ ok ]
 * checking miscfile checksums ;-) ...

  [ ok ]
 * CPV:  x11-drivers/xf86-video-radeonhd-1.3.0
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking xf86-video-radeonhd-1.3.0.tar.bz2 to 
>>> /var/tmp/portage/x11-drivers/xf86-video-radeonhd-1.3.0/work
 * Running elibtoolize in: xf86-video-radeonhd-1.3.0
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source unpacked in 
>>> /var/tmp/portage/x11-drivers/xf86-video-radeonhd-1.3.0/work
>>> Compiling source in 
>>> /var/tmp/portage/x11-drivers/xf86-video-radeonhd-1.3.0/work/xf86-video-radeonhd-1.3.0
>>>  ...
 * econf: updating xf86-video-radeonhd-1.3.0/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating xf86-video-radeonhd-1.3.0/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --prefix=/usr --datadir=/usr/share
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking whether /bin/sed can substitute tabs and newlines for text... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for i686-pc-linux-gnu-objdump... i686-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from
i686-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-pc-linux-gnu-gcc PIC f

Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
I've set Radeon DRI from module to built-in and now this is the result:
(EE) RADEONHD(0): [dri] CP_INIT failed
(EE) RADEONHD(0): RHDDRIFinishScreenInit: RHDDRIKernelInit Failed.

I'm using 2.6.31.12 with -rt and -tuxonice patchsets.



Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
On Sat, Feb 20, 2010 at 17:52, pk  wrote:
> Andrey Vul wrote:
>> I've set Radeon DRI from module to built-in and now this is the result:
>> (EE) RADEONHD(0): [dri] CP_INIT failed
>> (EE) RADEONHD(0): RHDDRIFinishScreenInit: RHDDRIKernelInit Failed.
>>
>> I'm using 2.6.31.12 with -rt and -tuxonice patchsets.
>
> Maybe stupid questions but is the firmware installed and is it located
> in a place where the kernel can find it? I've seen a few mails on Xorgs
> list about this and it's usually remedied by installing the firmware (IIRC).

I.e. emerge x11-drivers/radeon-ucode ?

Also, the messages during emerge of radeon-ucode helped solve the KMS
printk() messages.

The real question here is why isn't radeon-ucode a dependency of
xf86-video-radeonhd ?



Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
Firmware installed, I still get this:

>> (EE) RADEONHD(0): [dri] CP_INIT failed
>> (EE) RADEONHD(0): RHDDRIFinishScreenInit: RHDDRIKernelInit Failed.



Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
On Sat, Feb 20, 2010 at 19:35, pk  wrote:
> Andrey Vul wrote:
>
>> The real question here is why isn't radeon-ucode a dependency of
>> xf86-video-radeonhd ?
>
> Well, the radeon-ucode is only for r6xx/7xx chips so pulling it in for
> r5xx would be pointless... I just noticed that you have a radeon hd4200
> which is a RS880 chip. Not sure if this is supported yet. Does
> acceleration (2D/3D) work for you?

According to git, all the r7xx except for rs880 are on the
working/testing list. Which sucks, tbh: why did I bother to get
integrated when I could've gotten a better motherboard (with 1394
support) and a $50 graphics card?

What's the point of getting acceleration to work if the kernel can't
modeset correctly? Is it worth compiling radeon_drm + r700 fw into the
kernel?



Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Andrey Vul
And from my experiences, fglrx is far less tolerant of fancy kernel
patches than the nvidia blobs.



[gentoo-user] xkb definitions

2010-07-16 Thread Andrey Vul
Are there guides on making custom xkb layout(s)? I want to use a
custom phonetic Russian layout without requiring a UTF-8 keyboard
tr/iconv equivalent (echo qwerty | kbtr -f qwerty -t yazherty)

--
Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



[gentoo-user] dir is rwx but can't create file

2010-07-28 Thread Andrey Vul
Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
/tmp/foo => strerror(ENOENT)).
However, this is done as root and the dirs are marked 755 root:root.
df -i shows only 2% inode usage.
Any explanation as to why a rwx-ed dir can't be written to? This is
breaking quite a few of the init scripts.

--
Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



Re: [gentoo-user] Re: how to remove HAL

2010-07-28 Thread Andrey Vul
On Wed, Jul 28, 2010 at 14:50, Nikos Chantziaras  wrote:
> On 07/28/2010 08:23 PM, Neil Bothwick wrote:
>>
>> On Wed, 28 Jul 2010 19:31:21 +0300, Nikos Chantziaras wrote:
>>
>>> And why do you want to remove it in the first place?  It's not gonna
>>> eat your cat.
>>
>> Although it may kill your crew.
>
> I think most people don't understand what X used HAL for.  They think that
> they can remove HAL and still have stuff like USB hotplugging/automounting
> working.  But that's wrong.  Gnome/KDE use HAL for this, not X.  And if you
> disable HAL completely, that stuff will stop working.
>
>

E.g. solid-hardware for HAL-mounting devices by uuid/volume-id.

I just got rid of policykit - too much trouble.
But I kept HAL because it's very useful.



[gentoo-user] Re: dir is rwx but can't create file

2010-07-28 Thread Andrey Vul
If / was mounted ro, touch would output strerror(EROFS), not strerror(ENOENT)

On 2010-07-28, Bill Longman  wrote:
> On 07/28/2010 01:52 PM, Alan McKinnon wrote:
>> On Wednesday 28 July 2010 22:20:17 Andrey Vul wrote:
>>> Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
>>> /tmp/foo => strerror(ENOENT)).
>>> However, this is done as root and the dirs are marked 755 root:root.
>>> df -i shows only 2% inode usage.
>>> Any explanation as to why a rwx-ed dir can't be written to? This is
>>> breaking quite a few of the init scripts.
>>>
>>> --
>>> Andrey Vul
>>> begin-base64 600 sig
>>> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3J
>>> v bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
>>> `
>>> end
>>
>> sounds like / is mounted read-only
>
> Do read-only filesystems typically reply ENOENT when trying to create a
> file? It's usually something like "read-only filesystem" in that case.
> ENOENT means it can't even find the file.
>
>

-- 
Sent from my mobile device

Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



Re: [gentoo-user] how to remove HAL

2010-07-28 Thread Andrey Vul
Ugh. Now i'll actually have to config policykit.conf.
For some reason, match group=wheel return yes fails so much. Somehow
the mount-ro defaults to no every time

On 2010-07-28, Nikos Chantziaras  wrote:
> On 07/28/2010 11:54 PM, Andrey Vul wrote:
>> On Wed, Jul 28, 2010 at 14:50, Nikos Chantziaras  wrote:
>>> On 07/28/2010 08:23 PM, Neil Bothwick wrote:
>>>>
>>>> On Wed, 28 Jul 2010 19:31:21 +0300, Nikos Chantziaras wrote:
>>>>
>>>>> And why do you want to remove it in the first place?  It's not gonna
>>>>> eat your cat.
>>>>
>>>> Although it may kill your crew.
>>>
>>> I think most people don't understand what X used HAL for.  They think
>>> that
>>> they can remove HAL and still have stuff like USB
>>> hotplugging/automounting
>>> working.  But that's wrong.  Gnome/KDE use HAL for this, not X.  And if
>>> you
>>> disable HAL completely, that stuff will stop working.
>>>
>>>
>>
>> E.g. solid-hardware for HAL-mounting devices by uuid/volume-id.
>>
>> I just got rid of policykit - too much trouble.
>> But I kept HAL because it's very useful.
>
> If you're on KDE, you will need policykit again in the future, since
> with KDE 4.5 (to be released in a matter of days) it's not really
> optional anymore.  I got hit by this when updating to it (now at RC3):
>
> https://bugs.kde.org/show_bug.cgi?id=24
>
>
>

-- 
Sent from my mobile device

Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



Re: [gentoo-user] how to remove HAL

2010-07-28 Thread Andrey Vul
Ugh. Now i'll actually have to config policykit.conf.
For some reason, match group=wheel return yes fails so much. Somehow
the mount-ro defaults to no every time

On 2010-07-28, Nikos Chantziaras  wrote:
> On 07/28/2010 11:54 PM, Andrey Vul wrote:
>> On Wed, Jul 28, 2010 at 14:50, Nikos Chantziaras  wrote:
>>> On 07/28/2010 08:23 PM, Neil Bothwick wrote:
>>>>
>>>> On Wed, 28 Jul 2010 19:31:21 +0300, Nikos Chantziaras wrote:
>>>>
>>>>> And why do you want to remove it in the first place?  It's not gonna
>>>>> eat your cat.
>>>>
>>>> Although it may kill your crew.
>>>
>>> I think most people don't understand what X used HAL for.  They think
>>> that
>>> they can remove HAL and still have stuff like USB
>>> hotplugging/automounting
>>> working.  But that's wrong.  Gnome/KDE use HAL for this, not X.  And if
>>> you
>>> disable HAL completely, that stuff will stop working.
>>>
>>>
>>
>> E.g. solid-hardware for HAL-mounting devices by uuid/volume-id.
>>
>> I just got rid of policykit - too much trouble.
>> But I kept HAL because it's very useful.
>
> If you're on KDE, you will need policykit again in the future, since
> with KDE 4.5 (to be released in a matter of days) it's not really
> optional anymore.  I got hit by this when updating to it (now at RC3):
>
> https://bugs.kde.org/show_bug.cgi?id=24
>
>
>

-- 
Sent from my mobile device

Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



[gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
Also, echo > /tmp/foo => same thing
It looks like a problem with open(..., O_CREAT|O_TRUNC, 644), but i'll
retry strace'ing the open,write and see where the problem chain starts

On 2010-07-29, Andrey Vul  wrote:
> If / was mounted ro, touch would output strerror(EROFS), not
> strerror(ENOENT)
>
> On 2010-07-28, Bill Longman  wrote:
>> On 07/28/2010 01:52 PM, Alan McKinnon wrote:
>>> On Wednesday 28 July 2010 22:20:17 Andrey Vul wrote:
>>>> Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
>>>> /tmp/foo => strerror(ENOENT)).
>>>> However, this is done as root and the dirs are marked 755 root:root.
>>>> df -i shows only 2% inode usage.
>>>> Any explanation as to why a rwx-ed dir can't be written to? This is
>>>> breaking quite a few of the init scripts.
>>>>
>>>> --
>>>> Andrey Vul
>>>> begin-base64 600 sig
>>>> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3J
>>>> v bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
>>>> `
>>>> end
>>>
>>> sounds like / is mounted read-only
>>
>> Do read-only filesystems typically reply ENOENT when trying to create a
>> file? It's usually something like "read-only filesystem" in that case.
>> ENOENT means it can't even find the file.
>>
>>
>
> --
> Sent from my mobile device
>
> Andrey Vul
> begin-base64 600 sig
> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
> bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
> `
> end
>

-- 
Sent from my mobile device

Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



[gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
While /tmp's mode is 1777, it doesnt make a difference since the same
error occurs with /etc, /lib32, and /var.

On 2010-07-29, Andrey Vul  wrote:
> Also, echo > /tmp/foo => same thing
> It looks like a problem with open(..., O_CREAT|O_TRUNC, 644), but i'll
> retry strace'ing the open,write and see where the problem chain starts
>
> On 2010-07-29, Andrey Vul  wrote:
>> If / was mounted ro, touch would output strerror(EROFS), not
>> strerror(ENOENT)
>>
>> On 2010-07-28, Bill Longman  wrote:
>>> On 07/28/2010 01:52 PM, Alan McKinnon wrote:
>>>> On Wednesday 28 July 2010 22:20:17 Andrey Vul wrote:
>>>>> Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
>>>>> /tmp/foo => strerror(ENOENT)).
>>>>> However, this is done as root and the dirs are marked 755 root:root.
>>>>> df -i shows only 2% inode usage.
>>>>> Any explanation as to why a rwx-ed dir can't be written to? This is
>>>>> breaking quite a few of the init scripts.
>>>>>
>>>>> --
>>>>> Andrey Vul
>>>>> begin-base64 600 sig
>>>>> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3J
>>>>> v bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
>>>>> `
>>>>> end
>>>>
>>>> sounds like / is mounted read-only
>>>
>>> Do read-only filesystems typically reply ENOENT when trying to create a
>>> file? It's usually something like "read-only filesystem" in that case.
>>> ENOENT means it can't even find the file.
>>>
>>>
>>
>> --
>> Sent from my mobile device
>>
>> Andrey Vul
>> begin-base64 600 sig
>> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
>> bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
>> `
>> end
>>
>
> --
> Sent from my mobile device
>
> Andrey Vul
> begin-base64 600 sig
> bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
> bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
> `
> end
>

-- 
Sent from my mobile device

Andrey Vul
begin-base64 600 sig
bXNuLCBob21lOiBhbmRyZXkudnVsQGdtYWlsLmNvbQ0KdSBvZiB0OiBhbmRyZXkudnVsQHV0b3Jv
bnRvLmNhDQpzbXMsIHZvaWNlbWFpbDogNDE2MzAzOTkyMw0K
`
end



Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
On Thu, Jul 29, 2010 at 08:31, Alex Schuster  wrote:
> walt writes:
>
>> On 07/28/2010 01:20 PM, Andrey Vul wrote:
>> > Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
>> > /tmp/foo =>  strerror(ENOENT)).
>> > However, this is done as root and the dirs are marked 755 root:root.
>
> Are all these directories located on the root file system?
>
>> Is the sticky bit set on /tmp?
>>
>> drwxrwxrwt  26 root root 36864 2010-07-29 04:15 tmp/
>>           ^
>
> Well, it set or not, this would not prevent the creation of files.
>
> I have no idea what's going on here. I'd force a fsck (touch /forcefsck;
> reboot) to make sure it's no file system problem. And what about a live-
> cd, does the problem happen then, too?
>

fsck -f followed by use of USB-SATA bridge seems to work. However, my
laptop just died, so I can't really test it on the laptop.



Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
On Fri, Jul 30, 2010 at 01:34, Andrey Vul  wrote:
> On Thu, Jul 29, 2010 at 08:31, Alex Schuster  wrote:
>> walt writes:
>>
>>> On 07/28/2010 01:20 PM, Andrey Vul wrote:
>>> > Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch
>>> > /tmp/foo =>  strerror(ENOENT)).
>>> > However, this is done as root and the dirs are marked 755 root:root.
>>
>> Are all these directories located on the root file system?
>>
>>> Is the sticky bit set on /tmp?
>>>
>>> drwxrwxrwt  26 root root 36864 2010-07-29 04:15 tmp/
>>>           ^
>>
>> Well, it set or not, this would not prevent the creation of files.
>>
>> I have no idea what's going on here. I'd force a fsck (touch /forcefsck;
>> reboot) to make sure it's no file system problem. And what about a live-
>> cd, does the problem happen then, too?
>>
>
> fsck -f followed by use of USB-SATA bridge seems to work. However, my
> laptop just died, so I can't really test it on the laptop.
>

Quoting fsck.jfs : "Incorrect link counts have been detected. Will correct."
Apparently, some subtle data corruption was invisible by fsck -p but
noticed by fsck -f.
A corrupt inode does explain why the directory was somehow 555 in behavior.



[gentoo-user] static ip

2009-08-09 Thread Andrey Vul
I somehow killed the dhcp in my openwrt router and failsafe mode
requires a static IP address. Stopping net.eth0 and then running
'#ifconfig eth0 up; ifconfig eth0 192.168.1.2' resulted with a 'No
route to host' error when telnetting to 192.168.1.1 .


-- 
Andrey Vul
andrey dot vul at gmail dot com
andrey dot vul at utoronto dot ca

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Google is your friend.



[gentoo-user] overlay conflicts

2008-11-18 Thread Andrey Vul
Given package ~foo/bar-1.2.3 from overlay A and package
**foo/bar-1.2.3 from overlay B, emerge uses the masking in overlay B
(**). How do I set it to use overlay A when emerging =foo/bar-1.2.3
(i.e. ~foo/bar-1.2.3) ?
--
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] overlay conflicts

2008-11-18 Thread Andrey Vul
On Tue, Nov 18, 2008 at 23:03, Iain Buchanan <[EMAIL PROTECTED]> wrote:
> Andrey Vul wrote:
>>
>> Given package ~foo/bar-1.2.3 from overlay A and package
>> **foo/bar-1.2.3 from overlay B, emerge uses the masking in overlay B
>> (**). How do I set it to use overlay A when emerging =foo/bar-1.2.3
>> (i.e. ~foo/bar-1.2.3) ?
>
> it's a hack, but you could edit the overlay ebuild and take out the
> KEYWORDS...
>
> You can also tell portage to prefer your /usr/portage directory over an
> overlay, by setting make.conf:
> PORTDIR_OVERLAY="/usr/local/portage /usr/portage"
> (or something - play around with the order).  But then this is done for all
> packages (with the same version).
>
So I just rearrange the order in /usr/local/portage/layman/make.conf?



[gentoo-user] forcing file removal, fails with ESTALE

2008-11-20 Thread Andrey Vul
I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
handle"). I'm thinking that this is due to a corrupt inode but fsck
fails to fix it.

Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
hard fsck of /?
--
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] forcing file removal, fails with ESTALE

2008-11-20 Thread Andrey Vul
On Thu, Nov 20, 2008 at 19:15, Iain Buchanan <[EMAIL PROTECTED]> wrote:
> Qian Qiao wrote:
>>
>> On Thu, Nov 20, 2008 at 18:13, Andrey Vul<[EMAIL PROTECTED]>  wrote:
>>>
>>> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
>>> handle"). I'm thinking that this is due to a corrupt inode but fsck
>>> fails to fix it.
>>>
>>> Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
>>> hard fsck of /?
>>> --
>>> Andrey Vul
>>>
>>> A: Because it messes up the order in which people normally read text.
>>> Q: Why is top-posting such a bad thing?
>>> A: Top-posting.
>>> Q: What is the most annoying thing in e-mail?
>>
>> It's just a stale handle, i.e., some process opened the file, but the
>> file is then deleted, moved or renamed by another process.
>>
>> If you know what process is holding the handle of the non-existent
>> file, restart it, if not, re-mount the file system.
>
> `umount -l` might help you there.
Umount -l fixes inconsistent inodes / directory entries?
I thought only fsck -f could do that.
Anyways, I rebooted into bb (init=/bin/bb) and ran /sbin/jfs_fsck -f /dev/root .
That fixed the stale file handle.
You know it's fsck -f time when dmesg has "jfs_lookup: cannot read #" lines.



[gentoo-user] making an initrd

2008-11-20 Thread Andrey Vul
How do I make an initrd that contains both the v86d initramfs code and
tuxoniceui_text?
On boot, tuxonice is initialized before jfs and as a result can't find
/sbin/tuxoniceui_text.
Or should I initrd fs/jfs ?
Can somebody reply with commands that either initrd v86d and
tuxoniceui or initrd jfs?
--
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] startx fails launching KDE 4

2008-11-21 Thread Andrey Vul
 process is still running.
kdeinit4: Exit.
xinit:  connection to X server lost.
GOT SIGHUP
QMutex::lock: Deadlock detected in thread 140598718269184
KCrash: Application 'ksmserver' crashing...
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching directly.
QWidget: Must construct a QApplication before a QPaintDevice


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] startx fails launching KDE 4

2008-11-21 Thread Andrey Vul
On Fri, Nov 21, 2008 at 11:39, Hilco Wijbenga <[EMAIL PROTECTED]> wrote:
> I remember having similar trouble when I upgraded to KDE4. Have you
> tried removing/renaming your .kde directory? (That's assuming you're
> upgrading from KDE3.)
>
>
I don't have a ~/.kde directory nor a ~/.kde symlink. I only have ~/.kde4.1.



Re: [gentoo-user] Re: {OT} wine won't work

2008-11-21 Thread Andrey Vul
On Tue, Nov 18, 2008 at 18:23, Grant <[EMAIL PROTECTED]> wrote:
>> I've tried wine-1.1.4 as well as the latest version from git.  No
>> matter which wine command I try, the error is always just about the
>> same:
>>
>> # winecfg
>> err:heap:HEAP_GetPtr Invalid heap (nil)!
>> err:heap:HEAP_GetPtr Invalid heap (nil)!
>> err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
>> err:module:LdrInitializeThunk Main exe initialization for
>> L"C:\\windows\\system32\\wineboot.exe" failed, status c005
>> err:heap:HEAP_GetPtr Invalid heap (nil)!
>> err:heap:HEAP_GetPtr Invalid heap (nil)!
>> err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
>> err:module:LdrInitializeThunk Main exe initialization for
>> L"C:\\windows\\system32\\winecfg.exe" failed, status c005
>>
c005 is Windows' way of saying SIGSEGV.
PaX might be to blame.
I remember that with grsec enabled, wine couldn't create stacks and
said that 3/1 user/kernel split needed to be enabled even when 3/1
user/kernel split was enabled.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Re: startx fails launching KDE 4

2008-11-21 Thread Andrey Vul
On 2008-11-21, Harry Putnam <[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> writes:
>
>  > Result of startx &> xlog; cat xlog :
>  > hostname: Host name lookup failure
>
>
> I'm not sure how much this may help you problem.  But have you made
>  changes to your /etc/hosts file recently.  You might post the first
>  line of it here.
First line:
127.0.0.1   localhost

Note: this is the first line on both the computer currently running
KDE 4 and the one failing to run KDE 4.


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Re: startx fails launching KDE 4

2008-11-21 Thread Andrey Vul
On 2008-11-21, Harry Putnam <[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> writes:
>
>  > On 2008-11-21, Harry Putnam <[EMAIL PROTECTED]> wrote:
>  >> "Andrey Vul" <[EMAIL PROTECTED]> writes:
>  >>
>  >>  > Result of startx &> xlog; cat xlog :
>  >>  > hostname: Host name lookup failure
>  >>
>  >>
>  >> I'm not sure how much this may help you problem.  But have you made
>  >>  changes to your /etc/hosts file recently.  You might post the first
>  >>  line of it here.
>  > First line:
>  > 127.0.0.1   localhost
>  >
>  > Note: this is the first line on both the computer currently running
>  > KDE 4 and the one failing to run KDE 4.
>
>
> Do the contents of /etc/conf.d/hostname
>  and /etc/conf.d/domainname
>
>  have similar kind of information on both machines?.
>
>  I once had quite a lot of trouble with sendmail and a helpful poster
>  here told me to fix /etc/hosts like this:
>
>   127.0.0.1  reader.local.lanreader localhost
>   192.168.0.4reader.local.lanreader
>   [...]
>
>  The advice pertained to the first line above.  The second was my own
>  addition.
>
>  Below is a note from my hosts file showing the origin of the tip.
>
>   # From: Heinz Sporn <[EMAIL PROTECTED]>
>   # Subject: Re: Why does sendmail think its hosts name is `localhost'
>   # Newsgroups: gmane.linux.gentoo.user
>   # Date: Tue, 07 Feb 2006 07:37:08 +0100
>   # Message-ID: <[EMAIL PROTECTED]>
>   # [HP 02/07/06 02:37  Trying a tip from Heinz Sporn - switching
>   ## 127.0.0.1   localhost   reader to
>   ## 127.0.0.1   reader  localhost .. I think he's on to
>   ## something... we'll see.]
>   # 127.0.0.1localhost   reader
>
>  I haven't had a host lookup issue for quite a long time as you can see
>  by the date in the post.
>
>  But this may not be very helpful for your current problem.  However
>  host lookup trouble can be quite hard to diagnose.
Host lookup has nothing to do with this.
Last time I checked, kde doesn't do anything with dnsdomainname.
Also, I don't even have /etc/{init.d,conf.d}/domainname .

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Re: startx fails launching KDE 4

2008-11-21 Thread Andrey Vul
On 2008-11-21, Harry Putnam <[EMAIL PROTECTED]> wrote:
> Harry Putnam <[EMAIL PROTECTED]> writes:
>
>  > "Andrey Vul" <[EMAIL PROTECTED]> writes:
>  >
>  >> Host lookup has nothing to do with this.
>  >> Last time I checked, kde doesn't do anything with dnsdomainname.
>  >> Also, I don't even have /etc/{init.d,conf.d}/domainname .
>  >
>  > It must have some amount to do with it:
>  >
>  >  >>> hostname: Host name lookup failure
>  >
>  > Was the first line of the log.  It may not be a significant issue or
>  > the reason kde is balking but apparently there is a host lookup
>  > involved. Sorry its not what you needed.
>
>
> I see now that the host lookup is only to insert information into the
>  log so indeed does not have bearing on the problem.
>  Sorry to have wasted your time.

If I get a warning message and everything works perfectly then I ignore it.
Example: cannot find hostname.

The problem is somehow related broken dbus + segfaulting X.

And I can't fix either.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] synaptic touchpad stopped scrolling!

2008-11-25 Thread Andrey Vul
On Tue, Nov 25, 2008 at 08:44, Iain Buchanan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I can't live without my touchpad extentions (scrolling, tap to click, etc).
>  All provided somehow by the synaptics driver, but I've never really looked
> into how.
>
> Recently I noticed it stopped working but I don't know what I've changed as
> I've been docked for so long with a usb mouse.
>
> I've had the same section layout for ges:
> Section "InputDevice"
>Identifier "Synaptic Touchpad"
>Driver "synaptics"
>Option "Device" "/dev/input/mouse0"
>Option "SendCoreEvents" "true"
>Option "Protocol" "auto-dev"
> EndSection
Add the following line: Option "VertEdgeScroll" "1"


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Rodney Dangerfield  - "I looked up my family tree and found out I was the sap."



[gentoo-user] reverse dependencies

2008-11-25 Thread Andrey Vul
How do I get the reverse dependencies of an ebuild?
I need to know which packages *explicity* depend on gentoo-headers as
I have custom headers which conflict with 2.6.27 mainline.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Installation problems on AMD64 box

2008-11-28 Thread Andrey Vul
On Fri, Nov 28, 2008 at 07:29, Florian Philipp
<[EMAIL PROTECTED]> wrote:
> Iain Buchanan schrieb:
>>
>> R C Mitchell wrote:
>>>
>>> I use Ubuntu for every day but as my box has a spare 40GB hard disk I
>>> decided
>>> to have a go at installing Gentoo on it for evaluation
>>
>> ah, who says Ubuntu isn't good for anything?  Good to see you're trying a
>> real distribution :) 
>>
>> Typically now you'd prove me wrong and say how you've been using
>>  for years... anyhoo welcome!
>>
>>> [snip excellent problem report]
>>
>>> I'm reluctant to believe that this is down to an arbitrary hardware
>>> fault,
>>> since everything else works fine.  It does seem to have something to do
>>> with
>>> emerging gentoo-sources.
>>
>> hm, this screams hardware fault all over - I haven't seen one issue like
>> this come to anything else.  Usually it's the RAM.  Can you humour me and
>> try a stick from another machine, or at least reseat it?
>>
>
> Iain's diagnosis seems about right. I would start with a nice 2h memtest86+
> test followed with a 1h cpuburn test.
I believe you mean 2d memtest86+ unless computer has DDR9-9 RAM
where 100 (full) cycles could be completed in under 2 hours.
Also, do cpuburn for a day or more - bad cooling could take hours to
mnifest themselves.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Woody Allen  - "I will not eat oysters. I want my food dead. Not sick.
Not wounded. Dead."



[gentoo-user] cannot burn dvd

2008-12-04 Thread Andrey Vul
cdrecord (2.01.01a53) hangs when trying to write to a SATA dvd drive
using libsg. When I set SATA mode in BIOS to Compatability, the
burning works but somehow the 8x speed is reduced to 1x.

Chipset: Intel ICH9M (AHCI)
DVD Burner: Hitachi-LG DVD-Multi mini-SATA

None of the google links helped me.
-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] cannot burn dvd

2008-12-04 Thread Andrey Vul
On Thu, Dec 4, 2008 at 03:43, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> cdrecord (2.01.01a53) hangs when trying to write to a SATA dvd drive
>> using libsg. When I set SATA mode in BIOS to Compatability, the
>> burning works but somehow the 8x speed is reduced to 1x.
>>
>> Chipset: Intel ICH9M (AHCI)
>> DVD Burner: Hitachi-LG DVD-Multi mini-SATA
>
> Try ts=63k
> It may be that the Linux kernel has a problem with biger DMA sizes.
> I am going to go back to this as default after it turns out that only
> FreeBSD is able to handle biger sizes correctly.
>


Well, nvidia has a binary blob for FreeBSD and if iwl5000 is
supported, bye-bye Linux, hello FreeBSD!

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Steve Martin  - "I've got to keep breathing. It'll be my worst
business mistake if I don't."



Re: [gentoo-user] cannot burn dvd

2008-12-04 Thread Andrey Vul
That didn't help, and I still get the error. At least now it shows the
ata exception that can be found in dmesg logs from googling "cdrecord
ahci sata". It looks like a controller timeout (this has happened
before, causing DMAR error lines in dmesg). Is it worth disabling AHCI
or not? And should this be also asked on lkml because this looks like
a controller/driver/ahci issue? I don't want to contribute to the
information overload between the [PATCH X/Y] foo and other messages.

On 2008-12-04, Andrey Vul <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 4, 2008 at 03:43, Joerg Schilling
> <[EMAIL PROTECTED]> wrote:
>> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>>
>>> cdrecord (2.01.01a53) hangs when trying to write to a SATA dvd drive
>>> using libsg. When I set SATA mode in BIOS to Compatability, the
>>> burning works but somehow the 8x speed is reduced to 1x.
>>>
>>> Chipset: Intel ICH9M (AHCI)
>>> DVD Burner: Hitachi-LG DVD-Multi mini-SATA
>>
>> Try ts=63k
>> It may be that the Linux kernel has a problem with biger DMA sizes.
>> I am going to go back to this as default after it turns out that only
>> FreeBSD is able to handle biger sizes correctly.
>>
>
>
> Well, nvidia has a binary blob for FreeBSD and if iwl5000 is
> supported, bye-bye Linux, hello FreeBSD!
>
> --
> Andrey Vul
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> Steve Martin  - "I've got to keep breathing. It'll be my worst
> business mistake if I don't."
>


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] cannot burn cd: permissions error

2008-12-08 Thread Andrey Vul
I get the following error:
[EMAIL PROTECTED] ~ $ cdrecord dev=ATA:1,0,0 vmware/Windows\ XP\
Professional/shared/vLite.iso
cdrecord: No write mode specified.
cdrecord: Asuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive
dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a53 (i686-pc-linux-gnu) Copyright
(C) 1995-2008 Jörg Schilling
cdrecord: Operation not permitted. Warning: Cannot raise
RLIMIT_MEMLOCK limits.cdrecord: Cannot allocate memory. WARNING:
Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: 'ATA:1,0,0'
devname: 'ATA'
scsibus: 1 target: 0 lun: 0
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
cdrecord: No such file or directory. Cannot open '/dev/hd*'. Cannot
open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

[EMAIL PROTECTED] ~ $ ls /dev/hd* -lh
brw-rw 1 root disk   3,  0 Dec  8 14:06 /dev/hda
brw-rw 1 root disk   3,  1 Dec  8 14:06 /dev/hda1
brw-rw 1 root disk   3,  2 Dec  9 02:15 /dev/hda2
brw-rw 1 root disk   3, 64 Dec  8 14:06 /dev/hdb
brw-rw 1 root disk   3, 65 Dec  8 14:06 /dev/hdb1
brw-rw 1 root disk   3, 66 Dec  8 14:06 /dev/hdb2
brw-rw 1 root disk   3, 67 Dec  8 14:06 /dev/hdb3
brw-rw 1 root disk   3, 69 Dec  8 14:06 /dev/hdb5
brw-rw 1 root disk   3, 70 Dec  8 14:06 /dev/hdb6
brw-rw 1 root cdrom 22,  0 Dec  8 14:06 /dev/hdc

[EMAIL PROTECTED] ~ $ groups
tty disk lp mem wheel audio cdrom video games usb andrey

How do I solve this (it's not a hardware issue)?

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: [gentoo-user] cannot burn cd: permissions error

2008-12-09 Thread Andrey Vul
On Tue, Dec 9, 2008 at 03:47, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> I get the following error:
>> [EMAIL PROTECTED] ~ $ cdrecord dev=ATA:1,0,0 vmware/Windows\ XP\
>> Professional/shared/vLite.iso
[snip]
>> cdrecord: No such file or directory. Cannot open '/dev/hd*'. Cannot
>> open or use SCSI driver.
This error is bothering me. It happens even when ran as root, yet I
have /dev/hdc.

>
> You did not install cdrecord correctly (suid root is needed).
I need to suid root a program that fails when ran as root?!?!?
Something is very wrong.

> You called cdrecord with an outdated dev= argument.

I had permission denied on /dev/sg0 too, so dev= is sort of irrelevant.

Also, I had the same error during cdrecord -scanbus, even though I am
in the cdrom and disk groups.

Also, the same error happened when it was run *as root*. And not sudo, but su.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] cannot burn cd: permissions error

2008-12-09 Thread Andrey Vul
On Tue, Dec 9, 2008 at 14:18, Joerg Schilling
<[EMAIL PROTECTED]> wrote:

>
> So you installed it suid to an unprivileged user.
>
Should I do 'chown root:cdrom' for /dev/hd* or 'chown root:disk' for /dev/sg*?
Which is preferred?

And what is group bin supposed to be for? Apparently /usr/bin/cdrecord
is suid bin:bin.

I am facepalming myself right now.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] cannot burn cd: permissions error

2008-12-09 Thread Andrey Vul
On Tue, Dec 9, 2008 at 17:39, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> On Tue, Dec 9, 2008 at 14:18, Joerg Schilling
>> <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > So you installed it suid to an unprivileged user.
>> >
>> Should I do 'chown root:cdrom' for /dev/hd* or 'chown root:disk' for 
>> /dev/sg*?
>> Which is preferred?
>
> If you like to make your system inherently insecure, do this!
>
>> And what is group bin supposed to be for? Apparently /usr/bin/cdrecord
>> is suid bin:bin.
>
> This is wrong as mentioned before.
>
> I told you to do what's in the cdrecord documentation: Install cdrecord suid
> root.
>
> Just follow my advise...
>
> Jörg
>
Unfortunately, the gentoo people say that "cdrkit does it without
root, why can't cdrtools?"
http://bugs.gentoo.org/show_bug.cgi?id=116026

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: [gentoo-user] cannot burn cd: permissions error

2008-12-09 Thread Andrey Vul
On Tue, Dec 9, 2008 at 19:46, Allan Gottlieb <[EMAIL PROTECTED]> wrote:
> At Tue, 09 Dec 2008 18:44:21 -0500 Andrey Vul <[EMAIL PROTECTED]> wrote:
>
>> On Tue, Dec 9, 2008 at 17:39, Joerg Schilling
>> <[EMAIL PROTECTED]> wrote:
>>> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>>>
>>>> On Tue, Dec 9, 2008 at 14:18, Joerg Schilling
>>>> <[EMAIL PROTECTED]> wrote:
>>>>
>>>> >
>>>> > So you installed it suid to an unprivileged user.
>>>> >
>>>> Should I do 'chown root:cdrom' for /dev/hd* or 'chown root:disk' for 
>>>> /dev/sg*?
>>>> Which is preferred?
>>>
>>> If you like to make your system inherently insecure, do this!
>>>
>>>> And what is group bin supposed to be for? Apparently /usr/bin/cdrecord
>>>> is suid bin:bin.
>>>
>>> This is wrong as mentioned before.
>>>
>>> I told you to do what's in the cdrecord documentation: Install cdrecord suid
>>> root.
>>>
>>> Just follow my advise...
>>>
>>> Jörg
>>>
>> Unfortunately, the gentoo people say that "cdrkit does it without
>> root, why can't cdrtools?"
>> http://bugs.gentoo.org/show_bug.cgi?id=116026
>
> Joerg believes that cdrkit is not as good as cdrtools (I have used only
> cdrtools and it works well for me).
>
> Debates like this go on for far too long on the list.  I think you
> should accept that:
>
> 1.  cdrecord needs to be suid root
> 2.  joerg is the expert on cdrtools including cdrecord
> 3.  If you do not wish to install cdrecord suid root, you can try cdrkit,
>    but then you cannot expect joerg to help.
>
> Again, I should say that I have not used cdrkit so am not commenting on
> its quality.
cdrecord (wodim) had support for dev=/dev/hdX. That was its only advantage.
genisoimage filed in comparison to mkisofs.
In short, cdrtools is better.

What are the chances that suid root would be allowed in an ebuild
patch *without* reigniting the cdr{kit,tools} flamewar?



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


[gentoo-user] INT_(MIN,MAX) is missing from

2009-01-27 Thread Andrey Vul
and...@andrey-laptop ~ $ echo '#include ' | gcc -E -o - -x c
- |grep INT
and...@andrey-laptop ~ $ echo '#include ' | gcc -D_POSIX -D
_USE_GNU -E -o - -x c - |grep INT
and...@andrey-laptop ~ $ echo '#include ' | gcc -D_POSIX -D
_USE_GNU --std=c99 -E -o - -x c - |grep INT
and...@andrey-laptop ~ $ echo '#include ' | gcc -D_POSIX -D
_USE_GNU --std=c99 -E -o - -x c - |grep INT
and...@andrey-laptop ~ $ echo '#include ' | gcc -D_POSIX -D
_USE_GNU --std=gnu99 -E -o - -x c - |grep INT
and...@andrey-laptop ~ $ echo '#include ' | gcc -D_POSIX -D
_USE_GNU --std=gnu99 -E -o - -x c - |grep INT
and...@andrey-laptop ~ $ q file /usr/include/limits.h
sys-libs/glibc (/usr/include/limits.h)
and...@andrey-laptop ~ $ sudo emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2,
glibc-2.8_p20080602-r1, 2.6.28-gentoo-r1 x86_64)
=
System uname: 
linux-2.6.28-gentoo-r1-x86_64-intel-r-_core-tm-2_duo_cpu_t94...@_2.53ghz-with-gentoo-2.0.0
Timestamp of tree: Tue, 20 Jan 2009 21:00:01 +
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python: 2.4.4-r15, 2.5.2-r8, 2.6.1, 3.0-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r8
dev-util/cmake:  2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.2
sys-apps/sandbox:1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config
/usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/initng/daemon /etc/initng/net /etc/initng/system
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
/etc/texmf/language.dat.d /etc/texmf/language.def.d
/etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native -g -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages nostrip parallel-fetch
preserve-libs protect-owned sandbox sfperms splitdebug strict
unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
http://gentoo.netnitco.net http://gentoo.osuosl.org/
http://gentoo.llarian.net/ http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.tds.net/gentoo
http://osmirrors.cerias.purdue.edu/pub/gentoo/
http://lug.mtu.edu/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://gentoo.chem.wisc.edu/gentoo/";
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects
/usr/local/portage/layman/java-overlay
/usr/local/portage/layman/pro-audio /usr/local/portage/layman/sunrise
/usr/local/portage/layman/lxde /usr/local/portage/layman/pcsx2
/usr/local/portage/layman/science
/usr/local/portage/layman/python-experimental
/usr/local/portage/layman/pd-overlay /usr/local/portage/layman/initng
/usr/local/portage/layman/n4g /usr/local/portage/layman/kde-crazy
/usr/local/portage/layman/wschlich-testing
/usr/local/portage/layman/kde-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip S3TC X a52 aac aalib acct acl acpi ads aften akonadi
allegro alsa amd64 amr amrnb amrr amrwb animgif annotate antlr apache2
apidocs ares arts artworkextra ass audiofile avahi background badval
bash-completion battery bcel bcmath bcp berkdb bidi big-tables
binary-drivers bjam bl blas blender-game bluetooth bonjour
bonusscripts boost bugzilla builder bwscheduler bzip2 c++ cairo canna
caps captury ccache cdaudio cdda cddb cdinstall cdio cdparanoia cdr
cdsound cgi cgraph chardet chasen chm chroot cjk clucene colordiff
commonsnet compat connectionstatus consolekit contrib corba corefonts
coverage cpufreq cracklib crypt cscope css ctype cups cupsddk curl
curlwrappers custom-cpuopts custom-optimization cviewer cvs cvsgraph
cxx cyrillic dar64 dbm dbus dc1394 debug detex devil dga dhclient dhcp
dhcpcd dia dialup dirac discouraged divx djbfft djvu dmi dnotify
dosformat double-precision dri dso dssi dts dv dvd dvdr dvdread
dvi2tty dynamic editor emerald enblend enca encode eolconv epydoc
erandom escreen esd etc-proposals etwin examples exif exiv2 expat fam
fbcon fbdev fbsplash ffmpeg fftw file file-icons firefox firefox3 fits
flac flash flexresp flexresp2 fltk fluidsynth font-server f

[gentoo-user] why is fglrx commented out in the xorg-server ebuild?

2007-11-26 Thread Andrey Vul
I need flgrx support for my graphics chip, yet the xorg-server has
this dependency:
!x11-drivers/ati-drivers
However, the following line is right after the block:
# video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.37.6)

Has fglrx support been removed from xorg-server?
And how can I bring it back in?

-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] AMD64 LiveCD 2007.0 problem

2007-11-26 Thread Andrey Vul
Kernel panics can be due to bad ram. Try loading the memtest86 kernel
and leave your computer on for a couple of days. If ram's ok, then the
kernel panic could be something else.
-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] why is fglrx commented out in the xorg-server ebuild?

2007-11-26 Thread Andrey Vul
On Nov 26, 2007 8:16 PM, Aline de Freitas <[EMAIL PROTECTED]> wrote:
> Em Monday 26 November 2007 22:41:31 Andrey Vul escreveu:
>
> > I need flgrx support for my graphics chip, yet the xorg-server has
> > this dependency:
> > !x11-drivers/ati-drivers
> > However, the following line is right after the block:
> > # video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.37.6)
> >
> > Has fglrx support been removed from xorg-server?
> > And how can I bring it back in?
>
> Which xorg-server version are you trying to build?
>
> I've just uncommented fglrx from xorg-server-1.4-r2.ebuild because of the new
> ati-drivers-8.433. In the ati webpage they say that it supports xorg 7.3 so
> I'm testing. Until now it look prety fine.
>



xorg-server version: xorg-server 1.4-r2
well, I'll try and see if it works or not.

-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] why is fglrx commented out in the xorg-server ebuild?

2007-11-26 Thread Andrey Vul
On Nov 26, 2007 8:35 PM, Andrey Vul <[EMAIL PROTECTED]> wrote:
> On Nov 26, 2007 8:16 PM, Aline de Freitas <[EMAIL PROTECTED]> wrote:
> > Em Monday 26 November 2007 22:41:31 Andrey Vul escreveu:
> >
> > > I need flgrx support for my graphics chip, yet the xorg-server has
> > > this dependency:
> > > !x11-drivers/ati-drivers
> > > However, the following line is right after the block:
> > > # video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.37.6)
> > >
> > > Has fglrx support been removed from xorg-server?
> > > And how can I bring it back in?
> >
> > Which xorg-server version are you trying to build?
> >
> > I've just uncommented fglrx from xorg-server-1.4-r2.ebuild because of the 
> > new
> > ati-drivers-8.433. In the ati webpage they say that it supports xorg 7.3 so
> > I'm testing. Until now it look prety fine.
> >
>
>
>
> xorg-server version: xorg-server 1.4-r2
> well, I'll try and see if it works or not.
>
> --
>
> Andrey Vul
> int i;main(){for(;i["] o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
> hail ioccc
>

gcc-3.3 cannot merge due to a typo.
Does fglrx need only the lib or gcc-v3 also?

-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] AMD64 LiveCD 2007.0 problem

2007-11-26 Thread Andrey Vul
On Nov 26, 2007 9:29 PM, David Relson <[EMAIL PROTECTED]> wrote:
> On Mon, 26 Nov 2007 19:45:59 -0500
> Andrey Vul wrote:
>
> > Kernel panics can be due to bad ram. Try loading the memtest86 kernel
> > and leave your computer on for a couple of days. If ram's ok, then the
> > kernel panic could be something else.
> > --
> > Andrey Vul
>
> True, panics can be caused by bad ram.  This panic followed a
> "NMI Watchdog ... LOCKUP".  As the problem is reproducible I'm inclined
> to think it's not bad ram.
>
> --
> [EMAIL PROTECTED] mailing list
>
>

Hmm...NMI Watchdog sounds like the system crashes due to waiting for
an interrupt for a longer period of time than the watchdog allows.

-- 
Andrey Vul
int i;main(){for(;i["]

[gentoo-user] ddcxinfo-knoppix on amd64

2007-11-27 Thread Andrey Vul
Anyone have any clue on how to force use of r32 registers instead of
default (r64) registers? I need this to get ddcxinfo-knoppix working
on amd64.

The code block in particular is in ddcxinfo-knoppix-0.6/lrmi.c:
asm volatile ("std; ins*" : "=D" (edi) : "d" (edx), "0", (edi));
It's too much work for me to port all of the asm to 64-bit so how do I
force the register sizes to be 32-bit?

-- 
Andrey Vul
int i;main(){for(;i["]

[gentoo-user] graphviz-2.12 fails to compile

2007-11-27 Thread Andrey Vul
last few lines of build log:
[libtool]
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
-I../../lib/common -I../../lib/graph -I../../lib/cdt
-I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
-I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
-mtune=athlon64 -finline-functions -MT gv_perl.lo -MD -MP -MF
.deps/gv_perl.Tpo -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o
[libtool]
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
-I../../lib/common -I../../lib/graph -I../../lib/cdt
-I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
-I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
-mtune=athlon64 -finline-functions -MT gv_python.lo -MD -MP -MF
.deps/gv_python.Tpo -c gv_python.cpp -fPIC -DPIC -o .libs/gv_python.o
gv_perl.cpp:1761: error: invalid use of 'static' in linkage specification
make[3]: *** [gv_perl.lo] Error 1
[make stack]

known bug or is something wtf?
-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] graphviz-2.12 fails to compile

2007-11-28 Thread Andrey Vul
How do I enable custom CFLAGS for graphviz (or at least cancel out the
inlining flag in the ebuilld)?
Also, could this be a gcc-4.2 bug?
If it is, I'll send a bug report to the gcc mailing list.

On 11/28/07, Albert Hopkins <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2007-11-28 at 00:31 -0500, Andrey Vul wrote:
> > last few lines of build log:
> > [libtool]
> > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
> > -I../../lib/common -I../../lib/graph -I../../lib/cdt
> > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
> > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
> > -mtune=athlon64 -finline-functions -MT gv_perl.lo -MD -MP -MF
> > .deps/gv_perl.Tpo -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o
> > [libtool]
> > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
> > -I../../lib/common -I../../lib/graph -I../../lib/cdt
> > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
> > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
> > -mtune=athlon64 -finline-functions -MT gv_python.lo -MD -MP -MF
> > .deps/gv_python.Tpo -c gv_python.cpp -fPIC -DPIC -o .libs/gv_python.o
> > gv_perl.cpp:1761: error: invalid use of 'static' in linkage specification
> > make[3]: *** [gv_perl.lo] Error 1
> > [make stack]
> >
> > known bug or is something wtf?
>
> >From the looks of it, your -finline-functions flag allowed a static
> function to be compiled inline and caused some kind of linkage problem.
>
> --
> Albert W. Hopkins
>
> --
> [EMAIL PROTECTED] mailing list
>
>


-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] graphviz-2.12 fails to compile

2007-11-28 Thread Andrey Vul
On Nov 28, 2007 8:17 AM, Albert Hopkins <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2007-11-28 at 00:31 -0500, Andrey Vul wrote:
> > last few lines of build log:
> > [libtool]
> > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
> > -I../../lib/common -I../../lib/graph -I../../lib/cdt
> > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
> > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
> > -mtune=athlon64 -finline-functions -MT gv_perl.lo -MD -MP -MF
> > .deps/gv_perl.Tpo -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o
> > [libtool]
> > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
> > -I../../lib/common -I../../lib/graph -I../../lib/cdt
> > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
> > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
> > -mtune=athlon64 -finline-functions -MT gv_python.lo -MD -MP -MF
> > .deps/gv_python.Tpo -c gv_python.cpp -fPIC -DPIC -o .libs/gv_python.o
> > gv_perl.cpp:1761: error: invalid use of 'static' in linkage specification
> > make[3]: *** [gv_perl.lo] Error 1
> > [make stack]
> >
> > known bug or is something wtf?
>
> >From the looks of it, your -finline-functions flag allowed a static
> function to be compiled inline and caused some kind of linkage problem.
>

I removed the '-finline-functions' from my CFLAGS and the same error
still happens.


-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] graphviz-2.12 fails to compile

2007-11-29 Thread Andrey Vul
http://bugs.gentoo.org/show_bug.cgi?id=199831
-- 
Andrey Vul
int i;main(){for(;i["]

[gentoo-user] radeonfb and fglrx don't mix - why?

2007-12-03 Thread Andrey Vul
I finally got X to work with fglrx and RTFMing said that radeonfb was
crashing my X. My question is why did radeonfb mess up X and fglrx?

If this is strictly kernel-related, I'll send this email to lkml.

-- 
Andrey Vul
int i;main(){for(;i["]

Re: [gentoo-user] Help applying a qt patch

2007-12-04 Thread Andrey Vul
On Dec 4, 2007 5:40 PM, Grant <[EMAIL PROTECTED]> wrote:
> I've set the ebuild up in an overlay and added:
>
> epatch ${FILESDIR}/qt-4.3.1-r1_gcc3.4_compile_fix.diff
mv ${FILESDIR}/qt-4.3.1-r1_gcc3.4_compile_fix.diff
/qt-4.3.1-r1_gcc3.4_compile_fix.diff

> http://bugs.gentoo.org/attachment.cgi?id=131080&action=view
>
> Could someone tell me what I'm doing wrong?

The patch overwrites the *ebuild*, not the *package files*

correct command:
/#patch -N qt-4.3.1-r1_gcc3.4_compile_fix.diff
(/# means root shell, root (/) directory)
-- 
Andrey Vul
int i;main(){for(;i["]

[gentoo-user] generating HFS+ isos

2008-09-18 Thread Andrey Vul
Unfortunately, genisoimage (current version)'s -hfs options generates
old-HFS instead of new-HFS directory table, leading to truncation. Is
there a way, (such as libdmg)
to create HFS+ (OS 9 / OS X) images without using Toast?
-- 
Andrey Vul



Re: [gentoo-user] generating HFS+ isos

2008-09-22 Thread Andrey Vul
1) Stop the cdrtools vs cdrkit flamewar.
2) I meant HFS+ partition, not Apple extensions to UDF (i.e.
generating a dmg file that, for all intents and purposes, is
indistinguishable from one made in Disk Utility.app or whatever Macs
use to generate DMGs).
3) What I meant was, how to make a hfs *plus* hybrid cd, not hfs
*classic* hybrid cd.
I.e.
/
/foo
/foo/bar.app
/foo/bar.app/Icon\r
/foo/bar.app/qwertyasdf.mpkg
/foo/bar.app/qwertyasdf.mpkg/...
...
/foo/bar.exe
/readme.txt
with *.app, *.mpkg being in HFS+ and *.exe being in ISO9660/Joliet. I
know Toast does this with a fancy GUI, but I don't have the money for
a Mac nor the time to install Hackint0sh in VMware. I was asking if
cdr$foo (or any other *nix-compatible iso maker) does this by passing
a zillion -hide and -hide-hfs parameters (or via fancy GUI, I honestly
don't care)?
-- 
Andrey Vul



[gentoo-user] hduitil for linux

2008-09-23 Thread Andrey Vul
Is there a hdiutil clone for Linux? mkisofs lacks HFS+ support and my
SSE3-capable computer is still compiling KDE. It will take a long
while to get OSX inside VMware working.

-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-24 Thread Andrey Vul
On Wed, Sep 24, 2008 at 7:18 AM, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> Is there a hdiutil clone for Linux? mkisofs lacks HFS+ support and my
>> SSE3-capable computer is still compiling KDE. It will take a long
>> while to get OSX inside VMware working.
>
> Why do you believe that you need HFS+ at all?
Because I have paths which exceed the HFS limit and lead to
truncation, in addition to symlinks. Both work incorrectly.
E.g.,
HFS+ directory name: Garritan Instruments for Finale 2009
HFS directory name: Garritan Instruments for Finale

I want my remastered (backup) to look exactly like the original:
Joliet(or ISO9660:1999) for Windows and HFS+ for OS X.
>
> mkisofs supports Apple MAC UDF extensions since Spring 2007.
UDF != HFS+

-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-24 Thread Andrey Vul
On Wed, Sep 24, 2008 at 6:48 PM, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> > Why do you believe that you need HFS+ at all?
>> Because I have paths which exceed the HFS limit and lead to
>> truncation, in addition to symlinks. Both work incorrectly.
>> E.g.,
>> HFS+ directory name: Garritan Instruments for Finale 2009
>> HFS directory name: Garritan Instruments for Finale
>
> No problem for UDF!
>
>> I want my remastered (backup) to look exactly like the original:
>> Joliet(or ISO9660:1999) for Windows and HFS+ for OS X.
>> >
>> > mkisofs supports Apple MAC UDF extensions since Spring 2007.
>> UDF != HFS+
>
> Correct, but I still see no reason why HFS+ is required.
Have you mastered OS X install CD/DVDs using AppleUDF and have them
behave identically to HFS+ CD/DVDs?
Also, AFAIK UDF doesn't support embedded control characters in files
(i.e. Icon\r).
>
>
> Jörg
>
> --
>  EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
>   [EMAIL PROTECTED](uni)
>   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
>  URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
>
>



-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-25 Thread Andrey Vul
On Thu, Sep 25, 2008 at 4:23 AM, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> Also, AFAIK UDF doesn't support embedded control characters in files
>> (i.e. Icon\r).
>
> This claim is of course wrong.
I beg to differ.
Output of ls -Alh in the Installer.app dir is supposed to show
"Icon?". UDF image shows "Icon_" instead.
This is enough for me to lose trust in UDF for hybrid CD/DVDs :(

mkisofs command: mkisofs -o fin2k9.iso -udf -iso-level 4 -V "Finale
2009" /mnt/iso0
/mnt/iso0 is an hfs+ mountpoint from fin2k9.dmg
mkisofs version: mkisofs 2.01.01a42 (i686-pc-linux-gnu) Copyright (C)
1993-1997 Eric Youngdale (C) 1997-2008 Jörg Schilling


-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-26 Thread Andrey Vul
On Fri, Sep 26, 2008 at 2:34 AM, Sebastian Günther
<[EMAIL PROTECTED]> wrote:
> * Andrey Vul ([EMAIL PROTECTED]) [26.09.08 04:45]:
>> On Thu, Sep 25, 2008 at 4:23 AM, Joerg Schilling
>> <[EMAIL PROTECTED]> wrote:
>> > "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>> >
>> >> Also, AFAIK UDF doesn't support embedded control characters in files
>> >> (i.e. Icon\r).
>> >
>> > This claim is of course wrong.
>> I beg to differ.
>> Output of ls -Alh in the Installer.app dir is supposed to show
>> "Icon?". UDF image shows "Icon_" instead.
>       ^
> Are completely sure that this is a question mark?
ls converts control characters into question  marks unless -b is specified.
>
-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-26 Thread Andrey Vul
On Fri, Sep 26, 2008 at 11:18 AM, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> On Fri, Sep 26, 2008 at 2:34 AM, Sebastian Günther
>> <[EMAIL PROTECTED]> wrote:
>> > * Andrey Vul ([EMAIL PROTECTED]) [26.09.08 04:45]:
>> >> On Thu, Sep 25, 2008 at 4:23 AM, Joerg Schilling
>> >> <[EMAIL PROTECTED]> wrote:
>> >> > "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> >> Also, AFAIK UDF doesn't support embedded control characters in files
>> >> >> (i.e. Icon\r).
>> >> >
>> >> > This claim is of course wrong.
>> >> I beg to differ.
>> >> Output of ls -Alh in the Installer.app dir is supposed to show
>> >> "Icon?". UDF image shows "Icon_" instead.
>> >   ^
>> > Are completely sure that this is a question mark?
>> ls converts control characters into question  marks unless -b is specified.
>
> ls does not mark \r this way, gls may do.
Still, "ls -Ab" on the dmg file does not match "ls -Ab" on the remastered ISO.
I.e.:
[EMAIL PROTECTED] ~ $ ls -b /mnt/iso0/InstallFinale.app/
Contents  Icon\r
[EMAIL PROTECTED] ~ $ ls -b /mnt/iso1/InstallFinale.app/
Contents  Icon_
, where /mnt/iso1 is the folowing: mkisofs -o fin2k9.iso -udf
-iso-level 4 -V "Finale 2009" /mnt/iso0 && sudo mount fin2k9.iso
/mnt/iso1 -o loop

Unless there's a mkisofs option that does not convert "low ASCII" to
_, I'm stuck to using HFS+ (since I have paths > 31 characters).



-- 
Andrey Vul



Re: [gentoo-user] hduitil for linux

2008-09-26 Thread Andrey Vul
On Fri, Sep 26, 2008 at 12:10 PM, Andrey Vul <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 26, 2008 at 11:18 AM, Joerg Schilling
> <[EMAIL PROTECTED]> wrote:
>> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>>
>>> On Fri, Sep 26, 2008 at 2:34 AM, Sebastian Günther
>>> <[EMAIL PROTECTED]> wrote:
>>> > * Andrey Vul ([EMAIL PROTECTED]) [26.09.08 04:45]:
>>> >> On Thu, Sep 25, 2008 at 4:23 AM, Joerg Schilling
>>> >> <[EMAIL PROTECTED]> wrote:
>>> >> > "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>>> >> >
>>> >> >> Also, AFAIK UDF doesn't support embedded control characters in files
>>> >> >> (i.e. Icon\r).
>>> >> >
>>> >> > This claim is of course wrong.
>>> >> I beg to differ.
>>> >> Output of ls -Alh in the Installer.app dir is supposed to show
>>> >> "Icon?". UDF image shows "Icon_" instead.
>>> >   ^
>>> > Are completely sure that this is a question mark?
>>> ls converts control characters into question  marks unless -b is specified.
>>
>> ls does not mark \r this way, gls may do.
> Still, "ls -Ab" on the dmg file does not match "ls -Ab" on the remastered ISO.
Ignore what I said.
However, I raise a new question: is it
a) -a50 vs. -a42
b) -no-hfs
that allows control chars / Apple extensions to be used in UDF?
> --
> Andrey Vul
>



-- 
Andrey Vul



[gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-29 Thread Andrey Vul
Is there a patch file to patch mkisofs to use the --duplicates-once
option during generation of iso9960/UDF images?
The problem is that the one that exists right now, the patch (against
the official sources) cannot be found because the original site
(bootcd.ru) is permanently down.
Or do I need to make a table of SHA-1s to weed out the identical files?
-- 
Andrey Vul



Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Andrey Vul
On Tue, Sep 30, 2008 at 6:25 AM, Joerg Schilling
<[EMAIL PROTECTED]> wrote:
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> Is there a patch file to patch mkisofs to use the --duplicates-once
>> option during generation of iso9960/UDF images?
>
> There is no such option.
>
> Could you explain your desire?
>
There is an unofficial version of mkisofs that implements
--duplicates-once. The website of the person who patched it (Alex
Kopylov) is permanently down. That version is commonly used in order
to fit 5 "flavors" of Window$ XP on one CD by hard-linking multiple
directory entries to the same sector(s).
Anyways, I am building a hybrid CD and there is a chance that there
are duplicate files.
However, I don't know how to use the output of "find cd-root -type f
-or -type l | xargs sha1sum -b" to find duplicate files. Maybe someone
can donate a perl/python script to find duplicate files and list them?

-- 
Andrey Vul



[gentoo-user] cannot compile eclipse-ecj using gcj

2008-10-03 Thread Andrey Vul
Gcj can't compile eclipse(-ecj) due to encoding issues. Any solutions?

Emerge log attached.
-- 
Andrey Vul

These are the packages that would be merged, in order:

Calculating dependencies  . ... done!
[ebuild  N] dev-java/eclipse-ecj-3.4-r2  USE="gcj java6" 0 kB 

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-java/eclipse-ecj-3.4-r2
 * ecjsrc-3.4.zip RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * checking ebuild checksums ;-) ... [ ok ]
 * checking auxfile checksums ;-) ...[ ok ]
 * checking miscfile checksums ;-) ...   [ ok ]
>>> Unpacking source...
>>> Unpacking ecjsrc-3.4.zip to 
>>> /var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/work ...
 * bootstrapping ecj with /usr/x86_64-pc-linux-gnu/gcc-bin/4.2.4/gcj -C ...
org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java:755: error: 
Unrecognized character for encoding 'UTF-8'.
// JLS 3 §8.4.5: more are accepted, with an unchecked conversion
^
1 error
 * 
 * ERROR: dev-java/eclipse-ecj-3.4-r2 failed.
 * Call stack:
 *   ebuild.sh, line   49:  Called src_compile
 * environment, line 3838:  Called die
 * The specific snippet of code:
 *   ${javac} ${javac_opts} $(find org/ -name '*.java') || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if 
relevant.
 * A complete build log is located at 
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info

 * Messages for package dev-java/eclipse-ecj-3.4-r2:

 * 
 * ERROR: dev-java/eclipse-ecj-3.4-r2 failed.
 * Call stack:
 *   ebuild.sh, line   49:  Called src_compile
 * environment, line 3838:  Called die
 * The specific snippet of code:
 *   ${javac} ${javac_opts} $(find org/ -name '*.java') || die;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if 
relevant.
 * A complete build log is located at 
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r2/temp/environment'.
 * 


Re: [gentoo-user] Re: cannot compile eclipse-ecj using gcj

2008-10-03 Thread Andrey Vul
On Fri, Oct 3, 2008 at 3:29 PM, James <[EMAIL PROTECTED]> wrote:
> Andrey Vul  gmail.com> writes:
>
>>
>> Gcj can't compile eclipse(-ecj) due to encoding issues. Any solutions?
>>
>> Emerge log attached.
>
>
> Hello Andrey,
>
> I have Installed versions:  3.4-r2 on my amd64. What
> version are you trying to install? I also have these
> entries in my package.keywords files:
>
> dev-util/eclipse-cdt~amd64
> dev-util/eclipse-sdk~amd64
> dev-java/cldc-api   ~amd64
> dev-java/junit  ~amd64
> dev-java/hamcrest-core  ~amd64
> dev-java/junit  ~amd64
> dev-java/eclipse-ecj~amd64
> app-admin/eselect-ecj   ~amd64
> dev-java/lucene-analyzers   ~amd64
> dev-java/ant-eclipse-ecj~amd64
> dev-java/swt~amd64
> dev-java/jsch   ~amd64
> dev-java/icu4j  ~amd64
> dev-java/commons-el ~amd64
> dev-java/lucene ~amd64
> dev-java/tomcat-servlet-api ~amd64
> dev-java/commons-logging~amd64
Eclipse 3.4-r2
The keywords aren't neccessary, I have ~amd64 set in make.conf.

-- 
Andrey Vul



[gentoo-user] Re: cannot compile eclipse-ecj using gcj

2008-10-03 Thread Andrey Vul
On Fri, Oct 3, 2008 at 9:41 AM, Andrey Vul <[EMAIL PROTECTED]> wrote:
> Gcj can't compile eclipse(-ecj) due to encoding issues. Any solutions?
>

The specific byte is 0xA8 (the section sign). However, it is *not*
encoded in UTF-8. leading to the error. Which 8-bit encodings have
high-ASCII (i.e. 0x80-0xFF) support?

-- 
Andrey Vul



Re: [gentoo-user] Change install directory of ebuilds?

2008-10-04 Thread Andrey Vul
On Sat, Oct 4, 2008 at 4:17 PM, Andreas Simbuerger <[EMAIL PROTECTED]> wrote:
> In addition i try to solve the problems by doing an
>  emerge -eaD world
-D is unnecessary if -e is specified.
And I prefer this: emerge -evp world 2>&1 | tee ew
Then I can look at ew using less and see if everything is good.
Then this (if everything is good): emerge -ev world 2>&1 | tee ew
-- 
Andrey Vul



[gentoo-user] framebuffer hangs in 2.6.26

2008-10-08 Thread Andrey Vul
The current kernel that I am running is 2.6.26.5-rt9-gentoo2.
Sporadically this freezes, usually happening during the end of
emerging an ebuild or when stopping gpm. Usually, the fb only freezes
for a few seconds, but sometimes I have to O the machine
(it's unresponsive to {R,S,E,I,K,U}).
I have the feeling that this is a regression because the framebuffer
never froze on 2.6.25.4-rt5-gentoo nor on the kernel on the 2008.0
install/minimal CD.

Any suggestions?

Note: I emailed about this on lkml, yet got no replies.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] error emerge hal

2008-10-08 Thread Andrey Vul
On Wed, Oct 8, 2008 at 9:07 PM, M. Sitorus <[EMAIL PROTECTED]> wrote:
> Hello,
> i'm having trouble emerging hal. Emerge stops with this error:
>
> make: *** [all] Error 2
>  [31;01m* [0m
>  [31;01m* [0m ERROR: sys-apps/hal-0.5.9.1-r3 failed.
>  [31;01m* [0m Call stack:
>  [31;01m* [0m   ebuild.sh, line   49:  Called src_compile
>  [31;01m* [0m environment, line 3635:  Called die
>  [31;01m* [0m The specific snippet of code:
>  [31;01m* [0m   emake || die "make failed"
>  [31;01m* [0m  The die message:
>  [31;01m* [0m   make failed
>  [31;01m* [0m
>  [31;01m* [0m If you need support, post the topmost build error, and
> the call stack if relevant.
>  [31;01m* [0m A complete build log is located at
> '/var/tmp/portage/sys-apps/hal-0.5.9.1-r3/temp/build.log'.
>  [31;01m* [0m The ebuild environment file is located at
> '/var/tmp/portage/sys-apps/hal-0.5.9.1-r3/temp/environment'.
>  [31;01m* [0m
>
> I have been trying to following:
> 1. revdep-rebuild
> 2. re-emerge expat
> 3. emerge the current hal installed (hal-0.5.9-r3)
>
> but emerge still doesn't work. Can you point me the problem? Thanks.
> the complete build.log is attach.
>

There is insufficient information in what you posted.
Can you post more detail?
i.e. $head -50 /var/tmp/portage/sys-apps/hal-0.5.9.1-r3/temp/build.log



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Reopen: OpenOffice dies on startup

2008-10-08 Thread Andrey Vul
On Wed, Oct 8, 2008 at 5:55 PM, Kevin O'Gorman <[EMAIL PROTECTED]> wrote:
> On 10/8/08, Dirk Heinrichs <[EMAIL PROTECTED]> wrote:
>>  > > Am Mittwoch 08 Oktober 2008 04:23:35 schrieb ext Kevin O'Gorman:
>>  > > Why did you choose Gentoo, then? Only by compiling OOo, you will get one
>>  > > that fits into _your_ system.
>
> For me, the reasons are
> 1. I wanted Gentoo for the toolchain and the things I'm developing.
> These are the things where I wanted support tailored to my 2xXeon (4
> core) system.
>
> 2. I've been using Oo-bin because it worked, and efficiency didn't
> matter because
> I don't even use it every week.  Compiling it takes a day or so and
> accordingly it was spending more time compiling than I was spending
> using it.  Now it no longer works and I'll probably use Word on my
> wife's laptop.  But I won't like it.
Your system is 4 core and it takes a day to compile OOo? Something
sounds very off.
Honestly, my 3 year old laptop which has 1 core and a 1.8 GHz Turion
with 2GB of DDR333 takes 4 hours to compile.
What are you running apart from emerge (e.g. X, firefox, etc.)?


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Reopen: OpenOffice dies on startup

2008-10-08 Thread Andrey Vul
On an 1.7 GHz Ahtlon Xp with 768 MB of SDR133, it takes about 8 hours
if X is *not* running and there are no other emerges nor anything else
that is CPU-/RAM-hunry. Basically, turn off X and your research
programs for up to 12 hours. nice -n -20 can shave your emerge time
even more, at the risk of decreased system responsiveness.
The only thing that takes a day or two is emerge -uvD --with-bdeps=y world .
Gentoo requires patience, with the reward of fast code. I actually
enjoy waiting for compiles to finish, so much so that I install from
stage 1 if possible and only use stage 3 if I have to get Gentoo
working in a short amount of time. At least the compiling makes a very
good screensaver :D

On 10/8/08, Kevin O'Gorman <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 8, 2008 at 6:28 PM, Andrey Vul <[EMAIL PROTECTED]> wrote:
>> On Wed, Oct 8, 2008 at 5:55 PM, Kevin O'Gorman <[EMAIL PROTECTED]> wrote:
>>> On 10/8/08, Dirk Heinrichs <[EMAIL PROTECTED]> wrote:
>>>>  > > Am Mittwoch 08 Oktober 2008 04:23:35 schrieb ext Kevin O'Gorman:
>>>>  > > Why did you choose Gentoo, then? Only by compiling OOo, you will
>>>> get one
>>>>  > > that fits into _your_ system.
>>>
>>> For me, the reasons are
>>> 1. I wanted Gentoo for the toolchain and the things I'm developing.
>>> These are the things where I wanted support tailored to my 2xXeon (4
>>> core) system.
>>>
>>> 2. I've been using Oo-bin because it worked, and efficiency didn't
>>> matter because
>>> I don't even use it every week.  Compiling it takes a day or so and
>>> accordingly it was spending more time compiling than I was spending
>>> using it.  Now it no longer works and I'll probably use Word on my
>>> wife's laptop.  But I won't like it.
>> Your system is 4 core and it takes a day to compile OOo? Something
>> sounds very off.
>> Honestly, my 3 year old laptop which has 1 core and a 1.8 GHz Turion
>> with 2GB of DDR333 takes 4 hours to compile.
>> What are you running apart from emerge (e.g. X, firefox, etc.)?
>>
>>
>> --
>> Andrey Vul
>
> This is a 6-year-old desktop, 1.6 GHz, 2 GB original DDR memory.
>
> I run KDE and sometimes a bunch of compute-bound research tasks of my
> own creation.
>
> I haven't compiled it in so long I may be confusing it with gnome or
> KDE or any of that collection of things that monopolize my machine
> from time to time.  A couple of years back I went to 'bin' on things I
> don't use much, and did some trimming on modular packages like KDE to
> cut down my emerge times.  There are just so many times when I want to
> break in to fool with some hardware and I'm loath to do it during an
> emerge.  I just think of these measures as saving me days of emerging
> from time to time.
>
> ++ kevin
>
> --
> Kevin O'Gorman, PhD
>
>


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Howto erase the "Insert root floppy and press enter" item before the kernel panic?

2008-10-10 Thread Andrey Vul
2008/10/10 David Wei <[EMAIL PROTECTED]>:
> Hi,
> I am trying kexec with "kernel panic reboot" cause i have to manage my server 
> remotely.
> the "kernel panic reboot" (http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot) 
> has beening working so good so far for the regular kernel 
> panic.However,sometimes when i were missed some file system items,the booking 
> process would ask me:
> "VFS: Unable to mount root fs via NFS,trying floppy
> Insert root floppy and Press Enter."
> And the system hungup there waiting for my Enter.
> How can I remove this item from the booting process and panic directly so 
> that it can reboot? Besides,I want to keep the NFS service.
> Thank you in advance.
I'm guessing that this is due to the floppy being compiled into the
emergency kernel.
In any case, can you post your .config for the emergency kernel?

--
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Dear friend

2008-10-10 Thread Andrey Vul
2008/10/10 KLessou <[EMAIL PROTECTED]>:
[snipped spam]

Gentoo needs to start filtering / auto-rming HTML emails before it
propagates to the list(s).
lkml and lfs mailing lists have done that and they have considerably less spam.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Howto erase the "Insert root floppy and press enter" item before the kernel panic?

2008-10-10 Thread Andrey Vul
On Fri, Oct 10, 2008 at 10:33 PM, David Wei <[EMAIL PROTECTED]> wrote:
> Sorry, I forgot that file .
> the .config is in the attachment this time.
> Thank you .
>
> On Fri, 10 Oct 2008 10:05:36 -0400
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> 2008/10/10 David Wei <[EMAIL PROTECTED]>:
>> > Hi,
>> > I am trying kexec with "kernel panic reboot" cause i have to manage my 
>> > server remotely.
>> > the "kernel panic reboot" (http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot) 
>> > has beening working so good so far for the regular kernel 
>> > panic.However,sometimes when i were missed some file system items,the 
>> > booking process would ask me:
>> > "VFS: Unable to mount root fs via NFS,trying floppy
>> > Insert root floppy and Press Enter."
>> > And the system hungup there waiting for my Enter.
>> > How can I remove this item from the booting process and panic directly so 
>> > that it can reboot? Besides,I want to keep the NFS service.
>> > Thank you in advance.
>> I'm guessing that this is due to the floppy being compiled into the
>> emergency kernel.
>> In any case, can you post your .config for the emergency kernel?
>>

Nothing in the .config looks suspicious.
It looks like it's inevitable that kernel patching will be needed, at
least, using the preprocessor to "hide" the floppy code.
Try this (it comments out floppy support which happens after NFS support):
comment_floppy.patch
--- init/do_mounts.c2008-04-16 22:49:44.0 -0400
+++ init/do_mounts2.c   2008-10-10 23:03:06.867876561 -0400
@@ -308,7 +308,8 @@
ROOT_DEV = Root_FD0;
}
 #endif
-#ifdef CONFIG_BLK_DEV_FD
+/* #ifdef CONFIG_BLK_DEV_FD */
+#if 0
if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) {
    /* rd_doload is 2 for a dual initrd/ramload setup */
if (rd_doload==2) {

cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch
It should fix the _specific_ issue. It might not fix the root cause, however.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Howto erase the "Insert root floppy and press enter" item before the kernel panic?

2008-10-10 Thread Andrey Vul
On Sat, Oct 11, 2008 at 12:00 AM, David Wei <[EMAIL PROTECTED]> wrote:
> Thanks Andrey, that patch works , my test kernel dose not ask for the floppy 
> before the panic. Just by the way,dose that mean I cannot use floppy drive on 
> this box?
>
You can use the floppy drive, but the kernel cannot run init / use
initrd from a floppy (i.e. you are not allowed to use root=/dev/fd0 or
initrd=/dev/fd0). This is because the floppy is fallback code if the
NFS mount of / fails.

But this is Gentoo, you make your own kernel (hopefully), and never
have to worry about initrd.

/ and /dev/root are used interchangeably, for readabilty, similar to /
and /dev/hdaX.

All I did was comment out the floppy fallback code.

This is how mount_root was originally written:
If CONFIG_ROOT_NFS is defined
If root device is NFS
If the NFS root mounted
Return
Print message "VFS: Unable to mount root fs via NFS, trying floppy.\n"
Set root device as floppy disk 0
If CONFIG_BLK_DEV_FD (floppy disk) is defined
If the root device is a floppy
If dual initrd/ramload is enabled
If the first partition of the ramdisk image could be
loaded into memory
Set the root device as a ramdisk
Set the root device name as null
Else
Prompt for root floppy
If CONFIG_BLOCK is defined
Create a device named "/dev/root" with the major & minor modes
equal to the root device
Mount "/dev/root" with root device mountflags

If you want more detail, you should post to lkml.

All I have done was replace the following line:
If CONFIG_BLK_DEV_FD (floppy disk) is defined
with
If false

}
> Thanks again!!
No problem.
In reality, the fix was simple.
All I did was grep the source tree for the exact string (grep -R "VFS:
Unable to mount root fs via NFS, trying floppy" .
)
Then open up vim (or emacs or nano), find the line, and add an #if 0
... #endif block where needed.
>
> On Fri, 10 Oct 2008 23:06:09 -0400
> "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>
>> On Fri, Oct 10, 2008 at 10:33 PM, David Wei <[EMAIL PROTECTED]> wrote:
>> > Sorry, I forgot that file .
>> > the .config is in the attachment this time.
>> > Thank you .
>> >
>> > On Fri, 10 Oct 2008 10:05:36 -0400
>> > "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>> >
>> >> 2008/10/10 David Wei <[EMAIL PROTECTED]>:
>> >> > Hi,
>> >> > I am trying kexec with "kernel panic reboot" cause i have to manage my 
>> >> > server remotely.
>> >> > the "kernel panic reboot" 
>> >> > (http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot) has beening working so 
>> >> > good so far for the regular kernel panic.However,sometimes when i were 
>> >> > missed some file system items,the booking process would ask me:
>> >> > "VFS: Unable to mount root fs via NFS,trying floppy
>> >> > Insert root floppy and Press Enter."
>> >> > And the system hungup there waiting for my Enter.
>> >> > How can I remove this item from the booting process and panic directly 
>> >> > so that it can reboot? Besides,I want to keep the NFS service.
>> >> > Thank you in advance.
>> >> I'm guessing that this is due to the floppy being compiled into the
>> >> emergency kernel.
>> >> In any case, can you post your .config for the emergency kernel?
>> >>
>>
>> Nothing in the .config looks suspicious.
>> It looks like it's inevitable that kernel patching will be needed, at
>> least, using the preprocessor to "hide" the floppy code.
>> Try this (it comments out floppy support which happens after NFS support):
>> comment_floppy.patch
>> --- init/do_mounts.c2008-04-16 22:49:44.0 -0400
>> +++ init/do_mounts2.c   2008-10-10 23:03:06.867876561 -0400
>> @@ -308,7 +308,8 @@
>> ROOT_DEV = Root_FD0;
>> }
>>  #endif
>> -#ifdef CONFIG_BLK_DEV_FD
>> +/* #ifdef CONFIG_BLK_DEV_FD */
>> +#if 0
>> if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) {
>> /* rd_doload is 2 for a dual initrd/ramload setup */
>> if (rd_doload==2) {
>>
>> cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch
>> It should fix the _specific_ issue. It might not fix the root cause, however.
>>
>> --
>> Andrey Vul
>>
>> A: Because it messes up the order in which people normally read text.
>> Q: Why is top-posting such a bad thing?
>> A: Top-posting.
>> Q: What is the most annoying thing in e-mail?
>>
>
>
> ---
> 魏亮 David Wei
>
> 您可以通过下面的方式和我联系:
> MSN: [EMAIL PROTECTED]
> Gtalk: [EMAIL PROTECTED]
> Email: [EMAIL PROTECTED]
>
>



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: [gentoo-user] Howto erase the "Insert root floppy and press enter" item before the kernel panic?

2008-10-11 Thread Andrey Vul
On Sat, Oct 11, 2008 at 8:01 AM, David Relson <[EMAIL PROTECTED]> wrote:
> On Fri, 10 Oct 2008 23:06:09 -0400
> Andrey Vul wrote:
>
>> On Fri, Oct 10, 2008 at 10:33 PM, David Wei <[EMAIL PROTECTED]>
>> wrote:
>> > Sorry, I forgot that file .
>> > the .config is in the attachment this time.
>> > Thank you .
>> >
>> > On Fri, 10 Oct 2008 10:05:36 -0400
>> > "Andrey Vul" <[EMAIL PROTECTED]> wrote:
>> >
>> >> 2008/10/10 David Wei <[EMAIL PROTECTED]>:
>> >> > Hi,
>> >> > I am trying kexec with "kernel panic reboot" cause i have to
>> >> > manage my server remotely. the "kernel panic
>> >> > reboot" (http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot) has
>> >> > beening working so good so far for the regular kernel
>> >> > panic.However,sometimes when i were missed some file system
>> >> > items,the booking process would ask me: "VFS: Unable to mount
>> >> > root fs via NFS,trying floppy Insert root floppy and Press
>> >> > Enter." And the system hungup there waiting for my Enter. How
>> >> > can I remove this item from the booting process and panic
>> >> > directly so that it can reboot? Besides,I want to keep the NFS
>> >> > service. Thank you in advance.
>> >> I'm guessing that this is due to the floppy being compiled into the
>> >> emergency kernel.
>> >> In any case, can you post your .config for the emergency kernel?
>> >>
>>
>> Nothing in the .config looks suspicious.
>> It looks like it's inevitable that kernel patching will be needed, at
>> least, using the preprocessor to "hide" the floppy code.
>> Try this (it comments out floppy support which happens after NFS
>> support): comment_floppy.patch
>> --- init/do_mounts.c2008-04-16 22:49:44.0 -0400
>> +++ init/do_mounts2.c   2008-10-10 23:03:06.867876561 -0400
>> @@ -308,7 +308,8 @@
>>         ROOT_DEV = Root_FD0;
>> }
>>  #endif
>> -#ifdef CONFIG_BLK_DEV_FD
>> +/* #ifdef CONFIG_BLK_DEV_FD */
>> +#if 0
>> if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) {
>> /* rd_doload is 2 for a dual initrd/ramload setup */
>> if (rd_doload==2) {
>>
>> cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch
>> It should fix the _specific_ issue. It might not fix the root cause,
>> however.
>>
>> --
>> Andrey Vul
>
> Looking in do_mounts.c, the code that generates the message is:
>
>  #ifdef CONFIG_ROOT_NFS
>if (MAJOR(ROOT_DEV) == UNNAMED_MAJOR) {
>  if (mount_nfs_root())
>return;
>
>  printk(KERN_ERR "VFS: Unable to mount root fs via NFS, trying 
> floppy.\n");
>  ROOT_DEV = Root_FD0;
>}
>  #endif
>
> Looking at the .config file, I see "CONFIG_ROOT_NFS=y".  Since the
> message is being printed, we know that
>
>  if (MAJOR(ROOT_DEV) == UNNAMED_MAJOR)
>
> is true which wmeans that the
>
>  if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR)
>
> is false, i.e. the change to "#if 0" looks to be incorrect.
>
> Perhaps "CONFIG_ROOT_NFS=y" in .config is the root cause.  I'd suggest
> changing the .config.
He has explicity mentioned that his root device is NFS. You have
misinterpreted the code. The floppy event only occurs *if*
mount_nfs_root() failed.
It's false from the start, but becomes true when NFS mount-root failed.



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Painted into a corner: avahi and mDNSResponder

2008-10-11 Thread Andrey Vul
On Sat, Oct 11, 2008 at 10:30 PM, Alan E. Davis <[EMAIL PROTECTED]> wrote:
> Almost perpetually, the following packages or their versions are
> blocking.  I have run emerge -e system several times.  Some other
> problems were cleared up, and this
> avahi--mDNSResponder/mdnsresponder-compat whatever it all is, just
> keeps coming back even when solved by some skullduggery.  I've removed
> both of them at one time or another.
>
> [blocks B ] net-dns/avahi ("net-dns/avahi" is blocking
> net-misc/mDNSResponder-107.6-r5)
>
> [blocks B ] net-misc/mDNSResponder ("net-misc/mDNSResponder" is
> blocking net-dns/avahi-0.6.23)
>
> I guess the problem is that I am running gnome and also have two or
> three different versions/slots of kde installed.  I suppose, then,
> it's remarkable that only these blocks are showing up?
>
> Can someone lend a hand on this?  Anything I do is little more than
> blind tinkering.
>
Play around with your USE flags, you'll get it working eventually
(that's what I did).
ufed helps.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Painted into a corner: avahi and mDNSResponder

2008-10-12 Thread Andrey Vul
On Sun, Oct 12, 2008 at 3:51 AM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
> On Sunday 12 October 2008 08:04:22 Volker Armin Hemmann wrote:
>> On Sonntag 12 Oktober 2008, Alan E. Davis wrote:
>> > Almost perpetually, the following packages or their versions are
>> > blocking.  I have run emerge -e system several times.  Some other
>> > problems were cleared up, and this
>> > avahi--mDNSResponder/mdnsresponder-compat whatever it all is, just
>> > keeps coming back even when solved by some skullduggery.  I've removed
>> > both of them at one time or another.
>> >
>> > [blocks B ] net-dns/avahi ("net-dns/avahi" is blocking
>> > net-misc/mDNSResponder-107.6-r5)
>> >
>> > [blocks B ] net-misc/mDNSResponder ("net-misc/mDNSResponder" is
>> > blocking net-dns/avahi-0.6.23)
>> >
>> > I guess the problem is that I am running gnome and also have two or
>> > three different versions/slots of kde installed.  I suppose, then,
>> > it's remarkable that only these blocks are showing up?
>> >
>> > Can someone lend a hand on this?  Anything I do is little more than
>> > blind tinkering.
>> >
>> > Alan
>>
>> set the avahi useflag, unmerge mdnsresponder, emerge avahi.
>
> That looks familiar. I remember similar deep blocks myself - it was nasty at
> the time.
>
> For the OP's benefit, here's a high level summary of what is going on:
>
> Avahi and mDNSResponder implement a system called ZeroConf, first designed by
> Apple. It's a way for machines on a network to find each other and what
> network features they support. These systems are quite low-level so
> unfortunately the implementations are often incompatible.
>
> By and large you will find that Gnome stuff supports Avahi and KDE stuff
> supports mDNSResponder, so the only way out of this mess is often extensive
> use of 'equery hasuse', 'equery depends' and 'emerge -pvt' so see what pulls
> in what. But first you should research what these things are so you can make
> intelligent decisions about what to include and what to drop. The thing that
> cleared it up for me was an interview with the KDE team lead responsible for
> these features - Google will find it for you.
IIRC mdnsresponder-compat USE flags allows use of avahi in KDE (3).
>
> Personally, I find these things more trouble than they are worth. They seem to
> be designed for the "Apple Generation User" (whatever that is), and I have no
> use for that on the networks I work on. ZeroConf is not necessarily something
> you have to have installed...
>
> --
> alan dot mckinnon at gmail dot com
>
>



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] DBus error in solid (kde 4.1 hardware monitoring daemon)

2008-10-14 Thread Andrey Vul
Does anybody know what this error means and how to solve it?
virtual QStringList Solid::Backends::Hal::HalManager::allDevices()
error:  "org.freedesktop.DBus.Error.Disconnected"


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] DBus error in solid (kde 4.1 hardware monitoring daemon)

2008-10-14 Thread Andrey Vul
On Tue, Oct 14, 2008 at 6:39 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
> On Wednesday 15 October 2008 00:19:04 Andrey Vul wrote:
>> Does anybody know what this error means and how to solve it?
>> virtual QStringList Solid::Backends::Hal::HalManager::allDevices()
>> error:  "org.freedesktop.DBus.Error.Disconnected"
>
> Apparently DBus disconnected from ... something

> Not even Google knows what that error is. Please supply some context, maybe
> some USE flags you have enabled and which version of which applicable
> apps/libs you have installed. And a description of what you do just before
> you get that error would be nice.
>
I ran $solid-hardware list details
because I wasn't getting any devices in the "Devices recently pulgged
in" list in the system tray after inserting my USB key.

The package is kde-base/solid-hardware-4.1.2.

emerge --info:
Portage 2.2_rc11 (default/linux/amd64/2008.0, gcc-4.3.2,
glibc-2.8_p20080602-r0, 2.6.26.5-rt9 x86_64)
=
System uname: 
Linux-2.6.26.5-rt9-x86_64-AMD_Turion-tm-_64_Mobile_Technology_ML-34-with-glibc2.2.5
Timestamp of tree: Tue, 07 Oct 2008 23:30:01 +
app-shells/bash: 3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python: 2.4.4-r13, 2.5.2-r8, 2.6-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.3.0
sys-apps/sandbox:1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -mtune=k8 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config
/usr/shutdown /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8 -mtune=k8 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs
protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://adelie.polymtl.ca/
http://mirror.datapipe.net/gentoo
http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.netnitco.net
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
http://gentoo.osuosl.org/ http://cdot.senecac.on.ca/software/gentoo/
ftp://gentoo.cites.uiuc.edu/pub/gentoo/
http://gentoo.mirrors.tds.net/gentoo
http://gentoo.arcticnetwork.ca/source/
http://gentoo.mirrors.tera-byte.com/
http://mirror.usu.edu/mirrors/gentoo/
http://osmirrors.cerias.purdue.edu/pub/gentoo/
http://lug.mtu.edu/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/";
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US ja ru"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/pro-audio
/usr/local/portage/layman/desktop-effects
/usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 64bit 7zip S3TC X Xaw3d a52 aac aalib acct ace
acl acpi aften allegro alsa amarok amd64 amr amrnb amrwb animgif antlr
ao apache2 archive arts audiofile avahi bash-completion battery bcmath
bcp bdf berkdb bidi binary-drivers bittorrent bjam blas blender-game
boost bsf bzip2 c++ cairo canna caps cardbus cdda cddb cdio cdparanoia
cdr cdrom cdsound cgi cgraph charconv chardet chasen chm cjk cli
clucene color-console colordiff cpufreq cracklib crypt cscope css cups
cupsddk curl curlwrappers cvs cxx dbus dc1394 designer-plugin
device-mapper dga dia directfb divx djbfft djvu dmi dri dssi dts dv
dvd dvdr dvdread dvi dynamicplugin ecc emovix enca encode enscript
erandom esd evo exif exiv2 expat extra extras fam fame fastcgi fat
fbcon ffmpeg fftw firefox flac flash flexresp flexresp2 fltk
fluidsynth fontconfig fontforge foomaticdb fortran ftp fuse games gcj
gd gdbm gecko geoip gif gimp ginac git glib glibc-omitfp glitz glsa
glut gmail gmedia gmp gnuplot gnutls gpac gpg gphoto2 gpm gps grammar
graphics graphvizgrub gs gsl gstreamer gtk guile hal hddtemp hdri hfs
history htmlhandbook hunspell iconv id3 id3tag idea idn ieee1394 image
imagemagick imlib inkjar inquisitio int64 ipv6 irc jabber jack
jack-tmpfs java java6 javascript jbig jce jfs jingle john jpeg jpeg2k
kakasi kde kde4 kdehiddenvisibility kerberos kmid ladspa lame lapac

Re: [gentoo-user] DBus error in solid (kde 4.1 hardware monitoring daemon)

2008-10-14 Thread Andrey Vul
On Tue, Oct 14, 2008 at 6:50 PM, Andrey Vul <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 14, 2008 at 6:39 PM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
>> On Wednesday 15 October 2008 00:19:04 Andrey Vul wrote:
>>> Does anybody know what this error means and how to solve it?
>>> virtual QStringList Solid::Backends::Hal::HalManager::allDevices()
>>> error:  "org.freedesktop.DBus.Error.Disconnected"
>>
>> Apparently DBus disconnected from ... somethings
DBus disconnected from hal.

Fixed with $sudo rc-update add hald



Re: [gentoo-user] Does vmware work with 2.6.27?

2008-10-15 Thread Andrey Vul
On Wed, Oct 15, 2008 at 11:09 PM, Adam Carter <[EMAIL PROTECTED]> wrote:
> Or even 2.6.26? I use gentoo-sources.
>
> Presumably I'll have to use ~x86 for vwmare-modules and vwmare-server.
Not the portage one (6.0.5).
You have to download (6.5.0) from vmware.com.
Download vmware-player, run the installer like this:
/path/to/VMWare-Player-6.5.0.18166.i386.bundle --command -x
extract_path
If that doesn't work, run
/path/to/VMWare-Player-6.5.0.18166.i386.bundle --help to get the
arguments.
In the extracted directory, you can find the .tgzs of the module
sources (they also include SuSE, Ubuntu, RedHat, and other binary
versions).
Just extract and compile.


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] broken ALSA

2008-10-25 Thread Andrey Vul
Here's the error from using mplayer on an mp3 file:
[AO_ALSA] alsa-lib: dlmisc.c:118:(snd_dlsym_verify) unable to verify
version for symbol _snd_pcm_asym_open
[AO_ALSA] alsa-lib: pcm.c:2148:(snd_pcm_open_conf) symbol
_snd_pcm_asym_open isnot defined inside [builtin]

Similar output happens in vlc and other players.

I've recompiled alsa-lib about 5 times and the error still persists.
How do I fix this?

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] GMP problem

2008-10-27 Thread Andrey Vul
I'm trying to run Mathematica 6.0.3 but I get a "symbol __gmp_clz_tab
not found" error.
Any ideas?

BTW, Mathematica is GCC3-based (due to usage of libstdc++.so.5).
-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] broken ALSA

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 2:30 AM, M. Sitorus <[EMAIL PROTECTED]> wrote:
> i have the same problem. here is mine :
> http://forums.gentoo.org/viewtopic-t-712862.html
>
> --
> Salam,
>
> Marc
>
>
Apparently asym needs to be the final token in ALSA_PCM_PLUGINS.
I don't know why, but doing that made alsa work again (i.e. the ebuild
recognized ALSA_PCM_PLUGINS contains "asym").


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] no sound

2008-10-28 Thread Andrey Vul
I open mplayer, mpg321, vlc, or flash (youtube) and I have no sound.
ALSA is working.
Hardware is working.
Already did alsaconf + alsamixer.

Any suggestions?

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] no sound

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 3:29 AM, David Sveningsson <[EMAIL PROTECTED]> wrote:
> Andrey Vul skrev:
>> I open mplayer, mpg321, vlc, or flash (youtube) and I have no sound.
>> ALSA is working.
>> Hardware is working.
>> Already did alsaconf + alsamixer.
>>
>> Any suggestions?
>>
>
> Have you unmuted the channels (using alsamixer)? They are muted by default.
Yes, I have.

screenshot of alsamixer:
┌[AlsaMixer v1.0.17 (Press Escape to
quit)]─┐
│ Card: CA0106
 │
│ Chip:
 │
│ View: [Playback] Capture  All
 │
│ Item: IEC958
 │
│
 │
│
 │
│
 │
│
 │
│
 │
│  ┌──┐ ┌──┐  ┌──┐ ┌──┐  ┌──┐ ┌──┐
 ┌──┐ ┌──┐  ┌──┐ │
│  │  │ │  │  │  │ │  │  │  │ │  │
 │  │ │  │  │  │ │
│  │  │ │  │  │  │ │  │  │  │ │  │
 │  │ │  │  │  │ │
│  │  │ │  │  │  │ │  │  │  │ │  │
 │  │ │  │  │  │ │
│  │  │ │  │  │  │ │  │  │  │ │  │
 │  │ │  │  │  │ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│  │▒▒│ │▒▒│  │▒▒│ │▒▒│  │▒▒│ │▒▒│
 │▒▒│ │▒▒│  │▒▒│ │
│┌──┐  └──┘ └──┘  └──┘ └──┘  └──┘ └──┘
 └──┘ └──┘  └──┘ │
││OO│
 │
│└──┘
 │
│ 80<>80   80<>8080<>80   80<>8080<>80   80<>80
80<>80   80<>8080<>80│
│ < IEC958 > IEC958 C IEC958 F  IEC958 R IEC958 U  Analog C Analog F
Analog R Analog S  CAPTURE│
│
 │
│
 │
│
 │
│
     │
└──


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: [gentoo-user] no sound

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 11:42 AM, Nickolay Hodyunya <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 28, 2008 at 03:07:14AM -0400, Andrey Vul wrote:
>> I open mplayer, mpg321, vlc, or flash (youtube) and I have no sound.
>> ALSA is working.
>> Hardware is working.
>> Already did alsaconf + alsamixer.
>>
>> Any suggestions?
> did you forget to connect your headphones?
It's not headphones, it's a 5.1 system and all the connections are
seated tightly. And it's *on*.


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Circular blocks after last night's sync?

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 1:08 PM, James Homuth <[EMAIL PROTECTED]> wrote:
> During an update attempt this afternoon, these little surprises were waiting
> for me. I took a look at the archives, and naturally, google, but all I
> found were lots of the same error, and no information on it/what's broken.
> Anyone else having this particular problem? The block errors are below.
>
> [blocks B ] sys-libs/ss (is blocking sys-libs/e2fsprogs-libs-1.41.2)
>
> [blocks B ]  sys-libs/e2fsprogs-libs-1.41.2)
>
> [blocks B ] sys-libs/com_err (is blocking
> sys-libs/e2fsprogs-libs-1.41.2)
>
> [blocks B ] sys-libs/e2fsprogs-libs (is blocking sys-libs/ss-1.40.9,
> sys-libs/com_err-1.40.9)
>
> This was during an emerge --update world.
Unmerge the old e2fsprogs and emerge the new programs and libs. IIRC
this is not new. I had this happen a few months ago.



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] package.keywords syntax?

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 1:07 PM, Helmut Jarausch
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have
> ACCEPT_KEYWORDS="~amd64"
>
> in /etc/make.conf
> and I want to keep it.
>
> Is it possible to revoke this for whole bunch
> of packages like
> kde-base/*
>
> I've tried the following line in /etc/portage/package.keywords
>
> kde-base/* -~amd64
>
> but it doesn't help.
>
That looks like it'll only work in paludis. You're going to have to
use shell scripting and output a BFList to package.keywords .
Try $eix -C kde-base --only-names | sed -r 's/$/ -~amd64/' | sudo tee
-a /etc/portage/package.keywords



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] package.keywords syntax?

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 1:39 PM, Ricardo Saffi Marques
<[EMAIL PROTECTED]> wrote:
> Andrey Vul wrote:
>> That looks like it'll only work in paludis. You're going to have to
>> use shell scripting and output a BFList to package.keywords .
>> Try $eix -C kde-base --only-names | sed -r 's/$/ -~amd64/' | sudo tee
>> -a /etc/portage/package.keywords
>
> Don't you guys like (or maybe even know) "autounmask"?
You're giving the exact opposite of what was requested in the question.
The relevant part of the question was "Is it possible to *revoke* [the
~amd64 for kde]"

If it was *unmasking*, then yes, I would have mentioned autounmask.
But the OP asked about revoking (unmasks), not unmasking.
If you want to make an automask script that does the work for you, go ahead.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] no sound

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 4:36 PM, Jorge Peixoto de Morais Neto
<[EMAIL PROTECTED]> wrote:
>> I open mplayer, mpg321, vlc, or flash (youtube) and I have no sound.
>> ALSA is working.
>> Hardware is working.
>> Already did alsaconf + alsamixer.
>>
>> Any suggestions?
>
> To be really sure ALSA is working, I suggest you try aplay. Notice
> that aplay is minimalistic, and does not support formats like vorbis
> (AFAIK). Feed a wav to it. Example:
> aplay /usr/share/sounds/alsa/Front_Right.wav
> Both aplay and /usr/share/sounds/alsa/Front_Right.wav come from
> media-sound/alsa-utils
>

Oh.
SPDIF output (IEC958) was unmuted and all the output got routed there.
Muted SPDIF and everything works now.



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] telnet program

2008-10-28 Thread Andrey Vul
On Tue, Oct 28, 2008 at 8:40 PM, kcc <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I want to install telnet client but couldn't find the emerge search
>
emerge search is useless.
Emerge eix, run update-eix, and do eix telnet


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] package.keywords syntax?

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 3:16 AM, Alan McKinnon <[EMAIL PROTECTED]> wrote:
> On Wednesday 29 October 2008 00:55:42 Jorge Peixoto de Morais Neto wrote:
>> >> I mean to really know C,
>> >> that is, read a rigorous book such as "C: A Reference Manual" and be
>> >> able to write portable programs with well-defined behavior. Speaking
>> >> of well-defined behavior, do you know what happens when you cast a
>> >> float to an int, and the float is too big to fit into the int?
>> >
>> > Did oyu try it yourself and see?
>>
>> The point is that the behavior in this situation is "undefined". It
>> might do anything. Programming in C is different than programming in
>> Python.
>
> Most likely the compiler will try to treat the float as an int and use the
> first 4 bytes of the float, ignoring the rest.
Float is 4 bytes; the questions should be reworded s/float/double/g

But somehow, SSE version or fisttp (or whatever) doesn't set CF/OF on
overflow, the returned int is simply (1 << 31) ^ (1 << 31 - 1)
> This is insane though. I cannot think of any reason why one would ever want to
> treat the first 32 bits of a float as an int. It's not like you are casting a
> long to an int which can make sense - just discard the high bits.

> I reckon the standard would say this is undefined. Most compiler would bomb
> out with a compile error but give you an obscure flag to proceed anyway. If
> you want to commit suicide, C is quite happy to pass you the pills as long s
> you ask nicely
gcc does this without errors
Code [x86/64 only]:
#include 
#include 
#include 
int main() {
double f = 1.5e99;
int i = (int)f;
uint16_t z;
asm("pushf; popw %0;" : "=r"(z));
printf("%d %d %d\n", i, (z & (1 << 11)), (z & 1) );
return 0;
}


In short, your mileage shall vary, so sayeth the standard.
> --

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Trying to solve blockage when trying to install kde-meta-4.1.2

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 12:33 PM, Rafael Barrera Oro <[EMAIL PROTECTED]> wrote:
> Hello people, i tried to install kde-meta-4.1.2 and i ran across a few
> problems. The thing is that some packages are blocking packages required for
> the installation
>
> The following is output of portage when displaying the blocking packages
>
> [uninstall] app-crypt/qca-1.0-r2  [?]
> [blocks b ]  app-crypt/qca-2.0.1-r1)
> [blocks B ] <=x11-libs/qt-4.4.0_alpha:4 ("<=x11-libs/qt-4.4.0_alpha:4"
> is blocking x11-libs/qt-script-4.4.2, x11-libs/qt-dbus-4.4.2,
> x11-libs/qt-qt3support-4.4.2, x11-libs/qt-sql-4.4.2, x11-libs/qt-gui-4.4.2,
> x11-libs/qt-svg-4.4.2, x11-libs/qt-test-4.4.2, x11-libs/qt-core-4.4.2,
> x11-libs/qt-webkit-4.4.2, x11-libs/qt-opengl-4.4.2)
> [blocks B ]  media-gfx/sane-backends-1.0.19-r2, media-libs/libgphoto2-2.4.2)

> My usual solution for problems of this kind is to mercilessly unmerge any
> packages that stand in my way, but, considering we are talking about
> packages like qt and udev, i must admit i do not dare to follow my usual
> strategy.
AFAIK, only KDE4 uses Qt 4.
Unmerge x11-libs/qt:4 and emerge the split qt.
Unless you don't have qt installed, then something's weird.

Can you post the output of eix x11-libs/qt -c ?


As long as you don't use USB or any hotplug devices, you can unmerge
and remerge udev at will.

> I guess the paths i can follow are masking some packages or unmerging some
> packages, being confronted by such a decision and unsure of what i should
> do, i decided to seek your advice.
Make backups, then do what you usually do.

-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Trying to solve blockage when trying to install kde-meta-4.1.2

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 1:03 PM, Rafael Barrera Oro <[EMAIL PROTECTED]> wrote:
> Thank you both for your responses, i will try dealing with QT first and then
> emerge udev separately, without any mercilless barbaric
> running-around-barely-dressed-waving-an-axe-around unmerging.
It'll be faster do do udev first. Get it done and over with.
Qt will take 2+ hours to compile.

> I'm gonna miss the sledgehammer though...
I sledgehammer my way through blocks and no problems here :D
> Seroiusly, thanks very much for your help
>
> PD: As soon as i get it done i will tell how the outcome was
>
> 2008/10/29 Alan McKinnon <[EMAIL PROTECTED]>
>>
>> On Wednesday 29 October 2008 18:41:47 Andrey Vul wrote:
>> > > [blocks B ] > > > media-gfx/sane-backends-1.0.19-r2, media-libs/libgphoto2-2.4.2)
>> > >
>> > > My usual solution for problems of this kind is to mercilessly unmerge
>> > > any
>> > > packages that stand in my way, but, considering we are talking about
>> > > packages like qt and udev, i must admit i do not dare to follow my
>> > > usual
>> > > strategy.
>>
>> Instead of unmerging stuff without mercy, taking a sledgehammer to the
>> problem
>> and generally acting like a Windows user, I recommend you read the output
>> and
>> understand what is going on.
>>
>> It clearly says that your *current* version of udev which is less than 114
>> is
>> blocking sane-backends and libgphoto. So, merge udev separately:
>>
>> emerge -av1 udev
I prefer emerge -1pv udev

emerge -1 udev

>> there's no need for udev to go in world, it's already in system. Then
>> emerge
>> world and it will probably work (after you deal with qt that is, but
>> another
>> poster told you how to do that)


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] A question about emerge --info

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 6:53 PM, Paul Hartman
<[EMAIL PROTECTED]> wrote:
> I've always been curious about something in emerge --info's output:
>
> $ emerge --info
> Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2,
> glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64)
> =
> System uname:
> [EMAIL PROTECTED]
> Timestamp of tree: Tue, 28 Oct 2008 00:31:02 +
>
> Why does it show the glibc-2.8 on the second line but glibc2.2.5 on the fifth?

Uname returns only the kernel version string. Why glibc is in there is
beyond me.
However, I'm still using 2.6.26, so it might be a 2.6.27 issue.


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] A question about emerge --info

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 7:09 PM, Andrey Falko <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, Oct 29, 2008 at 3:53 PM, Paul Hartman
> <[EMAIL PROTECTED]> wrote:
>>
>> I've always been curious about something in emerge --info's output:
>>
>> $ emerge --info
>> Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2,
>> glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64)
>> =
>> System uname:
>>
>> [EMAIL PROTECTED]
>> Timestamp of tree: Tue, 28 Oct 2008 00:31:02 +
>>
>> Why does it show the glibc-2.8 on the second line but glibc2.2.5 on the
>> fifth?
>>
>> Thanks,
>> Paul
>>
>
> My best guess is that your kernel was compiled by a toolchain that was
> running on glibc2.2.5
>
> See what happens if you recompile the kernel under the newer toolchain.
>
2.6.27 uses glibc? Really?
I'm asking lkml what's happening.


-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



Re: [gentoo-user] Trying to solve blockage when trying to install kde-meta-4.1.2

2008-10-29 Thread Andrey Vul
On Wed, Oct 29, 2008 at 4:46 PM, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> On Wed, 29 Oct 2008 13:14:34 -0400, Andrey Vul wrote:
>
>> >> emerge -av1 udev
>> I prefer emerge -1pv udev
>> 
>> emerge -1 udev
>
> Which means you have to wait for the dependency resolver to run twice.
> Which is why it's better to use
>
> emerge -1av udev
> look at output
> press enter
I don't like package managers which require interactivity.
emerge -uvDp world | less is easier to parse then emerge -upDa world.
Why? Because I don't have to find a way of transferring  if
less handles all of the keyboard input.
So I prefer two stages:
1) pretend merge  - single verbosity - and look at output
2) actual merge - normal / quiet - and pipe to tee

> --
> Neil Bothwick
>
> If it ain't broke, wait a day or two!!
>



-- 
Andrey Vul

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



  1   2   >