void-packages/srcpkgs/gtkglext/patches/Removing_deprecated_flags.patch
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

123 lines
3.5 KiB
Diff

--- a/examples/Makefile.am 2003-09-09 11:50:04.000000000 +0200
+++ b/examples/Makefile.am 2014-04-30 20:40:58.471481327 +0200
@@ -17,11 +17,7 @@ INCLUDES = \
-I$(top_builddir)/gdk \
-I$(top_builddir)/gtk \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(EXAMPLES_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+ $(EXAMPLES_DEP_CFLAGS)
DEPS = \
$(top_builddir)/gdk/$(gdkglext_targetlib) \
--- a/examples/Makefile.in 2006-02-05 04:17:39.000000000 +0100
+++ b/examples/Makefile.in 2014-04-30 20:41:15.559479928 +0200
@@ -233,11 +233,7 @@ INCLUDES = \
-I$(top_builddir)/gdk \
-I$(top_builddir)/gtk \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(EXAMPLES_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+ $(EXAMPLES_DEP_CFLAGS)
DEPS = \
--- a/gdk/Makefile.am 2003-08-15 11:10:38.000000000 +0200
+++ b/gdk/Makefile.am 2014-04-30 20:41:45.415477484 +0200
@@ -43,10 +43,7 @@ common_includes = \
-DGDK_GL_COMPILATION \
-I$(top_srcdir) \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(GDKGLEXT_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED
+ $(GDKGLEXT_DEP_CFLAGS)
common_ldflags = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
--- a/gdk/Makefile.in 2006-02-05 04:17:40.000000000 +0100
+++ b/gdk/Makefile.in 2014-04-30 20:41:55.816476633 +0200
@@ -238,10 +238,7 @@ common_includes = \
-DGDK_GL_COMPILATION \
-I$(top_srcdir) \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(GDKGLEXT_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED
+ $(GDKGLEXT_DEP_CFLAGS)
common_ldflags = \
--- a/gdk/x11/Makefile.am 2003-05-07 20:18:42.000000000 +0200
+++ b/gdk/x11/Makefile.am 2014-04-30 20:42:26.856474092 +0200
@@ -10,10 +10,7 @@ INCLUDES = \
-I$(top_builddir)/gdk \
$(GTKGLEXT_DEBUG_FLAGS) \
$(GDKGLEXT_DEP_CFLAGS) \
- $(GDKGLEXT_WIN_EXTRA_DEFS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED
+ $(GDKGLEXT_WIN_EXTRA_DEFS)
LDADDS = \
$(GDKGLEXT_DEP_LIBS)
--- a/gdk/x11/Makefile.in 2006-02-05 04:17:42.000000000 +0100
+++ b/gdk/x11/Makefile.in 2014-04-30 20:42:37.128473251 +0200
@@ -225,10 +225,7 @@ INCLUDES = \
-I$(top_builddir)/gdk \
$(GTKGLEXT_DEBUG_FLAGS) \
$(GDKGLEXT_DEP_CFLAGS) \
- $(GDKGLEXT_WIN_EXTRA_DEFS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED
+ $(GDKGLEXT_WIN_EXTRA_DEFS)
LDADDS = \
--- a/gtk/Makefile.am 2003-05-09 15:55:05.000000000 +0200
+++ b/gtk/Makefile.am 2014-04-30 20:43:04.456471014 +0200
@@ -36,11 +36,7 @@ common_includes = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(GTKGLEXT_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+ $(GTKGLEXT_DEP_CFLAGS)
common_ldflags = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
--- a/gtk/Makefile.in 2006-02-05 04:17:42.000000000 +0100
+++ b/gtk/Makefile.in 2014-04-30 20:43:16.224470051 +0200
@@ -234,11 +234,7 @@ common_includes = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
$(GTKGLEXT_DEBUG_FLAGS) \
- $(GTKGLEXT_DEP_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
- -DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+ $(GTKGLEXT_DEP_CFLAGS)
common_ldflags = \