CI Tests: Regression/bz1430477-glibc-Missing-else-branch-in-libc-calloc: adds support for latest distros
This commit is contained in:
parent
ecb359903b
commit
6544ca1016
@ -54,9 +54,6 @@ rlJournalStart
|
|||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest "Building glibc"
|
rlPhaseStartTest "Building glibc"
|
||||||
if rlIsRHEL 7; then
|
|
||||||
rlRun -c "sed -i '/#\ Ensure\ timestamps/i \\touch intl/plural.c' $SPECDIR/glibc.spec"
|
|
||||||
fi
|
|
||||||
rlRun "rpmbuild -bc ${SPECDIR}/${PACKAGE}.spec &> glibc_build_log.txt" 0 "Unpacking $PACKAGE"
|
rlRun "rpmbuild -bc ${SPECDIR}/${PACKAGE}.spec &> glibc_build_log.txt" 0 "Unpacking $PACKAGE"
|
||||||
ISSUCCESS=$?
|
ISSUCCESS=$?
|
||||||
if [ $ISSUCCESS -ne 0 ]
|
if [ $ISSUCCESS -ne 0 ]
|
||||||
@ -65,7 +62,13 @@ rlJournalStart
|
|||||||
rlFail "Glibc compilation error"
|
rlFail "Glibc compilation error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if rlIsRHEL "==10"; then
|
||||||
|
BUILDS="$BUILDDIR/glibc-2.39/build*"
|
||||||
|
elif rlIsFedora ">=41"; then
|
||||||
|
BUILDS="$BUILDDIR/glibc*build/glibc*/build*"
|
||||||
|
else
|
||||||
BUILDS="$BUILDDIR/glibc*/build*"
|
BUILDS="$BUILDDIR/glibc*/build*"
|
||||||
|
fi
|
||||||
rlLog "Found builds at:"
|
rlLog "Found builds at:"
|
||||||
for build in $BUILDS; do
|
for build in $BUILDS; do
|
||||||
rlLog "$build"
|
rlLog "$build"
|
||||||
|
Loading…
Reference in New Issue
Block a user