diff --git a/0001-Update-requirements-for-newer-gjs.patch b/0001-Update-requirements-for-newer-gjs.patch deleted file mode 100644 index f40e863..0000000 --- a/0001-Update-requirements-for-newer-gjs.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 8a7a8ea7611dd91df5c4ddb30632e4ec55a0b0c9 Mon Sep 17 00:00:00 2001 -From: Bastien Nocera -Date: Wed, 3 Aug 2011 18:09:56 +0100 -Subject: [PATCH] Update requirements for newer gjs - -libgjs-gi was merged into libgjs. ---- - configure.ac | 6 +++--- - 1 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 4a012b6..0be02eb 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -269,7 +269,7 @@ AC_MSG_CHECKING([for GJS JS availability.]) - if test "x$enable_gjs" = "xno"; then - found_gjs="no (disabled, use --enable-gjs to enable)" - else -- PKG_CHECK_EXISTS([gjs-internals-1.0 >= $GJS_REQUIRED gjs-gi-1.0], -+ PKG_CHECK_EXISTS([gjs-internals-1.0 >= $GJS_REQUIRED gjs-1.0], - [found_gjs=yes], - [found_gjs=no]) - fi -@@ -280,8 +280,8 @@ fi - AC_MSG_RESULT([$found_gjs]) - - if test "$found_gjs" = "yes"; then -- GJS_CFLAGS=`$PKG_CONFIG --cflags gjs-internals-1.0 gjs-gi-1.0` -- GJS_LIBS=`$PKG_CONFIG --libs gjs-internals-1.0 gjs-gi-1.0` -+ GJS_CFLAGS=`$PKG_CONFIG --cflags gjs-internals-1.0 gjs-1.0` -+ GJS_LIBS=`$PKG_CONFIG --libs gjs-internals-1.0 gjs-1.0` - AC_SUBST(GJS_CFLAGS) - AC_SUBST(GJS_LIBS) - --- -1.7.6 - diff --git a/libpeas.spec b/libpeas.spec index c1de683..d39b365 100644 --- a/libpeas.spec +++ b/libpeas.spec @@ -22,8 +22,8 @@ BuildRequires: glade3-libgladeui-devel # For the girepository-1.0 directory Requires: gobject-introspection -# For newer gjs -Patch0: 0001-Update-requirements-for-newer-gjs.patch +# https://bugzilla.gnome.org/show_bug.cgi?id=655475 +Patch0: newer-gjs.patch BuildRequires: autoconf automake gnome-common %description diff --git a/newer-gjs.patch b/newer-gjs.patch new file mode 100644 index 0000000..cff8edc --- /dev/null +++ b/newer-gjs.patch @@ -0,0 +1,96 @@ +From c711ba77abde3463d05f045ffb6c4d532fb1a19c Mon Sep 17 00:00:00 2001 +From: Vincent Untz +Date: Mon, 1 Aug 2011 09:16:46 +0200 +Subject: [PATCH] Adapt to and require gjs 1.29.16 + +gjs-gi was merged in gjs, so update the build system as well as path to +headers. + +https://bugzilla.gnome.org/show_bug.cgi?id=655475 +--- + configure.ac | 8 ++++---- + loaders/gjs/peas-extension-gjs.c | 4 ++-- + loaders/gjs/peas-plugin-loader-gjs.c | 6 +++--- + tests/libpeas/extension-gjs.c | 2 +- + 4 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 269c1fa..4a6f176 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -257,7 +257,7 @@ dnl ================================================================ + dnl GJS Javascript Engine + dnl ================================================================ + +-GJS_REQUIRED=0.7.8 ++GJS_REQUIRED=1.29.16 + + AC_ARG_ENABLE(gjs, + AS_HELP_STRING([--enable-gjs],[Enable GJS support]), +@@ -269,7 +269,7 @@ AC_MSG_CHECKING([for GJS JS availability.]) + if test "x$enable_gjs" = "xno"; then + found_gjs="no (disabled, use --enable-gjs to enable)" + else +- PKG_CHECK_EXISTS([gjs-internals-1.0 >= $GJS_REQUIRED gjs-gi-1.0], ++ PKG_CHECK_EXISTS([gjs-internals-1.0 >= $GJS_REQUIRED], + [found_gjs=yes], + [found_gjs=no]) + fi +@@ -280,8 +280,8 @@ fi + AC_MSG_RESULT([$found_gjs]) + + if test "$found_gjs" = "yes"; then +- GJS_CFLAGS=`$PKG_CONFIG --cflags gjs-internals-1.0 gjs-gi-1.0` +- GJS_LIBS=`$PKG_CONFIG --libs gjs-internals-1.0 gjs-gi-1.0` ++ GJS_CFLAGS=`$PKG_CONFIG --cflags gjs-internals-1.0` ++ GJS_LIBS=`$PKG_CONFIG --libs gjs-internals-1.0` + AC_SUBST(GJS_CFLAGS) + AC_SUBST(GJS_LIBS) + +diff --git a/loaders/gjs/peas-extension-gjs.c b/loaders/gjs/peas-extension-gjs.c +index 1d600f5..d8cc578 100644 +--- a/loaders/gjs/peas-extension-gjs.c ++++ b/loaders/gjs/peas-extension-gjs.c +@@ -26,8 +26,8 @@ + #include + + #include +-#include +-#include ++#include ++#include + + #include + #include +diff --git a/loaders/gjs/peas-plugin-loader-gjs.c b/loaders/gjs/peas-plugin-loader-gjs.c +index 30a3a2c..b19f7ac 100644 +--- a/loaders/gjs/peas-plugin-loader-gjs.c ++++ b/loaders/gjs/peas-plugin-loader-gjs.c +@@ -24,9 +24,9 @@ + #endif + + #include +-#include +-#include +-#include ++#include ++#include ++#include + + #include "peas-plugin-loader-gjs.h" + #include "peas-extension-gjs.h" +diff --git a/tests/libpeas/extension-gjs.c b/tests/libpeas/extension-gjs.c +index 9d69235..1a5f846 100644 +--- a/tests/libpeas/extension-gjs.c ++++ b/tests/libpeas/extension-gjs.c +@@ -23,7 +23,7 @@ + #include + #endif + +-#include ++#include + + #include "loaders/gjs/peas-extension-gjs.h" + +-- +1.7.6 \ No newline at end of file