Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers

2010-09-01 Thread Dale

Nikos Chantziaras wrote:

On 09/01/2010 03:38 AM, Dale wrote:

Nikos Chantziaras wrote:

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option "noide" or some other switch I can use?


You do the labeling *before* you switch to the new kernel. Once you
get it working correctly with your current kernel, then you can
upgrade to the new ATA drivers and it will just work (which is the
whole point of this exercise.)



OK. Finally got updated to a new kernel. [...]

Anyway, this did sort of work out to be weird and not what I expected at
all. I expected the drives to be laid out in this way:

sda first drive with old ide
sdb second drive with old ide
sdc third drive with old ide
sdd forth drive with a SATA controller

Well, it actually sees the drive connected to the SATA controller first
then the other drives follow along after that in order.


I mentioned this in a reply :P  Usually SATA drives go first.  
(Emphasis on "usually.")


I must have missed that part.  Of course, I'm not surprised either.  You 
know what they say about "plans"?






Naturally when I
first tried to boot I was pointing to sda6 for my root partition. Well,
it was actually on sdb6. It did list the drives just before the error
and the blinking lights on the keyboard. No scroll back either. :-( I
saw just enough to be able to figure out what drives were what.

Is there some way to get it to change this or am I stuck? My concern is
that I plan to add another drive to the SATA card soon and that will
move everything up another notch. I would really like the IDE drives to
be seen first since I rarely change them.


What exactly is the problem you have?  You can't boot?  You can simply 
hit "Esc" in grub and go to text-only mode, and then "e" to edit the 
current grub boot entry.  There you can boot from somewhere else.





I would like either the old IDE drives to come first, since I rarely 
ever move them or grub to work with labels.  I have a entry in grub.conf 
that uses the labels but i have not rebooted yet.  According to what I 
have read it will work.  The only concern is that if grub doesn't like 
labels and I add another  drive, then I got to edit the grub boot line 
to boot and it took me a couple tries to get this right.  It seeing what 
used to be the last drive first sort of took me by surprise.  I don't 
like surprises to much.


At least I got me a new kernel and I can see the temps and fans in gkrellm.

Dale

:-)  :-)



[gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Arnau Bria
Hi all,

I'd like to install mcollective and developer provides its ebuild.
so I've followed http://en.gentoo-wiki.com/wiki/Overlay for adding a
local overlay.

*I had a problem when adding
"source /usr/local/portage/layman/make.conf" to my make.conf. That file
does not exists and layman has no make.conf file. Anyway, removing that line
and following the other steps makes my ebuilds available to emerge.

so this is my structure:
# ls -R /usr/local/portage/*
/usr/local/portage/dev-ruby:
stomp

/usr/local/portage/dev-ruby/stomp:
ChangeLog  Manifest  stomp-1.1.6.ebuild  stomp-1.1.ebuild

/usr/local/portage/multi-tool:
mcollective

/usr/local/portage/multi-tool/mcollective:
ChangeLog  files  Manifest  mcollective-0.4.7.ebuild  mcollective-0.4.8.ebuild

/usr/local/portage/multi-tool/mcollective/files:
client.cfg.dist.patch  mcollectived.conf  mcollectived.init  
server.cfg.dist.patch

/usr/local/portage/profiles:
repo_name


So now I try to install new package:

# emerge multi-tool/mcollective

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

Calculating dependencies /

!!! Invalid or corrupt dependency specification: 

Conditional without parenthesis: 'server?'

('ebuild', '/', 'multi-tool/mcollective-0.4.8', 'merge')

server? || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) >=dev-lang/ruby-1.8

This package can not be installed. Please notify the 'multi-
tool/mcollective-0.4.8' package maintainer about this problem.
... done!


and it complains about server line.

I've tried to add a parenthesis to that line, and after new digest, it
still complains about that line.


so, anyone with more experience could help me? is there a real problem
with the ebuild? or the problem is mine? (most probable :-) ).

*Instead of pasting ebuild code, I paste download link:

http://code.google.com/p/mcollective/downloads/list


Thanks in advance,

-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity



Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Alex Schuster
Arnau Bria writes:

> I'd like to install mcollective and developer provides its ebuild.
> so I've followed http://en.gentoo-wiki.com/wiki/Overlay for adding a
> local overlay.
> 
> *I had a problem when adding
> "source /usr/local/portage/layman/make.conf" to my make.conf. That file
> does not exists and layman has no make.conf file. Anyway, removing that
> line and following the other steps makes my ebuilds available to
> emerge.

Lyman is a different thing. Nowadays its defaultlocation is 
/var/lib/layman (I think), so to use it you need to source the make.conf 
in this directory. But fr your own overlay, just set the PORTDIR_OVERLAY 
path in /etc/make.conf.

[...]

> !!! Invalid or corrupt dependency specification:
> 
> Conditional without parenthesis: 'server?'
> 
> ('ebuild', '/', 'multi-tool/mcollective-0.4.8', 'merge')
> 
> server? || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 )
> >=dev-lang/ruby-1.8

The '||' looks wrong to me.

Wonko



Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Ian Lee

On 01/09/10 11:21, Arnau Bria wrote:

Hi all,

I'd like to install mcollective and developer provides its ebuild.
so I've followed http://en.gentoo-wiki.com/wiki/Overlay for adding a
local overlay.

*I had a problem when adding
"source /usr/local/portage/layman/make.conf" to my make.conf. That file
does not exists and layman has no make.conf file. Anyway, removing that line
and following the other steps makes my ebuilds available to emerge.

so this is my structure:
# ls -R /usr/local/portage/*
/usr/local/portage/dev-ruby:
stomp

/usr/local/portage/dev-ruby/stomp:
ChangeLog  Manifest  stomp-1.1.6.ebuild  stomp-1.1.ebuild

/usr/local/portage/multi-tool:
mcollective

/usr/local/portage/multi-tool/mcollective:
ChangeLog  files  Manifest  mcollective-0.4.7.ebuild  mcollective-0.4.8.ebuild

/usr/local/portage/multi-tool/mcollective/files:
client.cfg.dist.patch  mcollectived.conf  mcollectived.init  
server.cfg.dist.patch

/usr/local/portage/profiles:
repo_name


So now I try to install new package:

# emerge multi-tool/mcollective

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

Calculating dependencies /

!!! Invalid or corrupt dependency specification:

Conditional without parenthesis: 'server?'

('ebuild', '/', 'multi-tool/mcollective-0.4.8', 'merge')

server? || ( =dev-ruby/stomp-1.1>=dev-ruby/stomp-1.1.6 )>=dev-lang/ruby-1.8

This package can not be installed. Please notify the 'multi-
tool/mcollective-0.4.8' package maintainer about this problem.
... done!


and it complains about server line.

I've tried to add a parenthesis to that line, and after new digest, it
still complains about that line.


so, anyone with more experience could help me? is there a real problem
with the ebuild? or the problem is mine? (most probable :-) ).

*Instead of pasting ebuild code, I paste download link:

http://code.google.com/p/mcollective/downloads/list


Thanks in advance,


Try replacing the DEPEND= line with

DEPEND="server? ( || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) )




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

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

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

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

Plugging them in results in /dev entries like:

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

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

HTH,

David

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

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



Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Jil Larner
Hi,

Le 01/09/2010 12:21, Arnau Bria a écrit :
> so, anyone with more experience could help me? is there a real problem
> with the ebuild? or the problem is mine? (most probable :-) ).

An error was introduced in the latest version of the ebuild.

replace
DEPEND="server? || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 )
with
DEPEND="server? ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 )

as suggested by Alex. Previous version of the ebuild is functionnal, so
emerge -pv =mcollective-0.4.7
works fine.

Btw, you should keep the portage categories in your overlay, so the
mcollective package would be under dev-ruby, not multi-tool. However,
there’s no obligation ;)

Sincerely yours,
Jil





Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Arnau Bria
On Wed, 01 Sep 2010 12:25:03 +0100
Ian Lee wrote:

Hi Ian,

> Try replacing the DEPEND= line with
> 
> DEPEND="server? ( || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) )

fails on manifest:

# ebuild mcollective-0.4.8.ebuild manifest
Error(s) in metadata for 'multi-tool/mcollective-0.4.8':
  DEPEND: server? ( || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) ) 
>=dev-lang/ruby-1.8 )
invalid atom: ''
  RDEPEND: server? ( || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) ) 
>=dev-lang/ruby-1.8 )
invalid atom: ''

Cheers,

-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity



Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Arnau Bria
On Wed, 1 Sep 2010 13:10:03 +0200
Alex Schuster wrote:

> Arnau Bria writes:
Hi Alex,
 
[...]
> Lyman is a different thing. Nowadays its defaultlocation is 
> /var/lib/layman (I think), so to use it you need to source the
> make.conf in this directory. But fr your own overlay, just set the
> PORTDIR_OVERLAY path in /etc/make.conf.
Yep, I only wanted to say that I did not follow all the steps in the
wiki (or that the wiki is out of date). 

> [...]
> 
> > !!! Invalid or corrupt dependency specification:
> > 
> > Conditional without parenthesis: 'server?'
> > 
> > ('ebuild', '/', 'multi-tool/mcollective-0.4.8', 'merge')
> > 
> > server? || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 )
> > >=dev-lang/ruby-1.8
> 
> The '||' looks wrong to me.
I removed them and now it works... let's see how ends the comilation.


>   Wonko
Thanks Wonko!
 


-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity



Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Neil Bothwick
On Wed, 01 Sep 2010 14:17:11 +0200, Jil Larner wrote:

> Btw, you should keep the portage categories in your overlay, so the
> mcollective package would be under dev-ruby, not multi-tool. However,
> there’s no obligation ;)

As long as you don't mind portage complaining about it. If you want to
use a custom category, add it to /etc/portage/categories.


-- 
Neil Bothwick

Top Oxymorons Number 22: Childproof


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Output of "emerge -NDpvu world"

2010-09-01 Thread Neil Bothwick
On Mon, 30 Aug 2010 23:23:03 +0200, Harm Geerts wrote:

> I've never understood why distro's still bother with more, it's so 
> impractical.

Lowest common denominator. Like vi, it may be crap but all Linux installs
are expected to have it.


-- 
Neil Bothwick

Love is grand. Divorce is a few grand more.


signature.asc
Description: PGP signature


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

2010-09-01 Thread Neil Bothwick
On Tue, 31 Aug 2010 21:33:01 +0200, Pau Peris wrote:

> Hi, thanks a lot for the answers. The name of the rules file is
> 00_whatever.rules, as far as i know there's also an option which
> prevents to modifye the setted rules.

PARAM:=value

The colon says don't let a subsequent rule change this.


-- 
Neil Bothwick

Biology is the only science in which multiplication means the same thing
as division.


signature.asc
Description: PGP signature


Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Arnau Bria
On Wed, 1 Sep 2010 14:32:45 +0100
Neil Bothwick wrote:

> On Wed, 01 Sep 2010 14:17:11 +0200, Jil Larner wrote:
> 
> > Btw, you should keep the portage categories in your overlay, so the
> > mcollective package would be under dev-ruby, not multi-tool.
> > However, there’s no obligation ;)
> 
> As long as you don't mind portage complaining about it. If you want to
> use a custom category, add it to /etc/portage/categories.
Yep, I saw an error and added my category there. Not mentioned as I did
not see a problem on it. Anyway, going to change to dev-ruby and follow
the standard :-)

thanks to both,
Cheers,


-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity



Re: [gentoo-user] Output of "emerge -NDpvu world"

2010-09-01 Thread econti

Volker Armin Hemmann ha scritto:

On Monday 30 August 2010, econti wrote:
  

Hi all
is it possible to page the output of "emerge -NDpvu world" in a terminal?
'emerge -NDpvu world | more' does not work.

emilio



works with less...


  

Not for me! :-(

Bye
emilio




[gentoo-user] Overlay server down

2010-09-01 Thread Al
Can't reach overlays.gentoo.org alias pelican.gentoo.org. Is the server down?

Alternatives?

Al



Re: [gentoo-user] Overlay server down

2010-09-01 Thread Dale

Al wrote:

Can't reach overlays.gentoo.org alias pelican.gentoo.org. Is the server down?

Alternatives?

Al


   


Someone on another list said they were down possibly from a power 
failure.  I had trouble with the forums a bit ago.  It was only a few 
minutes but not sure they are related.


Dale

:-)  :-)



Re: [gentoo-user] Thunderbird and IMAP folders

2010-09-01 Thread Andrea Conti
Hi,

I routinely use thunderbird to access mail on a cyrus IMAP server with
very large folders (thousands of archived messages).

IMAP support in the 3.1 series seems quite stable to me (whereas 2.x had
frequent problems with folder indexes and 3.0.x tended to hang randomly
while performing server operations)

The only problem I can think of is that if you have used the default
settings for the message search feature, thunderbird will attempt to
build a full-text search index by downloading every message on the
server (body included) when it is first run. Thunderbird will try
downloading messages from multiple folders in parallel, which might
cause a hign load on the server resulting in substantial delays when
listing folder contents.

If thunderbird is indexing messages (look at the progress indicator on
the status bar), try leaving it alone until it is done -- it's a
one-time process.

If, on the other hand, everything is idle, I'm sorry but I have no idea.

HTH,

andrea



Re: [gentoo-user] OT: External sound card

2010-09-01 Thread Florian Philipp
Am 22.08.2010 13:59, schrieb Florian Philipp:
> Hi list!
> 
> I'm looking for an external sound card with USB, Firewire or ExpressCard
> connector. It must not be professional equipment - just something with a
> working SPDIF output (optical preferred). If the card can be hot-plugged
> and unplugged without ALSA choking on it - even better.
> 
> Any recommendations?
> 
> Thanks in advance!
> Florian Philipp
> 

Just as a follow-up:
I ordered a Terratec Aureon Dual USB.
It works out-of-the-box with the generic USB audio driver snd_usb_audio.
SPDIF works without further configuration, too.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] problems adding local overlay and ebuild

2010-09-01 Thread Ian Lee

On 01/09/10 13:57, Arnau Bria wrote:

On Wed, 01 Sep 2010 12:25:03 +0100
Ian Lee wrote:

Hi Ian,


Try replacing the DEPEND= line with

DEPEND="server? ( || ( =dev-ruby/stomp-1.1>=dev-ruby/stomp-1.1.6 ) )


fails on manifest:

# ebuild mcollective-0.4.8.ebuild manifest
Error(s) in metadata for 'multi-tool/mcollective-0.4.8':
   DEPEND: server? ( || ( =dev-ruby/stomp-1.1>=dev-ruby/stomp-1.1.6 ) 
)>=dev-lang/ruby-1.8 )
 invalid atom: ''
   RDEPEND: server? ( || ( =dev-ruby/stomp-1.1>=dev-ruby/stomp-1.1.6 ) 
)>=dev-lang/ruby-1.8 )
 invalid atom: ''

Cheers,


Oops may bad. I missed off the last dependency

Should read

DEPEND=">=dev-lang/ruby-1.8
server? ( || ( =dev-ruby/stomp-1.1 >=dev-ruby/stomp-1.1.6 ) )"



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Aniruddha
On Tuesday 31 August 2010 20:30:55 Mick wrote:
> > But this is apparently not the proper way, because after
> > restarting the server, apache does not show my web-page
> > reporting there is no such a database. I checked it with
> > phpmyadmin, and really, there is absolutely no database
> > in mysql!
> > 
> > I quickly restored backup version which I have done just
> > before trying mysql-update, so my web-site is up and running.
> > Now I would like to update mysql the right way, I but do not
> > know how to do it...
> 
> Hi Jarry,
> 
> Some years ago I ran into some similar problem, I can't recall exactly
> what. Lost in folklore (wiki?) were some instructions to first stop mysql
> before you update it and I have been following them since.
> 
> I stop apach & mysql, run the update,  dispatch-conf and then restart them
> both.  Haven't had problems since.
> 
> There may be a better way for doing this - in which case others who know
> better will hopefully chime in.

I'm curious as well. Imo it shouldn't be necessary to stop mysql server for 
each update.



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Mick
2010/9/1 Aniruddha :
> On Tuesday 31 August 2010 20:30:55 Mick wrote:
>> > But this is apparently not the proper way, because after
>> > restarting the server, apache does not show my web-page
>> > reporting there is no such a database. I checked it with
>> > phpmyadmin, and really, there is absolutely no database
>> > in mysql!
>> >
>> > I quickly restored backup version which I have done just
>> > before trying mysql-update, so my web-site is up and running.
>> > Now I would like to update mysql the right way, I but do not
>> > know how to do it...
>>
>> Hi Jarry,
>>
>> Some years ago I ran into some similar problem, I can't recall exactly
>> what. Lost in folklore (wiki?) were some instructions to first stop mysql
>> before you update it and I have been following them since.
>>
>> I stop apach & mysql, run the update,  dispatch-conf and then restart them
>> both.  Haven't had problems since.
>>
>> There may be a better way for doing this - in which case others who know
>> better will hopefully chime in.
>
> I'm curious as well. Imo it shouldn't be necessary to stop mysql server for
> each update.

Actually, this problem may be more sinister ... a bug?

I also updated to the latest stable and as soon as I tried to restart
apache I got:
=
# /etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 155 of /etc/apache2/httpd.conf: Syntax error on
line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
/usr/lib/apache2/modules/libphp5.so into server: libmysqlclient.so.15: cannot
open shared object file: No such file or directory
=

What the ... ?

Line 155 of my /etc/apache2/httpd.conf says:

Include /etc/apache2/modules.d/*.conf

Line 4 of /etc/apache2/modules.d/70_mod_php5.conf, says:

LoadModule php5_modulemodules/libphp5.so

Also, I seem to have modules/libphp5.so and is world readable:

$ ls -la /usr/lib/apache2/modules/libphp5.so
-rw-r--r-- 1 root root 5720576 Aug 13 20:09 /usr/lib/apache2/modules/libphp5.so


I am downgrading now before a lynch mob arrives, but has anyone else
run into this problem?

PS. I'm running www-servers/apache-2.2.16
-- 
Regards,
Mick



[gentoo-user] Re: Output of "emerge -NDpvu world"

2010-09-01 Thread walt

On 09/01/2010 06:38 AM, econti wrote:

Volker Armin Hemmann ha scritto:

On Monday 30 August 2010, econti wrote:

Hi all
is it possible to page the output of "emerge -NDpvu world" in a terminal?
'emerge -NDpvu world | more' does not work.

emilio


works with less...



Not for me! :-(


Hm.  Works for with either more or less.

What do you see if you do "emerge -p system | more" ?




Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Dale

Mick wrote:

2010/9/1 Aniruddha:
   

On Tuesday 31 August 2010 20:30:55 Mick wrote:
 

But this is apparently not the proper way, because after
restarting the server, apache does not show my web-page
reporting there is no such a database. I checked it with
phpmyadmin, and really, there is absolutely no database
in mysql!

I quickly restored backup version which I have done just
before trying mysql-update, so my web-site is up and running.
Now I would like to update mysql the right way, I but do not
know how to do it...
 

Hi Jarry,

Some years ago I ran into some similar problem, I can't recall exactly
what. Lost in folklore (wiki?) were some instructions to first stop mysql
before you update it and I have been following them since.

I stop apach&  mysql, run the update,  dispatch-conf and then restart them
both.  Haven't had problems since.

There may be a better way for doing this - in which case others who know
better will hopefully chime in.
   

I'm curious as well. Imo it shouldn't be necessary to stop mysql server for
each update.
 

Actually, this problem may be more sinister ... a bug?

I also updated to the latest stable and as soon as I tried to restart
apache I got:
=
# /etc/init.d/apache2 start
  * apache2 has detected an error in your setup:
apache2: Syntax error on line 155 of /etc/apache2/httpd.conf: Syntax error on
line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
/usr/lib/apache2/modules/libphp5.so into server: libmysqlclient.so.15: cannot
open shared object file: No such file or directory
=

What the ... ?

Line 155 of my /etc/apache2/httpd.conf says:

Include /etc/apache2/modules.d/*.conf

Line 4 of /etc/apache2/modules.d/70_mod_php5.conf, says:

LoadModule php5_modulemodules/libphp5.so

Also, I seem to have modules/libphp5.so and is world readable:

$ ls -la /usr/lib/apache2/modules/libphp5.so
-rw-r--r-- 1 root root 5720576 Aug 13 20:09 /usr/lib/apache2/modules/libphp5.so


I am downgrading now before a lynch mob arrives, but has anyone else
run into this problem?

PS. I'm running www-servers/apache-2.2.16
   


I'm no expert on this package so take this with a grain of salt.  Mine 
just updated and portage said to run "emerge @preserved-rebuild" which I 
did.  Thing is, one of the packages failed to emerge so here I sit.  The 
error says something is missing which is the same reason the "emerge 
@preserved-rebuild" won't finish.


So, looks like you need to rebuild some stuff but don't hold your breath 
on being able to.  There is a thread on the forums already if you want 
to monitor it.


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

Dale

:-)  :-)



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Alan McKinnon
Apparently, though unproven, at 22:15 on Wednesday 01 September 2010, Mick did 
opine thusly:

> 2010/9/1 Aniruddha :
> > On Tuesday 31 August 2010 20:30:55 Mick wrote:
> >> > But this is apparently not the proper way, because after
> >> > restarting the server, apache does not show my web-page
> >> > reporting there is no such a database. I checked it with
> >> > phpmyadmin, and really, there is absolutely no database
> >> > in mysql!
> >> > 
> >> > I quickly restored backup version which I have done just
> >> > before trying mysql-update, so my web-site is up and running.
> >> > Now I would like to update mysql the right way, I but do not
> >> > know how to do it...
> >> 
> >> Hi Jarry,
> >> 
> >> Some years ago I ran into some similar problem, I can't recall exactly
> >> what. Lost in folklore (wiki?) were some instructions to first stop
> >> mysql before you update it and I have been following them since.
> >> 
> >> I stop apach & mysql, run the update,  dispatch-conf and then restart
> >> them both.  Haven't had problems since.
> >> 
> >> There may be a better way for doing this - in which case others who know
> >> better will hopefully chime in.
> > 
> > I'm curious as well. Imo it shouldn't be necessary to stop mysql server
> > for each update.
> 
> Actually, this problem may be more sinister ... a bug?
> 
> I also updated to the latest stable and as soon as I tried to restart
> apache I got:
> =
> # /etc/init.d/apache2 start
>  * apache2 has detected an error in your setup:
> apache2: Syntax error on line 155 of /etc/apache2/httpd.conf: Syntax error
> on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load
> /usr/lib/apache2/modules/libphp5.so into server: libmysqlclient.so.15:
> cannot open shared object file: No such file or directory
> =
> 
> What the ... ?
> 
> Line 155 of my /etc/apache2/httpd.conf says:
> 
> Include /etc/apache2/modules.d/*.conf
> 
> Line 4 of /etc/apache2/modules.d/70_mod_php5.conf, says:
> 
> LoadModule php5_modulemodules/libphp5.so
> 
> Also, I seem to have modules/libphp5.so and is world readable:
> 
> $ ls -la /usr/lib/apache2/modules/libphp5.so
> -rw-r--r-- 1 root root 5720576 Aug 13 20:09
> /usr/lib/apache2/modules/libphp5.so
> 
> 
> I am downgrading now before a lynch mob arrives, but has anyone else
> run into this problem?
> 
> PS. I'm running www-servers/apache-2.2.16


You got so close to the real answer, just one more step :-)

$ ldd /usr/lib64/apache2/modules/libphp5.so | grep mysql
libmysqlclient_r.so.16 => /usr/lib64/mysql/libmysqlclient_r.so.16 
(0x7f185d528000)

Think this through: you have a complex piece of software with it's config in 
memory. A library that uses a library uses a library. Then you remove that 
last library and replace it with version x+1.

How do you expect the library in the middle of the chain to know about that? 
Via magic? Voodoo? Some automatic-check-if-stuff-changed-cron-job?

No, you just simply restart services that use things that changed, especially 
if they used (then closed) the file you just changed.

You might also need revdep-rebuild to get everything back 100%. It's all just 
situation-normal for a source based distro. Nothing you can, or should, try to 
"fix".


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: "hotplugging" usb devices no longer working

2010-09-01 Thread walt

On 08/30/2010 01:49 PM, Allan Gottlieb wrote:

I have a sansa MP3 player and a Flip Video.  Each plugs in as a usb
device and presents as a fat file system.

Both used to work, but don't today (it is has been a while--few
months--since I last plugged them in.


Do the devices show up in dmesg like this?

usb 1-4: new high speed USB device using ehci_hcd and address 3
usb 1-4: New USB device found, idVendor=0d7d, idProduct=1600
usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-4: Product: USB DISK 20X
usb 1-4: Manufacturer:
usb 1-4: SerialNumber: 074C0D9337A9
scsi6 : usb-storage 1-4:1.0
scsi 6:0:0:0: Direct-Access  USB DISK 20X PMAP PQ: 0 ANSI: 0 CCS
sd 6:0:0:0: Attached scsi generic sg3 type 0
sd 6:0:0:0: [sdc] 246272 512-byte logical blocks: (126 MB/120 MiB)
sd 6:0:0:0: [sdc] Write Protect is off
sd 6:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 6:0:0:0: [sdc] Assuming drive cache: write through
sd 6:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 6:0:0:0: [sdc] Assuming drive cache: write through
sd 6:0:0:0: [sdc] Attached SCSI removable disk






Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Alex Schuster
Dale writes:

> I'm no expert on this package so take this with a grain of salt.  Mine
> just updated and portage said to run "emerge @preserved-rebuild" which
> I did.  Thing is, one of the packages failed to emerge so here I sit. 
> The error says something is missing which is the same reason the
> "emerge @preserved-rebuild" won't finish.
> 
> So, looks like you need to rebuild some stuff but don't hold your
> breath on being able to.  There is a thread on the forums already if
> you want to monitor it.

I think it's not an urgent problem when this happens. With portage 2.2 and 
the preserve-libs FEATURE, old libraries are not deleted when an update 
installs new, incompatible library. This happens when emerge @preserved-
rebuild has finished rebuilding all packages using the old library, so 
they now use the new one.

Without this feature, the old library is deleted after the update, and you 
need to use revdep-rebuild to rebuild all the stuff that uses the no 
longer existing library. I always thought of this as a big problem with 
Gentoo, and it's great that it no lonoger is.

Wonko



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Tanstaafl
On 2010-09-01 5:18 PM, Alex Schuster  wrote:
> I think it's not an urgent problem when this happens. With portage
> 2.2 and the preserve-libs FEATURE,

You are assuming everyone runs unstable portage??



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Mick
On Wednesday 01 September 2010 22:25:39 Tanstaafl wrote:
> On 2010-09-01 5:18 PM, Alex Schuster  wrote:
> > I think it's not an urgent problem when this happens. With portage
> > 2.2 and the preserve-libs FEATURE,
> 
> You are assuming everyone runs unstable portage??

I'm running vanilla here, so will run revdep-rebuild when I get a minute.  
Until then I downgraded, because I was being shouted at ...  O_O
-- 
Regards,
Mick


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


Re: [gentoo-user] Output of "emerge -NDpvu world"

2010-09-01 Thread Kevin O'Gorman
On Mon, Aug 30, 2010 at 9:18 AM, econti  wrote:

> Hi all
> is it possible to page the output of "emerge -NDpvu world" in a terminal?
> 'emerge -NDpvu world | more' does not work.
>
> emilio
>
> You can run it under "script" and it recrods everything to a file, and look
at the file however you like.

If using less(1) or more(1), I would do it this way
   emerge -NDpvu world 2>&1 | less
under the bash shell.

There are a lot of advantages to less, but perhaps the most important is
that you can scroll backwards if you've gone too far -- you don't have to
start over.

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Output of "emerge -NDpvu world"

2010-09-01 Thread Kevin O'Gorman
On Mon, Aug 30, 2010 at 9:33 AM, Paul Hartman

> wrote:

> On Mon, Aug 30, 2010 at 11:18 AM, econti  wrote:
> > Hi all
> > is it possible to page the output of "emerge -NDpvu world" in a terminal?
> > 'emerge -NDpvu world | more' does not work.
>
> If you use screen you can then use the scrollback it provides
>
> Or adjust your terminal preferences to have a lot of scrollback room.  The
defaults tend to be in the range of 0 to 500 lines.  I often set the value
to 30,000 or more, with no noticeable bad effects.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Output of "emerge -NDpvu world"

2010-09-01 Thread Dale

Kevin O'Gorman wrote:
On Mon, Aug 30, 2010 at 9:33 AM, Paul Hartman 
> wrote:


On Mon, Aug 30, 2010 at 11:18 AM, econti mailto:contiemi...@alice.it>> wrote:
> Hi all
> is it possible to page the output of "emerge -NDpvu world" in a
terminal?
> 'emerge -NDpvu world | more' does not work.

If you use screen you can then use the scrollback it provides

Or adjust your terminal preferences to have a lot of scrollback room.  
The defaults tend to be in the range of 0 to 500 lines.  I often set 
the value to 30,000 or more, with no noticeable bad effects.



--
Kevin O'Gorman, PhD



Hmmm, whatever you set it to, you will be a few lines short.  The error 
will always be just above what you can scroll back to.  lol


Dale

:-)  :-)



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Alex Schuster
Tanstaafl writes:

> On 2010-09-01 5:18 PM, Alex Schuster  wrote:
> > I think it's not an urgent problem when this happens. With portage
> > 2.2 and the preserve-libs FEATURE,
> 
> You are assuming everyone runs unstable portage??

No, but I replied to Dale, and he apparently does.

Wonko



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread Dale

Alex Schuster wrote:

Tanstaafl writes:

   

On 2010-09-01 5:18 PM, Alex Schuster  wrote:
 

I think it's not an urgent problem when this happens. With portage
2.2 and the preserve-libs FEATURE,
   

You are assuming everyone runs unstable portage??
 

No, but I replied to Dale, and he apparently does.

Wonko


   


I do run unstable portage.  My point was that the upgrade breaks a 
dependency and that the dependency won't complete the compile process.  
So, if a person has not yet upgraded, you may be wise to wait until this 
gets fixed.


This would be good advice regardless of what version of portage a person 
is using.


Dale

:-)  :-)



Re: [gentoo-user] Output of "emerge -NDpvu world"

2010-09-01 Thread Peter Humphrey
On Wednesday 01 September 2010 23:39:25 Dale wrote:

> Hmmm, whatever you set it to, you will be a few lines short.  The
> error will always be just above what you can scroll back to.  lol

So you've noticed that too, eh?

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



[gentoo-user] Contest: Gentoo Prefix on Cygwin

2010-09-01 Thread Al
Do you understand the idea of Java -- having a common runtime layer to
run your program on any OS? But the Java is limited to Java. Cygwin on
the other hand brings the whole Posix environmet to windows.  But then
the Cygwin administration tool is limited to windows.

The answer from Gentoo Prefix: Take it and run it anywhere. Compile
your binaries yourself with Emerge administration tool -- for any OS.
There is still one missing link. While Gentoo prefix already runs on
enterprise versions of windows by use of Interix, it is not available
for the common user.

Let's start a contest to bring Gentoo Prefix to the masses! Be the
first human ever who sucessfully runs a fullblown Gentoo Prefix on
Cygwin!

I have done the initial research to prove that this is possible. You
find the basic instructions here:
http://en.gentoo-wiki.com/wiki/Prefix/Cygwin. Now the race is open be
the first one, who really does it. There are still some quests to be
resolved by you.

Your mission: Sucessfully run "emerge -e system" on Cygwin!

Intersted to take part in the conetst? Then send an answer to this
posting. Hope to find some people to  join in and have fun.

Al



Re: [gentoo-user] Proper way of updating mysql from 5.0.90-r2 to 5.1.50?

2010-09-01 Thread kashani

On 9/1/2010 1:00 PM, Aniruddha wrote:

On Tuesday 31 August 2010 20:30:55 Mick wrote:

But this is apparently not the proper way, because after
restarting the server, apache does not show my web-page
reporting there is no such a database. I checked it with
phpmyadmin, and really, there is absolutely no database
in mysql!

I quickly restored backup version which I have done just
before trying mysql-update, so my web-site is up and running.
Now I would like to update mysql the right way, I but do not
know how to do it...


Hi Jarry,

Some years ago I ran into some similar problem, I can't recall exactly
what. Lost in folklore (wiki?) were some instructions to first stop mysql
before you update it and I have been following them since.

I stop apach&  mysql, run the update,  dispatch-conf and then restart them
both.  Haven't had problems since.

There may be a better way for doing this - in which case others who know
better will hopefully chime in.


I'm curious as well. Imo it shouldn't be necessary to stop mysql server for
each update.



	I did in place upgrades from 5.0.12 or so on up to 5.0.77 or so. You're 
unlikely to have problems upgrading Mysql within 5.0.x. If you're moving 
up to 5.1, I would definitely stop inserts into Mysql, dump mysql, stop 
mysql, make a copy of /var/lib/mysql just in case, then upgrade to 5.1. 
Mysql should be able to upgrade your database in place, but it might 
not. If mysql-update doesn't work, importing a dumb is the most reliable 
way to get your data into 5.1.
	As other people have pointed out you'll need to revdep-rebuild or 
preserve the older client libs.


kashani