From c0ef3d4bf63216dd525c9143c7265ef37fabf80f Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Sat, 10 Feb 2024 09:14:54 -0500 Subject: [PATCH] basic version checking --- .../x86_64/components/dependencies/bash.bash | 5 +- .../components/dependencies/binutils.bash | 11 + .../x86_64/components/dependencies/bison.bash | 11 + .../components/dependencies/coreutils.bash | 3 +- .../components/dependencies/diffutils.bash | 11 + .../components/dependencies/findutils.bash | 11 + .../x86_64/components/dependencies/g++.bash | 11 + .../x86_64/components/dependencies/gawk.bash | 11 + .../x86_64/components/dependencies/gcc.bash | 11 + .../x86_64/components/dependencies/grep.bash | 11 + .../x86_64/components/dependencies/gzip.bash | 11 + .../components/dependencies/kernel.bash | 11 + .../x86_64/components/dependencies/m4.bash | 11 + .../x86_64/components/dependencies/make.bash | 11 + .../x86_64/components/dependencies/patch.bash | 11 + .../x86_64/components/dependencies/perl.bash | 11 + .../components/dependencies/python3.bash | 11 + .../dependencies/rectify_bison.bash | 27 ++ .../dependencies/rectify_patch.bash | 27 ++ .../dependencies/rectify_texinfo.bash | 27 ++ .../x86_64/components/dependencies/sed.bash | 11 + .../x86_64/components/dependencies/tar.bash | 11 + .../components/dependencies/texinfo.bash | 11 + .../x86_64/components/dependencies/xz.bash | 11 + .../x86_64/environments/dependencies.env.bash | 20 +- rex.project/x86_64/plans/dependencies.plan | 82 ++++- rex.project/x86_64/units/dependencies.units | 342 ++++++++++++++++++ rex.project/x86_64/units/stage1.units | 2 +- 28 files changed, 727 insertions(+), 17 deletions(-) create mode 100755 rex.project/x86_64/components/dependencies/binutils.bash create mode 100755 rex.project/x86_64/components/dependencies/bison.bash create mode 100755 rex.project/x86_64/components/dependencies/diffutils.bash create mode 100755 rex.project/x86_64/components/dependencies/findutils.bash create mode 100755 rex.project/x86_64/components/dependencies/g++.bash create mode 100755 rex.project/x86_64/components/dependencies/gawk.bash create mode 100755 rex.project/x86_64/components/dependencies/gcc.bash create mode 100755 rex.project/x86_64/components/dependencies/grep.bash create mode 100755 rex.project/x86_64/components/dependencies/gzip.bash create mode 100755 rex.project/x86_64/components/dependencies/kernel.bash create mode 100755 rex.project/x86_64/components/dependencies/m4.bash create mode 100755 rex.project/x86_64/components/dependencies/make.bash create mode 100755 rex.project/x86_64/components/dependencies/patch.bash create mode 100755 rex.project/x86_64/components/dependencies/perl.bash create mode 100755 rex.project/x86_64/components/dependencies/python3.bash create mode 100755 rex.project/x86_64/components/dependencies/rectify_bison.bash create mode 100755 rex.project/x86_64/components/dependencies/rectify_patch.bash create mode 100755 rex.project/x86_64/components/dependencies/rectify_texinfo.bash create mode 100755 rex.project/x86_64/components/dependencies/sed.bash create mode 100755 rex.project/x86_64/components/dependencies/tar.bash create mode 100755 rex.project/x86_64/components/dependencies/texinfo.bash create mode 100755 rex.project/x86_64/components/dependencies/xz.bash diff --git a/rex.project/x86_64/components/dependencies/bash.bash b/rex.project/x86_64/components/dependencies/bash.bash index 575ab52..8a03a7d 100755 --- a/rex.project/x86_64/components/dependencies/bash.bash +++ b/rex.project/x86_64/components/dependencies/bash.bash @@ -4,7 +4,10 @@ set -u export LC_ALL=C expected_version="$1" +real_name="bash" app="bash" -ver_check $app $expected_version || echofail "$app $expected_version check failed." +ver_check $real_name $app $expected_version || \ + echofail "$real_name $expected_version check failed." + exit $? diff --git a/rex.project/x86_64/components/dependencies/binutils.bash b/rex.project/x86_64/components/dependencies/binutils.bash new file mode 100755 index 0000000..77dbb3c --- /dev/null +++ b/rex.project/x86_64/components/dependencies/binutils.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="binutils" +app="ld" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/bison.bash b/rex.project/x86_64/components/dependencies/bison.bash new file mode 100755 index 0000000..12740de --- /dev/null +++ b/rex.project/x86_64/components/dependencies/bison.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="bison" +app="bison" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/coreutils.bash b/rex.project/x86_64/components/dependencies/coreutils.bash index 2c3b8a4..f07d9ea 100755 --- a/rex.project/x86_64/components/dependencies/coreutils.bash +++ b/rex.project/x86_64/components/dependencies/coreutils.bash @@ -4,7 +4,8 @@ set -u export LC_ALL=C expected_version="$1" +real_name="coreutils" app="sort" -ver_check $app $expected_version || echofail "$app $expected_version check failed." +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." exit $? diff --git a/rex.project/x86_64/components/dependencies/diffutils.bash b/rex.project/x86_64/components/dependencies/diffutils.bash new file mode 100755 index 0000000..8d9ea39 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/diffutils.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="diffutils" +app="diff" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/findutils.bash b/rex.project/x86_64/components/dependencies/findutils.bash new file mode 100755 index 0000000..ab98b81 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/findutils.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="findutils" +app="find" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/g++.bash b/rex.project/x86_64/components/dependencies/g++.bash new file mode 100755 index 0000000..c18390a --- /dev/null +++ b/rex.project/x86_64/components/dependencies/g++.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="GCC (G++)" +app="g++" + +ver_check "$real_name" "$app" "$expected_version" || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/gawk.bash b/rex.project/x86_64/components/dependencies/gawk.bash new file mode 100755 index 0000000..b8d3cfc --- /dev/null +++ b/rex.project/x86_64/components/dependencies/gawk.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="gawk" +app="gawk" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/gcc.bash b/rex.project/x86_64/components/dependencies/gcc.bash new file mode 100755 index 0000000..f07d9ea --- /dev/null +++ b/rex.project/x86_64/components/dependencies/gcc.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="coreutils" +app="sort" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/grep.bash b/rex.project/x86_64/components/dependencies/grep.bash new file mode 100755 index 0000000..33d54a3 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/grep.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="grep" +app="grep" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/gzip.bash b/rex.project/x86_64/components/dependencies/gzip.bash new file mode 100755 index 0000000..f53e242 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/gzip.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="gzip" +app="gzip" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/kernel.bash b/rex.project/x86_64/components/dependencies/kernel.bash new file mode 100755 index 0000000..f07d9ea --- /dev/null +++ b/rex.project/x86_64/components/dependencies/kernel.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="coreutils" +app="sort" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/m4.bash b/rex.project/x86_64/components/dependencies/m4.bash new file mode 100755 index 0000000..659d886 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/m4.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="m4" +app="m4" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/make.bash b/rex.project/x86_64/components/dependencies/make.bash new file mode 100755 index 0000000..441aac5 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/make.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="make" +app="make" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/patch.bash b/rex.project/x86_64/components/dependencies/patch.bash new file mode 100755 index 0000000..7972b79 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/patch.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="patch" +app="patch" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/perl.bash b/rex.project/x86_64/components/dependencies/perl.bash new file mode 100755 index 0000000..3f63740 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/perl.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="perl" +app="perl" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/python3.bash b/rex.project/x86_64/components/dependencies/python3.bash new file mode 100755 index 0000000..887fbe0 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/python3.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="python3" +app="python3" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/rectify_bison.bash b/rex.project/x86_64/components/dependencies/rectify_bison.bash new file mode 100755 index 0000000..041c30b --- /dev/null +++ b/rex.project/x86_64/components/dependencies/rectify_bison.bash @@ -0,0 +1,27 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +real_name="bison" +app="bison" + +dialog \ + --title "Install ${real_name}?" \ + --backtitle "Requirements Remediations" \ + --yesno "Do you want to install ${real_name} on the build host?" 7 60 + +response=$? + +# this is distro-specific and distro-specific function routing should +# account for things like this + +case $response in + 0) dnf -y install $app; install_result=$?;; + 1) echo "Canceled. You need $real_name to run this.";; + 255) echo "Canceled. You need $real_name to run this.";; +esac + + + +exit $install_result diff --git a/rex.project/x86_64/components/dependencies/rectify_patch.bash b/rex.project/x86_64/components/dependencies/rectify_patch.bash new file mode 100755 index 0000000..860f0b5 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/rectify_patch.bash @@ -0,0 +1,27 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +real_name="patch" +app="patch" + +dialog \ + --title "Install ${real_name}?" \ + --backtitle "Requirements Remediations" \ + --yesno "Do you want to install ${real_name} on the build host?" 7 60 + +response=$? + +# this is distro-specific and distro-specific function routing should +# account for things like this + +case $response in + 0) dnf -y install $app; install_result=$?;; + 1) echo "Canceled. You need $real_name to run this.";; + 255) echo "Canceled. You need $real_name to run this.";; +esac + + + +exit $install_result diff --git a/rex.project/x86_64/components/dependencies/rectify_texinfo.bash b/rex.project/x86_64/components/dependencies/rectify_texinfo.bash new file mode 100755 index 0000000..7de3368 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/rectify_texinfo.bash @@ -0,0 +1,27 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +real_name="texinfo" +app="texinfo" + +dialog \ + --title "Install ${real_name}?" \ + --backtitle "Requirements Remediations" \ + --yesno "Do you want to install ${real_name} on the build host?" 7 60 + +response=$? + +# this is distro-specific and distro-specific function routing should +# account for things like this + +case $response in + 0) dnf -y install $app; install_result=$?;; + 1) echo "Canceled. You need $real_name to run this.";; + 255) echo "Canceled. You need $real_name to run this.";; +esac + + + +exit $install_result diff --git a/rex.project/x86_64/components/dependencies/sed.bash b/rex.project/x86_64/components/dependencies/sed.bash new file mode 100755 index 0000000..846df53 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/sed.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="sed" +app="sed" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/tar.bash b/rex.project/x86_64/components/dependencies/tar.bash new file mode 100755 index 0000000..11ab9d9 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/tar.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="tar" +app="tar" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/texinfo.bash b/rex.project/x86_64/components/dependencies/texinfo.bash new file mode 100755 index 0000000..05fdec9 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/texinfo.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="texinfo" +app="texi2any" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/components/dependencies/xz.bash b/rex.project/x86_64/components/dependencies/xz.bash new file mode 100755 index 0000000..b983532 --- /dev/null +++ b/rex.project/x86_64/components/dependencies/xz.bash @@ -0,0 +1,11 @@ +#!/bin/bash +set -u + +export LC_ALL=C + +expected_version="$1" +real_name="xz" +app="xz" + +ver_check $real_name $app $expected_version || echofail "$real_name $expected_version check failed." +exit $? diff --git a/rex.project/x86_64/environments/dependencies.env.bash b/rex.project/x86_64/environments/dependencies.env.bash index 49cb81c..ffeccc5 100755 --- a/rex.project/x86_64/environments/dependencies.env.bash +++ b/rex.project/x86_64/environments/dependencies.env.bash @@ -14,15 +14,19 @@ function echofail() { ver_check() { - if ! type -p $1 &>/dev/null; then - echo "ERROR: Cannot find $1"; return 1; + if ! type -p $2 &>/dev/null; then + echo "ERROR: Cannot find $2 ($1)" + return 1 fi - v=$($1 --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1 ) - if printf '%s\n' $2 $v | sort --version-sort --check &>/dev/null; then - printf "OK: %-9s %-6s >= $2\n" "$1" "$v"; return 0; - else - printf "ERROR: %-9s is TOO OLD ($2 or later required)\n" "$1"; - return 1; + + v=$($2 --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1) + + if printf '%s\n' $3 $v | sort --version-sort --check &>/dev/null; then + printf "OK: %-9s %-6s >= $3\n" "$1" "$v" + return 0 + else + printf "ERROR: %-9s is TOO OLD ($3 or later required)\n" "$1" + return 1 fi } diff --git a/rex.project/x86_64/plans/dependencies.plan b/rex.project/x86_64/plans/dependencies.plan index 1daaf16..c115050 100644 --- a/rex.project/x86_64/plans/dependencies.plan +++ b/rex.project/x86_64/plans/dependencies.plan @@ -2,14 +2,84 @@ "plan": [ { - "name": "coreutils version check", - "dependencies": [ null ], - "comment": "check bash version" + "name": "bash version check", + "dependencies": [ null ] }, { - "name": "bash version check", - "dependencies": [ null ], - "comment": "check bash version" + "name": "coreutils version check", + "dependencies": [ null ] + }, + { + "name": "binutils version check", + "dependencies": [ null ] + }, + { + "name": "bison version check", + "dependencies": [ null ] + }, + { + "name": "diffutils version check", + "dependencies": [ null ] + }, + { + "name": "findutils version check", + "dependencies": [ null ] + }, + { + "name": "gawk version check", + "dependencies": [ null ] + }, + { + "name": "GCC version check", + "dependencies": [ null ] + }, + { + "name": "g++ version check", + "dependencies": [ null ] + }, + { + "name": "grep version check", + "dependencies": [ null ] + }, + { + "name": "gzip version check", + "dependencies": [ null ] + }, + { + "name": "m4 version check", + "dependencies": [ null ] + }, + { + "name": "make version check", + "dependencies": [ null ] + }, + { + "name": "patch version check", + "dependencies": [ null ] + }, + { + "name": "perl version check", + "dependencies": [ null ] + }, + { + "name": "python3 version check", + "dependencies": [ null ] + }, + { + "name": "sed version check", + "dependencies": [ null ] + }, + { + "name": "tar version check", + "dependencies": [ null ] + }, + { + "name": "texinfo version check", + "dependencies": [ null ] + }, + { + "name": "xz version check", + "dependencies": [ null ] } ] } diff --git a/rex.project/x86_64/units/dependencies.units b/rex.project/x86_64/units/dependencies.units index 72d6e4b..a6b8e75 100644 --- a/rex.project/x86_64/units/dependencies.units +++ b/rex.project/x86_64/units/dependencies.units @@ -35,6 +35,348 @@ "group": "bagira", "supply_environment": true, "environment": "environments/dependencies.env.bash" + }, + { + "name": "binutils version check", + "target": "components/dependencies/binutils.bash 2.13.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "bison version check", + "target": "components/dependencies/bison.bash 2.7", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": true, + "rectifier": "components/dependencies/rectify_bison.bash", + "active": true, + "required": true, + "set_user_context": true, + "user": "root", + "group": "root", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "diffutils version check", + "target": "components/dependencies/diffutils.bash 2.8.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "findutils version check", + "target": "components/dependencies/findutils.bash 2.8.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "gawk version check", + "target": "components/dependencies/gawk.bash 4.0.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "GCC version check", + "target": "components/dependencies/gcc.bash 5.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "g++ version check", + "target": "components/dependencies/g++.bash 5.1", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "grep version check", + "target": "components/dependencies/grep.bash 2.5.1a", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "gzip version check", + "target": "components/dependencies/gzip.bash 1.3.12", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "m4 version check", + "target": "components/dependencies/m4.bash 1.4.10", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "make version check", + "target": "components/dependencies/make.bash 4.0", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "patch version check", + "target": "components/dependencies/patch.bash 2.5.4", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": true, + "rectifier": "components/dependencies/rectify_patch.bash", + "active": true, + "required": true, + "set_user_context": true, + "user": "root", + "group": "root", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "perl version check", + "target": "components/dependencies/perl.bash 5.8.8", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "python3 version check", + "target": "components/dependencies/python3.bash 3.4", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "sed version check", + "target": "components/dependencies/sed.bash 4.1.5", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "tar version check", + "target": "components/dependencies/tar.bash 1.22", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "texinfo version check", + "target": "components/dependencies/texinfo.bash 5.0", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": true, + "rectifier": "components/dependencies/rectify_texinfo.bash", + "active": true, + "required": true, + "set_user_context": true, + "user": "root", + "group": "root", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "xz version check", + "target": "components/dependencies/xz.bash 5.0.0", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" + }, + { + "name": "kernel version check", + "target": "components/dependencies/kernel.bash 4.14", + "is_shell_command": true, + "shell_definition": "bash", + "force_pty": true, + "set_working_directory": false, + "working_directory": "", + "rectify": false, + "rectifier": "", + "active": true, + "required": true, + "set_user_context": true, + "user": "bagira", + "group": "bagira", + "supply_environment": true, + "environment": "environments/dependencies.env.bash" } ] } diff --git a/rex.project/x86_64/units/stage1.units b/rex.project/x86_64/units/stage1.units index 70b6dbe..c7d865c 100644 --- a/rex.project/x86_64/units/stage1.units +++ b/rex.project/x86_64/units/stage1.units @@ -5,7 +5,7 @@ "target": "components/stage1/welcome.bash", "is_shell_command": true, "shell_definition": "bash", - "force_pty": true, + "force_pty": false, "set_working_directory": false, "working_directory": "", "rectify": false,