OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pkgconfig/glib-configure.patch.cross
  5. # Copyright (C) 2008 - 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Sadly not all the tests that don't run while cross compiling can be answered
  17. using config.cache
  18. --- ./glib-1.2.10/configure.orig 2010-07-12 14:34:25.124557422 +0200
  19. +++ ./glib-1.2.10/configure 2010-07-12 16:08:12.096505328 +0200
  20. @@ -12191,10 +12191,8 @@
  21. glib_save_LIBS=$LIBS
  22. LIBS="$LIBS -lm"
  23. if test "$cross_compiling" = yes; then :
  24. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26. -as_fn_error "cannot run test program while cross compiling
  27. -See \`config.log' for more details." "$LINENO" 5; }
  28. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming none" >&5
  29. +$as_echo "none needed" >&6; }
  30. else
  31. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32. /* end confdefs.h. */
  33. @@ -14728,10 +14726,8 @@
  34. $as_echo_n "checking whether pthread_mutex_trylock is posix like... " >&6; }
  35. # DCE Threads return 1 as success, posix 0. what a mess.
  36. if test "$cross_compiling" = yes; then :
  37. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  38. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39. -as_fn_error "cannot run test program while cross compiling
  40. -See \`config.log' for more details." "$LINENO" 5; }
  41. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
  42. +$as_echo "assuming yes" >&6; }
  43. else
  44. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45. /* end confdefs.h. */
  46. @@ -14757,10 +14753,8 @@
  47. $as_echo_n "checking whether pthread_cond_timedwait is posix like... " >&6; }
  48. # DCE Threads return -1 as failure, posix ETIMEDOUT.
  49. if test "$cross_compiling" = yes; then :
  50. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  51. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  52. -as_fn_error "cannot run test program while cross compiling
  53. -See \`config.log' for more details." "$LINENO" 5; }
  54. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
  55. +$as_echo "assuming yes" >&6; }
  56. else
  57. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58. /* end confdefs.h. */
  59. @@ -14942,10 +14936,11 @@
  60. done
  61. echo "return 0; }" >>confrun.c
  62. if test "$cross_compiling" = yes; then :
  63. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  64. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  65. -as_fn_error "cannot run test program while cross compiling
  66. -See \`config.log' for more details." "$LINENO" 5; }
  67. +for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
  68. + echo "#define GLIB_SYSDEF_${glib_sysdef_input/:/=}" >> $glib_sysdefso
  69. +done
  70. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming defaults" >&5
  71. +$as_echo "assuming defaults" >&6; }
  72. else
  73. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  74. /* end confdefs.h. */