Re: Is it safe to strip --strip-all *.so

2010-07-08 Thread Nathan Coulson
On Thu, Jul 8, 2010 at 6:29 AM, xinglp  wrote:
> lfs svn  6.62. Stripping Again
>
>
 /tools/bin/find /{,usr/}{bin,lib,sbin} -type f   -exec /tools/bin/strip 
 --strip-debug '{}' ';'
 If disk space is very tight, the --strip-all option can be used on the 
 binaries in /{,usr/}{bin,sbin} to gain several more megabytes.
 Do not use this option on libraries—they will be destroyed.
>
> I write a simple libxxx.so lib and a app link to it.  --strip-all the
> libxxx.so. And the app works fine.
> --

I think it was only the .a libraries that get damaged w/ --strip-all
(makes it unlinkable since you remove the symbols).  Not sure what the
size difference is, but symbols do not take up much space usually.


-- 
Nathan Coulson (conathan)
--
Location: Brittish Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: some issues with grub

2010-07-08 Thread Bruce Dubbs
Dr.-Ing. Edgar Alwers wrote:
> On Thu, 08 Jul 2010 10:23:02 -0400
> Chris Staub  wrote:
> 
>> On 07/07/2010 01:56 PM, Bruce Dubbs wrote:
>>> Dr.-Ing. Edgar Alwers wrote:
>>>
 2.) the configuration file example given talks about "Be careful not
 to change the 'exec tail' line above." . But the example does not
 contain a exec tail line. However, this line is important.

 May be something is missing in the example ?
>> Nothing is missing - that is exactly what the actual file looks like. 
>> The comment about "exec tail" comes from /etc/grub.d/40_custom, in which 
>> the command does exist - grub.cfg just copies the comment lines from 
>> each config file and doesn't include the actual tail command.
>> -- 
> Hi Chris,
> 
> OK. I can live with it. However, I would recommend to make it clear
> in LFS. It could confuse people, especially considering that Grub2 is
> not the easiest one boot manager. Regards, Edgar

We already spend more time in LFS explaining GRUB than with any other 
single package in LFS or BLFS with the exception of Xorg (if you count 
that as a single package).  We don't see our role as explaining every 
little nuance.  GRUB2 *is* complex.  It supports:

Multiple languages
Network PXE
Serial Ports
CDROMs
Floppies
Partition Formats
Operating Systems
Disk Hardware
BIOS Types

My purpose was to explain how to make GRUB work in what I considered to 
be the most common instance:  ext3 on a standard hard drive as 
/dev/sdax, standard ps2 or usb keyboard, and standard vga monitor.

Explaining a comment line in a generated configuration file seems to be 
overkill.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: some issues with grub

2010-07-08 Thread Dr.-Ing. Edgar Alwers
On Thu, 08 Jul 2010 10:23:02 -0400
Chris Staub  wrote:

> On 07/07/2010 01:56 PM, Bruce Dubbs wrote:
> > Dr.-Ing. Edgar Alwers wrote:
> >
> >> 2.) the configuration file example given talks about "Be careful not
> >> to change the 'exec tail' line above." . But the example does not
> >> contain a exec tail line. However, this line is important.
> >>
> >> May be something is missing in the example ?
> >
> 
> Nothing is missing - that is exactly what the actual file looks like. 
> The comment about "exec tail" comes from /etc/grub.d/40_custom, in which 
> the command does exist - grub.cfg just copies the comment lines from 
> each config file and doesn't include the actual tail command.
> -- 
Hi Chris,

OK. I can live with it. However, I would recommend to make it clear in LFS. It 
could confuse people, especially considering that Grub2 is not the easiest one 
boot manager.
Regards,
Edgar

-- 
Dr.-Ing. Edgar Alwers 
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Can i build lfs without a dedicated partition ?

2010-07-08 Thread $reeHari
thnx 4 de reply andrew . Yeah , my bios support usb boot ..

On Thu, Jul 8, 2010 at 11:13 PM, Andrew Benton  wrote:

> On 08/07/10 18:02, $reeHari wrote:
> > Hi ,
> > I just started with lfs using book version 6.6 . I had previously
> > started with book ver 6.3 and in dat , author said it is okey to build
> > lfs without a partition , in a directory . But in the new version of the
> > book , no such thing is mentioned . So somebody advice me on this . Do i
> > really need a dedicated partition for the build or can i build it in a
> > directory as said in ver 6.3 ?
>
> It may be possible but it would be a job for an expert, not someone
> trying to follow the book for the first time. Keep it simple until you
> know what you're doing.
>
>  > If a dedicated partition is essential ,
> > can i use a usb stick ?
>
> Maybe. Can your BIOS boot a USB stick?
>
> Andy
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



--
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Can i build lfs without a dedicated partition ?

2010-07-08 Thread Andrew Benton
On 08/07/10 18:02, $reeHari wrote:
> Hi ,
> I just started with lfs using book version 6.6 . I had previously
> started with book ver 6.3 and in dat , author said it is okey to build
> lfs without a partition , in a directory . But in the new version of the
> book , no such thing is mentioned . So somebody advice me on this . Do i
> really need a dedicated partition for the build or can i build it in a
> directory as said in ver 6.3 ?

It may be possible but it would be a job for an expert, not someone 
trying to follow the book for the first time. Keep it simple until you 
know what you're doing.

 > If a dedicated partition is essential ,
> can i use a usb stick ?

Maybe. Can your BIOS boot a USB stick?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Can i build lfs without a dedicated partition ?

2010-07-08 Thread $reeHari
Hi ,
I just started with lfs using book version 6.6 . I had previously started
with book ver 6.3 and in dat , author said it is okey to build lfs without a
partition , in a directory . But in the new version of the book , no such
thing is mentioned . So somebody advice me on this . Do i really need a
dedicated partition for the build or can i build it in a directory as said
in ver 6.3 ? If a dedicated partition is essential , can i use a usb stick ?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: some issues with grub

2010-07-08 Thread Chris Staub
On 07/07/2010 01:56 PM, Bruce Dubbs wrote:
> Dr.-Ing. Edgar Alwers wrote:
>
>> 2.) the configuration file example given talks about "Be careful not
>> to change the 'exec tail' line above." . But the example does not
>> contain a exec tail line. However, this line is important.
>>
>> May be something is missing in the example ?
>
> I'll double check.
>
> -- Bruce

Nothing is missing - that is exactly what the actual file looks like. 
The comment about "exec tail" comes from /etc/grub.d/40_custom, in which 
the command does exist - grub.cfg just copies the comment lines from 
each config file and doesn't include the actual tail command.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Is it safe to strip --strip-all *.so

2010-07-08 Thread xinglp
lfs svn  6.62. Stripping Again


>>> /tools/bin/find /{,usr/}{bin,lib,sbin} -type f   -exec /tools/bin/strip 
>>> --strip-debug '{}' ';'
>>> If disk space is very tight, the --strip-all option can be used on the 
>>> binaries in /{,usr/}{bin,sbin} to gain several more megabytes.
>>> Do not use this option on libraries—they will be destroyed.

I write a simple libxxx.so lib and a app link to it.  --strip-all the
libxxx.so. And the app works fine.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page