Various compilation scripts & patches for Linux programs.
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.

75 lines
4.6 KiB

  1. --- a/lib/debug.lib
  2. +++ b/lib/debug.lib
  3. @@ -117,45 +117,45 @@
  4. }
  5. POL_Debug_ErrorSilent()
  6. {
  7. - # Use this function if a problem occured.
  8. - # At the end of the script, the user will be able to report a bug to playonlinux's bug tracker
  9. - # Usage : POL_Debug_Error [MESSAGE]
  10. -
  11. +# # Use this function if a problem occured.
  12. +# # At the end of the script, the user will be able to report a bug to playonlinux's bug tracker
  13. +# # Usage : POL_Debug_Error [MESSAGE]
  14. +#
  15. echo "$(Get_CurrentDate) - [${FUNCNAME[1]}] Error: $@" >> "$LOGFILE"
  16. echo -e "[${FUNCNAME[1]}] ${POL_Color_RedBold}Error:${POL_Color_Reset} $@" 1>&2
  17. - [ "$SETUPWINDOW_INIT" = "true" ] || StandAloneWindow="true"
  18. - [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Init
  19. - MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered an error. If the program does not work correctly, it might be the cause of the problem.\nVisit www.$POL_DNS to get further information')"
  20. - echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  21. - [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Close
  22. +# [ "$SETUPWINDOW_INIT" = "true" ] || StandAloneWindow="true"
  23. +# [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Init
  24. +# MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered an error. If the program does not work correctly, it might be the cause of the problem.\nVisit www.$POL_DNS to get further information')"
  25. +# echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  26. +# [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Close
  27. }
  28. POL_Debug_Error()
  29. {
  30. - # Use this function if a problem occured.
  31. - # At the end of the script, the user will be able to report a bug to playonlinux's bug tracker
  32. - # Usage : POL_Debug_Error [MESSAGE]
  33. -
  34. +# # Use this function if a problem occured.
  35. +# # At the end of the script, the user will be able to report a bug to playonlinux's bug tracker
  36. +# # Usage : POL_Debug_Error [MESSAGE]
  37. +#
  38. echo "$(Get_CurrentDate) - [${FUNCNAME[1]}] Error: $@" >> "$LOGFILE"
  39. echo -e "[${FUNCNAME[1]}] ${POL_Color_RedBold}Error:${POL_Color_Reset} $@" 1>&2
  40. - [ "$SETUPWINDOW_INIT" = "true" ] || StandAloneWindow="true"
  41. - [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Init
  42. - MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered an error. If the program you are installing does not work correctly, it might be the cause of the problem.\nVisit www.$POL_DNS to get further information')"
  43. - echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  44. - [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Close || export POL_SCRIPT_FAILED="YES"
  45. +# [ "$SETUPWINDOW_INIT" = "true" ] || StandAloneWindow="true"
  46. +# [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Init
  47. +# MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered an error. If the program you are installing does not work correctly, it might be the cause of the problem.\nVisit www.$POL_DNS to get further information')"
  48. +# echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  49. +# [ "$StandAloneWindow" = "true" ] && POL_SetupWindow_Close || export POL_SCRIPT_FAILED="YES"
  50. }
  51. POL_Debug_Fatal()
  52. {
  53. - # Use this function if a strong problem occured
  54. - # The effect is the same that POL_Debug_Error, except that the script will end
  55. - # Usage : POL_Debug_Fatal [MESSAGE]
  56. -
  57. +# # Use this function if a strong problem occured
  58. +# # The effect is the same that POL_Debug_Error, except that the script will end
  59. +# # Usage : POL_Debug_Fatal [MESSAGE]
  60. +#
  61. echo "$(Get_CurrentDate) - [${FUNCNAME[1]}] Fatal: $@" >> "$LOGFILE"
  62. echo -e "[${FUNCNAME[1]}] ${POL_Color_RedBold}Fatal:${POL_Color_Reset} $@" 1>&2
  63. - [ "$SETUPWINDOW_INIT" = "true" ] || POL_SetupWindow_Init
  64. - MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered a fatal error. $APPLICATION_TITLE will stop the installation process.\nVisit www.$POL_DNS to get further information')"
  65. - echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  66. - export POL_SCRIPT_FAILED="YES"
  67. - POL_SetupWindow_Close
  68. +# [ "$SETUPWINDOW_INIT" = "true" ] || POL_SetupWindow_Init
  69. +# MESSAGE="$(eval_gettext '$APPLICATION_TITLE has encountered a fatal error. $APPLICATION_TITLE will stop the installation process.\nVisit www.$POL_DNS to get further information')"
  70. +# echo "$POL_COOKIE POL_Debug $$ $MESSAGE $TITLE Error in ${FUNCNAME[1]}\n$(POL_Untab "$@")" | ncns "$POL_HOST" "$POL_PORT"
  71. +# export POL_SCRIPT_FAILED="YES"
  72. +# POL_SetupWindow_Close
  73. exit 1
  74. }
  75. POL_Debug_lspci()