Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/tuxonice-userui/files/
Date: Mon, 06 Feb 2017 20:14:43
Message-Id: 1486412047.d129ea33d6a956dfaded0e3fa093fc102067cb7c.gokturk@gentoo
1 commit: d129ea33d6a956dfaded0e3fa093fc102067cb7c
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Feb 6 16:56:19 2017 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 6 20:14:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d129ea33
7
8 sys-apps/tuxonice-userui: remove unused patches
9
10 .../files/tuxonice-userui-1.0-Makefiles.patch | 45 -----------
11 .../files/tuxonice-userui-1.0-libpng15.patch | 88 ----------------------
12 2 files changed, 133 deletions(-)
13
14 diff --git a/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-Makefiles.patch b/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-Makefiles.patch
15 deleted file mode 100644
16 index 8cc315f..00000000
17 --- a/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-Makefiles.patch
18 +++ /dev/null
19 @@ -1,45 +0,0 @@
20 -diff -Nru tuxonice-userui-1.0.vanilla/Makefile tuxonice-userui-1.0/Makefile
21 ---- tuxonice-userui-1.0.vanilla/Makefile 2009-04-04 13:37:13.000000000 +0200
22 -+++ tuxonice-userui-1.0/Makefile 2009-04-05 14:13:23.000000000 +0200
23 -@@ -32,15 +32,15 @@
24 - all: $(TARGETS)
25 -
26 - fbsplash:
27 -- make -C $@ all
28 -+ $(MAKE) -C $@ all
29 -
30 - usplash:
31 -- make -C $@ all
32 -+ $(MAKE) -C $@ all
33 -
34 - tuxoniceui_text: $(CORE_OBJECTS) userui_text.o
35 - $(CC) $(LDFLAGS) -static $^ -o $@
36 -
37 --tuxoniceui_fbsplash: fbsplash $(CORE_OBJECTS) fbsplash/userui_fbsplash.o
38 -+tuxoniceui_fbsplash: fbsplash $(CORE_OBJECTS)
39 - $(CC) $(LDFLAGS) -static $(CORE_OBJECTS) fbsplash/userui_fbsplash.o -o $@ $(FBSPLASH_LIBS)
40 -
41 - tuxoniceui_usplash: usplash $(CORE_OBJECTS) usplash/userui_usplash.o
42 -@@ -48,8 +48,8 @@
43 -
44 - clean:
45 - $(RM) *.o $(TARGETS)
46 -- make -C fbsplash clean
47 -- make -C usplash clean
48 -+ $(MAKE) -C fbsplash clean
49 -+ $(MAKE) -C usplash clean
50 -
51 - $(INSTDIR)/%: %
52 - strip $<
53 -diff -Nru tuxonice-userui-1.0.vanilla/fbsplash/Makefile tuxonice-userui-1.0/fbsplash/Makefile
54 ---- tuxonice-userui-1.0.vanilla/fbsplash/Makefile 2009-04-04 13:37:13.000000000 +0200
55 -+++ tuxonice-userui-1.0/fbsplash/Makefile 2009-04-05 14:14:53.000000000 +0200
56 -@@ -6,7 +6,7 @@
57 - parse.o mng_callbacks.o mng_render.o render.o ttf.o
58 - SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
59 -
60 --all: $(TARGET)
61 -+all: $(TARGET) $(OBJECTS)
62 -
63 - userui_fbsplash.o: $(OBJECTS)
64 - $(CC) $(LDFLAGS) -r -nostdlib -nostartfiles $(SPLASH_LDLIBS) $^ -o $@
65
66 diff --git a/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-libpng15.patch b/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-libpng15.patch
67 deleted file mode 100644
68 index bfe6d0a..00000000
69 --- a/sys-apps/tuxonice-userui/files/tuxonice-userui-1.0-libpng15.patch
70 +++ /dev/null
71 @@ -1,88 +0,0 @@
72 ---- fbsplash/image.c
73 -+++ fbsplash/image.c
74 -@@ -112,29 +112,29 @@
75 - png_init_io(png_ptr, fp);
76 - png_read_info(png_ptr, info_ptr);
77 -
78 -- if (cmap && info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) {
79 -+ if (cmap && png_get_color_type(png_ptr, info_ptr) != PNG_COLOR_TYPE_PALETTE) {
80 - printerr("Could not read file %s. Not a palette-based image.\n", filename);
81 - goto failed;
82 - }
83 -
84 -- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
85 -- info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
86 -+ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY ||
87 -+ png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_GRAY_ALPHA)
88 - png_set_gray_to_rgb(png_ptr);
89 -
90 -- if (info_ptr->bit_depth == 16)
91 -+ if (png_get_bit_depth(png_ptr, info_ptr) == 16)
92 - png_set_strip_16(png_ptr);
93 -
94 -- if (!want_alpha && info_ptr->color_type & PNG_COLOR_MASK_ALPHA)
95 -+ if (!want_alpha && png_get_color_type(png_ptr, info_ptr) & PNG_COLOR_MASK_ALPHA)
96 - png_set_strip_alpha(png_ptr);
97 -
98 - #ifndef TARGET_KERNEL
99 -- if (!(info_ptr->color_type & PNG_COLOR_MASK_ALPHA) & want_alpha) {
100 -+ if (!(png_get_color_type(png_ptr, info_ptr) & PNG_COLOR_MASK_ALPHA) & want_alpha) {
101 - png_set_add_alpha(png_ptr, 0xff, PNG_FILLER_AFTER);
102 - }
103 - #endif
104 - png_read_update_info(png_ptr, info_ptr);
105 -
106 -- if (!cmap && info_ptr->color_type != PNG_COLOR_TYPE_RGB && info_ptr->color_type != PNG_COLOR_TYPE_RGBA) {
107 -+ if (!cmap && png_get_color_type(png_ptr, info_ptr) != PNG_COLOR_TYPE_RGB && png_get_color_type(png_ptr, info_ptr) != PNG_COLOR_TYPE_RGBA) {
108 - printerr("Could not read file %s. Not an RGB image.\n", filename);
109 - goto failed;
110 - }
111 -@@ -150,12 +150,12 @@
112 -
113 - rowbytes = png_get_rowbytes(png_ptr, info_ptr);
114 -
115 -- if ((width && *width && info_ptr->width != *width) || (height && *height && info_ptr->height != *height)) {
116 -+ if ((width && *width && png_get_image_width(png_ptr, info_ptr) != *width) || (height && *height && png_get_image_height(png_ptr, info_ptr) != *height)) {
117 - printerr("Image size mismatch: %s.\n", filename);
118 - goto failed;
119 - } else {
120 -- *width = info_ptr->width;
121 -- *height = info_ptr->height;
122 -+ *width = png_get_image_width(png_ptr, info_ptr);
123 -+ *height = png_get_image_height(png_ptr, info_ptr);
124 - }
125 -
126 - *data = malloc(fb_var.xres * fb_var.yres * bytespp);
127 -@@ -171,11 +171,11 @@
128 - goto failed;
129 - }
130 -
131 -- for (i = 0; i < info_ptr->height; i++) {
132 -+ for (i = 0; i < png_get_image_height(png_ptr, info_ptr); i++) {
133 - if (cmap) {
134 -- row_pointer = *data + info_ptr->width * i;
135 -+ row_pointer = *data + png_get_image_width(png_ptr, info_ptr) * i;
136 - } else if (want_alpha) {
137 -- row_pointer = *data + info_ptr->width * i * 4;
138 -+ row_pointer = *data + png_get_image_width(png_ptr, info_ptr) * i * 4;
139 - } else {
140 - row_pointer = buf;
141 - }
142 -@@ -184,7 +184,7 @@
143 -
144 - if (cmap) {
145 - int h = 256 - cmap->len;
146 -- t = *data + info_ptr->width * i;
147 -+ t = *data + png_get_image_width(png_ptr, info_ptr) * i;
148 -
149 - if (h) {
150 - /* Move the colors up by 'h' offset. This is used because fbcon
151 -@@ -196,7 +196,7 @@
152 -
153 - /* We only need to convert the image if we the alpha channel is not required */
154 - } else if (!want_alpha) {
155 -- truecolor2fb((truecolor*)buf, *data + info_ptr->width * bytespp * i, info_ptr->width, i, 0);
156 -+ truecolor2fb((truecolor*)buf, *data + png_get_image_width(png_ptr, info_ptr) * bytespp * i, png_get_image_width(png_ptr, info_ptr), i, 0);
157 - }
158 - }
159 -