Re: [gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
Thank you all.

I have concluded that I should stay with the base profile. Although I
need a desktop, but this decision will be closest to what I want in a
harmless way! (at least less harm!)
Then I will add CPU specific and very frequent flags to make.conf and
gradually extend the package.use file.



Re: [gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
On Wed, Jul 30, 2014 at 2:34 AM, Philip Webb  wrote:

> I suspect that may be true of a majority of Gentooers :
> we're all used to interpreting others' words
> & trying to be careful to be clear when we do know English well.

I will be very happy to be a part of this great community.

> From the discussion so far today, you sound like a born Gentoo user.

Thank you very much. You just made my day!
Have a great time.



Re: [gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
On Wed, Jul 30, 2014 at 12:46 AM, Walter Dnes  wrote:
>  In my make.conf I have...
> USE_BASE="-* a52 aac bzip2 cxx fortran ncurses netifrc nptl nptlonly nsplugin 
> offensive openssl posix readline ssl threads vim-syntax zlib"
> USE_CPU="mmx mmxext sse sse2 sse3 ssse3"
> USE_VIDEO="X dga dri exif ffmpeg flac classic gif intel jpeg mng mp3 mpeg ogg 
> opengl png rtmp theora tiff truetype vorbis xcomposite webm x264 xpm xv xvid 
> xvmc"
> USE="${USE_BASE} ${USE_CPU} ${USE_VIDEO}"

The way that you have managed the USE flag is neat, and I will do the same.
Thanks for your help.



Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-29 Thread Volker Armin Hemmann
Am 29.07.2014 20:18, schrieb Frank Steinmetzger:
> On Sat, Jul 26, 2014 at 11:00:26PM -0700, Edward MN wrote:
>> On 07/26/14 15:55, walt wrote:
>>> On 07/26/2014 10:39 AM, Volker Armin Hemmann wrote:
 [894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
 detected on the NB.
 […]
 and this, my children, is why I am using ECC ram.
 […]
 And this evening, with a thunderstorm outside I got that beauty above...
>>> Is ECC memory a drop-in replacement for ordinary RAM, or does it need
>>> a special motherboard?
>>>
>>yeah, requires a motherboard that supports ECC ram.
> Big was my surprise to learn that our old Pentium 3 PC from 1999 has ECC
> support in its three RAM sockets. The problem today is the artificial
> paritioning of the market.
>
> It seems nigh impossible (at least in the Intel world, please correct me
> regarding AMD) to have ECC RAM in a normal Home PC these days, especially in
> an ITX form factor, as I am currently investigating. There are Xeons for the
> 1150 “consumer socket”, but ECC is only supported by server chipsets such as
> the C series. Those come either on ITX boards with abysmal I/O capabilities
> for home use or on high-power workstation ATX boards that cost a small
> fortune. *sigh*
>
> I would have liked the aspect of a system that tells me when something goes
> wrong, but there seems no such thing for my requirements. So I must help
> myself with file checksums when dealing with my archive disks.

I don't know about AMD's APUs but AFAIK all CPUs using the AM2/AM3
socket support it.



Re: [gentoo-user] USE flags handling

2014-07-29 Thread Philip Webb
140730 behrouz khosravi wrote:
> On Tue, Jul 29, 2014 at 9:48 PM, Philip Webb  wrote:
>> 140729 behrouz khosravi wrote:
>>  ^ 'conquered' (smile) : 'concur' = 'agree'.
> Sorry.

No need at all ! -- You said you wanted to learn (at the end) !

> Now it is obvious English is not my mother tongue!

I suspect that may be true of a majority of Gentooers :
we're all used to interpreting others' words
& trying to be careful to be clear when we do know English well.

>From the discussion so far today, you sound like a born Gentoo user.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] USE flags handling

2014-07-29 Thread Alan McKinnon
On 29/07/2014 22:16, Walter Dnes wrote:
> On Tue, Jul 29, 2014 at 09:34:04PM +0430, behrouz khosravi wrote
>> Hello everyone.
>> I just concurred my fear and jumped to installing gentoo!
>> So far so good!
>> Before installing on my laptop and desktop, I am trying on virtual box
>> and the system is running Fluxbox very good.(default profile)
>> Now I am thinking about managing USE flags.
>> What if I  disable everything in the make.conf ( I mean USE="-*" ) and
>> gradually add the needed flags to package.use?
>> I am not trying to have severe control, I just want to expand my knowledge!
>> thanks.
> 
>   Here is a compromise.  I started with USE="-*" 


Here's very good advice for the OP:

Do not do this. Walter does it, and he finds it works for him. He's been
doing it for years and nothing will persuade him to do it any other way.

You should not do with USE what Walter does. Trust me, it will lead you
down a path of immense pain that you do not have the tools to get out
of, and when you ask here for help you will be told to take that -* out
of USE.

No offense Walter, but this is really bad advice to give someone brand
new to Gentoo. He really is ill-equipped to deal with it, and USE="-*"
is best left to those who fully understand exactly what they are getting
themselves into.


-- 


Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] USE flags handling

2014-07-29 Thread Andreas K. Huettel
Am Dienstag, 29. Juli 2014, 19:04:04 schrieb behrouz khosravi:
>
> Now I am thinking about managing USE flags.
> What if I  disable everything in the make.conf ( I mean USE="-*" ) and
> gradually add the needed flags to package.use?

The default profile is what you need.

Please don't do USE="-*". It breaks things. 

* Long ago, setting a useflag always meant "adding things to the default". For 
some years now, we have use-defaults, which means an ebuild can set whether a 
use flag set not by profile and not by user is on or off. If you add "-*" to 
your use flags, you turn all default-on useflags off too (which means you may 
switch away from upstream defaults a lot). 
An example where this may lead to trouble: you end up with sys-devel/gcc[-
cxx], i.e. a compiler that cannot translate C++.

* The dependencies on specific Python or Ruby versions are controlled via 
useflags. Basically, if Python package X needs Python package Y, both have to 
be installed for the same Python variant for things to work. If you disable 
all useflags via "-*", you basically disable support for all variants. Bang.

* Similar for multilib installations. 



-- 

Andreas K. Huettel
Gentoo Linux developer 
dilfri...@gentoo.org
http://www.akhuettel.de/



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


Re: [gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
> Portage profiles set some default USE flags, then some ebuilds also set
> defaults. Using USE="-*" disables all of these. You can see the defaults
I have noticed that some packages have flags that I have not set, but
I though that they were the default flags for that package. You mean
those flags will become persistence? Will be them written to a
specific file?

> You will do that, but not in the way you hoped. Pick a profile that most
> closely matches your usage and then find tune from that by adding or
> removing USE flags. That's a lot easier than deliberately breaking things
> and then trying to work out how to fix them.

I guess your way is better. I think it will be a good idea to stick to
the base profile, and define the required flags as locale flags.



Re: [gentoo-user] USE flags handling

2014-07-29 Thread Walter Dnes
On Tue, Jul 29, 2014 at 09:34:04PM +0430, behrouz khosravi wrote
> Hello everyone.
> I just concurred my fear and jumped to installing gentoo!
> So far so good!
> Before installing on my laptop and desktop, I am trying on virtual box
> and the system is running Fluxbox very good.(default profile)
> Now I am thinking about managing USE flags.
> What if I  disable everything in the make.conf ( I mean USE="-*" ) and
> gradually add the needed flags to package.use?
> I am not trying to have severe control, I just want to expand my knowledge!
> thanks.

  Here is a compromise.  I started with USE="-*" and then gradually
added stuff that was needed by most items.  My rule-of-thumb is...
If adding a flag to USE reduces the number of entries in package.use,
then I add it.  I.e. if...
* not having flag "foobar" in USE requires 6 entries in package.use, and
* having flag "foobar" in USE requires only 2 "-" entries in package.use

...then I move flag "foobar" into USE and put a few "-" entries in
package.use.  I do want stuff like "ncurses nptl nptlonly posix readline
threads" for every app which can use it.  Similarly, cpu-specific flags
should be in your USE.  This effectively gives you a very customized
profile.  By the way, you can make your own variables in make.conf, and
concatenate them, like in bash.  In my make.conf I have...

USE_BASE="-* a52 aac bzip2 cxx fortran ncurses netifrc nptl nptlonly nsplugin 
offensive openssl posix readline ssl threads vim-syntax zlib"
USE_CPU="mmx mmxext sse sse2 sse3 ssse3"
USE_VIDEO="X dga dri exif ffmpeg flac classic gif intel jpeg mng mp3 mpeg ogg 
opengl png rtmp theora tiff truetype vorbis xcomposite webm x264 xpm xv xvid 
xvmc"
USE="${USE_BASE} ${USE_CPU} ${USE_VIDEO}"

  I can mostly copy this to another machine.  ***WARNING*** the flags in
USE_CPU are specific to, and have to be customized for, each machine.
My Dell Dimension 530 dates back to June 2008.  Newer Intel machines
will have additional cpu-specific flags, and AMD cpus will have their
own unique additional flags.  Your set of flags may be different,
depending on what applications you use, and what you want to do with the
machine.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
On Tue, Jul 29, 2014 at 9:48 PM, Philip Webb  wrote:
> 140729 behrouz khosravi wrote:
>  ^ 'conquered' (smile) : 'concur' = 'agree'.
Sorry. Now it is obvious English is not my mother tongue!

regards.



Re: [gentoo-user] Re: ECC-ram, it is worth it.

2014-07-29 Thread Frank Steinmetzger
On Sat, Jul 26, 2014 at 11:00:26PM -0700, Edward MN wrote:
> On 07/26/14 15:55, walt wrote:
> > On 07/26/2014 10:39 AM, Volker Armin Hemmann wrote:
> >> [894019.770058] [Hardware Error]: MC4 Error (node 0): DRAM ECC error
> >> detected on the NB.
> >> […]
> >> and this, my children, is why I am using ECC ram.
> >> […]
> >> And this evening, with a thunderstorm outside I got that beauty above...
> >
> > Is ECC memory a drop-in replacement for ordinary RAM, or does it need
> > a special motherboard?
> >
>yeah, requires a motherboard that supports ECC ram.

Big was my surprise to learn that our old Pentium 3 PC from 1999 has ECC
support in its three RAM sockets. The problem today is the artificial
paritioning of the market.

It seems nigh impossible (at least in the Intel world, please correct me
regarding AMD) to have ECC RAM in a normal Home PC these days, especially in
an ITX form factor, as I am currently investigating. There are Xeons for the
1150 “consumer socket”, but ECC is only supported by server chipsets such as
the C series. Those come either on ITX boards with abysmal I/O capabilities
for home use or on high-power workstation ATX boards that cost a small
fortune. *sigh*

I would have liked the aspect of a system that tells me when something goes
wrong, but there seems no such thing for my requirements. So I must help
myself with file checksums when dealing with my archive disks.
-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.

Can you give me a cigarette?  Mine are still in the vending machine.


signature.asc
Description: Digital signature


Re: [gentoo-user] modules.devname not found...

2014-07-29 Thread Jarry

On 29-Jul-14 19:25, Samuli Suominen wrote:

On 29/07/14 20:22, Neil Bothwick wrote:

On Tue, 29 Jul 2014 18:25:15 +0200, Jarry wrote:


* Creating list of required static device nodes for the current
kernel... Warning: /lib/modules/3.12.21-gentoo-r1/modules.devname not
found - ignor 

What does it mean and how can I get rid of it?

By creating the missing file :)


Right, and if he is using monolitic kernel with CONFIG_MODULES=n in
kernel /usr/src/linux/.config,
with no modules at all, then he should remove 'kmod-static-nodes' init
script from the runlevels to silence the warning
That is, if that's really true, otherwise use `depmod -a`


That's the right solution! I'm absolutely sure I never disabled
kmod-static-nodes on other system, but it is not started there.
But on this freshly installed system, kmod-static-nodes is started
at sysinit. I removed it, and that message is gone. Thanks!

Jarry--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] USE flags handling

2014-07-29 Thread Alec Ten Harmsel
> Also, when setting up a new system, make USE flag changes gradually.
> Unless you are sure of what you are doing, only change a few at a time.

Haha, just got frustrated with how much junk is on my machine and 
globally disabled perl, python, ruby, and a bunch of other stuff. Bad 
times ensued ;).

But really, as long as you're fine with looking at failed builds to see 
what went wrong, you should be fine. You can set PORT_LOGDIR in 
make.conf to send all build logs into a location (mine is 
/var/log/portage) so that all logs get saved automatically, which I 
find helpful.

Alec



Re: [gentoo-user] USE flags handling

2014-07-29 Thread Neil Bothwick
On Tue, 29 Jul 2014 21:34:04 +0430, behrouz khosravi wrote:

> Now I am thinking about managing USE flags.
> What if I  disable everything in the make.conf ( I mean USE="-*" ) and
> gradually add the needed flags to package.use?

You may well break your system, but you get to keep the pieces as a
lesson.

Portage profiles set some default USE flags, then some ebuilds also set
defaults. Using USE="-*" disables all of these. You can see the defaults
by looking at the output from emerge --info with no USE defined in
make.conf.

> I am not trying to have severe control, I just want to expand my
> knowledge!

You will do that, but not in the way you hoped. Pick a profile that most
closely matches your usage and then find tune from that by adding or
removing USE flags. That's a lot easier than deliberately breaking things
and then trying to work out how to fix them.

Also, when setting up a new system, make USE flag changes gradually.
Unless you are sure of what you are doing, only change a few at a time.


-- 
Neil Bothwick

System halted - Press all keys at once to continue.


signature.asc
Description: PGP signature


Re: [gentoo-user] modules.devname not found...

2014-07-29 Thread Samuli Suominen

On 29/07/14 20:22, Neil Bothwick wrote:
> On Tue, 29 Jul 2014 18:25:15 +0200, Jarry wrote:
>
>> 
>> * Creating list of required static device nodes for the current
>> kernel... Warning: /lib/modules/3.12.21-gentoo-r1/modules.devname not
>> found - ignor 
>>
>> What does it mean and how can I get rid of it?
> By creating the missing file :)
>
>> Strange is, I do not have this message on any other system
>> (and I installed them the same way). All are updated, using
>> the same kernel. None of them is using modules, none of them
>> has /lib/modules/3.12.21-gentoo-r1/modules.devname and none
>> of them complains. Except this new one...
> /lib/modules/${uname -r)/modules.devname is created by depmod -a.
>
>

Right, and if he is using monolitic kernel with CONFIG_MODULES=n in
kernel /usr/src/linux/.config,
with no modules at all, then he should remove 'kmod-static-nodes' init
script from the runlevels
to silence the warning
That is, if that's really true, otherwise use `depmod -a`

- Samuli



Re: [gentoo-user] modules.devname not found...

2014-07-29 Thread Neil Bothwick
On Tue, 29 Jul 2014 18:25:15 +0200, Jarry wrote:

> 
> * Creating list of required static device nodes for the current
> kernel... Warning: /lib/modules/3.12.21-gentoo-r1/modules.devname not
> found - ignor 
> 
> What does it mean and how can I get rid of it?

By creating the missing file :)

> Strange is, I do not have this message on any other system
> (and I installed them the same way). All are updated, using
> the same kernel. None of them is using modules, none of them
> has /lib/modules/3.12.21-gentoo-r1/modules.devname and none
> of them complains. Except this new one...

/lib/modules/${uname -r)/modules.devname is created by depmod -a.


-- 
Neil Bothwick

The careful application of terror is also a form of communication.


signature.asc
Description: PGP signature


Re: [gentoo-user] USE flags handling

2014-07-29 Thread Philip Webb
140729 behrouz khosravi wrote:
> I just concurred my fear and jumped to installing gentoo!
 ^ 'conquered' (smile) : 'concur' = 'agree'.
> So far so good!

Yes, it's not difficult, but it's a sort of initiation test.

> Before installing on my laptop and desktop,
> I am trying on virtual box and the system is running Fluxbox very good.

Yes, Fluxbox is less well-known than it should be : it's excellent.

> Now I am thinking about managing USE flags.
> What if I disable everything in the make.conf ( I mean USE="-*" )
> and gradually add the needed flags to package.use?

That's what I've done for years, but others will react in horror (smile).
It's ok, provided you check the use flags for applications,
whenever you emerge new versions : occasionally otherwise, it can hurt.

> I just want to expand my knowledge!

This is a very polite & friendly list with good advice available.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] USE flags handling

2014-07-29 Thread behrouz khosravi
Hello everyone.
I just concurred my fear and jumped to installing gentoo!
So far so good!
Before installing on my laptop and desktop, I am trying on virtual box
and the system is running Fluxbox very good.(default profile)
Now I am thinking about managing USE flags.
What if I  disable everything in the make.conf ( I mean USE="-*" ) and
gradually add the needed flags to package.use?
I am not trying to have severe control, I just want to expand my knowledge!
thanks.



[gentoo-user] modules.devname not found...

2014-07-29 Thread Jarry

Hi Gentoo-users,
I just installed Gentoo on one more system and everything
seems to be OK except for one strange boot-up message
between "Mounting /dev/shm" and "Mounting /sys":

* Creating list of required static device nodes for the current kernel...
Warning: /lib/modules/3.12.21-gentoo-r1/modules.devname not found - ignor


What does it mean and how can I get rid of it?

Strange is, I do not have this message on any other system
(and I installed them the same way). All are updated, using
the same kernel. None of them is using modules, none of them
has /lib/modules/3.12.21-gentoo-r1/modules.devname and none
of them complains. Except this new one...

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] a question about updating process

2014-07-29 Thread behrouz khosravi
> However, the project have somehow become quiet, probably as the
> bandwidth and data volumes are no longer such an issue.

thanks for your help, however bandwidth is always an issue for me and
it seems that always will be! unfortunately I  am living in Iran,
which means low speed and high price!



Re: [gentoo-user] a question about updating process

2014-07-29 Thread Ján Zahornadský
There used to be this tool, deltup, that was providing binary patches
given what versions you have already downloaded and what you are trying
to download, which sounds like something that would answer your question.

However, the project have somehow become quiet, probably as the
bandwidth and data volumes are no longer such an issue.

On 29/07/14 12:08, behrouz khosravi wrote:
> hello everyone.
> I was trying to emerge chromium and I noticed that it should download
> about 200 Mb, and no wonder cause it is source files, not binary executable.
> However I wanted to know that if a new version of chromium comes out, an
> update will download another 200 Mb or just a diff files to patch the
> altered files ? (I am a new user and I have not experienced that situation!)
> Regards



Re: [gentoo-user] a question about updating process

2014-07-29 Thread Alan McKinnon
On 29/07/2014 13:45, behrouz khosravi wrote:
> Thanks every one.
> 
> I guess I got it know !
> And I must say that the way Gentoo is working now, is simple, no doubts.
> 
> And I am surprised to hear that Gentoo is so strict to follow upstream.
> I guess it makes it the most vanilla flavored, And I really like it !

It also makes the Gentoo dev's life so much easier.

You do not want to get into maintaining custome patchsets for everything
under the sun the way Ubuntu and RedHat do it

That's a maintenance nightmare and a manpower sink of note :-)




-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] a question about updating process

2014-07-29 Thread behrouz khosravi
Thanks every one.

I guess I got it know !
And I must say that the way Gentoo is working now, is simple, no doubts.

And I am surprised to hear that Gentoo is so strict to follow upstream.
I guess it makes it the most vanilla flavored, And I really like it !



Re: [gentoo-user] a question about updating process

2014-07-29 Thread Neil Bothwick
On Tue, 29 Jul 2014 12:25:09 +0100, thegeezer wrote:

> to save yourself the downloads you might want to look into setting up
> your own PORTAGE_BINHOST that you can redistribute from, but be wary
> that different devices may require different compile options, so you can
> sacrifice speed for compatibility by using more generic makeoptions

If you're looking to save on downloads for multiple machines, simply make
$DISTDIR a network share, then only the first machine to emerge the
package has to download the source.


-- 
Neil Bothwick

If you think that there is good in everybody, you haven't met everybody.


signature.asc
Description: PGP signature


Re: [gentoo-user] a question about updating process

2014-07-29 Thread Alan McKinnon
On 29/07/2014 12:52, behrouz khosravi wrote:
> well chromium was just an example. I just think that when there is a
> version upgrade, a patch should be enough.
> I have read that portage is migrating to git, but I guess I got it
> wrong, because I thought that the source codes will be maintained using
> git too.
> However why not? why not use git for source maintenance too?

The tree will OneDayRealSoonNow(TM)IPromise[1] be hosted in git.

Source tarballs? No. They belong to upstream and gentoo will do as
gentoo always has - follow upstream.

The downsides to running gentoo are

1. Lots of compiling
2. Lots of downloading

There is nothing we can do to reduce these downsides - that is the price
of the amazing flexibility from USE.

If you can't afford the downloads, you must switch to another distro, or
use a proxy. But it's not something Gentoo can solve



[1] Excuse the sarcasm, it's a gentoo in-joke how long this is taking
(or if it will ever be complete at all)



> 
> regards.
> 
> 
> On Tue, Jul 29, 2014 at 2:59 PM, Neil Bothwick  > wrote:
> 
> On Tue, 29 Jul 2014 14:38:04 +0430, behrouz khosravi wrote:
> 
> > I was trying to emerge chromium and I noticed that it should download
> > about 200 Mb, and no wonder cause it is source files, not binary
> > executable. However I wanted to know that if a new version of chromium
> > comes out, an update will download another 200 Mb or just a diff files
> > to patch the altered files ? (I am a new user and I have not
> > experienced that situation!)
> 
> It will download the source for the new version, which is generally a
> separate tarball, so another 200MB. That's how Gentoo works, with very
> few exceptions that source is downloaded and compiled.
> 
> If you want to avoid the large download and lengthy compile time of
> chromium, use www-client/google-chrome instead, this is the pre-compiled
> binary from Google.
> 
> 
> --
> Neil Bothwick
> 
> EMail - garbage at the speed of light.
> 
> 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] a question about updating process

2014-07-29 Thread thegeezer
On 29/07/14 12:00, Rich Freeman wrote:
> On Tue, Jul 29, 2014 at 6:52 AM, behrouz khosravi  
> wrote:
>> well chromium was just an example. I just think that when there is a version
>> upgrade, a patch should be enough.
> For things like backports you're fairly likely to only get a patch.
> However, for an upstream version change (which chromium seems to have
> every other week) you're probably going to get a full tarball.
>
>> I have read that portage is migrating to git, but I guess I got it wrong,
>> because I thought that the source codes will be maintained using git too.
>> However why not? why not use git for source maintenance too?
> Portage probably will migrate to git at some point, but when it does
> you'll probably not notice a thing.
>
> Gentoo doesn't maintain the source to chromium - upstream does.  In
> some cases Gentoo doesn't even redistribute the source (licensing
> issues).  For chromium Google publishes a tarball on googleapis.com
> and Gentoo mirrors it.
>
> There has been talk about creating some kind of source repository for
> things like patches/etc, but that isn't going to really change when we
> distribute patches vs upstream tarballs.  Generally speaking upstream
> tarballs are preferred over patches to keep things simple.  With what
> we do now you know you're basically getting chromium as upstream
> distributes it.  If we were to just mirror chrome-25 and 300 binary
> diffs to patch it up to the current version nobody could keep track of
> it all, and while you'd save some space on each upgrade your first
> install might involve downloading 10GB of diffs unless we went even
> further and had a variety of full vs incremental files.  This has been
> discussed in terms of having portage on squashfs and just doing it for
> our own stuff looks to be fairly painful, let alone doing it for every
> upstream out there.
>
> Rich
>
The big issue I see in doing this would be that if you for example don't
have libreoffice or something then you would need to download the source
and the patches and then crucially keep a copy everywhere so that it can
be patched in the future.   the way it works currently portage fetches
from a suitable mirror everything it needs and then cleans up after
itself, so /usr/portage remains of a certain size.

if we were all to download all sources and then have portage only fetch
diffs then we would all need to have an equivalent of a full slakware
DVD kit on hand which starts getting very unruly very easily - even if
we only wanted a minimal gentoo with iproute2.

to save yourself the downloads you might want to look into setting up
your own PORTAGE_BINHOST that you can redistribute from, but be wary
that different devices may require different compile options, so you can
sacrifice speed for compatibility by using more generic makeoptions

hth



Re: [gentoo-user] a question about updating process

2014-07-29 Thread Rich Freeman
On Tue, Jul 29, 2014 at 6:52 AM, behrouz khosravi  wrote:
> well chromium was just an example. I just think that when there is a version
> upgrade, a patch should be enough.

For things like backports you're fairly likely to only get a patch.
However, for an upstream version change (which chromium seems to have
every other week) you're probably going to get a full tarball.

> I have read that portage is migrating to git, but I guess I got it wrong,
> because I thought that the source codes will be maintained using git too.
> However why not? why not use git for source maintenance too?

Portage probably will migrate to git at some point, but when it does
you'll probably not notice a thing.

Gentoo doesn't maintain the source to chromium - upstream does.  In
some cases Gentoo doesn't even redistribute the source (licensing
issues).  For chromium Google publishes a tarball on googleapis.com
and Gentoo mirrors it.

There has been talk about creating some kind of source repository for
things like patches/etc, but that isn't going to really change when we
distribute patches vs upstream tarballs.  Generally speaking upstream
tarballs are preferred over patches to keep things simple.  With what
we do now you know you're basically getting chromium as upstream
distributes it.  If we were to just mirror chrome-25 and 300 binary
diffs to patch it up to the current version nobody could keep track of
it all, and while you'd save some space on each upgrade your first
install might involve downloading 10GB of diffs unless we went even
further and had a variety of full vs incremental files.  This has been
discussed in terms of having portage on squashfs and just doing it for
our own stuff looks to be fairly painful, let alone doing it for every
upstream out there.

Rich



Re: [gentoo-user] a question about updating process

2014-07-29 Thread behrouz khosravi
well chromium was just an example. I just think that when there is a
version upgrade, a patch should be enough.
I have read that portage is migrating to git, but I guess I got it wrong,
because I thought that the source codes will be maintained using git too.
However why not? why not use git for source maintenance too?

regards.


On Tue, Jul 29, 2014 at 2:59 PM, Neil Bothwick  wrote:

> On Tue, 29 Jul 2014 14:38:04 +0430, behrouz khosravi wrote:
>
> > I was trying to emerge chromium and I noticed that it should download
> > about 200 Mb, and no wonder cause it is source files, not binary
> > executable. However I wanted to know that if a new version of chromium
> > comes out, an update will download another 200 Mb or just a diff files
> > to patch the altered files ? (I am a new user and I have not
> > experienced that situation!)
>
> It will download the source for the new version, which is generally a
> separate tarball, so another 200MB. That's how Gentoo works, with very
> few exceptions that source is downloaded and compiled.
>
> If you want to avoid the large download and lengthy compile time of
> chromium, use www-client/google-chrome instead, this is the pre-compiled
> binary from Google.
>
>
> --
> Neil Bothwick
>
> EMail - garbage at the speed of light.
>


Re: [gentoo-user] a question about updating process

2014-07-29 Thread Neil Bothwick
On Tue, 29 Jul 2014 14:38:04 +0430, behrouz khosravi wrote:

> I was trying to emerge chromium and I noticed that it should download
> about 200 Mb, and no wonder cause it is source files, not binary
> executable. However I wanted to know that if a new version of chromium
> comes out, an update will download another 200 Mb or just a diff files
> to patch the altered files ? (I am a new user and I have not
> experienced that situation!)

It will download the source for the new version, which is generally a
separate tarball, so another 200MB. That's how Gentoo works, with very
few exceptions that source is downloaded and compiled.

If you want to avoid the large download and lengthy compile time of
chromium, use www-client/google-chrome instead, this is the pre-compiled
binary from Google.


-- 
Neil Bothwick

EMail - garbage at the speed of light.


signature.asc
Description: PGP signature


Re: [gentoo-user] Contradictionary behaviour of SMART on hds ?!?

2014-07-29 Thread Mick
On Sunday 27 Jul 2014 17:50:49 meino.cra...@gmx.de wrote:

> I executed the mkswap/dd combo a several times today. Since I have
> no logs I repeated again. Here are the results:
> 
> solfire:/home/user>mkswap -L swap -f -c /dev/sda2
> 1 bad page
> mkswap: /dev/sda2: warning: wiping old swap signature.
> Setting up swapspace version 1, size = 6291448 KiB
> LABEL=swap, UUID=e742c0a6-862c-41e9-be4b-698b33c5a236
> solfire:/home/user>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
> dd: error writing ‘/dev/sda2’: Input/output error
> 1669369+0 records in
> 1669368+0 records out
> 854716416 bytes (855 MB) copied, 28.4799 s, 30.0 MB/s
> [1]24047 exit 1 dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
> solfire:/home/user>

Ahh!  This is a different result to what you showed previously, unless you 
chopped off the output last time.  It now shows that it was able to write:

 1669368 x 512 = 854,716,416 bytes 

out of a total sda2 partition size of 6.29 GiB.

> I am a little anxious about the hdparm command...
> For me it is unclear what sector is meant:
> 
> smartclt says:
> Num  Test_DescriptionStatus  Remaining  LifeTime(hours)
>  LBA_of_first_error # 1  Selective offline   Completed: read failure  
> 90% 14500 4288352511
> 
> From a previous posting I learned that "LBA" in this case is the byte
> counter.
> 
> The sector is therefore 4288352511/512=8375688

OK, let's not confuse ourselves:  LBA counting starts from zero.

Therefore, if you subtract the start of the sda2 partition it becomes:

4288352511 - 104448 = 4288248063 / 512 = 8,375,484.5 bytes, within the sda2 
partition.

Unless my maths failed me above, I can't say I understand why dd bailed out 
after writing 854,716,416 bytes, but smartctl failed earlier than that reading 
just 8,375,484.5 bytes.  Perhaps dd can write further, than what smartctl can 
read without error, because these are two different mechanisms - but I am 
guessing wildly.  :-)

Someone more knowledgeable should chime in here.

PS. I'm copying you in just in case this is lost in your Inbox - I had to 
resend it because I used the wrong From address by mistake and I suspect it 
never made it to the list.
-- 
Regards,
Mick


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


[gentoo-user] a question about updating process

2014-07-29 Thread behrouz khosravi
hello everyone.
I was trying to emerge chromium and I noticed that it should download about
200 Mb, and no wonder cause it is source files, not binary executable.
However I wanted to know that if a new version of chromium comes out, an
update will download another 200 Mb or just a diff files to patch the
altered files ? (I am a new user and I have not experienced that situation!)
Regards


Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?

2014-07-29 Thread behrouz khosravi
oh, I guess I have to let it be!
Thanks.


Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?

2014-07-29 Thread Peter Humphrey
On Tuesday 29 July 2014 12:19:14 behrouz khosravi wrote:
> oh my bad!
> Believe me, I did an honest mistake! and I am very sorry for that.
> Thanks for you help and again, may apologies.
> 
> On Mon, Jul 28, 2014 at 8:27 PM, Neil Bothwick  wrote:
> > On Mon, 28 Jul 2014 19:59:16 +0430, behrouz khosravi wrote:
> > > I was wondering that is it possible to make portage to sync a only a
> > > subset of portage tree. For example I have not installed Gnome and I
> > > dont want to sysc command download ebuilds related to this branch.
> > 
> > Please do not top-post
> > Please do not hijack threads.
> > 
> > If you have a new question to ask, start a new thread, don't use a thread
> > dedicated to a different question.
> > 
> > The short answer to your question is "no" - unless you want to start
> > messing with RSYNC_OPTS in make.conf to add exclude directives, but that
> > could break dependency resolution.

And besides, a few gnome packages are needed by other parts of the system. My 
KDE box, for example, has gnome-base/libglade and gnome-base/librsvg:


So you shouldn't want to do it anyway.

-- 
Regards
Peter




Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?

2014-07-29 Thread behrouz khosravi
oh my bad!
Believe me, I did an honest mistake! and I am very sorry for that.
Thanks for you help and again, may apologies.


On Mon, Jul 28, 2014 at 8:27 PM, Neil Bothwick  wrote:

> On Mon, 28 Jul 2014 19:59:16 +0430, behrouz khosravi wrote:
>
> > I was wondering that is it possible to make portage to sync a only a
> > subset of portage tree. For example I have not installed Gnome and I
> > dont want to sysc command download ebuilds related to this branch.
>
> Please do not top-post
> Please do not hijack threads.
>
> If you have a new question to ask, start a new thread, don't use a thread
> dedicated to a different question.
>
> The short answer to your question is "no" - unless you want to start
> messing with RSYNC_OPTS in make.conf to add exclude directives, but that
> could break dependency resolution.
>
>
> --
> Neil Bothwick
>
> This is a test of the emergency tagline stealing system.
>


Re: [gentoo-user] Arrh - my KDE "look" has disappeared

2014-07-29 Thread Neil Bothwick
On Tue, 29 Jul 2014 11:47:55 +0800, Andrew Lowe wrote:

>   Fired up the 'puter last night and instead of a backdrop
> showing the dog doing something stupid, a task bar, the start button
> thingy, and a few other bits and pieces, I had the default KDE
> backdrop. The task bar was on the second screen, the backdrop was the
> default, there was no start button etc. What's happened?? Obviously
> KDE has freaked out in some way, but how? Where are the files that
> configure the look and feel of my desktop kept? I've looked in
> ~/Desktop and ~/.kde4 and there was nothing there.

The files should be in ~/.kde4/share/config, so if ~/.kde4 is empty you
have a problem. Let's hope you also have a backup.


-- 
Neil Bothwick

Life Support System Failure - Reboot Patient (Y/n)?


signature.asc
Description: PGP signature