Sending again to list (sorry for private mail Thomas)
On 21/03/2018 14:58, Thomas Seeling wrote:
> Hallo,
>
>
> I'm currently building LFS 8.2 with BLFS tools support.
>
> Instead of jhalfs 2.4 release I used something later from the svn
> repository so the 114-elf step was successful and the LFS build
> completed flawlessly overnight.
>
> So far, LFS is booting and running fine.
>
> Now for my problem: the Makefile generated for BLFS tools has some
> catch-22: all rules refer to xsltproc but this doesn't exist yet, it
> will only be built quite late using that same makefile.
>
> So either I build libxml2 and libxslt manually, removing them from the
> makefile, or there needs to be some special coding for the "xml tools
> bootstrap" as a very early step in the generated makefile.
>
> Tschau...Thomas
>
>
>
Normally, this is addressed in "func_install_blfs", which is called when "Add
blfs-tool support" is selected: the xsltproc calls are removed from the
individual package rules, and grouped in a special rule which depends on all
the others. I agree that this may not work if libxslt is not selected among
the tools (but it is marked as required). Here is the end of the Makefile,
showing one of the rules for a package, and the "update" rule. Oh, I realize
that this rule does not depend on the others! It is just listed last in the
dependencies of the "all" target. That may be your problem if using parallel
make...
019-z-sudo: 018-z-lynx
@$(call echo_message, Building)
@/bin/bash progress_bar.sh $@ $$PPID &
@source ../envars.conf && ../scripts/$@ >logs/$@ 2>&1
@touch $@ && \
sleep .25 && \
echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \
echo -------------------------------------------------------------------
-------------$(WHITE)
update:
@echo Updating the tracking file
< code for updating lfs packages track >
for file in *-*; do \
xsltproc --stringparam packages ../packages.xml \
--stringparam package $${file##*z-} \
-o track.tmp \
../xsl/bump.xsl $(TRACKING_FILE); \
sed -i 's@PACKDESC@/blfs_root/packdesc.dtd@' track.tmp; \
xmllint --format --postvalid track.tmp > $(TRACKING_FILE); \
rm track.tmp; \
done
@touch $@
Pierre
--
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page