r3120 - in jhalfs/branches/experimental: CLFS HLFS LFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri Sep 15 12:01:45 PDT 2006


Author: manuel
Date: 2006-09-15 13:01:44 -0600 (Fri, 15 Sep 2006)
New Revision: 3120

Modified:
   jhalfs/branches/experimental/CLFS/master.sh
   jhalfs/branches/experimental/HLFS/master.sh
   jhalfs/branches/experimental/LFS/master.sh
Log:
In do_housekeeping, remove also /tools and /cross-tools symlinks.
Trainling space clean-up.

Modified: jhalfs/branches/experimental/CLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/CLFS/master.sh	2006-09-15 17:59:37 UTC (rev 3119)
+++ jhalfs/branches/experimental/CLFS/master.sh	2006-09-15 19:01:44 UTC (rev 3120)
@@ -323,17 +323,17 @@
       *util-linux) orphan_scripts="${orphan_scripts} ${this_script}"  ;;
       *kernfs)     orphan_scripts="${orphan_scripts} ${this_script}"  ;;
       *)           chroottools="$chroottools $this_script"            ;;
-    esac    
+    esac
 
     # Grab the name of the target, strip id number, XXX-script
     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
 
     pkg_tarball=$(get_package_tarball_name $name)
-    
+
     # This is very ugly:: util-linux is in /chroot but must be run under LUSER
-    # .. Customized makefile entry 
+    # .. Customized makefile entry
     case "${this_script}" in
-      *util-linux) 
+      *util-linux)
          LUSER_wrt_target "${this_script}" "$PREV"
          LUSER_wrt_unpack "$pkg_tarball"
          [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
@@ -391,7 +391,7 @@
 #--------------------------------------#
 boot_Makefiles() {                     #
 #--------------------------------------#
-  
+
   echo "${tab_}${GREEN}Processing... ${L_arrow}tmptools BOOT  ( LUSER ) ${R_arrow}"
   #
   # Create a target bootable partition containing a compile environment. Later
@@ -1109,7 +1109,7 @@
     final_sys_cmds=${METHOD}_final_system_Makefiles
   bootscripts_cmds=${METHOD}_bootscripts_Makefiles
      bootable_cmds=${METHOD}_bootable_Makefiles
-  
+
   host_prep_Makefiles        # mk_SETUP      (SETUP)  $host_prep
   cross_tools_Makefiles      # mk_CROSS      (LUSER)  $cross_tools
   temptools_Makefiles        # mk_TEMP       (LUSER)  $temptools
@@ -1199,7 +1199,7 @@
 	@\$(call echo_SU_request)
 	@sudo make SETUP
 	@touch \$@
-	
+
 #---------------AS LUSER
 mk_CROSS: mk_SETUP
 	@\$(call echo_PHASE,Cross and Temporary Tools)
@@ -1213,11 +1213,11 @@
 # The convoluted piece of code below is necessary to provide 'make' with a valid shell in the
 # chroot environment. (Unless someone knows a different way)
 # Manually create the /bin directory and provide link to the /tools dir.
-# Also change the original symlink creation to include (f)orce to prevent failure due to 
+# Also change the original symlink creation to include (f)orce to prevent failure due to
 #  pre-existing links.
 
 #---------------CHROOT JAIL
-mk_SYSTOOLS: mk_SUDO 
+mk_SYSTOOLS: mk_SUDO
 	@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
 	  mkdir \$(MOUNT_PT)/bin; \\
 	  cd \$(MOUNT_PT)/bin && \\
@@ -1274,7 +1274,7 @@
 	@touch \$@
 
 #---------------AS LUSER
-	
+
 mk_CROSS: mk_SETUP
 	@\$(call echo_PHASE,Cross Tool)
 	@(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make AS_LUSER" )
@@ -1292,9 +1292,9 @@
 	@touch \$@
 
 SETUP:      $host_prep
-AS_LUSER:   $cross_tools $temptools ${chroottools}${boottools} 
+AS_LUSER:   $cross_tools $temptools ${chroottools}${boottools}
 SUDO:	    $orphan_scripts
-AS_ROOT:    $testsuitetools $basicsystem $bootscripttools $bootabletools 
+AS_ROOT:    $testsuitetools $basicsystem $bootscripttools $bootabletools
 
 EOF
 ) >> $MKFILE
@@ -1326,6 +1326,7 @@
 	@-umount \$(MOUNT_PT)/dev
 	@-umount \$(MOUNT_PT)/sys
 	@-umount \$(MOUNT_PT)/proc
+	@-rm /tools /cross-tools
 	@-if [ ! -f luser-exist ]; then \\
 		userdel \$(LUSER); \\
 		rm -rf /home/\$(LUSER); \\

Modified: jhalfs/branches/experimental/HLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/HLFS/master.sh	2006-09-15 17:59:37 UTC (rev 3119)
+++ jhalfs/branches/experimental/HLFS/master.sh	2006-09-15 19:01:44 UTC (rev 3120)
@@ -572,7 +572,7 @@
 	@\$(call echo_SU_request)
 	@sudo make SETUP
 	@touch \$@
-	
+
 mk_LUSER: mk_SETUP
 	@\$(call echo_SULUSER_request)
 	@(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make LUSER" )
@@ -582,8 +582,8 @@
 mk_SUDO: mk_LUSER
 	@sudo make SUDO
 	@touch \$@
-	
-mk_CHROOT: mk_SUDO 
+
+mk_CHROOT: mk_SUDO
 	@if [ ! -e \$(MOUNT_PT)/bin ]; then \\
 	  mkdir \$(MOUNT_PT)/bin; \\
 	  cd \$(MOUNT_PT)/bin && \\
@@ -594,12 +594,12 @@
 	@( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT")
 	@touch \$@
 
-mk_BOOT: mk_CHROOT 
+mk_BOOT: mk_CHROOT
 	@\$(call echo_CHROOT_request)
 	@( sudo \$(CHROOT2) "cd \$(SCRIPT_ROOT) && make BOOT")
 	@touch \$@
-	
 
+
 SETUP:	$chapter3
 
 LUSER:	$chapter5
@@ -632,6 +632,7 @@
 	@-umount \$(MOUNT_PT)/dev
 	@-umount \$(MOUNT_PT)/sys
 	@-umount \$(MOUNT_PT)/proc
+	@-rm /tools
 	@-if [ ! -f luser-exist ]; then \\
 		userdel \$(LUSER); \\
 		rm -rf /home/\$(LUSER); \\

Modified: jhalfs/branches/experimental/LFS/master.sh
===================================================================
--- jhalfs/branches/experimental/LFS/master.sh	2006-09-15 17:59:37 UTC (rev 3119)
+++ jhalfs/branches/experimental/LFS/master.sh	2006-09-15 19:01:44 UTC (rev 3120)
@@ -446,7 +446,7 @@
 	  echo "--------------------------------------------------"; \\
 	  exit 1; \\
 	fi
-	
+
 mk_SETUP:
 	@\$(call echo_SU_request)
 	@sudo make SETUP
@@ -517,6 +517,7 @@
 	@-umount \$(MOUNT_PT)/dev/shm
 	@-umount \$(MOUNT_PT)/dev/pts
 	@-umount \$(MOUNT_PT)/dev
+	@-rm /tools
 	@-if [ ! -f luser-exist ]; then \\
 		userdel \$(LUSER); \\
 		rm -rf /home/\$(LUSER); \\




More information about the alfs-log mailing list