Skip to content

Commit

Permalink
xx-verify: since file 5.46 it expects Linux i386
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Dec 6, 2024
1 parent 59bc5d8 commit 2de9dd9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/xx-verify
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ for f in "$@"; do
fi

expArch=""
expArch2="" # extra check for endianness
expArchAlt="" # alternate arch name
expArch2="" # extra check for endianness
case "$TARGETARCH" in
"arm64")
case "$TARGETOS" in
Expand Down Expand Up @@ -226,7 +227,8 @@ for f in "$@"; do
expArch2="64-bit LSB"
;;
"386")
expArch="Intel 80386"
expArch="Intel i386"
expArchAlt="Intel 80386"
if [ "$TARGETOS" != "windows" ]; then
expArch2="32-bit LSB"
fi
Expand All @@ -239,8 +241,15 @@ for f in "$@"; do
fi

if ! echo "$out" | grep "$expArch" >/dev/null; then
echo >&2 "file ${f} does not match expected target architecture ${TARGETARCH}: $out"
exit 1
if [ -n "$expArchAlt" ]; then
if ! echo "$out" | grep "$expArchAlt" >/dev/null; then
echo >&2 "file ${f} does not match expected target architecture ${TARGETARCH}: $out"
exit 1
fi
else
echo >&2 "file ${f} does not match expected target architecture ${TARGETARCH}: $out"
exit 1
fi
fi

if [ -n "$expArch2" ]; then
Expand Down

0 comments on commit 2de9dd9

Please sign in to comment.