You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then the parsing in openpower/package/pkg-versions.mk will include the first ", breaking the bash scripting with /bin/bash: -c: line 0: syntax error near unexpected token 'fi':
# Check all global patch directories
if ls "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/linux/*.patch 2>/dev/null; then sha512sum "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi; if ls /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/palmetto-patches"/linux/*.patch 2>/dev/null; then sha512sum /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/palmetto-patches"/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi; if ls "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/custom/patches"/linux/*.patch 2>/dev/null; then sha512sum "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/custom/patches"/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi;
/bin/bash: -c: line 0: syntax error near unexpected token `fi'
/bin/bash: -c: line 0: `if ls "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/linux/*.patch 2>/dev/null; then sha512sum "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi; if ls /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/palmetto-patches"/linux/*.patch 2>/dev/null; then sha512sum /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/patches/palmetto-patches"/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi; if ls "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/custom/patches"/linux/*.patch 2>/dev/null; then sha512sum "/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/openpower/custom/patches"/linux/*.patch | sha512sum | xargs echo >> /scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/host/powerpc64le-buildroot-linux-gnu/sysroot/openpower_version/linux.tmp_patch.txt; fi;'
package/pkg-generic.mk:193: recipe for target '/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/build/linux-4.18.16/.stamp_patched' failed
make: *** [/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/output-ubuntu1604-palmetto_defconfig/build/linux-4.18.16/.stamp_patched] Error 1
make: Leaving directory '/scratch/jenkins/workspace/op-build/op-build-PR/PLATFORM/palmetto/label_exp/austin/buildroot'
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE
The variable expands to this according to op-build printvars:
When the BR2_GLOBAL_PATHC_DIR config option contains more than one entry, such as:
then the parsing in
openpower/package/pkg-versions.mk
will include the first"
, breaking the bash scripting with/bin/bash: -c: line 0: syntax error near unexpected token 'fi'
:The variable expands to this according to
op-build printvars
:The parsing in
openpower/package/pkg-versions.mk
should be fixed to avoid this.The text was updated successfully, but these errors were encountered: