John D. Hendrickson | 2 Jul 20:50 2015
Picon
Picon

made a complete but different (jh)ALFS already - please offer on LFS and or discuss

I'd like this "AFS" to be a link with a small write-up on the LFS site 
please.  Also I would like to work with you all and hear advice on doing 
so.  All except for the negative funding part :)

http://sourceforge.net/projects/debguyscripts/files/build-0.1.2.tar.gz

build-0.1

Makes everything "%100 automatically" for a basic system: from 
libtermcap up to and including firefox-5.0, desktop and browsing ready 
when done.  350+ pkgs.

0) assumes you have linux kernel 2.6+ compiled

1) makes a chroot1 using some debinan sarge .deb
    (dpkg, debian not required: just lk 2.6)

2) builds core and makes chroot2 from initial pkg list

3) builds the rest inside chroot2

4) is able to boot as new / when done
    (actually, here is where user gets to move around
     their dirs - that one job is wisely left undone)

5) its a nice build environment because it's simple:
    it works pretty well in across resets when things go wrong
    because it's just a simple sh script that knows
    you'll be stopping and starting (if adding new fixes)

(Continue reading)

Pol Vangheluwe | 4 Jun 09:04 2015
Picon

segmentation fault when chrooting

I already built several times LFS (6.4, 6.6, 6.8 and 7.2) manually (on old Apple PowerPC computers).  This takes every time several months, because I do it in my sparse free time.
I recently found a second-hand PowerMac G4 (MDD) and decided to try ALFS on this machine (starting from Ubuntu 14.04.2 LTS).
Documentation about ALFS is quite limited, but anyway, I managed to start the building process with the following options:

Checking tools required for jhalfs
SUDO.............. <1.8.9p5>             OK (Min version: 1.7.0)
WGET.............. <1.15>                OK (Min version: 1.0.0)
LIBXML2........... <2.09.01>             OK (Min version: 2.06.20)
LIBXSLT........... <1.01.28>             OK (Min version: 1.01.14)
------------------------------------------------------------------------------

BOOK.............. </mnt/build_dir/jhalfs/lfs-branch-systemd>
CUSTOM_TOOLS...... <n>
BLFS_TOOL......... <n>
LUSER............. <lfs>
LGROUP............ <lfs>
LHOME............. </home>
BUILDDIR.......... </mnt/build_dir>
CLEAN............. <n>
GETPKG............ <y>
SRC_ARCHIVE....... </mnt/build_dir/archive>
SERVER............ <ftp://ftp.lfs-matrix.net>
RETRYSRCDOWNLOAD.. <y>
RETRYDOWNLOADCNT.. <3>
DOWNLOADTIMEOUT... <30>
RUNMAKE........... <y>
TEST.............. <1>
BOMB_TEST......... <n>
STRIP............. <y>
VIMLANG........... <n>
FSTAB............. <>
CONFIG............ <>
TIMEZONE.......... <GMT>
PAGE.............. <A4>
LANG.............. <nl_BE <at> euro/ISO-8859-15>
INSTALL_LOG....... <n>
PKGMNGT........... <n>
FULL_LOCALE....... <n>
COMPARE........... <n>
OPTIMIZE.......... <0>
REPORT............ <y>
REBUILD_MAKEFILE.. <n>

The building process was a few times aborted during compilation of gcc (pass-1).  I could fix it by extending ulimit and restarting ‘make’.
I am now in CHROOT, compiling 082-gcc-5.1.0 and again facing an abort.  However, I cannot proceed anymore because of this:

------------------------------------------------------------------------------

Creating Makefile... START
Processing... <Chapter4     ( SETUP ) >
Processing... <Chapter5     ( LUSER ) >
Processing... <Chapter6     ( CHROOT ) >
Processing... <Chapter7/8   ( BOOT ) >
Creating Makefile... DONE
------------------------------------------------------------------------------


KERNEL............ <3.13.0-51-powerpc-smp> OK (Min version: 2.6.32)
BASH.............. <4.3.11(1)-release>   OK (Min version: 3.2)
GCC............... <5.1.0>               OK (Min version: 4.1.2)
G++............... <5.1.0>               OK (Min version: 4.1.2)
GLIBC............. <2.21>                OK (Min version: 2.11)
BINUTILS.......... <2.25>                OK (Min version: 2.17)
TAR............... <1.28>                OK (Min version: 1.18)
BZIP2............. <1.0.6>               OK (Min version: 1.0.4)
BISON............. <3.0.2>               OK (Min version: 2.3)
COREUTILS......... <8.23>                OK (Min version: 6.9)
DIFF.............. <3.3>                 OK (Min version: 2.8.1)
FIND.............. <4.4.2>               OK (Min version: 4.2.31)
GAWK.............. <4.1.2>               OK (Min version: 4.0.1)
GREP.............. <2.21>                OK (Min version: 2.5.1a)
GZIP.............. <1.6>                 OK (Min version: 1.3.12)
M4................ <1.4.17>              OK (Min version: 1.4.10)
MAKE.............. <4.1>                 OK (Min version: 3.81)
PATCH............. <2.7.5>               OK (Min version: 2.5.4)
PERL.............. <5.20.2>              OK (Min version: 5.8.8)
SED............... <4.2.2>               OK (Min version: 4.1.5)
TEXINFO........... <5.2>                 OK (Min version: 4.7)
XZ................ <5.2.1>               OK (Min version: 5.0.0)
------------------------------------------------------------------------------

Building the system...
make[1]: Entering directory '/mnt/build_dir/jhalfs'
--------------------------------------------------------------------------------
mk_CHROOT
You are going to CHROOT into /mnt/build_dir lfs
a password is required
/tools/bin/bash: line 1:  5666 Segmentation fault      (core dumped) make BREAKPOINT= CHROOT
Makefile:87: recipe for target 'mk_CHROOT' failed
make[1]: *** [mk_CHROOT] Error 139
make[1]: Leaving directory '/mnt/build_dir/jhalfs'

ERROR: Error 2 at common/common-functions line 39!


<jhalfs-trunk> exit

Makefile:11: recipe for target 'all' failed
make: *** [all] Error 2

Chrooting manually is no problem:

lfs <at> ppc125:~$ sudo 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
[sudo] password for lfs: 
root:/# pwd
/
root:/# ls -l
total 120
drwxrwxr-x  2 1001 1001  4096 May 28 14:57 archive
drwxr-xr-x  2 root root  4096 Jun  1 19:26 bin
drwxr-xr-x  2 root root  4096 Jun  1 19:26 boot
drwxr-xr-x  2 root root  4096 Jun  1 19:26 dev
drwxr-xr-x  4 root root  4096 Jun  1 22:47 etc
drwxr-xr-x  2 root root  4096 Jun  1 19:26 home
drwxrwxrwt  7 1001 1001  4096 Jun  2 20:35 jhalfs
drwxr-xr-x  4 root root  4096 Jun  1 22:47 lib
drwx------  2 root root 16384 May 14 16:31 lost+found
drwxr-xr-x  4 root root  4096 Jun  1 19:26 media
drwxr-xr-x  2 root root  4096 Jun  1 19:26 mnt
drwxr-xr-x  2 root root  4096 Jun  1 19:26 opt
drwxr-xr-x  2 root root  4096 Jun  1 19:26 proc
drwxr-x---  2 root root  4096 Jun  1 19:26 root
drwxr-xr-x  2 root root  4096 Jun  1 19:26 run
drwxr-xr-x  2 root root  4096 Jun  1 22:44 sbin
drwxrwxrwt  4 1001 root  4096 Jun  2 20:34 sources
drwxr-xr-x  2 root root  4096 Jun  1 19:26 srv
drwxr-xr-x  2 root root  4096 Jun  1 19:26 sys
drwxrwxrwt  2 root root 20480 Jun  2 04:00 tmp
drwxr-xr-x 12 root root  4096 May 31 21:01 tools
drwxr-xr-x 10 root root  4096 Jun  1 19:26 usr
drwxr-xr-x 10 root root  4096 Jun  1 19:26 var

Any suggestion how I can fix this and continue with ALFS?


pvg


--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
Di Appoggio | 2 Apr 16:25 2015
Picon

BLFS Support issue

Hi,
with the help of jhalfs (rev 3824) I'm trying to add blfs support with latest lfs and blfs revision but I can't pass target 018-z-sqlite.

./jhalfs/build_dir/blfs_root/work/logs/018-z-sqlite:

> sqlite-autoconf-3080802.tar.gz: OK
> sqlite-doc-3080802.zip: OK
> unzip:  cannot find or open ../sqlite-doc-.zip, ../sqlite-doc-.zip.zip or ../sqlite-doc-.zip.ZIP.

./jhalfs/build_dir/blfs_root/scripts/018-z-sqlite:

[...]
> cd $UNPACKDIR
>
> unzip -q ../sqlite-doc-.zip
> ./configure --prefix=/usr --disable-static        \
>            CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 \
>            -DSQLITE_ENABLE_COLUMN_METADATA=1     \
>           -DSQLITE_ENABLE_UNLOCK_NOTIFY=1       \
>            -DSQLITE_SECURE_DELETE=1" &&
[...]

The error is quite clear, but I can't see how this script is parsed. Can someone help?

--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
William Harrington | 3 Nov 05:02 2014

CLFS Util-linux additions

Greetings,

We have created a pass1 in our final system.

This change makes sure that the Makefile is generated with all of the proper lines so that the pkg tarball
name is proper.

The patch is attached.

I have tested this with our multilib build.

SIncerely,

William Harrington
Attachment (util-linux-pass1-jhalfs.patch): application/octet-stream, 1243 bytes
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
이승범 | 21 Oct 17:01 2014
Picon

Building target 149-kernel Failure

Hello,

While building with Rev. 3807 of ALFS svn, I got this problem...
I tried twice but the same.
Can anyone give me a hint please..??

Regards.

Mach


 Building target 149-kernel
 [+++++++++++++++++++++++++++++++++++++++/Makefile:1793: recipe for target '149-kernel' failed
make: *** [149-kernel] Error 2
make[1]: *** [mk_BOOT] Error 2
make[1]: Leaving directory `/mnt/build_dir/jhalfs'

ERROR: Error 2 at common/common-functions line 39!


<jhalfs-trunk> exit

make: *** [all] Error 2

npms <at> nmps:/mnt/build_dir/jhalfs/logs$ tail 149-kernel 
  CC [M]  drivers/staging/lustre/lustre/ptlrpc/sec_plain.o
  CC [M]  drivers/staging/lustre/lustre/ptlrpc/nrs.o
  CC [M]  drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.o
  CC [M]  drivers/staging/lustre/lustre/ptlrpc/sec_lproc.o
  LD [M]  drivers/staging/lustre/lustre/obdclass/obdclass.o
  LD [M]  drivers/staging/lustre/lustre/osc/osc.o
  LD [M]  drivers/staging/lustre/lustre/ptlrpc/ptlrpc.o
  LD      drivers/staging/built-in.o
  LD      drivers/built-in.o
make[1]: Leaving directory '/sources/linux-3.17.1'

--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
Vitaly Takmazov | 24 Aug 16:48 2014
Picon

Error building stable lfs 7.5-systemd (binutils-pass2)

My logs/037-binutils-pass2-2.24 contents: http://pastebin.com/bzYjiv3g
sources/binutils-build
my sources/binutils-build/config.log contents: http://pastebin.com/SMaVMU6Z
where most important part is:
./a.out: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I can successfully build this part by hand. What is the problem with jhalfs (using jhalfs-trunk revision 3800)?
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
EyesIs Mine | 20 Aug 21:22 2014
Picon

BLFS broken when trying to copy a file into itself

Using the latest SVN version of jhalfs, when using BLFS tools, it tries 
to copy the downloaded file into itself.

cp: ‘libffi-3.1.tar.gz’ and ‘/mnt/sources/libffi-3.1.tar.gz’ are the 
same file

ERROR: Error 1 at common/libs/func_install_blfs line 144!

--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
Chris Staub | 3 Jun 20:35 2014

Creation of /etc/fstab moved

In current CLFS, the page for /etc/fstab is now in system-config instead 
of bootable. This line should be copied to the case statement for 
system-config:

*fstab)  [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

William Harrington | 29 May 02:12 2014

CLFS new variables changes

Greetings,

http://www.cross-lfs.org/~chris/new_vars_page.patch

We have updated our book some more regarding setting our variables.

Please take a look and adjust any comments if see fit.

Chris stated it works well for current versions and previous versions  
of the book before the above changes.

Sincerely,

William Harrington
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

William Harrington | 11 May 03:00 2014

CLFS Boot method changes for root user use

Greetings,

In our previous books, we started the boot chapter system as using the  
root user:

http://cross-lfs.org/view/CLFS-2.1.0/x86/boot/introduction.html
This changes the owner to the clfs user for ${CLFS}  "/mnt/clfs" by  
default

After that page, the clfs user can install what is needed until we get  
to installing some devices which we used the root user again for the  
rest of the chapter:

http://cross-lfs.org/view/CLFS-2.1.0/x86/boot/devices.html

For our current changes, we start the boot chapter as the clfs user  
and install what is required until we need the root user:

http://cross-lfs.org/view/systemd/html/x86/boot/creatingdirs.html

We use the root user for the reset of the chapter.

I need some help in figuring out what to do with jHALFS so the root  
user starts being used for the following pages in our chapter 7 boot  
method:

creatingdirs
createfiles
devices
pwdgroup
fstab
settingenvironment
changingowner

What I can see is that AS_ROOT: in the Makefile needs to have the  
targets above in that section and not in AS_LUSER.
WIth that I think I'm on the right track as far as that. I'm going to  
look closer at master.sh if that is where the edits need to take place.

Sincerely,

William Harrington

--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

William Harrington | 8 May 13:52 2014

jHALFS CLFS master.sh changes

Greetings,

With CLFS, our current cross-lfs book has been going through some  
major changes.

With our future releases, we've been reorganizing and renaming some  
parts of the book.

With jHALFS, some changes need to occur to work with current systemd  
branch and future releases and with past releases.

Our bootscripts section has been renamed to system-config since our  
future releases will not contain bootscripts anymore.
Our boot method will have a boot-scripts package which are scripts  
only for the boot method.

To address these issues I have these changes which have been tested  
and work:

http://hastebin.com/nozukimaki.diff
Attachment (jhalfs-clfs.diff): application/octet-stream, 888 bytes

I've also attached the diff.

If considered upstream, the changes can be adjusted to be more proper  
if not already in the desired state. This includes variable names, or  
the structure of the conditionals.

Sincerely,

William Harrington
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Gmane