python/cmd2: update to 2.5.6
[oi-userland.git] / components / ruby / ruby-23 / patches / 05-config.patch
blob3d2663bc02300869c4e5456890c98b90fe1e1c0b
1 Ensure we correctly identify a 64-bit build and
2 use "amd64" and "sparcv9" for the 64-bit cpu string.
3 Changes were developed in-house, are Solaris specific,
4 and are not suitable for upstream.
6 --- ruby-2.3.8/tool/config.guess 2018-10-17 17:38:36.000000000 +0000
7 +++ ruby-2.3.8/tool/config.guess 2020-01-01 10:38:08.914901439 +0000
8 @@ -383,25 +383,18 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAM
9 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
10 exit ;;
11 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
12 - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
13 + # Check CFLAGS for the 64-bit compile option to set the arch
14 + SUN_ARCH="sparc"
15 + echo $CFLAGS | /usr/gnu/bin/grep -q -w '\-m64' && SUN_ARCH="sparcv9"
16 + echo ${SUN_ARCH}-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
17 exit ;;
18 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
19 echo i386-pc-auroraux"$UNAME_RELEASE"
20 exit ;;
21 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
22 - eval "$set_cc_for_build"
23 SUN_ARCH=i386
24 - # If there is a compiler, see if it is configured for 64-bit objects.
25 - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
26 - # This test works for both compilers.
27 - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
28 - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
29 - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
30 - grep IS_64BIT_ARCH >/dev/null
31 - then
32 - SUN_ARCH=x86_64
33 - fi
34 - fi
35 + # Check CFLAGS for the 64-bit compile option to set the arch
36 + echo $CFLAGS | /usr/gnu/bin/grep -q -w '\-m64' && SUN_ARCH="amd64"
37 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
38 exit ;;
39 sun4*:SunOS:6*:*)
40 --- ruby-2.3.8/tool/config.sub 2018-10-17 17:38:36.000000000 +0000
41 +++ ruby-2.3.8/tool/config.sub 2020-01-01 10:39:05.436599128 +0000
42 @@ -799,7 +799,7 @@ case $basic_machine in
43 basic_machine=x86_64-pc
45 amd64-*)
46 - basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
47 + # don't change basic_machine
49 amiga | amiga-*)
50 basic_machine=m68k-unknown