Re: [gentoo-user] Dual or Quad CPU complications?

2012-12-12 Thread J. Roeleveld
Florian Philipp  wrote:

>Am 13.12.2012 07:23, schrieb Alan McKinnon:
>> On Wed, 12 Dec 2012 22:12:18 -0800
>> Grant  wrote:
>> 
>>> I've only ever used systems with a single CPU.  I'm looking for a
>new
>>> host for a dedicated server (suggestions?) and it looks like I'll
>>> probably choose a machine with two or four CPUs.  What sort of
>>> complications does that add to set up and/or maintenance with
>Gentoo?
>> 
>> No complication.
>> 
>> Configure CONFIG_SMP in the the kernel for multicore.
>> Everything else is transparent.
>> 
>> Cores make threads work better, so you'd want to investigate if
>> USE="threads" is useful for you.
>> 
>> 
>
>I think he's looking for advice on NUMA, not SMP.

NUMA is also an option in the kernel. Should also be fully transparent.
I got one machine with NUMA and only had to set an option for it.

Does anyone know how to check it's working properly?

--
Joost
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Dual or Quad CPU complications?

2012-12-12 Thread Florian Philipp
Am 13.12.2012 07:23, schrieb Alan McKinnon:
> On Wed, 12 Dec 2012 22:12:18 -0800
> Grant  wrote:
> 
>> I've only ever used systems with a single CPU.  I'm looking for a new
>> host for a dedicated server (suggestions?) and it looks like I'll
>> probably choose a machine with two or four CPUs.  What sort of
>> complications does that add to set up and/or maintenance with Gentoo?
> 
> No complication.
> 
> Configure CONFIG_SMP in the the kernel for multicore.
> Everything else is transparent.
> 
> Cores make threads work better, so you'd want to investigate if
> USE="threads" is useful for you.
> 
> 

I think he's looking for advice on NUMA, not SMP.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Dual or Quad CPU complications?

2012-12-12 Thread Alan McKinnon
On Wed, 12 Dec 2012 22:12:18 -0800
Grant  wrote:

> I've only ever used systems with a single CPU.  I'm looking for a new
> host for a dedicated server (suggestions?) and it looks like I'll
> probably choose a machine with two or four CPUs.  What sort of
> complications does that add to set up and/or maintenance with Gentoo?

No complication.

Configure CONFIG_SMP in the the kernel for multicore.
Everything else is transparent.

Cores make threads work better, so you'd want to investigate if
USE="threads" is useful for you.


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




[gentoo-user] Dual or Quad CPU complications?

2012-12-12 Thread Grant
I've only ever used systems with a single CPU.  I'm looking for a new host
for a dedicated server (suggestions?) and it looks like I'll probably
choose a machine with two or four CPUs.  What sort of complications does
that add to set up and/or maintenance with Gentoo?

- Grant


Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Pandu Poluan
On Dec 13, 2012 12:10 PM, "Alan McKinnon"  wrote:
>
> On Wed, 12 Dec 2012 11:26:02 -0600
> Bruce Hill  wrote:
>
> > On Wed, Dec 12, 2012 at 05:05:30PM +, James wrote:
> > >
> > > Alan, one of the keenest reasons ARM is dominating
> > > NOW, is that in the early 1990 one person, helped
> > > many fledling embedded linux hacks get embedded
> > > linux running on many different flavors of ARM
> > > processors.
> > >
> > > RUSSELL is KING, and imho is the predominant
> > > reason today, a decade later, that ARM dominates
> > > the embedded space. Just look at the vintage
> > > embedded linux ports to hundreds of boards that
> > > mostly impoverished little companies built
> > > and ONE MAN stood in the gap for them all to
> > > realize their dreams:
> > >
> > > http://www.arm.linux.org.uk/developer/machines/
> > >
> > > Intel and the rest wanted everyone to purchase expensive
> > > dev board, licensed embedded RTOSes, and binaries
> > > for most add on hardware. A prospect that precluded
> > > the little companies from fair competition.
> > >
> > > RUSSELL KING should be wealthy and on the Board
> > > of directors for ARM ltd. for his unselfish
> > > and heroic efforts! More than anyone else, he
> > > made arm-linux a doable for thousands of companies
> > > back when the embedded world did not think much
> > > of linux nor embedded linux. (I know I hacked on a
> > > few of those old projects)
> > >
> > > Intel has nothing but a bunch of blood sucking
> > > lawyers and assholes that think they are better
> > > than the rest of us; and they shall fall!
> > >
> > > >From the Bible: "You reap what you sow"...
> > > My most sincerest hope is that we take the embedded
> > > gentoo efforts from the the embedded gentoo handbook,
> > > and integrate them into the regular Gentoo handbook.
> > > The distro that does this will be king of the distros!
> > >
> > > http://www.gentoo.org/proj/en/base/embedded/handbook/
> > >
> > > peace,
> > > James
> >
> > ack for Russell King
>
> +1 to that too.
>
> I'd also like to tip my hat to ARM itself - their licensing conditions
> to build cores seems very reasonable and a good deal for a
> manufacturer, all bases covered.
>
> It's nice to see a chip designer not falling into the intel trap of
> trying to rape every customer for every last cent they have!
>

Don't get me started on that...

I hate them for 'selectively' making CPU Features available. In my previous
company, we more than once have to send back newly-purchased PCs because
apparently the model we ordered had an 'upgrade', yet the *newer* CPU
doesn't support VT-x.

Such thing never happen with AMD Desktop CPUs.

That's why my next home rig will be AMD-based.

Rgds,
--


Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Alan McKinnon
On Wed, 12 Dec 2012 11:26:02 -0600
Bruce Hill  wrote:

> On Wed, Dec 12, 2012 at 05:05:30PM +, James wrote:
> > 
> > Alan, one of the keenest reasons ARM is dominating
> > NOW, is that in the early 1990 one person, helped
> > many fledling embedded linux hacks get embedded
> > linux running on many different flavors of ARM
> > processors.
> > 
> > RUSSELL is KING, and imho is the predominant
> > reason today, a decade later, that ARM dominates
> > the embedded space. Just look at the vintage
> > embedded linux ports to hundreds of boards that
> > mostly impoverished little companies built
> > and ONE MAN stood in the gap for them all to
> > realize their dreams:
> > 
> > http://www.arm.linux.org.uk/developer/machines/
> > 
> > Intel and the rest wanted everyone to purchase expensive
> > dev board, licensed embedded RTOSes, and binaries
> > for most add on hardware. A prospect that precluded
> > the little companies from fair competition.
> > 
> > RUSSELL KING should be wealthy and on the Board
> > of directors for ARM ltd. for his unselfish
> > and heroic efforts! More than anyone else, he
> > made arm-linux a doable for thousands of companies
> > back when the embedded world did not think much
> > of linux nor embedded linux. (I know I hacked on a 
> > few of those old projects)
> > 
> > Intel has nothing but a bunch of blood sucking
> > lawyers and assholes that think they are better
> > than the rest of us; and they shall fall!
> > 
> > >From the Bible: "You reap what you sow"...
> > My most sincerest hope is that we take the embedded
> > gentoo efforts from the the embedded gentoo handbook,
> > and integrate them into the regular Gentoo handbook.
> > The distro that does this will be king of the distros!
> > 
> > http://www.gentoo.org/proj/en/base/embedded/handbook/
> > 
> > peace,
> > James
> 
> ack for Russell King

+1 to that too.

I'd also like to tip my hat to ARM itself - their licensing conditions
to build cores seems very reasonable and a good deal for a
manufacturer, all bases covered.

It's nice to see a chip designer not falling into the intel trap of
trying to rape every customer for every last cent they have!



> 
> Wish my Samsung Galaxy S could have it's piece of crap Android system
> replaced by arm-linux -- if not it will drive me back to an iPhone.
> 
> Well, idk James, but his passion is great to read!



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




Re: [gentoo-user] crontab questions

2012-12-12 Thread Michael Orlitzky
On 12/12/2012 05:09 PM, Grant wrote:
>>
>> at roughly the time specified in /etc/crontab. If any of those
>> directories contain scripts, they're run in "alphabetical" order, i.e.
>> how `ls` would sort them.
> 
> Thanks Michael.  I'd like to have more control over when the commands
> are run.  Maybe the system crontab (cronbase) should be used when that
> control isn't necessary or to allow programs to add stuff to a crontab,
> and a user crontab should be used when more control is necessary?
> 

I personally like the idea of the cron.{daily,weekly,...}, but the
implementation is a little goofy. On our mail server, I've added an
additional directory called cron.bihourly to update virus/spam
signatures every two hours. The simplest way to accomplish this is to add,

  # Run every two hours
  0  */2 * * *  root   find -L /etc/cron.bihourly -type f -executable \
-execdir '{}' \;

in the global /etc/crontab. I'm sure this is horribly deficient
according to whoever implemented the run-crons stuff, but for me the
additional clarity is worth it.

You can of course add anything else you like in the global/user
crontabs, and they'll work normally.

But be careful: do you really want `emerge -puDN` to run 15 minutes
after you start an `eix-sync`? Or do you just want it to run when
`eix-sync` is done? If it's the latter, you don't want to schedule it 15
minutes later -- you could hit a slow mirror and still be updating when
the `emerge` kicks off. In that case it's better to put all of the
commands in one script, and schedule that when you want. That way the
commands occur in sequence, and you can bail out if something fails.


>> To fix the Subject/From headers, try,
>>
>>   http://www.postfix.org/header_checks.5.html
>>
>> I've never had to use them myself, but I think the REPLACE action will
>> do what you want. The alternative is to replace the sendmail binary with
>> something that executes e.g.,
>>
>>   sed -e 's/Subject: Cron <[^>]> /Subject: /g' | /the/actual/sendmail
>>
>> Both feel a little dirty, but the header checks are less likely to break
>> something assuming that they will work on a client-provided From header.
> 
> I think it's better for me to pipe the commands to mailx.  I get mail if
> I run this on the command line
> 
> emerge -pvDuN world | /usr/bin/mail -s "subject" -a "From: from"
> m...@email.com 
> 
> But I don't get any mail when it runs in the crontab.  Do you know why
> that's happening?  I do get mail from 'emerge -pvDuN world' run in the
> crontab without piping it to mail.

I'm not sure. I do the same thing, though, albeit with a temporary file
(and it works). Maybe try `echo`ing the output to a file? This script
emails me the current iptables to make sure fail2ban hasn't gone berserk:

  #!/bin/bash

  # Send the current iptables -L -n output to the postmaster.

  TMPFILE=/tmp/iptables-state.log
  MAILADDR="postmas...@example.com"

  echo "To: $MAILADDR" > $TMPFILE
  echo "From: r...@mx1.example.com" >> $TMPFILE
  echo "Subject: mx1 iptables state" >> $TMPFILE

  iptables -L -n >> $TMPFILE

  sendmail -f r...@mx1.example.com \
   $MAILADDR  \
   < $TMPFILE

  rm $TMPFILE

It's not very fancy but it does work. If a temp file works for you, it
might help you narrow down the problem.



Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Grant
>   Problems with using embedded kernels as a base...
>
> * they use uclibc, which has some APIs that differ from glibc.  This
>   could break Flash, proprietary video driver binary blobs, and who
>   knows what else.
>
> * they generally use busybox symlinks in place of most core utils.  The
>   busybox versions don't always exactly match the standalone versions.
>   You would have to tweak quite a few scripts to fix that.

When you say embedded kernels you may mean something I'm not familiar with,
but I use a patched vanilla kernel with Gentoo on the Beaglebone and it
works great.  No uclibc and no busybox.

>   It would be interesting to see a "micro" port of Gentoo.  But you can
> forget about bringing over KDE-OS, GNOME-OS, or CHROME-OS.  If/when
> gnash is finally ready, or HTML replaces Flash, I could see Gentoo
> running with ICEWM or a lightweight desktop like XFCE or LXDE.

I don't think that's right.  I have a Pandaboard ES with a dual-core 1.2Ghz
CPU and 1GB RAM and I bet it would run Gnome just fine.  Again, maybe
you're referring to something here that I'm not familiar with.

- Grant


Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Walter Dnes
On Wed, Dec 12, 2012 at 05:05:30PM +, James wrote

> My most sincerest hope is that we take the embedded
> gentoo efforts from the the embedded gentoo handbook,
> and integrate them into the regular Gentoo handbook.
> The distro that does this will be king of the distros!
> 
> http://www.gentoo.org/proj/en/base/embedded/handbook/

  Problems with using embedded kernels as a base...

* they use uclibc, which has some APIs that differ from glibc.  This
  could break Flash, proprietary video driver binary blobs, and who
  knows what else.

* they generally use busybox symlinks in place of most core utils.  The
  busybox versions don't always exactly match the standalone versions.
  You would have to tweak quite a few scripts to fix that.

  Alpine Linux is based on uclibc and busybox (including mdev).  From
http://wiki.alpinelinux.org/wiki/Alpine_Linux:Overview

> Note: As the About page says, Alpine is "designed for x86 Routers,
> Firewalls, VPNs, VoIP and servers." But it's a perfectly workable
> desktop system, too. The shortcomings just have to do with the small
> community, and that sometimes you may need to get your hands dirty
> modifying scripts written with more mainstream desktop distros in
> mind.  So you probably won't want to use Alpine if you're a newcomer
> to Linux.  If you're already comfortable with another distro, though,
> especially a power-user, less-hand-holding distro like ArchLinux or
> Gentoo, you should do fine.

  It would be interesting to see a "micro" port of Gentoo.  But you can
forget about bringing over KDE-OS, GNOME-OS, or CHROME-OS.  If/when
gnash is finally ready, or HTML replaces Flash, I could see Gentoo
running with ICEWM or a lightweight desktop like XFCE or LXDE.

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



Re: [gentoo-user] Just Testing

2012-12-12 Thread Colleen Beamer
On 12/12/12 18:04, Rod Smart wrote:
> Just check that you didn't accidentally mark the relevent Emails as 
> junk/spam, and as they come
in, they get removed as if they are spam :/
Oddly enough, the two responses to my e-mail landed in my Inbox.  I
thought of what you are suggesting, Rod, and as a test, I changed some
Thunderbird settings - originally, I had set that messages I marked as
Junk were to be deleted.  However, thinking I may have inadvertently
marked a gentoo-user e-mail as junk, I changed the setting to move any
e-mail that I marked as Junk to the Junk folder.

The two responses to my e-mail did not land in my Junk folder so perhaps
the change in settings rectified things.

Regards,

Colleen

>
>
>
> Sent from my ASUS Pad
>
> Colleen Beamer  wrote:
>
>> Hi,
>>
>> Recently, I cleared out some "gentoo-user" e-mail from Firefox and now
>> it seems that Thunderbird is automatically deleting any gentoo-user
>> e-mail when it arrives in my inbox. The address is still in my personal
>> address book, but not in my collected address so, I'm not sure what is
>> going on. Just sending this as a test.
>>
>> Colleen
>>
>> --
>>
>> Registered Linux User #411143 with the Linux Counter,
http://counter.li.org
>>
>>


-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org



Re: [gentoo-user] Just Testing

2012-12-12 Thread Rod Smart
Just check that you didn't accidentally mark the relevent Emails as junk/spam, 
and as they come in, they get removed as if they are spam :/

  
Sent from my ASUS Pad

Colleen Beamer  wrote:

>Hi,
>
>Recently, I cleared out some "gentoo-user" e-mail from Firefox and now
>it seems that Thunderbird is automatically deleting any gentoo-user
>e-mail when it arrives in my inbox.  The address is still in my personal
>address book, but not in my collected address so, I'm not sure what is
>going on.  Just sending this as a test.
>
>Colleen
>
>-- 
>
>Registered Linux User #411143 with the Linux Counter, http://counter.li.org
>
>


Re: [gentoo-user] Just Testing

2012-12-12 Thread Mark Knecht
Not sure if you're looking for a response but the mail made it to the list.

- Mark

On Wed, Dec 12, 2012 at 2:52 PM, Colleen Beamer
 wrote:
> Hi,
>
> Recently, I cleared out some "gentoo-user" e-mail from Firefox and now
> it seems that Thunderbird is automatically deleting any gentoo-user
> e-mail when it arrives in my inbox.  The address is still in my personal
> address book, but not in my collected address so, I'm not sure what is
> going on.  Just sending this as a test.
>
> Colleen
>
> --
>
> Registered Linux User #411143 with the Linux Counter, http://counter.li.org
>
>



[gentoo-user] Just Testing

2012-12-12 Thread Colleen Beamer
Hi,

Recently, I cleared out some "gentoo-user" e-mail from Firefox and now
it seems that Thunderbird is automatically deleting any gentoo-user
e-mail when it arrives in my inbox.  The address is still in my personal
address book, but not in my collected address so, I'm not sure what is
going on.  Just sending this as a test.

Colleen

-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org




Re: [gentoo-user] crontab questions

2012-12-12 Thread Grant
> > Is there a way to remove "Cron " from the subject line of
> > crontab mail without piping each cron job to 'mail'?
> >
> > I set 'usermod -c hostname root' on each of my systems so that the From:
> > line displays "hostname" for crontab mail.  This works on each system
> > except the mail server itself which still shows "Cron Daemon".  Can
> > crontab mail from the mail server be made to display From: "hostname"
> > like the other systems?
> >
> > I'm not completely clear on how cronbase works.  Can this crontab be
> > integrated into the system crontab via cronbase or should it be run as a
> > separate user crontab for root?
> >
> > 0 4 * * * layman -NS && eix-sync -n && eix-remote update -n
> > 15 4 * * * emerge -pvDuN world
> > 20 4 * * * eclean -C distfiles
> > 30 4 * * * eclean -C packages
> > 40 4 * * * eix-test-obsolete
> > 45 4 * * * revdep-rebuild -ip
> >
>
> If your goal is to run these each one after the other, you can simply
> stick a shell script in /etc/cron.daily that executes them in order.
>
> The default crontab runs any executable files in,
>
>   * /etc/cron.daily
>   * /etc/cron.hourly
>   * /etc/cron.monthly
>   * /etc/cron.weekly
>
> at roughly the time specified in /etc/crontab. If any of those
> directories contain scripts, they're run in "alphabetical" order, i.e.
> how `ls` would sort them.

Thanks Michael.  I'd like to have more control over when the commands are
run.  Maybe the system crontab (cronbase) should be used when that control
isn't necessary or to allow programs to add stuff to a crontab, and a user
crontab should be used when more control is necessary?

> To fix the Subject/From headers, try,
>
>   http://www.postfix.org/header_checks.5.html
>
> I've never had to use them myself, but I think the REPLACE action will
> do what you want. The alternative is to replace the sendmail binary with
> something that executes e.g.,
>
>   sed -e 's/Subject: Cron <[^>]> /Subject: /g' | /the/actual/sendmail
>
> Both feel a little dirty, but the header checks are less likely to break
> something assuming that they will work on a client-provided From header.

I think it's better for me to pipe the commands to mailx.  I get mail if I
run this on the command line

emerge -pvDuN world | /usr/bin/mail -s "subject" -a "From: from"
m...@email.com

But I don't get any mail when it runs in the crontab.  Do you know why
that's happening?  I do get mail from 'emerge -pvDuN world' run in the
crontab without piping it to mail.

- Grant


Re: [gentoo-user] netmount; sshd borked

2012-12-12 Thread William Kenworthy
Best would be to delete/move the module for that hardware, and
de-configure it from the kernel.

or

remap ethX manually using /etc/udev/rules.d/70-persistent-net.rules

BillK



On Wed, 2012-12-12 at 22:12 +0530, Nilesh Govindrajan wrote:
> On Wednesday 12 December 2012 09:51 PM, James wrote:
> > 
> > Hello,
> > 
> > OK so I'm now running udev-196-r1; booting fine now.
> > 
> > upon reboot:
> > net.eth0  [  stopped  ]
> > net.eth3  [  started  ]
> > netmount  [  stopped  ]
> > sshd  [  stopped  ]
> > 
> > eth0 is the mobo ethernet port, and it is fried.
> > I have not used it in years. eth3 is an add on 100M
> > ethernet card that has worked flawlessly. It is 
> > working fined still.
> > 
> >  /etc/conf.d/eth3 is set up and works just fine.
> > 
> > The easiest thing to do to fix this problem is
> > unmap the eth0 hardware. Where best to do that?
> > 
> > from lspci:
> > 00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2) 
> > 
> > 1:06.0 Ethernet controller: Digital Equipment Corporation 
> > DECchip 21142/43 (rev 41)
> > 
> > Ideas on how to best fix this? Make the Nvidia ethernet chip 
> > invisible and the dec ethernet chip will automaticall be eth0?
> > 
> > Other ideas?
> > 
> > James
> > 
> > 
> 
> Well, most motherboards give BIOS (UEFI?) option to disable some
> hardware that's present onboard.
> I've a relatively old machine, so don't know what's the thing with UEFI.
> My PC's BIOS has option to disable many things like Ethernet, Audio,
> Serial Port, etc.
> 





Re: [gentoo-user] Mounting floppy disks

2012-12-12 Thread Paul Hartman
On Wed, Dec 12, 2012 at 10:49 AM, Michael Mol  wrote:
> On Wed, Dec 12, 2012 at 8:54 AM, David W Noon  wrote:
>> On Tue, 11 Dec 2012 23:59:52 -0600, Paul Hartman wrote about
>> "[gentoo-user] Mounting floppy disks":
>>
>>>For some reason, when I mount floppy disk (standard HD 3.5" VFAT disk)
>>
>> Floppies are normally formatted as FAT12, not VFAT.
>
> Eh. I've seen FAT16 and FAT32 on 1.44MB floppies.
>
> Anyway, Paul should try
>
> file -s /dev/fd0
>
> and
>
> mount -t auto /dev/fd0 /mnt/floppy

Yes, that's what I've tried, and variations of -t auto and -t msdos
and -t vfat. So it was simply not working as expected...

I'm not at home now so I can't test, but I believe I've found the
explanation and probably the answer:
https://bugs.gentoo.org/show_bug.cgi?id=338185

It seems udisks:0 is unmounting my floppy as soon as I've mounted it.
There are various workarounds, ultimately removal of udisks:0 should
make the problem go away, but that is impossible at the moment because
I still have packages which depend on it. It seems Gentoo devs are
actively in the process of trying to eliminate udisks:0 so the problem
won't last forever. Until then there are work-arounds described in the
bug report that I can use.

I will try when I'm at home and provide an update then. Thanks for your help.



Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Bruce Hill
On Wed, Dec 12, 2012 at 05:55:53PM +, James wrote:
> Bruce Hill  happypenguincomputers.com> writes:
> 
> 
> > Wish my Samsung Galaxy S could have it's piece of crap Android system 
> > replaced
> > by arm-linux -- if not it will drive me back to an iPhone.
> 
> Your problem defined:
> 
> http://www.androidpolice.com/2012/05/03/yep-its-pretty-likely-the-galaxy-s-iii-wont-have-a-quad-core-processor-in-the-us/
> 
> http://en.wikipedia.org/wiki/Exynos_(system_on_chip)
> 
> Dev board:
> 
> http://www.engadget.com/2012/10/26/samsung-launches-arndale-community-board/
> 
> Now go find  embedded (gentoo?) Linux developers that have or are working
> on a port to the Arm15.
> 
> On this page:
> http://www.arm.linux.org.uk/developer/machines/
> 
> Look at entry: 3825
> 
>  All you really got to do is buy a dev board and give it to either 
> Armin76 or Vapier; they'll get embedded gentoo on that puppy and 
> figure out how to hack your Galaxy S-III. It's on my todo list.
> 
> http://armin762.wordpress.com/
> http://www.gentoo.org/proj/en/base/embedded/
> 
> gentoo.embedded is your friend!
> 
> Good hunting. post back and I'll get a dev board too!

Too busy with RL atm, but afaict that doesn't apply to my Samsung Galaxy S.

Notice, just S ... nothing afterwards.
-- 
Happy Penguin Computers   >')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Francesco Turco
On Wed, Dec 12, 2012, at 14:18, Alan McKinnon wrote:
> You are wrong, the docs and the man pages are correct.
> 
> The problem is that the word "set" is used in two different ways, one
> loosely and the other with reference to an exact construct.
> 
> portage-2.2 introduced the concept of "a defined set" under user
> control. It's a list of packages that portage treats as a whole chunk
> of things together and the user can define what he wants in a set and
> give it a name. When used with emerge, sets like this must have an "@"
> prefix so portage can tell them apart from regular packages. Portage
> also dynamically creates sets internally that work the same way, things
> like @world and @system and @preserved-rebuild. You can use these too,
> you just can't define them or modify them directly.
> 
> The portage man page has unfortunately also used the word "set" for a
> different reason. Portage has always had a concept of "world" (not
> @world) and "system" (not @system) which were really "just a bunch of
> stuff that happens to pop out of portage because it's hard-coded that
> way". And the docs say things like 
> 
> emerge world
> 
> and call the "world" part "the world set".
> 
> "Set" here is a homonym - two completely different words with different
> meanings that just happen to be spelled and sound the same.

I'm still not convinced. emerge(1) man page for portage-2.1.11.37
already contains the following command example:
> emerge --update --newuse --deep @world

And:
> emerge  --update  @world

But not a single example without the at sign.

I also found this (old) blog post from Portage developer Zac Medico:
http://blogs.gentoo.org/zmedico/2010/09/07/portage_2-1-9_release/. It
says:
> Package set names in emerge arguments have to be prefixed with @ (exceptions: 
> ‘world’ and ‘system’ can be used without the prefix).

So it seems that since version 2.1.9 @world and world (and @system and
system) are just treated in the same way, but prefixing them with the at
symbol is more future-proof.



[gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread James
Bruce Hill  happypenguincomputers.com> writes:


> Wish my Samsung Galaxy S could have it's piece of crap Android system replaced
> by arm-linux -- if not it will drive me back to an iPhone.

Your problem defined:

http://www.androidpolice.com/2012/05/03/yep-its-pretty-likely-the-galaxy-s-iii-wont-have-a-quad-core-processor-in-the-us/

http://en.wikipedia.org/wiki/Exynos_(system_on_chip)

Dev board:

http://www.engadget.com/2012/10/26/samsung-launches-arndale-community-board/

Now go find  embedded (gentoo?) Linux developers that have or are working
on a port to the Arm15.

On this page:
http://www.arm.linux.org.uk/developer/machines/

Look at entry: 3825

 All you really got to do is buy a dev board and give it to either 
Armin76 or Vapier; they'll get embedded gentoo on that puppy and 
figure out how to hack your Galaxy S-III. It's on my todo list.

http://armin762.wordpress.com/
http://www.gentoo.org/proj/en/base/embedded/

gentoo.embedded is your friend!

Good hunting. post back and I'll get a dev board too!






Re: [gentoo-user] Intel Atom: architecture, distcc, crossdev and compile flags

2012-12-12 Thread Florian Philipp
Am 12.12.2012 10:40, schrieb Neil Bothwick:
> On Wed, 12 Dec 2012 09:16:58 +0100, Florian Philipp wrote:
> 
>> I personally see no reason for encrypting root as there is nothing of
>> interest in there.
> 
> No passwords in /etc? The main reason I encrypt / is that wicd keeps its
> passwords in /etc.
> 
> 

I substitute with symlinks to /var/lib/*, /srv/* or similar.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] crossdev, alternate root, and build dependencies

2012-12-12 Thread Dustin C. Hatch
I am trying to understand and use crossdev to build Gentoo for my 
Raspberry Pi, and I have a couple of questions. I was able to 
successfully build a toolchain::


crossdev -S -t armv6j-hardfloat-linux-gnueabi

This correctly installed binutils, gcc, glibc, and linux-headers::

equery list cross-armv6j-hardfloat-linux-gnueabi/*
 * Searching for * in cross-armv6j-hardfloat-linux-gnueabi ...
[I-O] [  ] cross-armv6j-hardfloat-linux-gnueabi/binutils-2.22-r1:0
[I-O] [  ] cross-armv6j-hardfloat-linux-gnueabi/gcc-4.5.4:4.5
[I-O] [  ] cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3:2.2
[I-O] [  ] cross-armv6j-hardfloat-linux-gnueabi/linux-headers-3.6:0

I then copied the configuration from 
/usr/armv6j-hardfloat-linux-gnueabi/etc/portage to an alternate 
location, so I could modify it without impacting the crossdev toolchain. 
Next, I started to emerge some ebuilds into a staging directory using 
the following commands::


export CBUILD=$(portageq envvar CHOST)
export PORTAGE_CONFIGROOT=/home/dustin/rpi-build/configroot
export ROOT=/home/dustin/rpi-build/buildroot/
export PORTAGE_TMPDIR=/home/dusitn/rpi-build/tmp
emerge --nodeps baselayout
emerge --onlydeps baselayout

The first pass completed successfully, but the second failed to build 
psmisc::


checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... no
checking for tgetent in -ltermcap... no
configure: error: Cannot find tinfo, ncurses or termcap libraries

config.log shows this::

configure:3970: checking for tgetent in -lncurses
configure:3995: armv6j-hardfloat-linux-gnueabi-gcc -o conftest -O4
-pipe -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
-fomit-frame-pointer   conftest.c -lncurses   >&5
/usr/libexec/gcc/armv6j-hardfloat-linux-gnueabi/ld: cannot find
-lncurses
collect2: ld returned 1 exit status
configure:3995: $? = 1

ncurses did get installed in the alternate root::

ls -1 ${ROOT}lib/libncurses*
/home/dustin/rpi-build/buildroot/lib/libncurses.so.5
/home/dustin/rpi-build/buildroot/lib/libncurses.so.5.9
/home/dustin/rpi-build/buildroot/lib/libncursesw.so.5
/home/dustin/rpi-build/buildroot/lib/libncursesw.so.5.9

Now, I've found that if I install ncurses in /usr/${CHOST} instead of 
${ROOT}, psmisc will build successfully. I am thus confused on where 
things are supposed to be built. The Cross Development Guide says not to 
install pieces of the toolchain in /usr/${CHOST}, but some ebuilds, like 
openrc, have explicit RDEPENDs on them, so emerge pulls them in. I'm not 
sure how to resolve this seeming catch-22 where I can't install runtime 
dependencies in /usr/${CHOST}, but I also can't install build 
dependencies in in ${ROOT}.


I am hoping to have this process scriptable, so my current method of 
just installing missing build dependencies in /usr/${CHOST} after 
something fails won't work. Any pointers would be appreciated.


Thanks,

--
♫Dustin



Re: [gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread Bruce Hill
On Wed, Dec 12, 2012 at 05:05:30PM +, James wrote:
> 
> Alan, one of the keenest reasons ARM is dominating
> NOW, is that in the early 1990 one person, helped
> many fledling embedded linux hacks get embedded
> linux running on many different flavors of ARM
> processors.
> 
> RUSSELL is KING, and imho is the predominant
> reason today, a decade later, that ARM dominates
> the embedded space. Just look at the vintage
> embedded linux ports to hundreds of boards that
> mostly impoverished little companies built
> and ONE MAN stood in the gap for them all to
> realize their dreams:
> 
> http://www.arm.linux.org.uk/developer/machines/
> 
> Intel and the rest wanted everyone to purchase expensive
> dev board, licensed embedded RTOSes, and binaries
> for most add on hardware. A prospect that precluded
> the little companies from fair competition.
> 
> RUSSELL KING should be wealthy and on the Board
> of directors for ARM ltd. for his unselfish
> and heroic efforts! More than anyone else, he
> made arm-linux a doable for thousands of companies
> back when the embedded world did not think much
> of linux nor embedded linux. (I know I hacked on a 
> few of those old projects)
> 
> Intel has nothing but a bunch of blood sucking
> lawyers and assholes that think they are better
> than the rest of us; and they shall fall!
> 
> >From the Bible: "You reap what you sow"...
> My most sincerest hope is that we take the embedded
> gentoo efforts from the the embedded gentoo handbook,
> and integrate them into the regular Gentoo handbook.
> The distro that does this will be king of the distros!
> 
> http://www.gentoo.org/proj/en/base/embedded/handbook/
> 
> peace,
> James

ack for Russell King

Wish my Samsung Galaxy S could have it's piece of crap Android system replaced
by arm-linux -- if not it will drive me back to an iPhone.

Well, idk James, but his passion is great to read!
-- 
Happy Penguin Computers   >')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



[gentoo-user] Re: {OT} Will ARM take over the world?

2012-12-12 Thread James
Alan McKinnon  gmail.com> writes:


> > > 68k -> POWER
> > > POWER -> Intel
> > > Intel -> ARM

Ah, you've made progress!

> the 6502 doesn't count 

Alan, one of the keenest reasons ARM is dominating
NOW, is that in the early 1990 one person, helped
many fledling embedded linux hacks get embedded
linux running on many different flavors of ARM
processors.

RUSSELL is KING, and imho is the predominant
reason today, a decade later, that ARM dominates
the embedded space. Just look at the vintage
embedded linux ports to hundreds of boards that
mostly impoverished little companies built
and ONE MAN stood in the gap for them all to
realize their dreams:

http://www.arm.linux.org.uk/developer/machines/

Intel and the rest wanted everyone to purchase expensive
dev board, licensed embedded RTOSes, and binaries
for most add on hardware. A prospect that precluded
the little companies from fair competition.

RUSSELL KING should be wealthy and on the Board
of directors for ARM ltd. for his unselfish
and heroic efforts! More than anyone else, he
made arm-linux a doable for thousands of companies
back when the embedded world did not think much
of linux nor embedded linux. (I know I hacked on a 
few of those old projects)

Intel has nothing but a bunch of blood sucking
lawyers and assholes that think they are better
than the rest of us; and they shall fall!

>From the Bible: "You reap what you sow"...
My most sincerest hope is that we take the embedded
gentoo efforts from the the embedded gentoo handbook,
and integrate them into the regular Gentoo handbook.
The distro that does this will be king of the distros!

http://www.gentoo.org/proj/en/base/embedded/handbook/

peace,
James







Re: [gentoo-user] Mounting floppy disks

2012-12-12 Thread Michael Mol
On Wed, Dec 12, 2012 at 8:54 AM, David W Noon  wrote:
> On Tue, 11 Dec 2012 23:59:52 -0600, Paul Hartman wrote about
> "[gentoo-user] Mounting floppy disks":
>
>>For some reason, when I mount floppy disk (standard HD 3.5" VFAT disk)
>
> Floppies are normally formatted as FAT12, not VFAT.

Eh. I've seen FAT16 and FAT32 on 1.44MB floppies.

Anyway, Paul should try

file -s /dev/fd0

and

mount -t auto /dev/fd0 /mnt/floppy

--
:wq



Re: [gentoo-user] netmount; sshd borked

2012-12-12 Thread Nilesh Govindrajan
On Wednesday 12 December 2012 09:51 PM, James wrote:
> 
> Hello,
> 
> OK so I'm now running udev-196-r1; booting fine now.
> 
> upon reboot:
> net.eth0  [  stopped  ]
> net.eth3  [  started  ]
> netmount  [  stopped  ]
> sshd  [  stopped  ]
> 
> eth0 is the mobo ethernet port, and it is fried.
> I have not used it in years. eth3 is an add on 100M
> ethernet card that has worked flawlessly. It is 
> working fined still.
> 
>  /etc/conf.d/eth3 is set up and works just fine.
> 
> The easiest thing to do to fix this problem is
> unmap the eth0 hardware. Where best to do that?
> 
> from lspci:
> 00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2) 
> 
> 1:06.0 Ethernet controller: Digital Equipment Corporation 
> DECchip 21142/43 (rev 41)
> 
> Ideas on how to best fix this? Make the Nvidia ethernet chip 
> invisible and the dec ethernet chip will automaticall be eth0?
> 
> Other ideas?
> 
> James
> 
> 

Well, most motherboards give BIOS (UEFI?) option to disable some
hardware that's present onboard.
I've a relatively old machine, so don't know what's the thing with UEFI.
My PC's BIOS has option to disable many things like Ethernet, Audio,
Serial Port, etc.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] netmount; sshd borked

2012-12-12 Thread James

Hello,

OK so I'm now running udev-196-r1; booting fine now.

upon reboot:
net.eth0  [  stopped  ]
net.eth3  [  started  ]
netmount  [  stopped  ]
sshd  [  stopped  ]

eth0 is the mobo ethernet port, and it is fried.
I have not used it in years. eth3 is an add on 100M
ethernet card that has worked flawlessly. It is 
working fined still.

 /etc/conf.d/eth3 is set up and works just fine.

The easiest thing to do to fix this problem is
unmap the eth0 hardware. Where best to do that?

from lspci:
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2) 

1:06.0 Ethernet controller: Digital Equipment Corporation 
DECchip 21142/43 (rev 41)

Ideas on how to best fix this? Make the Nvidia ethernet chip 
invisible and the dec ethernet chip will automaticall be eth0?

Other ideas?

James




[gentoo-user] Re: udev: boot failure

2012-12-12 Thread James
Nilesh Govindrajan  nileshgr.com> writes:


> It's not a udev problem. You need to recompile your kernel with 
> devtmpfs support.
> It can be found in device-drviers -> generic driver options.

Yep,
fixed now.
Gotta catch up on my gentoo readings.

thx,
James




Re: [gentoo-user] System maintenance procedure?

2012-12-12 Thread Bruce Hill
On Wed, Dec 12, 2012 at 08:05:24AM +0200, Alan McKinnon wrote:
> 
> Of course, all this assumes that your version of portage supports
> @preserved-rebuild
> 
> To use it, you simply notice the portage message right at the end of an
> emerge and run "emerge @preserved-rebuild" - it's just a regular emerge
> using a particular built-in set that has a defined purpose

Perhaps no one ever bothered to mention which version of portage DOES support
@preserved-rebuild (not mentioned in the ChangeLog until portage-2.2.0_alpha47

When fielding support questions it's proper to ask what version of the
particular software in question is being used.
-- 
Happy Penguin Computers   >')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Bruce Hill
On Wed, Dec 12, 2012 at 12:53:01PM +0100, Francesco Turco wrote:
> Hello.
> 
> A couple of weeks ago I filed a bug because in the Installation Handbook
> I found some references of the "world" set in emerge commands, as
> opposed to "@world": https://bugs.gentoo.org/show_bug.cgi?id=445184
> 
> The bug was closed as invalid, and I was told that:
> 
> > sets with the @ prefix are a portage-2.2 feature, which is still hardmasked 
> > and thus not documented.
> 
> The fact is that I have portage-2.1.11.37, not 2.2, and man emerge says:
> 
> > When used  as  arguments to emerge sets have to be prefixed with @ to be 
> > recognized.
> 
> One possibility is that documentation stick with the stable portage
> package, not the testing one (I have a ~amd64 system only). But I
> checked portage 2.1.11.31 (the latest stable amd64 portage package
> version) and the previous phrase is there, too.
> 
> I know it's not a very important issue, but I'd still like to know if
> I'm wrong or not, and why.

Is there even a valid world set in portage before 2.2?

mingdao@server ~ $ eshowkw portage
Keywords for sys-apps/portage:
   |   | u   |  
   | a a p s   | n   |  
   | l m   h i m m   p s   p   | u s | r
   | p d a p a 6 i p c 3   a x | s l | e
   | h 6 r p 6 8 p p 6 9 s r 8 | e o | p
   | a 4 m a 4 k s c 4 0 h c 6 | d t | o
---+---+-+---
 [M]2.1.6.7_p1 | + + + + + + ~ + + + + + + | # 0 | gentoo
  2.1.11.9 | + + + + + + ~ + + + + + + | #   | gentoo
  [I]2.1.11.31 | + + + + + + ~ + + + + + + | o   | gentoo
 2.1.11.33 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | #   | gentoo
 2.1.11.36 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | #   | gentoo
 2.1.11.37 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | o   | gentoo
2.2.0_alpha142 | o o o o o o o o o o o o o | #   | gentoo
2.2.0_alpha144 | o o o o o o o o o o o o o | #   | gentoo
2.2.0_alpha147 | o o o o o o o o o o o o o | #   | gentoo
2.2.0_alpha148 | o o o o o o o o o o o o o | o   | gentoo
   | o o o o o o o o o o o o o | o   | gentoo
mingdao@server ~ $ ls -al /var/lib/portage/
total 12
drwxr-sr-x  2 root portage   78 Dec 12 08:10 .
drwxr-xr-x 11 root root 152 Oct 20 22:25 ..
-rw-rw  1 root portage 8076 Nov 21 07:26 config
-rw-rw  1 root portage0 Nov  6 08:03 preserved_libs_registry
-rw-r--r--  1 root portage 1122 Dec  6 14:51 world
-rw-r--r--  1 root portage0 Dec  6 14:51 world_sets

Might be why @preserved-rebuild never does anything for me, also.
-- 
Happy Penguin Computers   >')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Randy Barlow

Alan McKinnon wrote:

The portage man page has unfortunately also used the word "set" for a
different reason. Portage has always had a concept of "world" (not
@world) and "system" (not @system) which were really "just a bunch of
stuff that happens to pop out of portage because it's hard-coded that
way".


This discussion is surprising to me, because I've been using @world in 
my updates for a little while, but I don't have 2.2:


$ equery list portage
 * Searching for portage ...
[IP-] [  ] sys-apps/portage-2.1.11.31:0

I performed a diff on the output of emerge -pvDuN world and @world, and 
they were the same.


I even got an error about some required use flags when I ran emerge with 
"world" that referenced @world:


The following USE changes are necessary to proceed:
#required by app-emulation/virt-manager-0.9.4[spice], required by 
@selected, required by @world (argument)


--
R



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Michael Orlitzky
On 12/12/2012 06:53 AM, Francesco Turco wrote:
> Hello.
> 
> A couple of weeks ago I filed a bug because in the Installation Handbook
> I found some references of the "world" set in emerge commands, as
> opposed to "@world": https://bugs.gentoo.org/show_bug.cgi?id=445184
> 
> The bug was closed as invalid, and I was told that:
> 
>> sets with the @ prefix are a portage-2.2 feature, which is still hardmasked 
>> and thus not documented.
> 
> The fact is that I have portage-2.1.11.37, not 2.2, and man emerge says:
> 
>> When used  as  arguments to emerge sets have to be prefixed with @ to be 
>> recognized.
> 
> One possibility is that documentation stick with the stable portage
> package, not the testing one (I have a ~amd64 system only). But I
> checked portage 2.1.11.31 (the latest stable amd64 portage package
> version) and the previous phrase is there, too.
> 
> I know it's not a very important issue, but I'd still like to know if
> I'm wrong or not, and why.
> 

IMO you aren't wrong, but it isn't fixable right now. I see your point:
using @system and @world is more consistent, and eliminates an
additional thing that you have to remember.

But right now, 'system' and 'world' are simply hard-coded magic strings.
Until that changes, using @system and @world really conflates two
different ideas: the magic system/world, and the portage-2.2 @sets. Some
day they may be unified if we can,

  1. Move $PORTDIR/profiles/base/packages into @system

  2. Move /var/lib/portage/world into @world

  3. Not break everything in the process (this is the hard part)

Afterwards I think they would be more receptive to updating the docs.



Re: [gentoo-user] Mounting floppy disks

2012-12-12 Thread David W Noon
On Tue, 11 Dec 2012 23:59:52 -0600, Paul Hartman wrote about
"[gentoo-user] Mounting floppy disks":

>For some reason, when I mount floppy disk (standard HD 3.5" VFAT disk)

Floppies are normally formatted as FAT12, not VFAT.
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Alan McKinnon
On Wed, 12 Dec 2012 12:53:01 +0100
Francesco Turco  wrote:

> Hello.
> 
> A couple of weeks ago I filed a bug because in the Installation
> Handbook I found some references of the "world" set in emerge
> commands, as opposed to "@world":
> https://bugs.gentoo.org/show_bug.cgi?id=445184
> 
> The bug was closed as invalid, and I was told that:
> 
> > sets with the @ prefix are a portage-2.2 feature, which is still
> > hardmasked and thus not documented.
> 
> The fact is that I have portage-2.1.11.37, not 2.2, and man emerge
> says:
> 
> > When used  as  arguments to emerge sets have to be prefixed with @
> > to be recognized.
> 
> One possibility is that documentation stick with the stable portage
> package, not the testing one (I have a ~amd64 system only). But I
> checked portage 2.1.11.31 (the latest stable amd64 portage package
> version) and the previous phrase is there, too.
> 
> I know it's not a very important issue, but I'd still like to know if
> I'm wrong or not, and why.

You are wrong, the docs and the man pages are correct.

The problem is that the word "set" is used in two different ways, one
loosely and the other with reference to an exact construct.

portage-2.2 introduced the concept of "a defined set" under user
control. It's a list of packages that portage treats as a whole chunk
of things together and the user can define what he wants in a set and
give it a name. When used with emerge, sets like this must have an "@"
prefix so portage can tell them apart from regular packages. Portage
also dynamically creates sets internally that work the same way, things
like @world and @system and @preserved-rebuild. You can use these too,
you just can't define them or modify them directly.

The portage man page has unfortunately also used the word "set" for a
different reason. Portage has always had a concept of "world" (not
@world) and "system" (not @system) which were really "just a bunch of
stuff that happens to pop out of portage because it's hard-coded that
way". And the docs say things like 

emerge world

and call the "world" part "the world set".

"Set" here is a homonym - two completely different words with different
meanings that just happen to be spelled and sound the same. 

English too has the identical problem - the word "set" holds the
undisputed record for the English word with the most definitions - it
had 134 last time I checked. That's right, 134 meanings for 3 letters
as verified by that big Oxford dictionary that you need a wheel barrow
to carry it around in (and a big magnifying glass to read). It's not
surprising some of that leaked into Portage :-)

The docs you mention are using the second, loose, definition of the
word.
I recommend you treat it as simply a problem of over-loaded human
languages and just deal with it

:-)

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




Re: [gentoo-user] System maintenance procedure?

2012-12-12 Thread design [depois das dez]
Can I recapitulate the routine? So it should be something like that:

layman -S
emerge --sync
emerge -DuN world
emerge @preserved-rebuild
emerge --depclean
revdep-rebuild
eclean distfiles -t=2w
eclean packages -t=2w
dispatch-conf
elogv

Right? But this script could not be run automatically because of
dispatch-conf that needs user intervention.


On Wed, Dec 12, 2012 at 7:49 AM, Neil Bothwick  wrote:

> On Tue, 11 Dec 2012 07:36:10 -0600, Bruce Hill wrote:
>
> > After using Gentoo for close to two years, the only time/place I've
> > ever even seen @preserved-rebuild is in this thread. Yet you say,
> > "Portage will warn you when the set is [it] non-empty, telling you to
> > run emerge @preserved-rebuild."
> >
> > How will portage do this?
>
> I've just got this after an emerge -u @world
>
> !!! existing preserved libs:
> >>> package: dev-libs/icu-50.1-r2
>  *  - /usr/lib64/libicui18n.so.49
>  *  - /usr/lib64/libicui18n.so.49.1.2
>  *  - /usr/lib64/libicuio.so.49
>  *  - /usr/lib64/libicuio.so.49.1.2
>  *  used by /usr/sbin/cgdisk (sys-apps/gptfdisk-0.8.5)
>  *  used by /usr/sbin/gdisk (sys-apps/gptfdisk-0.8.5)
>  *  used by /usr/sbin/sgdisk (sys-apps/gptfdisk-0.8.5)
>  *  - /usr/lib64/libicuuc.so.49
>  *  - /usr/lib64/libicuuc.so.49.1.2
>  *  used by /usr/sbin/cgdisk (sys-apps/gptfdisk-0.8.5)
>  *  used by /usr/sbin/gdisk (sys-apps/gptfdisk-0.8.5)
>  *  used by /usr/sbin/sgdisk (sys-apps/gptfdisk-0.8.5)
>  *  - /usr/lib64/libicudata.so.49
>  *  - /usr/lib64/libicudata.so.49.1.2
> Use emerge @preserved-rebuild to rebuild packages using these libraries
>  * After world updates, it is important to remove obsolete packages with
>  * emerge --depclean. Refer to `man emerge` for more information.
>
> You won't see that because the subsequent programs run by your alias will
> scroll it out of view. The important point is that although the library
> update could have broken gptfdisk, it didn't because portage is holing
> onto the old library until I have run emerge @preserved-rebuild. Contrast
> this with the previous approach of letting emerge break important
> software and relying on revdep-rebuild to get it working again.
>
>
> --
> Neil Bothwick
>
> All things being equal, fat people use more soap.
>


[gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Francesco Turco
Hello.

A couple of weeks ago I filed a bug because in the Installation Handbook
I found some references of the "world" set in emerge commands, as
opposed to "@world": https://bugs.gentoo.org/show_bug.cgi?id=445184

The bug was closed as invalid, and I was told that:

> sets with the @ prefix are a portage-2.2 feature, which is still hardmasked 
> and thus not documented.

The fact is that I have portage-2.1.11.37, not 2.2, and man emerge says:

> When used  as  arguments to emerge sets have to be prefixed with @ to be 
> recognized.

One possibility is that documentation stick with the stable portage
package, not the testing one (I have a ~amd64 system only). But I
checked portage 2.1.11.31 (the latest stable amd64 portage package
version) and the previous phrase is there, too.

I know it's not a very important issue, but I'd still like to know if
I'm wrong or not, and why.

Thank you.



Re: [gentoo-user] System maintenance procedure?

2012-12-12 Thread Neil Bothwick
On Tue, 11 Dec 2012 07:36:10 -0600, Bruce Hill wrote:

> After using Gentoo for close to two years, the only time/place I've
> ever even seen @preserved-rebuild is in this thread. Yet you say,
> "Portage will warn you when the set is [it] non-empty, telling you to
> run emerge @preserved-rebuild."
> 
> How will portage do this? 

I've just got this after an emerge -u @world

!!! existing preserved libs:
>>> package: dev-libs/icu-50.1-r2
 *  - /usr/lib64/libicui18n.so.49
 *  - /usr/lib64/libicui18n.so.49.1.2
 *  - /usr/lib64/libicuio.so.49
 *  - /usr/lib64/libicuio.so.49.1.2
 *  used by /usr/sbin/cgdisk (sys-apps/gptfdisk-0.8.5)
 *  used by /usr/sbin/gdisk (sys-apps/gptfdisk-0.8.5)
 *  used by /usr/sbin/sgdisk (sys-apps/gptfdisk-0.8.5)
 *  - /usr/lib64/libicuuc.so.49
 *  - /usr/lib64/libicuuc.so.49.1.2
 *  used by /usr/sbin/cgdisk (sys-apps/gptfdisk-0.8.5)
 *  used by /usr/sbin/gdisk (sys-apps/gptfdisk-0.8.5)
 *  used by /usr/sbin/sgdisk (sys-apps/gptfdisk-0.8.5)
 *  - /usr/lib64/libicudata.so.49
 *  - /usr/lib64/libicudata.so.49.1.2
Use emerge @preserved-rebuild to rebuild packages using these libraries
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.

You won't see that because the subsequent programs run by your alias will
scroll it out of view. The important point is that although the library
update could have broken gptfdisk, it didn't because portage is holing
onto the old library until I have run emerge @preserved-rebuild. Contrast
this with the previous approach of letting emerge break important
software and relying on revdep-rebuild to get it working again.


-- 
Neil Bothwick

All things being equal, fat people use more soap.


signature.asc
Description: PGP signature


Re: [gentoo-user] Intel Atom: architecture, distcc, crossdev and compile flags

2012-12-12 Thread Neil Bothwick
On Wed, 12 Dec 2012 09:16:58 +0100, Florian Philipp wrote:

> I personally see no reason for encrypting root as there is nothing of
> interest in there.

No passwords in /etc? The main reason I encrypt / is that wicd keeps its
passwords in /etc.


-- 
Neil Bothwick

DOS never says "EXCELLENT command or filename"...


signature.asc
Description: PGP signature


Re: [gentoo-user] System maintenance procedure?

2012-12-12 Thread Neil Bothwick
On Wed, 12 Dec 2012 08:05:24 +0200, Alan McKinnon wrote:

> > is run every morning with my first cup of coffee. If something were
> > changed or left off that alias do you suppose this mysterious
> > @preserved-rebuild would be run?  
> 
> No, you would likely never see it. Your alias runs revdep-rebuild,
> which would inelegantly fix the very problem that @preserved-rebuild
> elegantly fixes.

Except that revdep-rebuild won't remove the old libraries that portage
keeps installed until emerge @preserved-rebuild is run.


-- 
Neil Bothwick

/ For security reasons, all text in this mail
  is double-rot13 encrypted. /


signature.asc
Description: PGP signature


Re: [gentoo-user] Intel Atom: architecture, distcc, crossdev and compile flags

2012-12-12 Thread Walter Dnes
On Tue, Dec 11, 2012 at 06:36:47PM +0100, Frank Steinmetzger wrote

> * I???m interested in the question of -O2 vs. -Os.
>   Some sources say -Os is bad, b/c it breaks debugging and is mainly
>   untested.  I won???t do heavy developing on it anyway, and Atoms do
>   have a puny cache.  So I wonder whether -Os would improve execution
>   time and RAM usage noticably.  Diskspace itself is not an issue.

  I do builds on the netbook.  My generic make.conf CFLAGS line is...

CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe 
-fno-unwind-tables -fno-asynchronous-unwind-tables"

...on my machines.  "-fno-unwind-tables -fno-asynchronous-unwind-tables"
reverses a "new and improved feature" of GCC that bloats the busybox
binary (and presumably other binaries) 15% to 20%.  See the short thread
http://lists.busybox.net/pipermail/busybox/2012-September/078326.html
for background.  The busybox developers obviously want to reduce every
bit of disk and/or ram usage, because busybox is used in a lot of ram
and disk constrained embedded systems.

  I don't know if it's possible to easily add another gig of ram.  It
would certainly help.  I have an ancient netbook.  It has 2 gigs of ram,
but is restricted to 32-bit only.

  BTW, does the netbook jave a Poulsbo GPU?  There are some hints at the
Arch wiki https://wiki.archlinux.org/index.php/Poulsbo for getting it to
work better.  I can get HD Youtube videos to play in the "large player",
but my machine has 2 gigs of ram.  If it's a relatively new Gentoo install,
I recommend...

emerge system && emerge world

...to get the most optimization.  Also, build the "ondemand" cpu
governor and enable it (emerge cpufrequtils).  This will enable the
higher CPU speeds.  I think my machine was originally stuck at its
lowest CPU frequency due to the "powersave" governor, even with the
machine plugged into the wall for power.

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



Re: [gentoo-user] Intel Atom: architecture, distcc, crossdev and compile flags

2012-12-12 Thread Florian Philipp
Am 12.12.2012 02:40, schrieb Frank Steinmetzger:
> On Tue, Dec 11, 2012 at 09:20:55PM +0100, Florian Philipp wrote:
> 
>>> * From my observations, the benefit of 64 bit over 32 is much smaller for an
>>>   Atom than it is for my Core2.  Am I right to assume thus that the Atom
>>>   architecture doesn’t have much to offer to 64 bit (such as extra 
>>> registers)?
>>>   I’m not talking about memory here, since it’s limited to 2 GB in any case.
>>>
>>
>> It has the same set of registers as your Core2.
> 
> Incidentally, when I initially set up the netbook, the output of
> gcc -march=native -E -v - &1 | sed -n 's/.* -v - //p'
> (which floated around the ML in the past) implied core2, IIRC.
> 
>> It's just that the Atom micro-architecture is terrible with regard to
>> 64bit. That's just about the only reason that x32 was invented (and
>> now that I've said it, I'm just waiting for the flamewar about it).
> 
> Terrible in what way? Inadequate memory throughput? I didn't know x32,
> but from what I've read in the last few minutes it sounds intriguing.
> 

Just citing Flameeyes who is citing Intel.
http://blog.flameeyes.eu/2012/06/debunking-x32-myths

[...]
>>>   I sped up the installation process for 32 bit by using a chroot on the big
>>>   machine, which worked nicely.  But it’s not a long-term solution, b/c it
>>>   uses up too much disk space on the host.
>>
>> I do the same using NFS, bind mounts and tmpfs. What do you mean by disk
>> space?
> 
> That I don't have much space left on the host machine for the entire
> chroot. I bind-mount distfiles and portage, but I'm still running low
> on gigabytes.
> I was thinking of NFS quite early, but a friend said it would perform
> not nicely. Also, with all my cables currently occupied, the two are
> connected over a slow WiFi router.  It's one of the rare cases in which
> compressing distcc traffic increases performance. :) The netbook has
> gigabit ethernet, though.  Thank $DEITY for compressed tar pipes over
> SSH.  I wonder what Windows people would do in such a situation. >:-]
> 

I see. Yep, wifi is really not a good choice for this. NFS works nice,
though. I just ran into some minor trouble when setuid bits would not
survive merging. Haven't debugged this yet as it's easy enough to find
with a script.

[...]
>>> * The last thing I’m going to set up is filesystem encryption, at least for 
>>> ~.
>>>   I already know/think that AES would be the best choice due to limited CPU
>>>   power, but what else is there to heed besides key size?
>>
>> Nothing, you're good. Hash and key chaining method have negligible
>> impact. If you stick with an x86_32 userspace I suggest at least using
>> an x64 kernel so you can use of CRYPTO_AES_X86_64.
> 
> That's an interesting idea. If I had a 32 bit userland, I would have to
> build new kernels on my big 64 laptop then, right?  I don’t suppose I
> can simply mix chosts, such that I would have a multilib x86_64
> gcc/binutils/glibc, but i686 everything else.
> 

Try this.
http://www.gossamer-threads.com/lists/gentoo/user/190919

> I haven't done any comparisons of 32/64 crypto yet, I'm just reading
> docs on Luks (never used it before).  Big stuff (videos, music) won't be
> encrypted anyway, just the sensitive data like mail, documents,
> passwords and personal photos. So the requirements won't be high.
> However I might expand it to /, though that would involve a more
> complicated boot process (I never needed initrds except for bootsplash).
> 

I personally see no reason for encrypting root as there is nothing of
interest in there. I just encrypt home, certain /var/* sub-mounts and
other stuff. That way, you can use /etc/init.d/dmcrypt.Actually, I've
tweaked the setup so that I can have LVM on top of Luks. If you're
interested, I can share the change.

> On a sidenote, While I was cleaning up unread mails in the ML, I just
> found your interesting frontswap/zcache trick.
> 
> I wonder how many years I'd have to use the device to get back the time
> from improved performance that I spent setting it up in the first place.
> :-D
> 

Consider it experience. ;-)

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature