logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

redshift-1.12_no_objc.patch (2803B)


  1. diff -udr ./configure.ac ../redshift-1.12.new/configure.ac
  2. --- ./configure.ac 2018-05-21 01:47:53.000000000 +0000
  3. +++ ./configure.ac 2020-04-04 08:00:02.853123881 +0000
  4. @@ -13,7 +13,6 @@
  5. # Checks for programs.
  6. AC_PROG_CC_C99
  7. AC_PROG_LIBTOOL
  8. -AC_PROG_OBJC # For macOS support modules
  9. AC_LANG([C])
  10. AC_PROG_INTLTOOL([0.50])
  11. @@ -39,18 +38,6 @@
  12. [test "x$enable_windows_resource" = xyes])
  13. -# Test whether Objective C compiler works
  14. -AC_MSG_CHECKING([whether Objective C compiler works])
  15. -AC_LANG_PUSH([Objective C])
  16. -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [
  17. - AC_MSG_RESULT([yes])
  18. - have_objc_compiler=yes
  19. -], [
  20. - AC_MSG_RESULT([no])
  21. - have_objc_compiler=no
  22. -])
  23. -AC_LANG_POP([Objective C])
  24. -
  25. # Checks for libraries.
  26. AM_GNU_GETTEXT_VERSION([0.17])
  27. AM_GNU_GETTEXT([external])
  28. @@ -74,25 +61,7 @@
  29. # macOS headers
  30. AC_CHECK_HEADER([ApplicationServices/ApplicationServices.h], [have_appserv_h=yes], [have_appserv_h=no])
  31. -# CoreLocation.h is an Objective C header. Only test if
  32. -# Objective C compiler works. AC_CHECK_HEADER does not
  33. -# appear to work if the Ojective C compiler is not
  34. -# available so we need a custom test.
  35. -AC_MSG_CHECKING([whether CoreLocation/CoreLocation.h is usable])
  36. -AS_IF([test "x$have_objc_compiler" = xyes], [
  37. - AC_LANG_PUSH([Objective C])
  38. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#import <CoreLocation/CoreLocation.h>]],[[]])], [
  39. - AC_MSG_RESULT([yes])
  40. - have_corelocation_h=yes
  41. - ], [
  42. - AC_MSG_RESULT([no])
  43. - have_corelocation_h=no
  44. - ])
  45. - AC_LANG_POP([Objective C])
  46. -], [
  47. - AC_MSG_RESULT([no Objective C compiler available])
  48. - have_corelocation_h=no
  49. -])
  50. +have_corelocation_h=no
  51. # Windows header
  52. AC_CHECK_HEADER([windows.h], [have_windows_h=yes], [have_windows_h=no])
  53. diff -udr ./src/Makefile.am ../redshift-1.12.new/src/Makefile.am
  54. --- ./src/Makefile.am 2018-05-21 01:47:53.000000000 +0000
  55. +++ ./src/Makefile.am 2020-04-04 08:00:03.109117287 +0000
  56. @@ -28,7 +28,6 @@
  57. gamma-quartz.c gamma-quartz.h \
  58. gamma-w32gdi.c gamma-w32gdi.h \
  59. location-geoclue2.c location-geoclue2.h \
  60. - location-corelocation.m location-corelocation.h \
  61. windows/appicon.rc \
  62. windows/versioninfo.rc
  63. @@ -80,22 +79,6 @@
  64. $(GEOCLUE2_LIBS) $(GEOCLUE2_CFLAGS)
  65. endif
  66. -# Build CoreLocation module as a separate convenience
  67. -# library since it is using a separate compiler
  68. -# (Objective C).
  69. -
  70. -if ENABLE_CORELOCATION
  71. -noinst_LTLIBRARIES = liblocation-corelocation.la
  72. -liblocation_corelocation_la_SOURCES = \
  73. - location-corelocation.m location-corelocation.h
  74. -liblocation_corelocation_la_OBJCFLAGS = \
  75. - $(CORELOCATION_CFLAGS)
  76. -liblocation_corelocation_la_LIBADD = \
  77. - $(CORELOCATION_CFLAGS) $(CORELOCATION_LIBS)
  78. -redshift_LDADD += liblocation-corelocation.la
  79. -endif
  80. -
  81. -
  82. # Windows resources
  83. if ENABLE_WINDOWS_RESOURCE
  84. redshift_SOURCES += windows/appicon.rc windows/versioninfo.rc