Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-31 Thread Ken Moffat
On Wed, Feb 01, 2017 at 09:07:37AM +0600, ssmtpmailtesting ssmtpmailtesting 
wrote:
> I extracted 
> http://distfiles.gentoo.org/releases/x86/autobuilds/20170131/stage3-i686-20170131.tar.bz2
> in /mnt/lfs/tools , then the following commands
> 
> mount -v --bind /dev $LFS/dev
> mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
> mount -vt proc proc $LFS/proc
> mount -vt sysfs sysfs $LFS/sys
> mount -vt tmpfs tmpfs $LFS/run
> 
> chroot "$LFS" /tools/bin/env -i \
> HOME=/root  \
> TERM="$TERM"\
> PS1='\u:\w\$ '  \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
> /tools/bin/bash --login +h
> 
> I get error: chroot: failed to run command '/tools/bin/env': No such
> file or directory
> 
And you think we can help, when you are deliberately trying to break
what LFS is about ?

FBBG

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.' -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-31 Thread ssmtpmailtesting ssmtpmailtesting
I extracted 
http://distfiles.gentoo.org/releases/x86/autobuilds/20170131/stage3-i686-20170131.tar.bz2
in /mnt/lfs/tools , then the following commands

mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run

chroot "$LFS" /tools/bin/env -i \
HOME=/root  \
TERM="$TERM"\
PS1='\u:\w\$ '  \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h

I get error: chroot: failed to run command '/tools/bin/env': No such
file or directory

[@Chris,
It is possible, and exactly what I did after my first run though LFS.
Extract it to the root. Chroot to it. Install grub, bc. and compile the
kernel. Reboot. You already have wget etc etc. I built Xorg etc following
BLFS and worked flawlessly. Would be happy to answer any other questions.
]


[@decentral.ch
Of course it is possible. It might also be possible to use an existing
debian or redhat install as temporary toolchain.
]
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-31 Thread Ken Moffat
On Mon, Jan 30, 2017 at 04:27:49PM -0600, Bruce Dubbs wrote:
> Michele Bucca wrote:
> 
> >  > I'll note that on my system, I takes only about 20 minutes to build
> > Chapter 5.
> >  >
> >  > -rw-rw-r-- 1 lfslfs0 Jan 23 18:08 034-binutils-pass1
> >  > ...
> >  > -rw-rw-r-- 1 lfslfs0 Jan 23 18:28 064-xz
> >  >
> >  > Yes, it is automated.
> 
> > Using ALFS?
> 
> jhalfs  (Using -j10)
> 
>   -- Bruce
> 

It does depend on your hardware, and I think you've discounted the
tens of seconds it takes to build binutils pass 1 with -j1.  I've
just completed chapter 5 on my A10 (-j4 after binutils1) - about
39m40.  In this case, my own scripts probably do add a little
overhead for logging of what got installed (and rather more overhead
on a completed desktop system) - but theyi do let me sort out which
optional dependencies and extra configure switches I care about.

For a first build, FBBG - but after that, if you stay with us then
_some_ form of scripting is essential if you aren't going to go out
of your mind (although debugging the scripts can also do that :)

Still, I'm happy that this machine of mine is again semi-usable, and
a LOT faster than my first single-core x86_64 machines.

/me waits for AMD Ryzen to become both available and affordable.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.' -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Ken Moffat
On Mon, Jan 30, 2017 at 05:17:55PM +0600, ssmtpmailtesting ssmtpmailtesting 
wrote:
> Is it possible to use gentoo stage3 as tools or temporary system?
> 
> http://distfiles.gentoo.org/releases/x86/autobuilds/20170124/stage3-i686-20170124.tar.bz2
> 
> Then is it possible to skip chapter 5 to make tools or toolchain or
> temporary system?

(replying late, because for some reason mail from this list didn't
arrive for hours) -

For a host system, I think people have already answered you.  And,
at a _big_ pinch I might concede that using something other than the
same version of LFS to enter chroot *might* not be too disastrous.

But we aim for two things - to ensure that the new LFS is isolated
from whatever weird and wonderful things might be in the host
system, and to be repeatable.  Using some random system to enter
chroot makes me worry - back to the days of LFS-4 (before the
changes for 'pure lfs' which became LFS-5) : what works for me might
not work for you (and vice versa).

At the end of the day, if you chroot from a gentoo system and
something goes wrong, you may be on your own.  Yes, building LFS the
first few times can be hard, there is a lot to learn - but thinking
that taking shortcuts will help is a recipe for disappointment.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.' -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Bruce Dubbs

Michele Bucca wrote:


 > I'll note that on my system, I takes only about 20 minutes to build
Chapter 5.
 >
 > -rw-rw-r-- 1 lfslfs0 Jan 23 18:08 034-binutils-pass1
 > ...
 > -rw-rw-r-- 1 lfslfs0 Jan 23 18:28 064-xz
 >
 > Yes, it is automated.



Using ALFS?


jhalfs  (Using -j10)

  -- Bruce

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Douglas R. Reno
On Mon, Jan 30, 2017 at 3:55 PM, Michele Bucca 
wrote:

> Il 30 gen 2017 10:52 PM, "Bruce Dubbs"  ha scritto:
> >
> > Tim Tassonis wrote:
> >>
> >> On 01/30/2017 10:11 PM, Chris Statzer wrote:
> >>>
> >>>
> >>>
> >>> On Mon, Jan 30, 2017 at 7:17 PM, ssmtpmailtesting ssmtpmailtesting
> >>> >
> wrote:
> >>>
> >>> Is it possible to use gentoo stage3 as tools or temporary system?
> >>>
> >>>
> >>> http://distfiles.gentoo.org/releases/x86/autobuilds/
> 20170124/stage3-i686-20170124.tar.bz2
> >>>
> >>>
> >>>  20170124/stage3-i686-20170124.tar.bz2>
> >>>
> >>>
> >>> Then is it possible to skip chapter 5 to make tools or toolchain or
> >>> temporary system?
> >>>
> >>>
> >>> It is possible, and exactly what I did after my first run though LFS.
> >>> Extract it to the root. Chroot to it. Install grub, bc. and compile the
> >>> kernel. Reboot. You already have wget etc etc. I built Xorg etc
> >>> following BLFS and worked flawlessly. Would be happy to answer any
> other
> >>> questions.
> >>
> >>
> >>
> >> Of course it is possible. It might also be possible to use an existing
> >> debian or redhat install as temporary toolchain.
> >>
> >> It just undermines the whole point of Linux From Scratch. The "from
> >> scratch" actually means that you build the whole systen from scratch.
> Like
> >> this, you fail to do that. You will compile at least:
> >>
> >> Glibc-2.24
> >> Zlib-1.2.8
> >> File-5.28
> >> Binutils-2.27
> >> GMP-6.1.1
> >> MPFR-3.1.4
> >> MPC-1.0.3
> >>
> >> with the gentoo compiler and not the one that you built yourself.
> >
> >
> > One thing that is quite reasonable is to build /mnt/lfs/tools (Chapter
> 5) and archive it.  You can then reuse it for any new version of LFS unless
> a package comes up that needs something newer.  But that hasn't happened in
> years.
> >
> > I'll note that on my system, I takes only about 20 minutes to build
> Chapter 5.
> >
> > -rw-rw-r-- 1 lfslfs0 Jan 23 18:08 034-binutils-pass1
> > ...
> > -rw-rw-r-- 1 lfslfs0 Jan 23 18:28 064-xz
> >
> > Yes, it is automated.
> >
> >   -- Bruce
> >
> Using ALFS?
> >
>
>
Yeah, he uses jhalfs, as do I as of late. Too much time to be invested in
doing it manually at this time.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Michele Bucca
Il 30 gen 2017 10:52 PM, "Bruce Dubbs"  ha scritto:
>
> Tim Tassonis wrote:
>>
>> On 01/30/2017 10:11 PM, Chris Statzer wrote:
>>>
>>>
>>>
>>> On Mon, Jan 30, 2017 at 7:17 PM, ssmtpmailtesting ssmtpmailtesting
>>> > wrote:
>>>
>>> Is it possible to use gentoo stage3 as tools or temporary system?
>>>
>>>
>>>
http://distfiles.gentoo.org/releases/x86/autobuilds/20170124/stage3-i686-20170124.tar.bz2
>>>
>>>
>>> <
http://distfiles.gentoo.org/releases/x86/autobuilds/20170124/stage3-i686-20170124.tar.bz2
>
>>>
>>>
>>> Then is it possible to skip chapter 5 to make tools or toolchain or
>>> temporary system?
>>>
>>>
>>> It is possible, and exactly what I did after my first run though LFS.
>>> Extract it to the root. Chroot to it. Install grub, bc. and compile the
>>> kernel. Reboot. You already have wget etc etc. I built Xorg etc
>>> following BLFS and worked flawlessly. Would be happy to answer any other
>>> questions.
>>
>>
>>
>> Of course it is possible. It might also be possible to use an existing
>> debian or redhat install as temporary toolchain.
>>
>> It just undermines the whole point of Linux From Scratch. The "from
>> scratch" actually means that you build the whole systen from scratch.
Like
>> this, you fail to do that. You will compile at least:
>>
>> Glibc-2.24
>> Zlib-1.2.8
>> File-5.28
>> Binutils-2.27
>> GMP-6.1.1
>> MPFR-3.1.4
>> MPC-1.0.3
>>
>> with the gentoo compiler and not the one that you built yourself.
>
>
> One thing that is quite reasonable is to build /mnt/lfs/tools (Chapter 5)
and archive it.  You can then reuse it for any new version of LFS unless a
package comes up that needs something newer.  But that hasn't happened in
years.
>
> I'll note that on my system, I takes only about 20 minutes to build
Chapter 5.
>
> -rw-rw-r-- 1 lfslfs0 Jan 23 18:08 034-binutils-pass1
> ...
> -rw-rw-r-- 1 lfslfs0 Jan 23 18:28 064-xz
>
> Yes, it is automated.
>
>   -- Bruce
>
Using ALFS?
>
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Tim Tassonis

On 01/30/2017 10:11 PM, Chris Statzer wrote:



On Mon, Jan 30, 2017 at 7:17 PM, ssmtpmailtesting ssmtpmailtesting
> wrote:

Is it possible to use gentoo stage3 as tools or temporary system?


http://distfiles.gentoo.org/releases/x86/autobuilds/20170124/stage3-i686-20170124.tar.bz2



Then is it possible to skip chapter 5 to make tools or toolchain or
temporary system?


It is possible, and exactly what I did after my first run though LFS.
Extract it to the root. Chroot to it. Install grub, bc. and compile the
kernel. Reboot. You already have wget etc etc. I built Xorg etc
following BLFS and worked flawlessly. Would be happy to answer any other
questions.



Of course it is possible. It might also be possible to use an existing 
debian or redhat install as temporary toolchain.


It just undermines the whole point of Linux From Scratch. The "from 
scratch" actually means that you build the whole systen from scratch. 
Like this, you fail to do that. You will compile at least:


Glibc-2.24
Zlib-1.2.8
File-5.28
Binutils-2.27
GMP-6.1.1
MPFR-3.1.4
MPC-1.0.3

with the gentoo compiler and not the one that you built yourself.





Chris





--
decentral.ch - IT Stuff
Tim Tassonis
Dennlerstasse 36
8047 Zürich

st...@decentral.ch
+41 79 229 36 17
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Chris Statzer
On Mon, Jan 30, 2017 at 7:17 PM, ssmtpmailtesting ssmtpmailtesting <
ssmtpmailtest...@gmail.com> wrote:

> Is it possible to use gentoo stage3 as tools or temporary system?
>
> http://distfiles.gentoo.org/releases/x86/autobuilds/
> 20170124/stage3-i686-20170124.tar.bz2
>
> Then is it possible to skip chapter 5 to make tools or toolchain or
> temporary system?
>

It is possible, and exactly what I did after my first run though LFS.
Extract it to the root. Chroot to it. Install grub, bc. and compile the
kernel. Reboot. You already have wget etc etc. I built Xorg etc following
BLFS and worked flawlessly. Would be happy to answer any other questions.

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] Is it possible to use gentoo stage3 as tools or temporary system?

2017-01-30 Thread Chris Staub

On 01/30/2017 06:17 AM, ssmtpmailtesting ssmtpmailtesting wrote:

Is it possible to use gentoo stage3 as tools or temporary system?

http://distfiles.gentoo.org/releases/x86/autobuilds/20170124/stage3-i686-20170124.tar.bz2

Then is it possible to skip chapter 5 to make tools or toolchain or
temporary system?



The book's instructions are the way they are for a reason, including the 
creation of a temporary system. Try actually reading it for a change.

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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style