summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD21
-rw-r--r--removed-gconf_engine_key_is_writable.patch25
3 files changed, 38 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c1f19aae88d..d392078c452 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = perl-gnome2-gconf
pkgdesc = Perl interface to the GConf configuration database
pkgver = 1.044
- pkgrel = 3
+ pkgrel = 4
url = http://search.cpan.org/dist/Gnome2-GConf
arch = i686
arch = x86_64
@@ -15,12 +15,9 @@ pkgbase = perl-gnome2-gconf
provides = gconf-perl
options = !emptydirs
source = http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-1.044.tar.gz
+ source = removed-gconf_engine_key_is_writable.patch
sha256sums = 875cb87bff28340c15c9bda9b645b5af8002d9b471363d5475532bc1d34e1df2
+ sha256sums = 4e860bb4978642b8360093ab21697ba9d10156c65293b8b6ee93463a86edce6e
pkgname = perl-gnome2-gconf
- depends = gtk2-perl
- depends = gconf
- depends = glib-perl
- depends = perl>=
- depends = perl<
diff --git a/PKGBUILD b/PKGBUILD
index 9d471b14b15..7913349858b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=perl-gnome2-gconf
pkgver=1.044
-pkgrel=3
+pkgrel=4
pkgdesc="Perl interface to the GConf configuration database"
arch=('i686' 'x86_64')
license=("GPL" "PerlArtistic")
@@ -13,11 +13,17 @@ depends=('gtk2-perl' 'gconf' 'glib-perl')
makedepends=('perl-extutils-depends' 'perl-extutils-pkgconfig')
options=('!emptydirs')
provides=("gconf-perl")
-source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-${pkgver}.tar.gz")
-sha256sums=('875cb87bff28340c15c9bda9b645b5af8002d9b471363d5475532bc1d34e1df2')
+source=("http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gnome2-GConf-${pkgver}.tar.gz"
+ removed-gconf_engine_key_is_writable.patch)
+sha256sums=('875cb87bff28340c15c9bda9b645b5af8002d9b471363d5475532bc1d34e1df2'
+ '4e860bb4978642b8360093ab21697ba9d10156c65293b8b6ee93463a86edce6e')
+
+prepare() {
+ cd Gnome2-GConf-${pkgver}
+ patch -Np1 -i "$srcdir"/removed-gconf_engine_key_is_writable.patch
+}
build() {
- # Workaround for Perl 5.26
export PERL_USE_UNSAFE_INC=1
cd Gnome2-GConf-${pkgver}
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
@@ -27,11 +33,4 @@ build() {
package() {
cd Gnome2-GConf-${pkgver}
make install DESTDIR="$pkgdir"
-# template start; name=perl-binary-module-dependency; version=1;
-if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
- _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
- _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
- depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
-fi
-# template end;
}
diff --git a/removed-gconf_engine_key_is_writable.patch b/removed-gconf_engine_key_is_writable.patch
new file mode 100644
index 00000000000..055d9e9df40
--- /dev/null
+++ b/removed-gconf_engine_key_is_writable.patch
@@ -0,0 +1,25 @@
+--- a/xs/GConfEngine.xs 2006-04-13 09:40:26.000000000 +0200
++++ b/xs/GConfEngine.xs 2017-08-28 12:04:46.211443073 +0200
+@@ -350,22 +350,6 @@
+ if (err)
+ gperl_croak_gerror (NULL, err);
+
+-##gboolean gconf_engine_key_is_writable (GConfEngine *conf,
+-## const gchar *key,
+-## GError **err);
+-gboolean
+-gconf_engine_key_is_writable (engine, key)
+- GConfEngine * engine
+- const gchar * key
+- PREINIT:
+- GError *err = NULL;
+- CODE:
+- RETVAL = gconf_engine_key_is_writable (engine, key, &err);
+- if (err)
+- gperl_croak_gerror (NULL, err);
+- OUTPUT:
+- RETVAL
+-
+ guint
+ gconf_engine_notify_add (engine, namespace_section, func, data=NULL)
+ GConfEngine * engine