06576a subr/build_init.subr:buildp_init_prereqs(): remove openssl from & add sha256sum to list of prerequisite commands.

Authored and Committed by Lucio Andrés Illanes Albornoz 5 years ago
    subr/build_init.subr:buildp_init_prereqs(): remove openssl from & add sha256sum to list of prerequisite commands.
    subr/ex_rtl_fetch.subr:ex_rtl_fetch_url_wget(): use sha256sum(1) instead of openssl(1) w/ dgst -sha256.
    etc/README: updated.
    
        
file modified
+2 -2
etc/README CHANGED
@@ -13,8 +13,8 @@ A Midipix distribution consists of the following:
13
13
libraries such as ncurses, libressl, as well as Perl and Python.
14
14
15
15
## Build-time dependencies
16
- * **Alpine Linux**: binutils bzip2 cmake coreutils findutils g++ gawk gcc git grep gzip libc-dev linux-headers lzip make musl-dev net-tools openssl patch procps sed tar wget xz zip
17
- * **Debian/-derived Linux**: binutils bzip2 clzip cmake coreutils curl findutils g++ gawk gcc git grep gzip hostname libc6-dev lzma make openssl patch procps sed tar wget xz-utils zip
16
+ * **Alpine Linux**: binutils bzip2 cmake coreutils findutils g++ gawk gcc git grep gzip libc-dev linux-headers lzip make musl-dev net-tools patch procps sed tar wget xz zip
17
+ * **Debian/-derived Linux**: binutils bzip2 clzip cmake coreutils curl findutils g++ gawk gcc git grep gzip hostname libc6-dev lzma make patch procps sed tar wget xz-utils zip
18
18
19
19
> N.B. Some packages (*coreutils*, *grep*, and *tar*, among others) override
20
20
Alpine's BusyBox utilities of the same name, as the latter are either non-
file modified
+3 -3
subr/build_init.subr CHANGED
@@ -164,9 +164,9 @@ buildp_init_prereqs() {
164
164
if ! which \
165
165
awk bunzip2 cat chmod cp date find git grep \
166
166
gunzip gzip hostname install kill ln lzip make \
167
- mkdir mkfifo mv openssl paste patch pgrep pkill \
168
- printf readlink rm sed seq sort stat tail tar \
169
- test touch tr wget xz >/dev/null; then
167
+ mkdir mkfifo mv paste patch pgrep pkill printf \
168
+ readlink rm sed seq sha256sum sort stat tail \
169
+ tar test touch tr wget xz >/dev/null; then
170
170
_rc=4; _status="Error: missing prerequisite package(s).";
171
171
elif ! awk -V 2>/dev/null | grep -q "^GNU Awk "; then
172
172
_rc=5; _status="Error: awk(1) in \$PATH must be GNU Awk.";
file modified
+1 -1
subr/ex_rtl_fetch.subr CHANGED
@@ -80,7 +80,7 @@ ex_rtl_fetch_url_wget() {
80
80
if [ ! -e "${_url_dst}.fetched" ]; then
81
81
wget ${DEFAULT_WGET_ARGS} -O "${_url_dst}" "${_url}";
82
82
if [ -n "${_sha256sum_src}" ]; then
83
- set -- $(openssl dgst -sha256 "${_url_dst}"); shift $((${#}-1));
83
+ set -- $(sha256sum "${_url_dst}");
84
84
if [ "${_sha256sum_dst:=${1}}" != "${_sha256sum_src}" ]; then
85
85
ex_rtl_log_msg failexit "Error: hash mismatch for URL \`${_url}' (downloaded file: ${_sha256sum_dst}, from build variables: ${_sha256sum_src}.)";
86
86
fi;