summaryrefslogtreecommitdiff
path: root/pkgtools/gnome-packagekit/patches
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-12-15 09:36:21 +0000
committermarino <marino@pkgsrc.org>2012-12-15 09:36:21 +0000
commit916eee74bf1255d35b80fe2affc8324c580d11c6 (patch)
tree8002abe938960a43d6aa9a29021a156b0b4a9f28 /pkgtools/gnome-packagekit/patches
parent1090f6c840e60fcdfe4cb8df6342badfdddc078b (diff)
downloadpkgsrc-916eee74bf1255d35b80fe2affc8324c580d11c6.tar.gz
pkgtools/gnome-packagekit: Stop detecting deprecation
I originally was trying to patch set-but-not-used errors but then quickly found out that a new glib also introduced numerous breakages due to -Werror breaking on g_thread_init deprecation. Between the two problems I had already generated 10 patches with no end in site. Rather than continue, address the real issue and remove -Werror from this old package.
Diffstat (limited to 'pkgtools/gnome-packagekit/patches')
-rw-r--r--pkgtools/gnome-packagekit/patches/patch-aclocal.m418
-rw-r--r--pkgtools/gnome-packagekit/patches/patch-configure27
-rw-r--r--pkgtools/gnome-packagekit/patches/patch-configure.ac17
3 files changed, 62 insertions, 0 deletions
diff --git a/pkgtools/gnome-packagekit/patches/patch-aclocal.m4 b/pkgtools/gnome-packagekit/patches/patch-aclocal.m4
new file mode 100644
index 00000000000..bc3a691762d
--- /dev/null
+++ b/pkgtools/gnome-packagekit/patches/patch-aclocal.m4
@@ -0,0 +1,18 @@
+$NetBSD: patch-aclocal.m4,v 1.1 2012/12/15 09:36:21 marino Exp $
+
+* Disable -Werror for these reasons
+ - Numerous g_thread_init deprecated errors
+ - Numerous set-but-not-used error (gcc 4.6+)
+
+--- aclocal.m4.orig 2008-12-09 08:25:48.000000000 +0000
++++ aclocal.m4
+@@ -546,9 +546,6 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
+ unset SAVE_CFLAGS
+ done
+ unset option
+- if test "$enable_compile_warnings" = "error" ; then
+- warning_flags="$warning_flags -Werror"
+- fi
+ ;;
+ *)
+ AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
diff --git a/pkgtools/gnome-packagekit/patches/patch-configure b/pkgtools/gnome-packagekit/patches/patch-configure
new file mode 100644
index 00000000000..fbe8ee301ec
--- /dev/null
+++ b/pkgtools/gnome-packagekit/patches/patch-configure
@@ -0,0 +1,27 @@
+$NetBSD: patch-configure,v 1.1 2012/12/15 09:36:21 marino Exp $
+
+* Disable -Werror for these reasons
+ - Numerous g_thread_init deprecated errors
+ - Numerous set-but-not-used error (gcc 4.6+)
+
+--- configure.orig 2008-12-09 08:25:54.000000000 +0000
++++ configure
+@@ -21043,9 +21043,6 @@ $as_echo "$has_option" >&6; }
+ unset SAVE_CFLAGS
+ done
+ unset option
+- if test "$enable_compile_warnings" = "error" ; then
+- warning_flags="$warning_flags -Werror"
+- fi
+ ;;
+ *)
+ { { $as_echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
+@@ -21574,7 +21571,7 @@ fi
+
+
+ if test "$GCC" = "yes"; then
+- CPPFLAGS="$CPPFLAGS -Werror -Wcast-align -Wno-uninitialized"
++ CPPFLAGS="$CPPFLAGS -Wcast-align -Wno-uninitialized"
+ CPPFLAGS="$CPPFLAGS -Wall -Wformat-security"
+ # CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
+ CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
diff --git a/pkgtools/gnome-packagekit/patches/patch-configure.ac b/pkgtools/gnome-packagekit/patches/patch-configure.ac
new file mode 100644
index 00000000000..ca770003720
--- /dev/null
+++ b/pkgtools/gnome-packagekit/patches/patch-configure.ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-configure.ac,v 1.1 2012/12/15 09:36:21 marino Exp $
+
+* Disable -Werror for these reasons
+ - Numerous g_thread_init deprecated errors
+ - Numerous set-but-not-used error (gcc 4.6+)
+
+--- configure.ac.orig 2008-12-09 08:22:40.000000000 +0000
++++ configure.ac
+@@ -27,7 +27,7 @@ dnl ------------------------------------
+ dnl - Extra verbose warning switches
+ dnl ---------------------------------------------------------------------------
+ if test "$GCC" = "yes"; then
+- CPPFLAGS="$CPPFLAGS -Werror -Wcast-align -Wno-uninitialized"
++ CPPFLAGS="$CPPFLAGS -Wcast-align -Wno-uninitialized"
+ CPPFLAGS="$CPPFLAGS -Wall -Wformat-security"
+ # CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
+ CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"