William Harrington | 28 Dec 03:09 2015

CLFS updates for clfs user .bashrc

Ahoy,

I have noticed some distributions, Slackware for one, which sets PKG_CONFIG_PATH, so when "su - clfs" is
given PKG_CONFIG_PATH from /etc/profile.d is set and wreaks havoc with some packages, namely make if
guile exists, and util-linux if ncursesw exists. Frankly, we always want to use our custom default path
for pkg-config in /cross-tools. Don't let the PKG_CONFIG_PATH spoil our fun. Patch is attached.

Index: CLFS/master.sh
===================================================================
--- CLFS/master.sh	(revision 3824)
+++ CLFS/master.sh	(working copy)
 <at>  <at>  -63,6 +63,7  <at>  <at> 
 	echo "" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "unset CFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "unset CXXFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
+	echo "unset PKG_CONFIG_PATH" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "" >> \$(LUSER_HOME)/.bashrc && \\
 EOF
 ) >> $MKFILE.tmp
Index: CLFS2/master.sh
===================================================================
--- CLFS2/master.sh	(revision 3824)
+++ CLFS2/master.sh	(working copy)
 <at>  <at>  -45,6 +45,7  <at>  <at> 
 	echo "" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "unset CFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "unset CXXFLAGS" >> \$(LUSER_HOME)/.bashrc && \\
+	echo "unset PKG_CONFIG_PATH" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "" >> \$(LUSER_HOME)/.bashrc && \\
 	echo "export CLFS_HOST=\"${CLFS_HOST}\"" >> \$(LUSER_HOME)/.bashrc && \\
(Continue reading)

Pierre Labastie | 1 Nov 12:12 2015
Picon

RFC: Improvements of jhalfs for (C)LFS and BLFS

Hi,

I do not know who monitors this list, but I'd like to submit some ideas about
improving jhalfs, for both (C)LFS and BLFS. My initial idea was to put some
time in jhalf-BLFS improvement, but I think others might have ideas about
improvements to the (C)LFS part. Actually, I think of one: a few parts are
still hard coded and not read from the books (mainly chapter 4). They rarely
change, but it would be interesting to retrieve them from the books. I'll try
that first, but please feel free to add to that TODO.

Now, the BLFS part offers much more room for improvement:
- Pages with no version are not considered by the tool, but may be needed as
dependencies (for example CA certificates for p11-kit and gnutls), or to set
up the environment (for example "Configuring the JAVA environment" and
"Setting the PATH for TeX Live"). I think the <sect1info><date> tag could be
used as version for those pages.
- There is presently no way to know which bootscript to reinstall when the
bootscript tarball is modified. Having a file of installed bootscripts could
help (or maybe use the listing of "/etc/init.d").
- There is no way to build perl modules external (not in the book)
dependencies. It would be interesting to find a way to do that. The main
problem is that the book lacks version information for those dependencies, and
I am not sure it is easy to find the latest one.
- There is no automatic figure computation (SBUs and size). This would be easy
to install.
- There should be a way to store build logs, build scripts and possibly the
used dependency tree. Presently, they get destroyed when running make in the
blfs_root directory. OTOH, indexing those logs is not easy, since very often,
a list of packages is given to be built, and they each pull their
dependencies, so that the logs (same for the scripts and deps) are all grouped
(Continue reading)

Bruce Dubbs | 2 Oct 00:17 2015
Picon

jhalfs needs to be updated for lfs-7.8

It wants libncursesw.so.5, but lfs-7.8 has libncursesw.so.6

The workaround of course is to copy .5 from an older build.  I didn't 
try, but it's possible a symlink from libncursesw.so.5 to 
libncursesw.so.6 might work.

   -- Bruce
--

-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
Michael Løjtnant | 20 Aug 01:22 2015
Picon

CLFS 3.0.0-systemd breaks on Chapter 76

Hi,

I'm trying to build a Pure 64-bit system using JHALFS and CLFS, but it 
breaks when it reaches Chapter 76-Choose.

I'm using the 3.0.0-systemd stable book, and chosen chroot for the Build 
method.

Host system is LFS-7.0.

JHALFS is latest development version

The build fails with this error:

---- Start build error:

Building the system...
make[1]: Entering directory `/mnt/lfs/jhalfs'
--------------------------------------------------------------------------------
         Executing Final Preparations Cross and Temporary Tools scripts
--------------------------------------------------------------------------------

make: Entering directory `/mnt/lfs/jhalfs'
--------------------------------------------------------------------------------
  Building target 076-choose
  [|make: *** [076-choose] Error 126                           ] 0 min. 
0 sec
make: Leaving directory `/mnt/lfs/jhalfs'
make[1]: *** [mk_F_PREPS] Error 2
make[1]: Leaving directory `/mnt/lfs/jhalfs'
(Continue reading)

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

Gmane