Author: pierre
Date: Fri Jun  5 03:18:27 2020
New Revision: 4165

Log:
Use a private name for MAKEFLAGS in jhalfs, so that it does not propagate
to top make, when ticking "Run the makefile"

Modified:
   jhalfs/trunk/common/common-functions
   jhalfs/trunk/jhalfs
   jhalfs/trunk/optimize/opt_config.d/noOpt
   jhalfs/trunk/optimize/optimize_functions

Modified: jhalfs/trunk/common/common-functions
==============================================================================
--- jhalfs/trunk/common/common-functions        Sun May 31 01:58:41 2020        
(r4164)
+++ jhalfs/trunk/common/common-functions        Fri Jun  5 03:18:27 2020        
(r4165)
@@ -36,8 +36,10 @@
     # Build the system
     if [ -e "$MKFILE" ] ; then
       echo -ne "Building the system...\n"
+      if { echo try tty; tty; }; then
       cd "$JHALFSDIR" && make
       echo -ne "done\n"
+      else echo there is no terminal!!; fi
     fi
   fi
 }

Modified: jhalfs/trunk/jhalfs
==============================================================================
--- jhalfs/trunk/jhalfs Sun May 31 01:58:41 2020        (r4164)
+++ jhalfs/trunk/jhalfs Fri Jun  5 03:18:27 2020        (r4165)
@@ -368,7 +368,7 @@
   load_file optimize/opt_config 'Loading optimization config'
   # The number of parallel jobs is taken from configuration now
   # shellcheck disable=SC2034
-  MAKEFLAGS="-j${N_PARALLEL}"
+  JH_MAKEFLAGS="-j${N_PARALLEL}"
   # Validate optimize settings, if required
   validate_opt_settings
 fi

Modified: jhalfs/trunk/optimize/opt_config.d/noOpt
==============================================================================
--- jhalfs/trunk/optimize/opt_config.d/noOpt    Sun May 31 01:58:41 2020        
(r4164)
+++ jhalfs/trunk/optimize/opt_config.d/noOpt    Fri Jun  5 03:18:27 2020        
(r4165)
@@ -9,9 +9,6 @@
 #          doing.  By default, this is set to disable optimization
 #          of packages known to have build or runtime failure.
 #
-#          Also, if you what to use MAKEFLAGS but no build
-#          optimizations, set this mode in DEF_OPT_MODE
-#
 # Usage: - Apply optimization string to each variable
 #        - "unset" will cause the variable to be not set
 #          instead of being just set to null.

Modified: jhalfs/trunk/optimize/optimize_functions
==============================================================================
--- jhalfs/trunk/optimize/optimize_functions    Sun May 31 01:58:41 2020        
(r4164)
+++ jhalfs/trunk/optimize/optimize_functions    Fri Jun  5 03:18:27 2020        
(r4165)
@@ -18,9 +18,8 @@
   echo -e "expected, please rebuild without optimizations before"
   echo -e "asking for support.${OFF}\n"
 
-  echo -e "MAKEFLAGS: ${L_arrow}${BOLD}${MAKEFLAGS}${OFF}${R_arrow}"
-  [[ "$MAKEFLAGS" = "unset" ]] && echo
-  [[ "$MAKEFLAGS" != "unset" ]] && \
+  echo -e "MAKEFLAGS: ${L_arrow}${BOLD}${JH_MAKEFLAGS}${OFF}${R_arrow}"
+  [ -n "$JH_MAKEFLAGS" ] && \
   echo -e "BLACK_LIST: ${L_arrow}${BOLD}${BLACK_LIST}${OFF}${R_arrow}\n"
 
   echo -e "DEF_OPT_MODE: ${L_arrow}${BOLD}${DEF_OPT_MODE}${OFF}${R_arrow}\n"
@@ -78,13 +77,13 @@
   if [[ "$BLACK_LIST" =~ ${pkg} ]]; then
     MKF=unset
   else
-    MKF=$MAKEFLAGS
+    MKF=$JH_MAKEFLAGS
   fi
 
   if [[ "$MKF" != "unset" ]]; then
 (
 cat << EOF
-       @echo "export MAKEFLAGS=\"$MAKEFLAGS\"" >> envars
+       @echo "export MAKEFLAGS=\"$JH_MAKEFLAGS\"" >> envars
 EOF
 ) >> $MKFILE.tmp
   fi
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to