Re: [gentoo-user] sudo in kernel config ?

2010-09-12 Thread Gregory Shearman
In linux.gentoo.user, you wrote:
>
> Some people, such as myself, use kernel sources outside of portage (I
> follow a git repo) and do so as a non-root user.  In this case the
> kernel tree is not owned by root and the config/compile is easily done
> as a non-root user.
>
> If you are super-paranoid.  You can make a non-root copy
> of /usr/src/linux and compile it as a non-root user.
>
> But there really isn't any point in using sudo.  It's effectively doing
> the same thing that you are trying to avoid.

I agree there's no point in using sudo, but what's the problem? You
don't need to edit the kernel sources merely to build a new kernel. You
can build your kernel outside the tree using for example:
make O=/home/user/kernel/tree/ menuconfig
make O=/home/user/kernel/tree/

All files are put into the user's directory.

All that's need is the KBUILD_OUTPUT environment variable set, so that
drivers can find the kernel .config file etc.

I've built my kernels like this for years now. All kernels are built by
a specific user and then installed as root. No problem, no worries about
permissions and no altering the portage installed kernel sources so that
a purge (emerge -P gentoo-sources) will automatically remove the whole
tree.

-- 
Regards,

Gregory.



Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Andrea Conti
> "DL libraries aren't really a different kind of library format (both
> static and shared libraries can be used as DL libraries);"

Library archives (.a) and shared objects (.so) differ in several ways.
Roughly speaking:

>From a file format perspective, .a files are simple collections (man ar)
of independent compiled objects, while .so files are complete libraries
produced by the linker and contain additional information which tell the
dynamic linker (ld.so) how to load and share the code.

More importantly, code which is intended to be used in shared objects
must be compiled with specific options as position-independent code,
whereas code in an archive needs not.

You can't link dynamically against a library archive, so all DL code on
Linux must be compiled as a shared object, whether it's actually shared
or not (think plugins).

As for the static use-flag: don't use it, unless you have very good
reasons to do so. It will result in a system with larger binaries and in
many cases you will *not* get true statically-linked binaries (e.g. most
of the things which link against glibc). As for dynamic linking breakage
following upgrades, IMO portage and revdep-rebuild give good enough
support for fixing that.

andrea



[gentoo-user] Re: static-libs

2010-09-12 Thread Nikos Chantziaras

On 09/11/2010 12:13 PM, Stéphane Guedon wrote:

synce few days, I have a message of portage suggestiung me to use the "static-
libs" USE flag for media-libs/jpeg-6b.

What may be the consequence ? Please be gentle with explaining this sorte of
things, as I have not the knowledges to understand the full compile process,
otherwise I am a little bit familiar with it !


Enabling this flag will install a static version of libjpeg alongside 
the dynamic one.  You do not need to worry; other programs will continue 
using the dynamic version, since this is the default.  The static 
version will only be used by programs that specifically demand it and 
would otherwise not work.


So there are no consequences at all in enabling this USE flag.




Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Stéphane Guedon
Le Saturday 11 September 2010 22:52:09, walt a écrit :
> On 09/11/2010 02:13 AM, Stéphane Guedon wrote:
> > synce few days, I have a message of portage suggestiung me to use the
> > "static- libs" USE flag for media-libs/jpeg-6b.
> > 
> > What may be the consequence ? Please be gentle with explaining this sorte
> > of things, as I have not the knowledges to understand the full compile
> > process, otherwise I am a little bit familiar with it !
> 
> I have jpeg-8b, so I can't be sure about 6b.  I just turned on the
> static-libs USE flag and re-installed jpeg.  The only difference is that
> the 'static' lib "/usr/lib/libjpeg.a" wasn't there before and it is now,
> that's all.
> 
> Is your system trying to upgrade jpeg to a newer version?  I notice that 6b
> doesn't use any USE flags, and the newer versions do use the static-libs
> flag. (Just re-installing 6b shouldn't complain about USE flags because
> the package doesn't look for them.)
> 
> Any program that uses the dynamic libjpeg.so would need to be re-compiled
> if the version of jpeg changes.  If the static library is used instead,
> the program no longer needs libjpeg.so because the static library is
> linked into the binary executable at compile-time.  The price you pay is a
> larger binary executable, but you never need to worry about future jpeg
> version changes.
> 
> I don't know how portage chooses between static and dynamic libs while
> building a package.  Anyone else know?

In fact, static-libs is for jpeg-8b , but Imade a mistake when write the 
mail...

So I can use the flag without worrying. Good !
Thanks !

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc


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


Re: [gentoo-user] Re: undetected DVD r/w device

2010-09-12 Thread Peter Humphrey
On Sunday 12 September 2010 01:15:56 walt wrote:
> On 09/11/2010 11:24 AM, Peter Humphrey wrote:
> > On Saturday 11 September 2010 18:50:04 Mick wrote:
> >> Deselect that which is deprecated and will be removed soon
> > 
> > I hope it won't. I have one box whose drives the new drivers cannot
> > detect - at least, nothing I've tried has worked so far.
> 
> That seems very odd.  Is there something exotic about those drives?

Nothing at all. Bog-standard IDE disk and ATA CD-ROM in a Compaq Evo P4 
box. The disk controller is an Intel 82801DB ICH4 according to lspci.

> The new driver sees the controller but the controller doesn't see
> the drives?

Grub (or do I mean init?) can't find a kernel to boot.

> Or, if the kernel doesn't see the controller then maybe consider
> adding the SATA_AHCI driver as a test.

I think the box predates AHCI, though it may be worth a try. I don't 
remember now which options I did try when I was trying to get the new 
kernel drivers to work.

> I'm still a bit confused when trying to figure out which controller
> uses which driver, but I've been tripped up with that particular
> driver before.

Yes, me too. I have one box on which I had to switch AHCI off in the BIOS 
to enable the installation CD to boot, then back on again to boot the  
installed system.

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



Re: [gentoo-user] Re: [OT] sudo in kernel config ?

2010-09-12 Thread Peter Humphrey
On Sunday 12 September 2010 00:15:34 Etaoin Shrdlu wrote:

> But since you're not convinced, now it would be nice, for my own
> education, and perhaps someone else's, that you elaborated a bit
> more. What exactly do you find non convincing in that usage of the
> adjective? How would you express the concept better?

I did say I wasn't getting at you in particular, but what I dislike is 
being bombarded by the broadcast media with "potential this" and 
"possible that", when only a few years ago no-one would have dreamed of 
putting the extra word in. We even heard of someone being charged with 
an alleged crime recently, which is plain nonsense.

A risk is a risk, no matter how indirect it starts out.

But this is all way off-topic, so I propose to pipe down. No-one's likely 
to be convinced anyway.

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



[gentoo-user] Up-/Down-grade of KDE

2010-09-12 Thread Dan Johansson
Yesterday my ~x86 Gentoo box got KDE upgraded to 4.5.1 and today portage want 
to downgrade it again to 4.4.5 and I can not figure out why.

My "emerge --update --deep --verbose --reinstall changed-use world --pretend"
gives a lot of output for KDE-components like this: 
   
ebuild  NS   ] kde-base/kdebase-meta-4.4.5 [4.5.1] USE="(-aqua) (-kdeprefix)" 
0 kB
[uninstall] kde-base/kdebase-meta-4.5.1  USE="(-aqua) (-kdeprefix)" 
[blocks b ] kde-base/kdebase-meta:4.5[-kdeprefix] ("kde-base/kdebase-
meta:4.5[-kdeprefix]" is blocking kde-base/kdebase-meta-4.4.5)
[blocks b ] kde-base/kdebase-meta:4.4[-kdeprefix] ("kde-base/kdebase-
meta:4.4[-kdeprefix]" is blocking kde-base/kdebase-meta-4.5.1)

Any suggestion on what I have screwed up?

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



Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Al
> You can't link dynamically against a library archive, so all DL code on

Don't you contradict
http://tldp.org/HOWTO/Program-Library-HOWTO/introduction.html with
this?

Practically you never do. But could, if you really wanted?

AFAIK you need PIC only to share libs in memory. The rest is already
covered by MMU.

So why shouldn't you be able to load an unshared lib (without PIC)
dynamically? Sure there still would be some additional steps.

Al



Re: [gentoo-user] Up-/Down-grade of KDE

2010-09-12 Thread Dan Johansson
On Sunday 12 September 2010 12.11:14 Dan Johansson wrote:
> Yesterday my ~x86 Gentoo box got KDE upgraded to 4.5.1 and today portage
> want to downgrade it again to 4.4.5 and I can not figure out why.
> 
> My "emerge --update --deep --verbose --reinstall changed-use world
> --pretend" gives a lot of output for KDE-components like this:
> ebuild  NS   ] kde-base/kdebase-meta-4.4.5 [4.5.1] USE="(-aqua)
> (-kdeprefix)" 0 kB
> [uninstall] kde-base/kdebase-meta-4.5.1  USE="(-aqua) (-kdeprefix)"
> [blocks b ] kde-base/kdebase-meta:4.5[-kdeprefix] ("kde-base/kdebase-
> meta:4.5[-kdeprefix]" is blocking kde-base/kdebase-meta-4.4.5)
> [blocks b ] kde-base/kdebase-meta:4.4[-kdeprefix] ("kde-base/kdebase-
> meta:4.4[-kdeprefix]" is blocking kde-base/kdebase-meta-4.5.1)
> 
> Any suggestion on what I have screwed up?

OK, I found Bug 336158 (http://bugs.gentoo.org/show_bug.cgi?id=336158).

Sorry for the noise.
-- 
Dan Johansson, 
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] Re: [OT] sudo in kernel config ?

2010-09-12 Thread Etaoin Shrdlu
On Sun, 12 Sep 2010 10:16:31 +0100 Peter Humphrey
 wrote:

> On Sunday 12 September 2010 00:15:34 Etaoin Shrdlu wrote:
> 
> > But since you're not convinced, now it would be nice, for my own
> > education, and perhaps someone else's, that you elaborated a bit
> > more. What exactly do you find non convincing in that usage of the
> > adjective? How would you express the concept better?
> 
> I did say I wasn't getting at you in particular, but what I dislike is 
> being bombarded by the broadcast media with "potential this" and 
> "possible that", when only a few years ago no-one would have dreamed of 
> putting the extra word in. We even heard of someone being charged with 
> an alleged crime recently, which is plain nonsense.

I see. I haven't had a TV set for about 12 years now, so I'm probably
somewhat less exposed to that, although I think I see where you're coming
from.
 
> A risk is a risk, no matter how indirect it starts out.

Of course, but it may affect different people to different degrees, or may
not even affect some of them. That's what I meant.

A rose is a rose is a rose, but it can be pink, red, white...it still
remains a rose. But sometimes the attribute can make a difference.



Re: [gentoo-user] Moving / around...

2010-09-12 Thread Alex Schuster
meino.cra...@gmx.de writes:

> I also cannot evaluate the real impact the position of the /-partition
> on the harddisk has on system performance. I read about it years ago
> and since than I always put the partitions always in the sequence of
> "boot","swap","root","home" onto the harddisks. May be its only a
> tradition nowadays... ;)

I used to do this, too. Until I started using LVM, which made things much 
easier for me. Now I can create as much partitions as I want, and resize 
them while the system is running.

> Do you know of any other kind of data beside databses, which may be
> machinedependant or cause trouble while migrating to 64bit?

No, I think in a typical setup that's all to care about. But there might 
still be other software where this is not the case, so I would at least 
maek a backup of /var just in case.

Wonko



Re: [gentoo-user] Up-/Down-grade of KDE

2010-09-12 Thread Graham Murray
Dan Johansson  writes:

> On Sunday 12 September 2010 12.11:14 Dan Johansson wrote:
>> Yesterday my ~x86 Gentoo box got KDE upgraded to 4.5.1 and today portage
>> want to downgrade it again to 4.4.5 and I can not figure out why.
>> 
>> My "emerge --update --deep --verbose --reinstall changed-use world
>> --pretend" gives a lot of output for KDE-components like this:
>> ebuild  NS   ] kde-base/kdebase-meta-4.4.5 [4.5.1] USE="(-aqua)
>> (-kdeprefix)" 0 kB
>> [uninstall] kde-base/kdebase-meta-4.5.1  USE="(-aqua) (-kdeprefix)"
>> [blocks b ] kde-base/kdebase-meta:4.5[-kdeprefix] ("kde-base/kdebase-
>> meta:4.5[-kdeprefix]" is blocking kde-base/kdebase-meta-4.4.5)
>> [blocks b ] kde-base/kdebase-meta:4.4[-kdeprefix] ("kde-base/kdebase-
>> meta:4.4[-kdeprefix]" is blocking kde-base/kdebase-meta-4.5.1)
>> 
>> Any suggestion on what I have screwed up?
>
> OK, I found Bug 336158 (http://bugs.gentoo.org/show_bug.cgi?id=336158).

Unfortunately that bug gives absolutely no indication as why it was
re-masked. 




[gentoo-user] dhcpd missing in stage3 of AMD64...?

2010-09-12 Thread meino . cramer

Hi,

currently I am on the way to install a AMD64 root system.

I use the AMD64 gentoo iso to boot into a 64bit system.
There was a net-connection without any problems (using DSL and dhcp).

After several steps I chrooted into the new environment and ...
no net anymore. eth0 was up (ifconfig) but dns does not work.

No wonder...there was no dhcpd (at least in /sbin/. ) in the
stage3 tarball (I extracted portage too...).

So...how can I go further...

Best regards,
mcc





Re: [gentoo-user] dhcpd missing in stage3 of AMD64...?

2010-09-12 Thread Mark Knecht
On Sun, Sep 12, 2010 at 7:26 AM,   wrote:
>
> Hi,
>
> currently I am on the way to install a AMD64 root system.
>
> I use the AMD64 gentoo iso to boot into a 64bit system.
> There was a net-connection without any problems (using DSL and dhcp).
>
> After several steps I chrooted into the new environment and ...
> no net anymore. eth0 was up (ifconfig) but dns does not work.
>
> No wonder...there was no dhcpd (at least in /sbin/. ) in the
> stage3 tarball (I extracted portage too...).
>
> So...how can I go further...
>
> Best regards,
> mcc
>

Before chrooting did you copy resolv.conf from the boot environment?
That's always worked for me.

I don't think you require dhcpd to make this work. All you have to do
is point at your DSL router, assuming the router has dhcp enabled. The
router serves up the IP addresses and also acts as the name server.

I think possibly you missed a command.

- Mark



Re: [gentoo-user] dhcpd missing in stage3 of AMD64...?

2010-09-12 Thread J. Roeleveld
On Sunday 12 September 2010 16:26:23 meino.cra...@gmx.de wrote:
> Hi,
> 
> currently I am on the way to install a AMD64 root system.
> 
> I use the AMD64 gentoo iso to boot into a 64bit system.
> There was a net-connection without any problems (using DSL and dhcp).
> 
> After several steps I chrooted into the new environment and ...
> no net anymore. eth0 was up (ifconfig) but dns does not work.
> 
> No wonder...there was no dhcpd (at least in /sbin/. ) in the
> stage3 tarball (I extracted portage too...).
> 
> So...how can I go further...
> 
> Best regards,
> mcc

Hi,

To be able to configure your interface using DHCP, you need "dhcpcd"
"dhcpd" is the server-part.

As also mentioned by Mark Knecht, you might have missed the step of copying 
"/etc/resolv.conf" to the chroot-environment.

Does DNS work prior to chrooting?

--
Joost



Re: [gentoo-user] dhcpd missing in stage3 of AMD64...?

2010-09-12 Thread Albert Hopkins
On Sun, 2010-09-12 at 16:26 +0200, meino.cra...@gmx.de wrote:
> I use the AMD64 gentoo iso to boot into a 64bit system.
> There was a net-connection without any problems (using DSL and dhcp).
> 
> After several steps I chrooted into the new environment and ...
> no net anymore. eth0 was up (ifconfig) but dns does not work.
> 
> No wonder...there was no dhcpd (at least in /sbin/. ) in the
> stage3 tarball (I extracted portage too...).
> 

dhcp should be on the livecd and set up before the chroot.  So it's not
necessary to be in the stage3 tarball.

-a





Re: [gentoo-user] undetected DVD r/w device SOLVED

2010-09-12 Thread alain . didierjean
Selon alain.didierj...@free.fr:

> Selon Mick :
>
> > On Saturday 11 September 2010 17:01:29 alain.didierj...@free.fr wrote:
> > > Selon Stéphane Guedon :
> > > > Le Monday 06 September 2010 17:11:17, alain.didierj...@free.fr a écrit
> :
> > > > > Selon Stroller :
> > > > > > On 6 Sep 2010, at 09:55, alain.didierj...@free.fr wrote:
> > > > > > > For some unknown reason, my DVD r/w device is not detected as
> such

> > > > So, you're not using the latest drivers (scsi emultation of ata hdd)...
>
> > >
> > > I use <*> ATA/ATAPI/MFM/RLL support (DEPRECATED)  ---> in Device Drivers
> as
> > > I've done in the past, and it used to work fine
> >
> > Deselect that which is deprecated and will be removed soon and select the
> > appropriate SCSI drivers for your drives.  There's been a few messages on
> > this
> > list explaining how to go about it.
>
> Done. Works both for cdrom unit and old IDE disk, whch now are know as sr0
> (ex hda) and sdc (wax hdc). cdrecord --checkdrive says


> But that silly k3b returns
> No optical drive found.
> K3b did not find any optical device in your system.
> Solution : Make sure HAL daemon is running, it is used by K3b for finding
> devices.
>  and on the terminal

Finally solved, a matter of permissions for cdrecord and cdrdao, as explained in
/usr/share/doc/k3b-2.0.0/PERMISSIONS.bz2. I've been fooled by this stupid error
message. Thanks to all who helped,

--
~adj~



Re: [gentoo-user] dhcpd missing in stage3 of AMD64...?

2010-09-12 Thread meino . cramer
J. Roeleveld  [10-09-12 18:25]:
> On Sunday 12 September 2010 16:26:23 meino.cra...@gmx.de wrote:
> > Hi,
> > 
> > currently I am on the way to install a AMD64 root system.
> > 
> > I use the AMD64 gentoo iso to boot into a 64bit system.
> > There was a net-connection without any problems (using DSL and dhcp).
> > 
> > After several steps I chrooted into the new environment and ...
> > no net anymore. eth0 was up (ifconfig) but dns does not work.
> > 
> > No wonder...there was no dhcpd (at least in /sbin/. ) in the
> > stage3 tarball (I extracted portage too...).
> > 
> > So...how can I go further...
> > 
> > Best regards,
> > mcc
> 
> Hi,
> 
> To be able to configure your interface using DHCP, you need "dhcpcd"
> "dhcpd" is the server-part.
> 
> As also mentioned by Mark Knecht, you might have missed the step of copying 
> "/etc/resolv.conf" to the chroot-environment.

/etc/resolv.conf seems to be dynamically created. When booted into my
"old" 32bit system it contains the address of my Fritz!Box, which acts
as DNS for me.
When booted into the livecd (so my 32bit root is not run) this file
contains only comment lines.
I had to copy it when my 32bit run was running...

> Does DNS work prior to chrooting?

sorry for citeing myself:  ;)
> > There was a net-connection without any problems (using DSL and dhcp).

So the problem is solved -- at least for me :)

Best regards,
mcc

> 
> --
> Joost
> 




Re: [gentoo-user] sudo in kernel config ?

2010-09-12 Thread Bill Longman
> I agree there's no point in using sudo, but what's the problem? You
> don't need to edit the kernel sources merely to build a new kernel. You
> can build your kernel outside the tree using for example:
> make O=/home/user/kernel/tree/ menuconfig
> make O=/home/user/kernel/tree/
>
>
This is how I do it, too, when testing the kernel before I do it for real.
This way, the code stays owned by root and I can make to my hearts content,
with different kernels going into different directories that I control.

-- 
Bill Longman


Re: [gentoo-user] undetected DVD r/w device SOLVED

2010-09-12 Thread Mick
On Sunday 12 September 2010 17:27:36 alain.didierj...@free.fr wrote:
> Selon alain.didierj...@free.fr:
> > Selon Mick :
> > > On Saturday 11 September 2010 17:01:29 alain.didierj...@free.fr wrote:
> > > > Selon Stéphane Guedon :
> > > > > Le Monday 06 September 2010 17:11:17, alain.didierj...@free.fr a
> > > > > écrit
> > > > > 
> > > > > > Selon Stroller :
> > > > > > > On 6 Sep 2010, at 09:55, alain.didierj...@free.fr wrote:
> > > > > > > > For some unknown reason, my DVD r/w device is not detected as
> > 
> > such
> 
> 
> 
> > > > > So, you're not using the latest drivers (scsi emultation of ata
> > > > > hdd)...
> > > > 
> > > > I use <*> ATA/ATAPI/MFM/RLL support (DEPRECATED)  ---> in Device
> > > > Drivers
> > 
> > as
> > 
> > > > I've done in the past, and it used to work fine
> > > 
> > > Deselect that which is deprecated and will be removed soon and select
> > > the appropriate SCSI drivers for your drives.  There's been a few
> > > messages on this
> > > list explaining how to go about it.
> > 
> > Done. Works both for cdrom unit and old IDE disk, whch now are know as
> > sr0 (ex hda) and sdc (wax hdc). cdrecord --checkdrive says
> > 
> > 
> > But that silly k3b returns
> > No optical drive found.
> > K3b did not find any optical device in your system.
> > Solution : Make sure HAL daemon is running, it is used by K3b for finding
> > devices.
> > 
> >  and on the terminal
> 
> Finally solved, a matter of permissions for cdrecord and cdrdao, as
> explained in /usr/share/doc/k3b-2.0.0/PERMISSIONS.bz2. I've been fooled by
> this stupid error message. Thanks to all who helped,

Glad you solved it!

My permissions are:

$ ls -la /usr/bin/cdrecord 
-rws--x--x 1 root root 314352 Jul 22 16:51 /usr/bin/cdrecord

$ ls -la /usr/bin/cdrdao
-rwxr-xr-x 1 root root 569352 Jul 22 16:55 /usr/bin/cdrdao

and I had to add my user to the cdrom group, but both of the above binaries 
are not in the cdrom group.
-- 
Regards,
Mick


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


Re: [gentoo-user] sudo in kernel config ?

2010-09-12 Thread Al
>> This was actually a potential risk once upon a time:
>
> Sorry to drift from the topic, but would somebody please explain to me
> what a potential risk is? How does it differ from a risk?

A risk is always potential. A potential risk is when you are not sure
if it is a risk at all.

Al



Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Andrea Conti
> So why shouldn't you be able to load an unshared lib (without PIC)
> dynamically? Sure there still would be some additional steps.

I am not talking specifically about PIC/non-PIC code here. PIC is
relevant because when you're doing dynamic loading you generally cannot
predict at what (virtual) address in the process space the loaded object
will end up at.
That said, whether you can dynamically load non-PIC code depends on the
specific architecture (e.g. on x86 you can have non-PIC code in shared
objects, albeit at the price of the dynamic linker having to patch all
relocations in the loaded object, while on amd64 you can't because the
ABI allows certain kinds of relocations in non-PIC code which cannot be
handled this way.).

What I am saying is that there is no way to dynamically load code from a
.a file, at least not with the system tools, period.

There are reasons for this: first, a .a is not a "real" library but a
collection of independent compiled objects (building a .a does not
entail any kind of linking: it's about the same as tar'ing .o files
together). Moreover, the dynamic linker (ld.so) needs a certain amount
of information about the contents of any object it has to load: this
information is stored in specific ELF sections and is computed and
written by the "standard" linker (ld) when it builds the shared object
from its components.

andrea



[gentoo-user] Re: sudo in kernel config ?

2010-09-12 Thread walt

On 09/11/2010 01:18 PM, Alan McKinnon wrote:


The root user (sometimes portage) creates /usr/src/linux-*

Someone tell me again exactly how user alan is supposed to build those
sources?


From the kernel README:

   To configure and build the kernel use:
   cd /usr/src/linux-2.6.N
   make O=/home/name/build/kernel menuconfig
   make O=/home/name/build/kernel




[gentoo-user] copying /var&lib/world(32bitroot) -> 64bitroot ???

2010-09-12 Thread meino . cramer

Hi,

Do I shoot into my own feet when copying the /var/lib/world-file
from my 32bit system to my 64bit system and doing a "emerge -e world"
then, when logged into my 64bit system to install the same stuff ???

best regards,
mcc









Re: [gentoo-user] copying /var&lib/world(32bitroot) -> 64bitroot ???

2010-09-12 Thread J. Roeleveld
On Sunday 12 September 2010 19:27:10 meino.cra...@gmx.de wrote:
> Hi,
> 
> Do I shoot into my own feet when copying the /var/lib/world-file
> from my 32bit system to my 64bit system and doing a "emerge -e world"
> then, when logged into my 64bit system to install the same stuff ???
> 
> best regards,
> mcc

Hi,

I don't think so as it should compile everything for a 64bit system.
Only "problem" you might encounter is when certain packages are not 
available/masked for amd64.
(I can't think of any packages in that category though :) )

--
Joost



Re: [gentoo-user] copying /var&lib/world(32bitroot) -> 64bitroot ???

2010-09-12 Thread Mark Knecht
On Sun, Sep 12, 2010 at 10:27 AM,   wrote:
>
> Hi,
>
> Do I shoot into my own feet when copying the /var/lib/world-file
> from my 32bit system to my 64bit system and doing a "emerge -e world"
> then, when logged into my 64bit system to install the same stuff ???
>
> best regards,
> mcc
>

It's OK to do that.

You might want to consider USE flags before you do that, but I don't
think it will cause any problems other than possibly something not
compiling.

Remember that stable on 64-bit doesn't necessarily exactly equal
stable on 32-bit so you might be getting different revisions, etc.

Hope this helps,
Mark



Re: [gentoo-user] copying /var&lib/world(32bitroot) -> 64bitroot ???

2010-09-12 Thread meino . cramer
Mark Knecht  [10-09-12 19:48]:
> On Sun, Sep 12, 2010 at 10:27 AM,   wrote:
> >
> > Hi,
> >
> > Do I shoot into my own feet when copying the /var/lib/world-file
> > from my 32bit system to my 64bit system and doing a "emerge -e world"
> > then, when logged into my 64bit system to install the same stuff ???
> >
> > best regards,
> > mcc
> >
> 
> It's OK to do that.
> 
> You might want to consider USE flags before you do that, but I don't
> think it will cause any problems other than possibly something not
> compiling.
> 
> Remember that stable on 64-bit doesn't necessarily exactly equal
> stable on 32-bit so you might be getting different revisions, etc.
> 
> Hope this helps,
> Mark
> 

Sounds goodwill become a lot of work this night for my
CPU ;)

Thanks fpr your help!
Best regards
mcc




Re: [gentoo-user] copying /var&lib/world(32bitroot) -> 64bitroot ???

2010-09-12 Thread Alan McKinnon
Apparently, though unproven, at 19:27 on Sunday 12 September 2010, 
meino.cra...@gmx.de did opine thusly:

> Hi,
> 
> Do I shoot into my own feet when copying the /var/lib/world-file
> from my 32bit system to my 64bit system and doing a "emerge -e world"
> then, when logged into my 64bit system to install the same stuff ???
> 
> best regards,
> mcc


No, that will work fine, world has nothignt od o with arch

Except the source file is actually /var/lib/portage/world


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] undetected DVD r/w device SOLVED

2010-09-12 Thread Joerg Schilling
alain.didierj...@free.fr wrote:

> > But that silly k3b returns
> > No optical drive found.
> > K3b did not find any optical device in your system.
> > Solution : Make sure HAL daemon is running, it is used by K3b for finding
> > devices.
> >  and on the terminal
>
> Finally solved, a matter of permissions for cdrecord and cdrdao, as explained 
> in
> /usr/share/doc/k3b-2.0.0/PERMISSIONS.bz2. I've been fooled by this stupid 
> error
> message. Thanks to all who helped,

Not needed for cdrecord as you noticed with your test already.



Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Al
>
> What I am saying is that there is no way to dynamically load code from a
> .a file, at least not with the system tools, period.
>

O.K. so we have to stress the term archive in your statement.

Al



[gentoo-user] emerge - pointing to local file

2010-09-12 Thread Joseph

Can someone refresh my memory how to emerge application pointing to local 
source file?
I need to re-emerge: asterisk-addons-1.4.7
but it does not seems to exist on any mirror (I have in may make.conf), I found asterisk-addons-1.4.7.tar.gz file but I need to point emerge to local file 
instead.


--
Joseph



[gentoo-user] Re: emerge - pointing to local file

2010-09-12 Thread Nikos Chantziaras

On 09/13/2010 12:41 AM, Joseph wrote:

Can someone refresh my memory how to emerge application pointing to
local source file?
I need to re-emerge: asterisk-addons-1.4.7
but it does not seems to exist on any mirror (I have in may make.conf),
I found asterisk-addons-1.4.7.tar.gz file but I need to point emerge to
local file instead.


You put the tarball in /usr/portage/distfiles.




[gentoo-user] automatically updated certain packages

2010-09-12 Thread Enrico Weigelt

Hi folks,


I've got a tricky task for automatic update script, which requires
some portage magic ...

The script has a list of packages which should be updated
completely automatically, but *only* if they're pulled in as 
dependency (beginning from world), and others not in that list
should *not* be updated.

Is there any easy way to do it ?


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Re: Shared libraries in Gentoo

2010-09-12 Thread Enrico Weigelt
* Al  wrote:
> >> What is your strategia to build up a community?
> >
> > Actually, I don't really have any. All I can do is offering it
> > as OSS and do a little bit advocacy here and there - I don't
> > have the resources to build up real community structures all
> > alone. Of course, anybody's welcomed to join in.
> >
> 
> This is still a weak point.

Just let the project grow. It does not require anyone jumping into
it to stick with it for long time. All I'm proposing right now is
adopt the model, which makes collaboration w/ other distros easier.
It's something like an aggreement as FHS.

BTW: meanwhile I've build some automatic import mechanisms
(unfortunately, this approach won't work well for Gentoo, as I
don't have the fundamental data for it available, especially some
deterministic mapping between upstream tarball and the patches
to apply ... that probably would require some kind of fake-emerge)

> Briegel looks like type 3. 

Hey, wait a minute ... we were talking about OSS-QM, thats completely
different project. Briegel is a build system (somewhat similar to
portage, but yet quite different concepts behind), which just happens
to work smoothly w/ oss-qm.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Re: static-libs

2010-09-12 Thread Enrico Weigelt
* Andrea Conti  wrote:

> More importantly, code which is intended to be used in shared objects
> must be compiled with specific options as position-independent code,
> whereas code in an archive needs not.

Not necessarily. But it can't be shared at runtime anymore, since
the dynamic loader has to change the codepages for each process.
(well, there *is* a way ... back in a.out times libraries hat been
compiled/linked to specific address spaces, but obviously that's
quite complex to manage and not advisable outside speficic 
embedded environments)

> You can't link dynamically against a library archive, so all DL code on
> Linux must be compiled as a shared object, whether it's actually shared
> or not (think plugins).

You can (apache did it once, aeons ago), but it's quite tricky,
and it's hard to get the pages shared between processes.
Not the recommended way.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Re: Shared libraries in Gentoo

2010-09-12 Thread Al
>
> Just let the project grow. It does not require anyone jumping into
> it to stick with it for long time. All I'm proposing right now is
> adopt the model, which makes collaboration w/ other distros easier.
> It's something like an aggreement as FHS.

Hope you have the power to go that way far enough on your own until it
becomes interesting for more people.

>
> BTW: meanwhile I've build some automatic import mechanisms
> (unfortunately, this approach won't work well for Gentoo, as I
> don't have the fundamental data for it available, especially some
> deterministic mapping between upstream tarball and the patches
> to apply ... that probably would require some kind of fake-emerge)
>

I did good progress with Gentoo on Cygwin this WE. 3 big packages are
directly before me now: Python, Portage and GCC.

> Hey, wait a minute ... we were talking about OSS-QM, thats completely
> different project. Briegel is a build system (somewhat similar to
> portage, but yet quite different concepts behind), which just happens
> to work smoothly w/ oss-qm.

A build system needs sources and patches to build. So I think they are
related. If your patch import system works, it can become very
interesting. You can run something similar to Gentoo without the need
of a big community at the beginning. So you have all freedom to
customize it just the way you want it.

Al



Re: [gentoo-user] Re: emerge - pointing to local file

2010-09-12 Thread Alan McKinnon
Apparently, though unproven, at 00:09 on Monday 13 September 2010, Nikos 
Chantziaras did opine thusly:

> On 09/13/2010 12:41 AM, Joseph wrote:
> > Can someone refresh my memory how to emerge application pointing to
> > local source file?
> > I need to re-emerge: asterisk-addons-1.4.7
> > but it does not seems to exist on any mirror (I have in may make.conf),
> > I found asterisk-addons-1.4.7.tar.gz file but I need to point emerge to
> > local file instead.
> 
> You put the tarball in /usr/portage/distfiles.


I think he's asking about the ebuild. The version he wants is not in portage.

Joseph,

If you have the package *already* installed and want to remerge it, there's a 
local copy of the ebuild in 

/var/db/pkg//-

copy it from there to your local overlay and remerge as normal.
If you unmerged the package already, then the ebuild is gone. Maybe you have a 
backup. There's also an svn attic somewhere where everything that was ever in 
portage is stored. I don;t know where it is, but Google does. Search for it.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] automatically updated certain packages

2010-09-12 Thread Alan McKinnon
Apparently, though unproven, at 23:13 on Sunday 12 September 2010, Enrico 
Weigelt did opine thusly:

> Hi folks,
> 
> 
> I've got a tricky task for automatic update script, which requires
> some portage magic ...
> 
> The script has a list of packages which should be updated
> completely automatically, but *only* if they're pulled in as
> dependency (beginning from world), and others not in that list
> should *not* be updated.
> 
> Is there any easy way to do it ?

man emerge shows a way for the specific case if you are updating world:

--deselect

It basically removes items in the build list that are in world. However if you 
are running

emerge app1 app2 app3

then the man page implies it won't do what you want.

I don't know when this feature arrived. I run v2.2 and there's been a lot of 
update activity in portage this last week


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] automatically updated certain packages

2010-09-12 Thread Neil Bothwick
On Sun, 12 Sep 2010 23:13:28 +0200, Enrico Weigelt wrote:

> The script has a list of packages which should be updated
> completely automatically, but *only* if they're pulled in as 
> dependency (beginning from world), and others not in that list
> should *not* be updated.

Would piping emerge -pu world through sed/grep/awk and parsing the output 
do what you want?


-- 
Neil Bothwick

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


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Shared libraries in Gentoo

2010-09-12 Thread Enrico Weigelt
* Al  wrote:

> Hope you have the power to go that way far enough on your own until it
> becomes interesting for more people.

Well, let's see where it goes. I'll continue my work and it
seems that soon a few others might jump in.

> I did good progress with Gentoo on Cygwin this WE. 3 big packages are
> directly before me now: Python, Portage and GCC.

That'll be the most troublesome ones of all ;-)

> > Hey, wait a minute ... we were talking about OSS-QM, thats completely
> > different project. Briegel is a build system (somewhat similar to
> > portage, but yet quite different concepts behind), which just happens
> > to work smoothly w/ oss-qm.
> 
> A build system needs sources and patches to build. So I think they are
> related. 

I've designed the two projects so that they're independent from
each other, but just play very well with together.

OSS-QM repositories [1] are layed out in a way that it's trivial 
to fetch specific version of the packages, and also allows separate
namespaces (prefixes) for individual distros (so they can push their
work directly to oss-qm w/o stepping onto other's feet).

> If your patch import system works, it can become very interesting. 

Well, for Debian it already works quite well, Gentoo still is
unsolved, as I'm lacking information to construct the history.
(a little help from Gentoo devs would really be appreciated).

> You can run something similar to Gentoo without the need
> of a big community at the beginning. So you have all freedom to
> customize it just the way you want it.

Actually, I already *do* have something similar - by combination
of OSS-QM and Briegel. But yet only a few packages for certian
embedded targets.


cu

[1] http://www.metux.de/download/oss-qm/normalized_repository.pdf
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Re: emerge - pointing to local file

2010-09-12 Thread Joseph

On 09/13/10 01:09, Nikos Chantziaras wrote:

On 09/13/2010 12:41 AM, Joseph wrote:

Can someone refresh my memory how to emerge application pointing to
local source file?
I need to re-emerge: asterisk-addons-1.4.7
but it does not seems to exist on any mirror (I have in may make.conf),
I found asterisk-addons-1.4.7.tar.gz file but I need to point emerge to
local file instead.


You put the tarball in /usr/portage/distfiles.


Yes, that did the trick, thank you!

--
Joseph



[gentoo-user] what's going on with updates ?

2010-09-12 Thread Stéphane Guedon
Since few days ( two or three ?), every time I launch emerge, it's saying me 
it needs an update of portage itself.
In plus, I have upgraded udev at least two times (160>161>162 today)...

Plus, I have had two warning message concerning updates : sudo and an other...

what's going on ? Is somebody founding security holes "à la pelle" (french 
expression).
-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc


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