List Info

Thread: A few points noted when running jhalfs-X SVN




A few points noted when running jhalfs-X SVN
user name
2006-05-11 20:10:36
El Jueves, 11 de Mayo de 2006 21:29, Alan Lord escribió:

> 1. After successfully grabbing some of the larger files
(>~2Mb) the
> process itself (./lfs) just hung. A ctl-C was required
to break out and
> nothing was apparently logged anywhere as to a cause. I
think it might
> have been a memory issue on my machine (Old Dell PIV
2.6Ghz with 256M
> RAMBUS!!!). Smaller files were downloaded and the
script continued as
> expected...

Looks like a hardware failure or a connexion lost that may
hang wget, not 
jhalfs itself.

> 2. Attempting to download tcl-8.4.13 fails (Is this
because the book has
> a "?download" at the end of url?????)

There are several files that have ?download. All that URLs
are skipped.

But there is a recent bug (added after fixing patches URLs
creation) in the 
XSL that creates the URLs generating a bad one for TCL.

I will try to fix it ASAP. Thanks for the report.

> 3. It seems as though the generated makefile and
scripts use $LFS to
> refer to the build directory. But we set $BUILDDIR in
the config files.
> Is there a reason for this or shouldn't $BUILDDIR
actually be called
> $LFS to save confusion. Because as far as I  can tell
you must have
> $BUILDDIR=$LFS anyway...

LFS and CLFS uses $LFS, HLFS uses $HLFS.

In jhalfs $BUILDDIR in using in the config file, that is
mapped to $MOUNT_PT 
on the Makefile, an lastly it is mapped to $LFS or $HLFS.

But looks that there is few places where the mapping was
forgotten :-/

That need be revised and simplified.

> 4. For some reason the "groupadd lfs" and
"useradd..." commands weren't
> executed (or they were ignored?) so the makefile barfed
when trying to
> "chown lfs..." Weirdly, *all* these
commands were present in the
> 022-addinguser script...

021-addinguser:  020-creatingtoolsdir
 $(call echo_message, Building)
 if
[ ! -d /home/lfs ]; then \
  groupadd lfs; \
  useradd -s /bin/bash -g lfs -m -k /dev/null lfs; \
 else \
  touch user-lfs-exist; \
 fi;
 chown lfs $(MOUNT_PT)/tools && \
 chmod a+wt $(MOUNT_PT)/sources && \
 touch $

I suspect that before running jhalfs you has /home/lfs but
not the lfs user 
and group.

Could we to do a better test?

>
> 5. The script crashed out with an error when trying to
create the
> symlink in 032-adjusting - the /tool symlink is owned
by root:root
> whereas the $BUILDDIR/tools directory is lfs:lfs (I
think I must have
> screwed up early on somewhere but I re-did bit this
manually and it is
> now proceedi... Nope it just Barfed again.

See above. 

The chown of $(MOUNT_PT)/tools is done at the same time that
the lfs user and 
group creation. If the user isn't created and don't exist,
the chown command 
do nothing.


-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.com
TLDP-ES:                           http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
A few points noted when running jhalfs-X SVN
user name
2006-05-11 21:31:54
M.Canales.es wrote:
> El Jueves, 11 de Mayo de 2006 21:29, Alan Lord
escribió:

> Looks like a hardware failure or a connexion lost that
may hang wget, not 
> jhalfs itself.

It definitely wasn't a h/w issue or timeout. The first time
I ran this 
it got "everything" and it ALWAYS stalled ONLY
after successfully 
retrieving the larger files. Anything less than [what seemed
to be] 
around 2Mb was fine, the script just carried straight on
working to the 
next file... It was a bit weird and I guess - like I said it
was a 
memory thing. I was running from within X in an xterm and
had Firefox 
open etc. so maybe it was just getting bogged down.

> 
>> 2. Attempting to download tcl-8.4.13 fails (Is this
because the book has
>> a "?download" at the end of url?????)
> I will try to fix it ASAP. Thanks for the report.

No problem. Glad I found something "useful".
> 
> In jhalfs $BUILDDIR in using in the config file, that
is mapped to $MOUNT_PT 
> on the Makefile, an lastly it is mapped to $LFS or
$HLFS.
> 
> But looks that there is few places where the mapping
was forgotten :-/
> 
> That need be revised and simplified.

As above.

> I suspect that before running jhalfs you has /home/lfs
but not the lfs user 
> and group.

Spot on. Good catch. I always keep /home as a separate
partition so it 
does have /home/lfs and yes, the user/group were not
defined.

> 
> Could we to do a better test?
> 
> The chown of $(MOUNT_PT)/tools is done at the same time
that the lfs user and 
> group creation. If the user isn't created and don't
exist, the chown command 
> do nothing.

Ahhhh that explains a lot.

Thanks for the great work you guys are doing on what is an
excellent 
tool. With the optimisations and ability to build {C,H,L}FS
and 
hopefully BLFS too this is just what the doctor ordered 

Alan


-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )