[MacPorts] #66470: gtk2 @2.24.33_3 has a problem with patched configure script
MacPorts
noreply at macports.org
Wed Dec 14 11:16:03 UTC 2022
#66470: gtk2 @2.24.33_3 has a problem with patched configure script
-------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Keywords: leopard ppc | Port: gtk2
-------------------------+--------------------
{{{
checking for catalogs to be installed... af am ang ar as ast az az_IR be
be at latin bg bn bn_IN br bs ca ca at valencia crh cs cy da de dz el en_CA
en_GB eo es et eu fa fi fr ga gl gu he hi hr hu hy ia id io is it ja ka kk
kn ko ku li lt lv mai mi mk ml mn mr ms my nb nds ne nl nn nso oc or pa pl
ps pt pt_BR ro ru rw si sk sl sq sr sr at latin sr at ije sv ta te th tk tr tt
ug uk ur uz uz at cyrillic vi wa xh yi zh_CN zh_HK zh_TW
checking for extra flags to get ANSI library prototypes... ./configure:
line 22096: ac_fn_c_try_run: command not found
configure: WARNING: No ANSI prototypes found in library. (-std1 didn't
work.)
}}}
The corresponing heavily patched code is this:
{{{
21982 if test "$gt_cv_have_gettext" = "yes"; then
21983 if test "x$ALL_LINGUAS" = "x"; then
21984 LINGUAS=
21985 else
21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
catalogs to be installed" >&5
21987 printf %s "checking for catalogs to be installed... " >&6; }
21988 NEW_LINGUAS=
21989 for presentlang in $ALL_LINGUAS; do
21990 useit=no
21991 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21992 desiredlanguages="$LINGUAS"
21993 else
21994 desiredlanguages="$ALL_LINGUAS"
21995 fi
21996 for desiredlang in $desiredlanguages; do
21997 # Use the presentlang catalog if desiredlang is
21998 # a. equal to presentlang, or
21999 # b. a variant of presentlang (because in this case,
22000 # presentlang can be used as a fallback for
messages
22001 # which are not translated in the desiredlang
catalog).
22002 case "$desiredlang" in
22003 "$presentlang"*) useit=yes;;
22004 esac
22005 done
22006 if test $useit = yes; then
22007 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22008 fi
22009 done
22010 LINGUAS=$NEW_LINGUAS
22011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
$LINGUAS" >&5
22012 printf "%s\n" "$LINGUAS" >&6; }
22013 fi
22014
22015 if test -n "$LINGUAS"; then
22016 for lang in $LINGUAS; do CATALOGS="$CATALOGS
$lang$CATOBJEXT"; done
22017 fi
22018 fi
22019
22020 MKINSTALLDIRS=
22021 if test -n "$ac_aux_dir"; then
22022 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22023 fi
22024 if test -z "$MKINSTALLDIRS"; then
22025 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22026 fi
22027
22028
22029 test -d po || mkdir po
22030 if test "x$srcdir" != "x."; then
22031 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22032 posrcprefix="$srcdir/"
22033 else
22034 posrcprefix="../$srcdir/"
22035 fi
22036 else
22037 posrcprefix="../"
22038 fi
22039 rm -f po/POTFILES
22040 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e
"\$s/\(.*\) \\\\/\1/" \
22041 < $srcdir/po/POTFILES.in > po/POTFILES
22042
22043 LIBS="$LIBS $INTLLIBS"
22044 ac_config_commands="$ac_config_commands default-2"
22045
22046
22047 test -d po-properties || mkdir po-properties
22048 if test "x$srcdir" != "x."; then
22049 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22050 popropsrcprefix="$srcdir/"
22051 else
22052 popropsrcprefix="../$srcdir/"
22053 fi
22054 else
22055 popropsrcprefix="../"
22056 fi
22057 rm -f po-properties/POTFILES
22058 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $popropsrcprefix& \\\\,"
-e "\$s/\(.*\) \\\\/\1/" \
22059 < $srcdir/po-properties/POTFILES.in > po-properties/POTFILES
22060
22061 glib_save_prefix="$prefix"
22062 glib_save_exec_prefix="$exec_prefix"
22063 glib_save_datarootdir="$datarootdir"
22064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22065 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
22066 datarootdir=`eval echo "${datarootdir}"`
22067 if test "x$CATOBJEXT" = "x.mo" ; then
22068 localedir=`eval echo "${libdir}/locale"`
22069 else
22070 localedir=`eval echo "${datadir}/locale"`
22071 fi
22072 prefix="$glib_save_prefix"
22073 exec_prefix="$glib_save_exec_prefix"
22074 datarootdir="$glib_save_datarootdir"
22075
22076 printf "%s\n" "#define GTK_LOCALEDIR \"$localedir\"" >>confdefs.h
22077
22078
22079
22080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra
flags to get ANSI library prototypes" >&5
22081 printf %s "checking for extra flags to get ANSI library
prototypes... " >&6; }
22082
22083 gtk_save_LIBS=$LIBS
22084 LIBS="$LIBS -lm"
22085 if test "$cross_compiling" = yes
22086 then :
22087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none
needed" >&5
22088 printf "%s\n" "none needed" >&6; }
22089
22090 else $as_nop
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 #include <math.h>
22094 int main (void) { return (log(1) != log(1.)); }
22095 _ACEOF
22096 if ac_fn_c_try_run "$LINENO"
22097 then :
22098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none
needed" >&5
22099 printf "%s\n" "none needed" >&6; }
22100 else $as_nop
22101 gtk_save_CFLAGS="$CFLAGS"
22102 CFLAGS="$CFLAGS -std1"
22103 if test "$cross_compiling" = yes
22104 then :
22105 true
22106
22107 else $as_nop
22108
22109 # ac_fn_c_try_run LINENO
22110 # ----------------------
22111 # Try to run conftest.$ac_ext, and return whether this succeeded.
Assumes that
22112 # executables *can* be run.
22113 ac_fn_c_try_run ()
22114 {
22115 as_lineno=${as_lineno-"$1"}
as_lineno_stack=as_lineno_stack=$as_lineno_stack
22116 if { { ac_try="$ac_link"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120 esac
22121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22122 printf "%s\n" "$ac_try_echo"; } >&5
22123 (eval "$ac_link") 2>&5
22124 ac_status=$?
22125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status"
>&5
22126 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
22127 { { case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22130 esac
22131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22132 printf "%s\n" "$ac_try_echo"; } >&5
22133 (eval "$ac_try") 2>&5
22134 ac_status=$?
22135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status"
>&5
22136 test $ac_status = 0; }; }
22137 then :
22138 ac_retval=0
22139 else $as_nop
22140 printf "%s\n" "$as_me: program exited with status $ac_status"
>&5
22141 printf "%s\n" "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ac_retval=$ac_status
22145 fi
22146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
22148 as_fn_set_status $ac_retval
22149
22150 } # ac_fn_c_try_run
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22153 #include <math.h>
22154 int main (void) { return (log(1) != log(1.)); }
22155 _ACEOF
22156 if ac_fn_c_try_run "$LINENO"
22157 then :
22158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
22159 printf "%s\n" "-std1" >&6; }
22160 else $as_nop
22161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
22162 printf "%s\n" "" >&6; }
22163 CFLAGS="$gtk_save_CFLAGS"
22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No
ANSI prototypes found in library. (-std1 didn't work.)" >&5
22165 printf "%s\n" "$as_me: WARNING: No ANSI prototypes found in
library. (-std1 didn't work.)" >&2;}
22166 fi
22167 rm -f core *.core core.conftest.* gmon.out bb.out
conftest$ac_exeext \
22168 conftest.$ac_objext conftest.beam conftest.$ac_ext
22169 fi
22170
22171 fi
22172 rm -f core *.core core.conftest.* gmon.out bb.out
conftest$ac_exeext \
22173 conftest.$ac_objext conftest.beam conftest.$ac_ext
22174 fi
}}}
Originally it was these 48 lines:
{{{
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags
to get ANSI library prototypes" >&5
20945 $as_echo_n "checking for extra flags to get ANSI library
prototypes... " >&6; }
20946
20947 gtk_save_LIBS=$LIBS
20948 LIBS="$LIBS -lm"
20949 if test "$cross_compiling" = yes; then :
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed"
>&5
20951 $as_echo "none needed" >&6; }
20952
20953 else
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956 #include <math.h>
20957 int main (void) { return (log(1) != log(1.)); }
20958 _ACEOF
20959 if ac_fn_c_try_run "$LINENO"; then :
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed"
>&5
20961 $as_echo "none needed" >&6; }
20962 else
20963 gtk_save_CFLAGS="$CFLAGS"
20964 CFLAGS="$CFLAGS -std1"
20965 if test "$cross_compiling" = yes; then :
20966 true
20967
20968 else
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971 #include <math.h>
20972 int main (void) { return (log(1) != log(1.)); }
20973 _ACEOF
20974 if ac_fn_c_try_run "$LINENO"; then :
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
20976 $as_echo "-std1" >&6; }
20977 else
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20979 $as_echo "" >&6; }
20980 CFLAGS="$gtk_save_CFLAGS"
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI
prototypes found in library. (-std1 didn't work.)" >&5
20982 $as_echo "$as_me: WARNING: No ANSI prototypes found in library.
(-std1 didn't work.)" >&2;}
20983 fi
20984 rm -f core *.core core.conftest.* gmon.out bb.out
conftest$ac_exeext \
20985 conftest.$ac_objext conftest.beam conftest.$ac_ext
20986 fi
20987
20988 fi
20989 rm -f core *.core core.conftest.* gmon.out bb.out
conftest$ac_exeext \
20990 conftest.$ac_objext conftest.beam conftest.$ac_ext
20991 fi
}}}
`gtk2` is still in the process of building…
--
Ticket URL: <https://trac.macports.org/ticket/66470>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list