r2364 - jhalfs/branches/experimental/HLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Mar 18 04:40:35 PST 2006


Author: manuel
Date: 2006-03-18 05:40:33 -0700 (Sat, 18 Mar 2006)
New Revision: 2364

Modified:
   jhalfs/branches/experimental/HLFS/hlfs.xsl
   jhalfs/branches/experimental/HLFS/master.sh
Log:
Fixed the cd to Gettext sources in uClibc build.
Fixed the chapter5_Makefiles code.

Modified: jhalfs/branches/experimental/HLFS/hlfs.xsl
===================================================================
--- jhalfs/branches/experimental/HLFS/hlfs.xsl	2006-03-18 11:58:15 UTC (rev 2363)
+++ jhalfs/branches/experimental/HLFS/hlfs.xsl	2006-03-18 12:40:33 UTC (rev 2364)
@@ -193,6 +193,12 @@
                 (contains(string(),'check') or
                 contains(string(),'distclean') or
                 contains(string(),'dummy'))"/>
+      <!-- For uClibc we need to cd to the Gettext package -->
+      <xsl:when test="contains(string(),'cd gettext-runtime/')">
+        <xsl:text>cd ../gettext-*/gettext-runtime</xsl:text>
+        <xsl:value-of select="substring-after(string(),'gettext-runtime')"/>
+        <xsl:text>&#xA;</xsl:text>
+      </xsl:when>
       <!-- Fixing toolchain test suites run -->
       <xsl:when test="string() = 'make check' or
                 string() = 'make -k check'">

Modified: jhalfs/branches/experimental/HLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/HLFS/master.sh	2006-03-18 11:58:15 UTC (rev 2363)
+++ jhalfs/branches/experimental/HLFS/master.sh	2006-03-18 12:40:33 UTC (rev 2364)
@@ -100,11 +100,11 @@
     TARGET="tools-linux-uclibc"; LOADER="ld-uClibc.so.0"
   else
     TARGET="tools-linux-gnu";    LOADER="ld-linux.so.2"
-    fi
+  fi
 
-  # 022-
-  # If /home/hlfs is already present in the host, we asume that the
-  # hlfs user and group are also presents in the host, and a backup
+  # NOTE: We use the lfs username and groupname also in HLFS
+  # If /home/lfs is already present in the host, we asume that the
+  # lfs user and group are also presents in the host, and a backup
   # of their bash init files is made.
 (
 cat << EOF
@@ -180,9 +180,6 @@
       *introduction* ) continue ;;
         # Test if the stripping phase must be skipped
       *stripping* ) [[ "$STRIP" = "0" ]] && continue ;;
-        # Select the appropriate library
-      *glibc*)    [[ ${MODEL} = "uclibc" ]] && continue ;;
-      *uclibc*)   [[ ${MODEL} = "glibc" ]]  && continue ;;
       *) ;;
     esac
 
@@ -194,17 +191,9 @@
     # and binutils in chapter 5)
     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' -e 's at -cross@@' -e 's at -headers@@'`
 
-    # >>>>>>>>>> U G L Y <<<<<<<<<
-    # Adjust 'name' and patch a few scripts on the fly..
+    # Adjust 'name'
     case $name in
-      linux-libc) name=linux-libc-headers
-      ;;
-      uclibc) # this sucks as method to deal with gettext/libint inside uClibc
-        sed 's@^cd gettext-runtime at cd ../gettext-*/gettext-runtime@' -i chapter05/$this_script
-      ;;
-     gcc) # to compensate for the compiler test inside gcc (which fails), disable error trap
-        sed 's@^gcc -o test test.c at set +e; gcc -o test test.c@' -i chapter05/$this_script
-      ;;
+      linux-libc) name=linux-libc-headers ;;
     esac
 
     # Set the dependency for the first target.




More information about the alfs-log mailing list