Re: [gentoo-user] Per-package splitdebug FEATURE

2011-08-22 Thread Yohan Pereira
On Tuesday 23 Aug 2011 03:17:41 Leonardo Guilherme wrote:
> I wonder if there's a way to active features to some specific
> packages, just like USE flags.

Yes i think you can use /etc/portage/env for something like this 
for eg 
if you want to enable it for amarok 
create a file /etc/portage/env/media-sound/amarok 
with the contents 

CFLAGS="-march=core2 -O1 -g"
CXXFLAGS="${CFLAGS}"

FEATURES="splitdebug"

MAKEOPTS="-j3"


-- 

- Yohan Pereira

"A man can do as he will, but not will as he will" - Schopenhauer

[gentoo-user] Re: Per-package splitdebug FEATURE

2011-08-22 Thread Nikos Chantziaras

On 08/23/2011 09:17 AM, Leonardo Guilherme wrote:

Hi.

I've turned on splitdebug feature (and -ggdb in CFLAGS) so debug
information are saved and I can debug anything that crashes. I went to
/usr/lib/debug, just out of curiosity, to see how much space was taken
and I found that it was almost 2GB, which chromium + firefox adds up
1.5GB and python gets another 0.3. I would like to disable splitdebug
for these specific packages now and in the future, so removing
splitdebug from features, re-emerging them and then activating
splitdebug again won't quite cut.

I wonder if there's a way to active features to some specific
packages, just like USE flags.


There is.  And it's a very powerful one even.  First, remove -ggdb (I 
use just -g though; if you don't need the extra info -ggdb gives, plain 
-g will save you some space and time) from your CFLAGS and splitdebug 
from your FEATURES in make.conf.  Then, create a file:


  /etc/portage/env/splitdebug.conf

with the following contents:

  CFLAGS="${CFLAGS} -ggdb"
  CXXFLAGS="${CXXFLAGS} -ggdb"
  FEATURES="${FEATURES} splitdebug"

Now, in /etc/portage/package.env, you can "execute" splitdebug.conf for 
the packages you want.  My package.env for example looks like:


  sys-libs/glibc splitdebug.conf
  media-libs/mesa splitdebug.conf
  kde-base/kdelibs splitdebug.conf
  kde-base/kwin splitdebug.conf

The result is that, for example, when glibc is emerged, splitdebug.conf 
is executed which adds -ggdb to CFLAGS and CXXFLAGS (do not forget 
CXXFLAGS!) and splitdebug to FEATURES.


As you can guess, you can create arbitrary .conf files like this; it 
isn't in any way specific to splitdebug.





Re: [gentoo-user] systemd

2011-08-22 Thread Joost Roeleveld
On Monday, August 22, 2011 11:09:02 PM Stefan G. Weichinger wrote:
> Am 22.08.2011 20:29, schrieb Stefan G. Weichinger:
> > update: edited the example in the gentoo-wiki now.
> 
> replying to myself once more, which makes it feel more like a wiki or
> blog than a mailing-list ;-)

There wasn't much to add. You provided a solution and the only reply I could 
come up with "Well done" would sound condescending. Which is why I decided not 
to.

> additional thoughts:
> 
> * as there is readahead-support in systemd I assume I could get rid of
> preload:
> 
> http://packages.gentoo.org/package/sys-apps/preload?arches=all
> 
> As it isn't maintained actively anymore it maybe isn't of much use
> anymore anyway?

I don't tend to use preload. Is it usefull in a non-systemd environment?

> As there is no related service-file for preload here, it is deactivated
> for now anyway (as long as I choose the systemd-using GRUB-line).
> 
> * remember those cgroup-hacks back then?
> 
> http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups
> 
> Is that stuff still valid?

Maybe, if you want to group stuff you're running yourself into seperate 
groups. The different services are grouped already.

> With systemd the whole use of cgroups changes fundamentally, I don't
> have the knowledge to decide if to use both in parallel.
> 
> For now I disabled the stuff from the wiki (stop sourcing
> /etc/bash/local/cgrouprc) as it only gives me warnings ...

What kind of warnings? Systemd already mounts the filesystem for it and starts 
poulating it. If your script does similar things, they might try to duplicate 
work?

> * found this blog-entry against systemd:
> 
> http://monolight.cc/2011/05/the-systemd-fallacy/
> 
> I agree, it might be more useful on desktops ... so far I am still
> exploring and learning to get to the point to make a decision where and
> if to use.

I think it is more useful on desktops and laptops, which get rebooted 
regularly. On a server that tends to run for months without a reboot, a fast 
init-system is important.

And I don't really see the point of D-BUS on a server either. All the services 
that need to talk to each other already have working communication paths.

I do intend to implement it on my desktop and netbook as I'd like to have 
those booting as fast as possible.

--
Joost



Re: [gentoo-user] systemd

2011-08-22 Thread Joost Roeleveld
On Monday, August 22, 2011 11:09:02 PM Stefan G. Weichinger wrote:
> Am 22.08.2011 20:29, schrieb Stefan G. Weichinger:
> > update: edited the example in the gentoo-wiki now.
> 
> replying to myself once more, which makes it feel more like a wiki or
> blog than a mailing-list ;-)

There wasn't much to add. You provided a solution and the only reply I could 
come up with "Well done" would sound condescending. Which is why I decided not 
to.

> additional thoughts:
> 
> * as there is readahead-support in systemd I assume I could get rid of
> preload:
> 
> http://packages.gentoo.org/package/sys-apps/preload?arches=all
> 
> As it isn't maintained actively anymore it maybe isn't of much use
> anymore anyway?

I don't tend to use preload. Is it usefull in a non-systemd environment?

> As there is no related service-file for preload here, it is deactivated
> for now anyway (as long as I choose the systemd-using GRUB-line).
> 
> * remember those cgroup-hacks back then?
> 
> http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups
> 
> Is that stuff still valid?

Maybe, if you want to group stuff you're running yourself into seperate 
groups. The different services are grouped already.

> With systemd the whole use of cgroups changes fundamentally, I don't
> have the knowledge to decide if to use both in parallel.
> 
> For now I disabled the stuff from the wiki (stop sourcing
> /etc/bash/local/cgrouprc) as it only gives me warnings ...

What kind of warnings? Systemd already mounts the filesystem for it and starts 
poulating it. If your script does similar things, they might try to duplicate 
work?

> * found this blog-entry against systemd:
> 
> http://monolight.cc/2011/05/the-systemd-fallacy/
> 
> I agree, it might be more useful on desktops ... so far I am still
> exploring and learning to get to the point to make a decision where and
> if to use.

I think it is more useful on desktops and laptops, which get rebooted 
regularly. On a server that tends to run for months without a reboot, a fast 
init-system is important.

And I don't really see the point of D-BUS on a server either. All the services 
that need to talk to each other already have working communication paths.

I do intend to implement it on my desktop and netbook as I'd like to have 
those booting as fast as possible.

--
Joost



[gentoo-user] Per-package splitdebug FEATURE

2011-08-22 Thread Leonardo Guilherme
Hi.

I've turned on splitdebug feature (and -ggdb in CFLAGS) so debug
information are saved and I can debug anything that crashes. I went to
/usr/lib/debug, just out of curiosity, to see how much space was taken
and I found that it was almost 2GB, which chromium + firefox adds up
1.5GB and python gets another 0.3. I would like to disable splitdebug
for these specific packages now and in the future, so removing
splitdebug from features, re-emerging them and then activating
splitdebug again won't quite cut.

I wonder if there's a way to active features to some specific
packages, just like USE flags.

Thank you.

-- 

Leonardo



Re: [gentoo-user] Hoping someone can help explain distcc to me

2011-08-22 Thread Bill Longman
On 08/22/2011 01:41 PM, Alex Schuster wrote:
>>> > > I don't think this is true - as long as the CHOST is identical, there
>>> > > should be no problem.
>> > 
>> > CHOST defines the arch (i686, amd64, arm ..) whilst CFLAGS control gcc
>> > behavior and the binary code generation produced by compiler. in my case
>> > core2quad (q8300) i'm using in the desktop supports sse4.1 instruction
>> > set and notebook powered with core2duo (t7600) does not have that cpu
>> > feature. having option `-msse4.1' set in CFLAGS at desktop side will
>> > causes frequent compilation failures (initiated by distcc) or, in worst
>> > case - arbitrary crashes at notebook when running binaries compiled in
>> > distributed distcc environment
> But how could the gcc on the desktop, called via distcc, even see the CFLAGS 
> in the desktops make.conf? This just cannot be.
> I have been using march=athlon-xp on my desktop, and yet used it as distcc 
> server for my Pentium-III notebook for years. Worked fine.

The arguments sent to gcc tell it what kind of object gcc is supposed to
create. If gcc cannot create the object you request because it's not the
right "kind" of gcc, implies that, within the same gcc version, it is
unable to reproduce object files.



Re: [gentoo-user] Hoping someone can help explain distcc to me

2011-08-22 Thread Bill Longman
On 08/22/2011 01:41 PM, Alex Schuster wrote:
>>> > > I don't think this is true - as long as the CHOST is identical, there
>>> > > should be no problem.
>> > 
>> > CHOST defines the arch (i686, amd64, arm ..) whilst CFLAGS control gcc
>> > behavior and the binary code generation produced by compiler. in my case
>> > core2quad (q8300) i'm using in the desktop supports sse4.1 instruction
>> > set and notebook powered with core2duo (t7600) does not have that cpu
>> > feature. having option `-msse4.1' set in CFLAGS at desktop side will
>> > causes frequent compilation failures (initiated by distcc) or, in worst
>> > case - arbitrary crashes at notebook when running binaries compiled in
>> > distributed distcc environment
> But how could the gcc on the desktop, called via distcc, even see the CFLAGS 
> in the desktops make.conf? This just cannot be.
> I have been using march=athlon-xp on my desktop, and yet used it as distcc 
> server for my Pentium-III notebook for years. Worked fine.




Re: [gentoo-user] [Apache HTTPD] Why doesn't my RewriteRule fire?

2011-08-22 Thread Hilco Wijbenga
On 22 August 2011 14:31, Paul Hartman  wrote:
> On Mon, Aug 22, 2011 at 4:07 PM, Hilco Wijbenga
>  wrote:
>>  RewriteRule ^/website$    http://localhost/website/ [T]
>>  ProxyPassMatch    ^/website/(.*)$
>> http://localhost:8000/website/$1
>> 
>>
>> The ProxyPassMatch fires but (AFAICT) the RewriteRule does not. I.e.
>> http://localhost/website (no slash) ==> 404 (in fact, it's trying to
>> serve /var/www/localhost/htdocs/website) but http://localhost/website
>> (with slash) ==> works.
>
> Disclaimer: I am not an Apache guru :)

Well, you know more than I do. :-)

> You have [T] as third parameter to RewriteRule, which is used to
> specify a MIME type,  but you're not specifying anything. Maybe that
> invalidates the rule. Try removing it.
>
> You can also specify multiple RewriteRules which are processed in
> sequence, if trailing slash works maybe you need to first add a rule
> convert URL with no slash to URL with slash:
>
> RewriteRule ^/website$ /website/ [R]

I used to have [P] and then tried [PT] but neither worked. Then for
some unknown reason I deleted the P and left [T] when I sent the
email.

The problem turns out to be that you must put the Rewrite*
configuration stuff in the virtual host, not outside. Then it works.
It's documented but I had glossed over it.



Re: [gentoo-user] [Apache HTTPD] Why doesn't my RewriteRule fire?

2011-08-22 Thread Paul Hartman
On Mon, Aug 22, 2011 at 4:07 PM, Hilco Wijbenga
 wrote:
>  RewriteRule ^/website$    http://localhost/website/ [T]
>  ProxyPassMatch    ^/website/(.*)$
> http://localhost:8000/website/$1
> 
>
> The ProxyPassMatch fires but (AFAICT) the RewriteRule does not. I.e.
> http://localhost/website (no slash) ==> 404 (in fact, it's trying to
> serve /var/www/localhost/htdocs/website) but http://localhost/website
> (with slash) ==> works.

Disclaimer: I am not an Apache guru :)

You have [T] as third parameter to RewriteRule, which is used to
specify a MIME type,  but you're not specifying anything. Maybe that
invalidates the rule. Try removing it.

You can also specify multiple RewriteRules which are processed in
sequence, if trailing slash works maybe you need to first add a rule
convert URL with no slash to URL with slash:

RewriteRule ^/website$ /website/ [R]



[gentoo-user] Gentoostats, SoC 2011

2011-08-22 Thread Vikraman
Hi all,

Gentoostats[0] is a GSoC 2011 project to collect package statistics from gentoo
machines. Please check it out. Bug reports and feature suggestions are welcome.

To submit your stats, use the app-portage/gentoostats ebuild from betagarden
overlay[1].

[0] https://soc.dev.gentoo.org/gentoostats/
[1] https://soc.dev.gentoo.org/gentoostats/about

-- 
Vikraman


signature.asc
Description: PGP signature


Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 22.08.2011 20:29, schrieb Stefan G. Weichinger:

> update: edited the example in the gentoo-wiki now.

replying to myself once more, which makes it feel more like a wiki or
blog than a mailing-list ;-)

additional thoughts:

* as there is readahead-support in systemd I assume I could get rid of
preload:

http://packages.gentoo.org/package/sys-apps/preload?arches=all

As it isn't maintained actively anymore it maybe isn't of much use
anymore anyway?

As there is no related service-file for preload here, it is deactivated
for now anyway (as long as I choose the systemd-using GRUB-line).

* remember those cgroup-hacks back then?

http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups

Is that stuff still valid?

With systemd the whole use of cgroups changes fundamentally, I don't
have the knowledge to decide if to use both in parallel.

For now I disabled the stuff from the wiki (stop sourcing
/etc/bash/local/cgrouprc) as it only gives me warnings ...

* found this blog-entry against systemd:

http://monolight.cc/2011/05/the-systemd-fallacy/

I agree, it might be more useful on desktops ... so far I am still
exploring and learning to get to the point to make a decision where and
if to use.

-

regards, Stefan



[gentoo-user] [Apache HTTPD] Why doesn't my RewriteRule fire?

2011-08-22 Thread Hilco Wijbenga
Hi all,

I hope some Apache guru can help me out. I must be missing something
very obvious.

Assume a default Apache 2.2.17 with all modules installed and -D PROXY
-D INFO in /etc/conf.d/apache2.

My update to the default VHOST:

ForensicLog   /var/log/apache2/forensic.log
ProxyRequests off
RewriteEngine on
RewriteLogLevel   9
RewriteLog/var/log/apache2/rewrite.log

  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot "/var/www/localhost/htdocs"
  
Options Indexes FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1
  
  RewriteRule ^/website$http://localhost/website/ [T]
  ProxyPassMatch^/website/(.*)$
http://localhost:8000/website/$1


The ProxyPassMatch fires but (AFAICT) the RewriteRule does not. I.e.
http://localhost/website (no slash) ==> 404 (in fact, it's trying to
serve /var/www/localhost/htdocs/website) but http://localhost/website
(with slash) ==> works.

Why does the RewriteRule not run? FYI, rewrite.log is created but
stays empty. I don't see any errors or warnings in access.log or
error.log.

Cheers,
Hilco



Re: [gentoo-user] mono and odbc

2011-08-22 Thread covici
Thanks, I may need it because I am using freeswitch, but I need to
investigate further.

Nils Andresen  wrote:

> Hi,
> according to http://www.mono-project.com/ODBC the System.Data should
> contain everything you need (aside from odbc, that is)
> So you'll need dev-lang/mono (and dev-db/unixODBC or dev-db/libiodbc for odbc)
> 
> But - are you sure you'll want to do this? Odbc - really?
> 
> Yours,
> Nils
> 
> 2011/8/22  :
> > Hi.  I have heard thet there are drivers for mono to work with unixodbc,
> > but can't figure out which package if any, I should emerge to get that
> > functionality.
> >
> > Anyone know how to do this?
> >
> > Thanks in advance for any suggestions.
> >
> > --
> > Your life is like a penny.  You're going to lose it.  The question is:
> > How do
> > you spend it?
> >
> >         John Covici
> >         cov...@ccs.covici.com
> >
> >
> 

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Hoping someone can help explain distcc to me

2011-08-22 Thread Alex Schuster
victor romanchuk writes:

> >> i had noticed that distcc is peevish about CFLAGS: these should be
> >> compatible on both client and server. in my case i made these
> >> similar on both machines (laptop is core2duo and desktop is
> >> core2quad; both are running  amd64 arch)
> > 
> > I don't think this is true - as long as the CHOST is identical, there
> > should be no problem.
> 
> CHOST defines the arch (i686, amd64, arm ..) whilst CFLAGS control gcc
> behavior and the binary code generation produced by compiler. in my case
> core2quad (q8300) i'm using in the desktop supports sse4.1 instruction
> set and notebook powered with core2duo (t7600) does not have that cpu
> feature. having option `-msse4.1' set in CFLAGS at desktop side will
> causes frequent compilation failures (initiated by distcc) or, in worst
> case - arbitrary crashes at notebook when running binaries compiled in
> distributed distcc environment

But how could the gcc on the desktop, called via distcc, even see the CFLAGS 
in the desktops make.conf? This just cannot be.
I have been using march=athlon-xp on my desktop, and yet used it as distcc 
server for my Pentium-III notebook for years. Worked fine.

Wonko



Re: [gentoo-user] mono and odbc

2011-08-22 Thread Nils Andresen
Hi,
according to http://www.mono-project.com/ODBC the System.Data should
contain everything you need (aside from odbc, that is)
So you'll need dev-lang/mono (and dev-db/unixODBC or dev-db/libiodbc for odbc)

But - are you sure you'll want to do this? Odbc - really?

Yours,
Nils

2011/8/22  :
> Hi.  I have heard thet there are drivers for mono to work with unixodbc,
> but can't figure out which package if any, I should emerge to get that
> functionality.
>
> Anyone know how to do this?
>
> Thanks in advance for any suggestions.
>
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
>
>         John Covici
>         cov...@ccs.covici.com
>
>



[gentoo-user] mono and odbc

2011-08-22 Thread covici
Hi.  I have heard thet there are drivers for mono to work with unixodbc,
but can't figure out which package if any, I should emerge to get that
functionality.

Anyone know how to do this?

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] Re: Hoping someone can help explain distcc to me

2011-08-22 Thread Paul Hartman
On Sat, Aug 20, 2011 at 5:56 PM, Paul Hartman
 wrote:
>
> I'd like to use distcc to make the desktop do all the compiling during
> emerges. I've never been able to get distcc working properly, or, at
> least, I've never been able to get it working to the point where using
> distcc is any faster than not using it at all.

Thanks to all who replied for your suggestions and info! After
experimenting with various combinations of settings it seems to be
working now. I think I was too aggressive with the number of parallel
make jobs, the laptop just couldn't coordinate that many. I also
stopped distccd on the laptop, in case it was picking up jobs
unintentionally.

Here's the results, a real-life test with ImageMagick 6.7.1.0. The
machines were idle, files were already downloaded, and I don't use
ccache, so it should be actual compile time comparison only:

Normal emerge on laptop, no parallel jobs in MAKEOPTS, no distcc:
merge time: 8 minutes and 27 seconds.

With -j3 in MAKEOPTS, using distcc:
merge time: 4 minutes and 40 seconds.

Great!

Of course, on the desktop it only takes 1 minutes 17 seconds, but an
almost 50% reduction in emerge time on the laptop is still great to
see.



Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 22.08.2011 20:24, schrieb Stefan G. Weichinger:

> The line:
> 
> Requires=udev-settle.service
> 
> missed, I added it and now it boots up straight and fast.

update: edited the example in the gentoo-wiki now.

S




Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 22.08.2011 19:03, schrieb Joost Roeleveld:

> I do hope you can figure this one out as I do like the idea of systemd. But I 
> need RAID and LVM to work correctly for my system to boot.

Got it.

Compared this one:

https://github.com/falconindy/initscripts-systemd/blob/master/lvm.service

w/ the lvm.service in the gentoo wiki.

The line:

Requires=udev-settle.service

missed, I added it and now it boots up straight and fast.

Gotta re-test it right now ;-)

S



Re: [gentoo-user] Firefox 5 missing

2011-08-22 Thread Hilco Wijbenga
On 22 August 2011 10:29, Florian Philipp  wrote:
> Am 22.08.2011 18:58, schrieb Hilco Wijbenga:
>> Hi all,
>>
>> I just noticed that Portage wants me to upgrade to FF 6. I know,
>> however, that (some of) my plugins don't run in FF6. Not a problem,
>> I'll just mask FF6 ... oops ... there's no more FF5?
>>
>> Would it be possible to support FF5 a bit longer? The devs at FF may
>> have gone a bit bananas but surely we don't have to follow suit? :-)
>>
>> Or is there a way to tell Portage to ignore upgrades but not downgrade FF?
>>
>> Cheers,
>> Hilco
>>
>
> Well, in any case, FF5 should at least be masked since it does not
> receive security fixes.
>
> The cleanest way to preserve FF5 for you is to create an overlay
> containing the latest version from Gentoo's CVS ([1 - 4].

Yes, that's what I've done in the mean time.

> The easier way (as long as you don't have to re-emerge) is to add your
> *current* version of FF to /etc/portage/package.provided. As `man
> portage` states:

Ah, thank you, I did not know about package.provided.

> Portage  will  not attempt to update a package that is listed here
> unless another package explicitly requires a version that is newer than
> what has been listed.
>
> Or just mask FF completely and ignore all warnings of emerge about it.
>
> [1] http://anoncvs.gentoo.org/
> [2] http://www.gentoo.org/doc/en/cvs-tutorial.xml
> [3]
> http://www.linuxquestions.org/questions/linux-networking-3/retrieving-deleted-files-from-cvs-464839/
> [4] http://en.gentoo-wiki.com/wiki/Overlay#Local_Overlays
>
> Hope this helps,
> Florian Philipp



Re: [gentoo-user] Firefox 5 missing

2011-08-22 Thread Florian Philipp
Am 22.08.2011 18:58, schrieb Hilco Wijbenga:
> Hi all,
> 
> I just noticed that Portage wants me to upgrade to FF 6. I know,
> however, that (some of) my plugins don't run in FF6. Not a problem,
> I'll just mask FF6 ... oops ... there's no more FF5?
> 
> Would it be possible to support FF5 a bit longer? The devs at FF may
> have gone a bit bananas but surely we don't have to follow suit? :-)
> 
> Or is there a way to tell Portage to ignore upgrades but not downgrade FF?
> 
> Cheers,
> Hilco
> 

Well, in any case, FF5 should at least be masked since it does not
receive security fixes.

The cleanest way to preserve FF5 for you is to create an overlay
containing the latest version from Gentoo's CVS ([1 - 4].

The easier way (as long as you don't have to re-emerge) is to add your
*current* version of FF to /etc/portage/package.provided. As `man
portage` states:

Portage  will  not attempt to update a package that is listed here
unless another package explicitly requires a version that is newer than
what has been listed.

Or just mask FF completely and ignore all warnings of emerge about it.

[1] http://anoncvs.gentoo.org/
[2] http://www.gentoo.org/doc/en/cvs-tutorial.xml
[3]
http://www.linuxquestions.org/questions/linux-networking-3/retrieving-deleted-files-from-cvs-464839/
[4] http://en.gentoo-wiki.com/wiki/Overlay#Local_Overlays

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Firefox 5 missing

2011-08-22 Thread Hilco Wijbenga
On 22 August 2011 09:58, Hilco Wijbenga  wrote:
> Or is there a way to tell Portage to ignore upgrades but not downgrade FF?

I installed the FF5 ebuild in my overlay. That seems to work fine.



Re: [gentoo-user] Re: move to xfce and forget kde and gnome

2011-08-22 Thread Michael Mol
On Mon, Aug 22, 2011 at 7:30 AM, Michael Mol  wrote:
> I found it surprisingly painless. Note, I went through most of these
> steps with X *NOT* running; I switched to a terminal and stopped kdm
> before really going past step 2.

One additional note. Except for time spent compiling, this only took
about 3-4 hours. A lot of it was learning how virtual ebuilds work
(which led me to discover I needed to emerge awesome so that depclean
would drop knotify), and much of it was scratching my head over
circular dependencies and identifying the right point in the ring to
--unmerge to break the graph cycle.

I've been working from home all day today on the system. Only glitch
I've encountered was that I forgot to reset my .asoundrc after
removing pulseaudio.

-- 
:wq



Re: [gentoo-user] systemd

2011-08-22 Thread Joost Roeleveld
On Monday, August 22, 2011 06:55:21 PM Stefan G. Weichinger wrote:
> Am 2011-08-22 13:42, schrieb Joost Roeleveld:
> > That's unfortunate. The stop-service might be started to try to clean
> > up when it fails.
> 
> Hm, yes, I understand.
> 
> > What kind of RAID are you using? Does it perhaps rely on a module
> > that is loaded in the background? In which case you could try adding
> > that module as a dependency?
> 
> This is plain RAID1 and the kernel has that built in, so no, there is no
> module used here for RAID.
> 
> There are LVM-options as modules:
> 
> crypt target, snapshot target, mirror target ... but that should not
> play a role here.

Not really, unless you actually have any of these defined...
I do hope you can figure this one out as I do like the idea of systemd. But I 
need RAID and LVM to work correctly for my system to boot.

--
Joost



[gentoo-user] Firefox 5 missing

2011-08-22 Thread Hilco Wijbenga
Hi all,

I just noticed that Portage wants me to upgrade to FF 6. I know,
however, that (some of) my plugins don't run in FF6. Not a problem,
I'll just mask FF6 ... oops ... there's no more FF5?

Would it be possible to support FF5 a bit longer? The devs at FF may
have gone a bit bananas but surely we don't have to follow suit? :-)

Or is there a way to tell Portage to ignore upgrades but not downgrade FF?

Cheers,
Hilco



Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 2011-08-22 13:42, schrieb Joost Roeleveld:

> That's unfortunate. The stop-service might be started to try to clean
> up when it fails.

Hm, yes, I understand.

> What kind of RAID are you using? Does it perhaps rely on a module
> that is loaded in the background? In which case you could try adding
> that module as a dependency?

This is plain RAID1 and the kernel has that built in, so no, there is no
module used here for RAID.

There are LVM-options as modules:

crypt target, snapshot target, mirror target ... but that should not
play a role here.

S





Re: [gentoo-user] ff & chromium trapped in deafness or how to configure ALSA correctly

2011-08-22 Thread Paul Hartman
2011/8/21 Maximilian Bräutigam :
>
> Is is possible that ff and chromium are sending data to HDMI since it is
> card 0? If you think, it would be helpful to disable card 0 or change
> the order, please tell me how to do it?

Either make udev rules to create the devices in the correct order, or
specify the cards order (index) in your alsa config, such as on my
system:

$ cat /proc/asound/card0/id
Intel
$ cat /proc/asound/card1/id
NVidia

First is my on-board sound, second is my HDMI. So, one card is called
"Intel" and other is "NVidia". In modprobe's options I would set it
something like this (all on one line)

options snd-intel-hda model=intel-x58,auto enable_msi=1,0 index=0,1
id=Intel,NVidia



Re: [gentoo-user] SIP clients

2011-08-22 Thread Neil Bothwick
On Mon, 22 Aug 2011 08:03:02 -0400, Michael Mol wrote:

> Any preferred SIP softphone on Gentoo? I've used Ekiga on Windows and
> Ubuntu, and it's only moderately painful there, but it's very, very,
> very old on Gentoo.

Ekiga 3.2.7 is the latest on their web site and it has been in portage
for just over a year, according to the Changelog. The Changelog hasn't
been updated since March, so a stabilisation request would seem to be in
order.

> If there are no good options, I'll stick with the SIP client on my
> android phone, for now. (hardphone isn't an option)

I prefer to use sipdroid than be tied to my computer during a call.


-- 
Neil Bothwick

I have a mind like a steel...uh...thingamajig...


signature.asc
Description: PGP signature


AW: [gentoo-user] SIP clients

2011-08-22 Thread Zemke, Kai
Im using xlite on my gentoo workstation and have no trouble with it.


Mit freundlichen Grüßen
Kai Zemke
**
IMPORTANT: The contents of this email and any attachments are confidential. 
They are intended for the 
named recipient(s) only.
If you have received this email in error, please notify the system manager or 
the sender immediately and do 
not disclose the contents to anyone or make copies thereof.
*** eSafe scanned this email for viruses, vandals, and malicious content. ***
**


[gentoo-user] SIP clients

2011-08-22 Thread Michael Mol
Any preferred SIP softphone on Gentoo? I've used Ekiga on Windows and
Ubuntu, and it's only moderately painful there, but it's very, very,
very old on Gentoo.

If there are no good options, I'll stick with the SIP client on my
android phone, for now. (hardphone isn't an option)

-- 
:wq



Re: [gentoo-user] ff & chromium trapped in deafness or how to configure ALSA correctly

2011-08-22 Thread Maximilian Bräutigam

Am 21.08.2011 12:57, schrieb Volker Armin Hemmann:

Am Sonntag 21 August 2011, 04:48:49 schrieb Dale:

Maximilian Bräutigam wrote:

Hello all,

I recently bought a Zotac Barebone ZBOX HD-AD02 AMD E-350 and installed
Gentoo on it, what is working more or less very well except the sound. I
did everything according to gentoo and gentoowiki docs, I installed (due
to laziness) a gentoo-sources kernel with genkernel and Sabayon linux
standard configuration, and I am using pulseaudio, but when I launch
firefox or chromium from console and play some sounds, I get lots of
these error messages:

"ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave"

I already googled for it but didn't find something helpful. The Zbox has
a HDMI and a standard device:

# lspci -v | grep -i audio
00:01.1 Audio device: ATI Technologies Inc Device 1314
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev
40)

# cat /proc/asound/cards

   0 [Generic]: HDA-Intel - HD-Audio Generic

HD-Audio Generic at
0xfeb44000 irq 40

   1 [SB ]: HDA-Intel - HDA ATI SB

HDA ATI SB at 0xfeb4
irq 16

You can find the complete alsa-info output at
http://paste.pocoo.org/show/461744/

For me, the interesting part is this section:

 List of PLAYBACK Hardware Devices 
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]

Subdevices: 1/1
Subdevice #0: subdevice #0

card 1: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]

Subdevices: 1/1
Subdevice #0: subdevice #0

card 1: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]

Subdevices: 1/1
Subdevice #0: subdevice #0

Is is possible that ff and chromium are sending data to HDMI since it is
card 0? If you think, it would be helpful to disable card 0 or change
the order, please tell me how to do it?

I highly appreciate all kinds of help!

Kind regards,
der Max


A silly question for a common problem.  You did unmute the volume
right?  The default is to have everything muted so it is very common for
folks to forget that little but important detail.

Also, on one of my rigs, I had to unmute with both Kimix and alsamixer.

Just a thought.  I've done this myself.


and don't forget to mute spdif optical raw

and try without pulseaudio first.



Dale

:-)  :-)


Hi Dale and Volker,

I tried it without pulseaudio first and, Dale, my card is unmuted. ;) 
Totem and vlc are working without any problems but ff and chromium 
aren't able to produce sound - and it is somehow related to the error 
message above.


But Volker, I highly appreciate the tip with the spdif and I'll try that.

Thank you very much.

Kind regards,
Max



Re: [gentoo-user] ff & chromium trapped in deafness or how to configure ALSA correctly

2011-08-22 Thread Maximilian Bräutigam

Am 21.08.2011 12:24, schrieb Leonardo Guilherme:

2011/8/21 Maximilian Bräutigam:

Hello all,

I recently bought a Zotac Barebone ZBOX HD-AD02 AMD E-350 and installed
Gentoo on it, what is working more or less very well except the sound. I
did everything according to gentoo and gentoowiki docs, I installed (due
to laziness) a gentoo-sources kernel with genkernel and Sabayon linux
standard configuration, and I am using pulseaudio, but when I launch
firefox or chromium from console and play some sounds, I get lots of
these error messages:

"ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave"

I already googled for it but didn't find something helpful. The Zbox has
a HDMI and a standard device:

# lspci -v | grep -i audio
00:01.1 Audio device: ATI Technologies Inc Device 1314
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)

# cat /proc/asound/cards
  0 [Generic]: HDA-Intel - HD-Audio Generic
  HD-Audio Generic at 0xfeb44000 irq 40
  1 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfeb4 irq 16

You can find the complete alsa-info output at
http://paste.pocoo.org/show/461744/

For me, the interesting part is this section:

 List of PLAYBACK Hardware Devices 
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Is is possible that ff and chromium are sending data to HDMI since it is
card 0? If you think, it would be helpful to disable card 0 or change
the order, please tell me how to do it?

I highly appreciate all kinds of help!

Kind regards,
der Max





Have you tried running alsaconf? what happens when you try alsamixer?
I tend to hate pulseaudio. I fail to see its purpose, the only time i
tried it gave me a big headache. My (totally biased and personal
without any techincal background) advice is to stay clear of
pulseaudio.



Hi Leonardo,

i tried it of course without pulse audio in advance, but e.g. totem and 
vlc were using the wrong "standard" device and emerging world with 
pulseaudio use flag makes totem and vlc use the right device ...
my only problems are chromium and ff ... and probably some other apps, 
that I didn't test so far.


Kind regards,
Max



Re: [gentoo-user] Nedd help with udev-rules.

2011-08-22 Thread Dan Johansson
On Sunday 21 August 2011 20.26:40 Dan Johansson wrote:
> Hi,
> 
> I need some help with writing udev-rules for capi.
> After playing around some I decided to ask for help here as can't really
> get it to work.
> 
> What I want ist the following:
> /dev/capi20   68,0
> /dev/capi/capi# 191,#
> 
> 68,0 = Major 68, Minor 0
> 191,# = Major 191, Minor 0 untill 31
> 
> If I have no udev-rule I get the following:
> /dev/capi 68,0
> /dev/capi#191,#
> 
> with 'ATTR{dev}="68:0", NAME="capi20" ' added I only get the following:
> /dev/capi20   191,32
> 
> and with 'ATTR{dev}="191:[0-9]*", NAME="capi/capi%n" ' the following:
> /dev/capi/capi68,0
> /dev/capi/capi#   191,#
> 
> And with both '"ATTR{dev}="68:0", NAME="capi20" ' and  'ATTR{dev}="191:
> [0-9]*", NAME="capi/capi%n" ' this:
> /dev/capi/capi68,0
> /dev/capi/capi#   191,#
> (No change in comparison with only the 'ATTR{dev}=191:...' rule)
> 
> And if I change the order in the rules-file:
> /dev/capi20   191,31
> 
> 
> Can some udev-crack (or someone else) tell my what I am doing wrong?
> 
>  Regards,
Hi again,

I found the problem (me). The correct syntax should be:
ATTR{dev}=="68:0", NAME="capi20" 
ATTR{dev}=="191:[0-9]*", NAME="capi/capi%n" 

Notice the '==' instead of '=' after ATTR{dev}.

Cheers,
-- 
Dan Johansson, 
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] systemd

2011-08-22 Thread Joost Roeleveld
On Monday, August 22, 2011 12:31:19 PM Stefan G. Weichinger wrote:
> Am 22.08.2011 12:26, schrieb Joost Roeleveld:
> > Are they actually started in the right order?
> > In other words, first RAID, then LVM?
> 
> I don't know ;-)
> 
> I still try to understand all this.
> There is no specific RAID-service-file, so it seems to be done by udev
> and the related target/service somehow.
> 
> 
> lvm.service says
> 
> After=udev-settle.service
> 
> so udev should detect all devices first, then lvm.service gets started.
> 
> But somehow this doesn't work here, only after hitting that timeout one
> time.

That's unfortunate. The stop-service might be started to try to clean up when 
it fails.

What kind of RAID are you using? Does it perhaps rely on a module that is 
loaded in the background?
In which case you could try adding that module as a dependency?

--
Joost



Re: [gentoo-user] Re: move to xfce and forget kde and gnome

2011-08-22 Thread Michael Mol
2011/8/22 Space Cake :
> 2011-08-19 14:54 keltezéssel, Nikos Chantziaras írta:
>> On 08/19/2011 03:02 PM, Space Cake wrote:
>>> hi,
>>>
>>> after playing a lot with desktop environment first I've decided to move
>>> from kde to gnome because kde is too "shine" and eat too much and
>>> contains a lot of feature which I don't really need.. gnome is good but
>>> still too fat so finally I've found Xfce which is perfect for my
>>> needs... :)
>>>
>>> my question is what is the easiest way to get rid of kde/gnome stuff? is
>>> this enough to change my useflags to -kde and -gnome? Is there any list
>>> what I can safely unmerge in this case?
>>
>> You change your profile.  You can see your current profile with:
>>
>>   eselect profile list
>>
>> For KDE you would use "default/linux/amd64/10.0/desktop/kde" and for
>> Gnome "default/linux/amd64/10.0/desktop/gnome".
>>
>> For anything else, use "default/linux/amd64/10.0/desktop".  Then do a:
>>
>>   emerge -auDN --with-bdeps=y world
>>   emerge -a --depclean
>>
>> If KDE/Gnome stuff still remains after that, use:
>>
>>   emerge -pv --depclean 
>>
>> to see what's pulling-in .
>>
>>
> So, what if I have changed the flags to -kde and -gnome, and I also ran
> depclean, also used the script provided by some kind member of the list
> and I still have all the kde gnome stuff on my system? Do I need some
> list of packages should I unmerge? Should I simple unmerge packages
> kde-base/* and so on and run revdep-rebuild after this? Is this a
> working approach?

I just cleaned off KDE (and PulseAudio, as it happens) from my system
Saturday night/sunday morning. I wasn't using the KDE profile.

Here are the steps I followed:

1) Remove all 'kde' and 'qt' USE flags from make.conf. (I didn't have
to remove qt, but I preferred to switch over to package-specific
support for it, as needed, rather than global)
2) emerge --depclean (pretend first, then add anything I *knew* I
didn't want to lose to @world, then pretend again, until there wasn't
anything that would be removed I wasn't comfortable with)
3) If there were any KDE packages left, emerge -pPv on them, to find
what was pulling them in. "emerge --deselect" the packages that were
pulling the KDE packages in. (Sometimes, this would involve supplying
an alternative. For example, I had to emerge Awesome before it would
remove knotify.)
4) Jump back to step 2, unless I couldn't get a package to disappear
with --depclean.
5) revdep-rebuild (in my case, only a Jack library was busted)
6) emerge --deep --newuse --keep-going world && emerge --sync &&
emerge --update --deep --newuse --keep-going world # This part, I left
running overnight. It succeeded, to my surprise.

I did have a couple recursive-dependency-like situations. For example,
KDE has a policykit agent, which depends on polkit. The policykit
agent wouldn't go away; emerge -pPv said polkit was pulling it in, and
said that the agent was what was pulling polkit in. In those
situations, I found I had to --unmerge a piece of the dependency loop
in order for emerge to allow it to go away or get replaced. In the
polkit case, I removed the KDE agent.

I also had to remove a few packages I do occasionally use, because
they were pulling in Qt or KDE. In particular, I --deselect'd calibre.
I've still got qt libs on my system, though, because I use
Luminance-HDR a *lot*.

I found it surprisingly painless. Note, I went through most of these
steps with X *NOT* running; I switched to a terminal and stopped kdm
before really going past step 2.

-- 
:wq



Re: [gentoo-user] Re: move to xfce and forget kde and gnome

2011-08-22 Thread Neil Bothwick
On Mon, 22 Aug 2011 11:47:02 +0200, Space Cake wrote:

> So, what if I have changed the flags to -kde and -gnome, and I also ran
> depclean, also used the script provided by some kind member of the list
> and I still have all the kde gnome stuff on my system? Do I need some
> list of packages should I unmerge? Should I simple unmerge packages
> kde-base/* and so on and run revdep-rebuild after this? Is this a
> working approach?

Look for KDE/GNOME packages in your world file

grep kde /var/lib/portage/world
grep gnome /var/lib/portage/world

Remove anything you don't use
emerge --depclean -a
rinse and repeat


-- 
Neil Bothwick

WinErr 01B: Illegal error - You are not allowed to get this error.
Next time you will get a penalty for that.


signature.asc
Description: PGP signature


Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 22.08.2011 12:26, schrieb Joost Roeleveld:

> Are they actually started in the right order?
> In other words, first RAID, then LVM?

I don't know ;-)

I still try to understand all this.
There is no specific RAID-service-file, so it seems to be done by udev
and the related target/service somehow.


lvm.service says

After=udev-settle.service

so udev should detect all devices first, then lvm.service gets started.

But somehow this doesn't work here, only after hitting that timeout one
time.

Stefan



Re: [gentoo-user] systemd

2011-08-22 Thread Joost Roeleveld
On Monday, August 22, 2011 11:54:48 AM Stefan G. Weichinger wrote:
> Am 22.08.2011 10:26, schrieb Stefan G. Weichinger:
> > What I wonder: what changes between running into that timeout and my
> > pressing Ctrl-D?
> 
> To me it seems that the underlying RAID-device (which is the PV inside
> the LVM-VG) isn't up fast enough.
> 
> Trying to figure it out now.

Are they actually started in the right order?
In other words, first RAID, then LVM?

--
Joost



Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger
Am 22.08.2011 10:26, schrieb Stefan G. Weichinger:

> What I wonder: what changes between running into that timeout and my
> pressing Ctrl-D?

To me it seems that the underlying RAID-device (which is the PV inside
the LVM-VG) isn't up fast enough.

Trying to figure it out now.




Re: [gentoo-user] Re: move to xfce and forget kde and gnome

2011-08-22 Thread Space Cake
2011-08-19 14:54 keltezéssel, Nikos Chantziaras írta:
> On 08/19/2011 03:02 PM, Space Cake wrote:
>> hi,
>>
>> after playing a lot with desktop environment first I've decided to move
>> from kde to gnome because kde is too "shine" and eat too much and
>> contains a lot of feature which I don't really need.. gnome is good but
>> still too fat so finally I've found Xfce which is perfect for my
>> needs... :)
>>
>> my question is what is the easiest way to get rid of kde/gnome stuff? is
>> this enough to change my useflags to -kde and -gnome? Is there any list
>> what I can safely unmerge in this case?
>
> You change your profile.  You can see your current profile with:
>
>   eselect profile list
>
> For KDE you would use "default/linux/amd64/10.0/desktop/kde" and for
> Gnome "default/linux/amd64/10.0/desktop/gnome".
>
> For anything else, use "default/linux/amd64/10.0/desktop".  Then do a:
>
>   emerge -auDN --with-bdeps=y world
>   emerge -a --depclean
>
> If KDE/Gnome stuff still remains after that, use:
>
>   emerge -pv --depclean 
>
> to see what's pulling-in .
>
>
So, what if I have changed the flags to -kde and -gnome, and I also ran
depclean, also used the script provided by some kind member of the list
and I still have all the kde gnome stuff on my system? Do I need some
list of packages should I unmerge? Should I simple unmerge packages
kde-base/* and so on and run revdep-rebuild after this? Is this a
working approach?

Thank you
Laszlo




Re: [gentoo-user] systemd

2011-08-22 Thread Stefan G. Weichinger

next box tested.
Installed systemd on my main workstation now that I understood how to
easily flip back to booting w/ openrc in case of problems.

I heavily use LVM here and this gives me the following issues:

I use lvm.service from the gentoo-wiki:

http://en.gentoo-wiki.com/wiki/Systemd#LVM

For sure I enabled it ...

When I boot this machine it boots up to starting the LVM-devices and
waits for some time then writes something like:

welcome to emergency mode ...
Start of /dev/VG...something failed (due to some dependencies)

(for all the LVs)

and lets me login or press Ctrl-D to continue.

(I can't remember the exact words, don't know if they are logged somewhere)

When I press Ctrl-D all the LVs are mounted(!) and it boots up fine to
graphical login.

hmm.

It then tells me:

# systemctl status lvm.service
lvm.service - Linux Volume Manager
  Loaded: loaded (/etc/systemd/system/lvm.service)
  Active: active (exited) since Mon, 22 Aug 2011 09:55:36 +0200; 22min 
ago
 Process: 5568 ExecStop=/sbin/lvchange --sysinit -a ln $(/sbin/vgs -o
vg_name --noheadings --nosuffix 2> /dev/null) (code=exited, status=3)
 Process: 5861 ExecStart=/sbin/vgchange --sysinit -a ly (code=exited,
status=0/SUCCESS)
 Process: 5738 ExecStart=/sbin/vgscan --mknodes --ignorelockingfailure
(code=exited, status=0/SUCCESS)
 Process: 5654 ExecStart=/sbin/pvscan --ignorelockingfailure
(code=exited, status=0/SUCCESS)
  CGroup: name=systemd:/system/lvm.service

Why does that ExecStop fail? Why is it called at boot anyway?

I also tried another lvm.service from the russian gentoo-wiki, that
servicefile just pulls in /etc/init.d/lvm, but that didn't help so I
went back to the mentioned file.

What I wonder: what changes between running into that timeout and my
pressing Ctrl-D?

Thanks for helpful comments, Stefan