Skip to content

Commit b0ec017

Browse files
orlitzkydimpase
authored andcommitted
build/pkgs/gap: redirect stderr in spkg-configure.m4 tests
Without this, when certain tests fail, we print a bunch of junk to the screen (and to config.log).
1 parent e6858a0 commit b0ec017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/pkgs/gap/spkg-configure.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ SAGE_SPKG_CONFIGURE([gap], [
1414
# don't want to include it in the hard-coded list.
1515
GAPRUN="${GAP} -r -q --bare --nointeract -c"
1616
_cmd='Display(GAPInfo.KernelInfo.KERNEL_VERSION);'
17-
GAP_VERSION=$(${GAPRUN} "${_cmd}")
17+
GAP_VERSION=$( ${GAPRUN} "${_cmd}" 2>/dev/null )
1818
AX_COMPARE_VERSION(["${GAP_VERSION}"], [ge], [GAP_MINVER], [
1919
AC_MSG_RESULT([yes])
2020
AC_MSG_CHECKING([for gap root paths])
2121
_cmd='Display(JoinStringsWithSeparator(GAPInfo.RootPaths,";"));'
22-
SYS_GAP_ROOT_PATHS=$(${GAPRUN} "${_cmd}")
22+
SYS_GAP_ROOT_PATHS=$( ${GAPRUN} "${_cmd}" 2>/dev/null )
2323
AC_MSG_RESULT([$SYS_GAP_ROOT_PATHS])
2424
AS_IF([test -n "${SYS_GAP_ROOT_PATHS}"], [
2525
AC_MSG_CHECKING([for the PrimGrp, SmallGrp, and TransGrp packages])
@@ -31,7 +31,7 @@ SAGE_SPKG_CONFIGURE([gap], [
3131
_cmd="${_cmd} TestPackageAvailability(\"SmallGrp\"),"
3232
_cmd="${_cmd} TestPackageAvailability(\"TransGrp\")"
3333
_cmd="${_cmd} @:>@);"
34-
_output=$( ${GAPRUN} "${_cmd}" )
34+
_output=$( ${GAPRUN} "${_cmd}" 2>/dev/null )
3535
AS_IF([test $? -eq 0], [
3636
AS_CASE([$_output],
3737
[*fail*],[AC_MSG_RESULT([no (at least one package missing)])],[

0 commit comments

Comments
 (0)