Gentoo Archives: gentoo-commits

From: "Amadeusz Zolnowski (aidecoe)" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-boot/plymouth/files: gentoo-logo.png 0.8.3-gentoo-fb-path.patch 0.8.3-drm-reduce-minimum-build-requirements.patch 0.8.3-image-replace-deprecated-libpng-function.patch plymouth.initd
Date: Mon, 21 Feb 2011 21:08:27
Message-Id: 20110221210817.D50D120054@flycatcher.gentoo.org
1 aidecoe 11/02/21 21:08:17
2
3 Added: gentoo-logo.png 0.8.3-gentoo-fb-path.patch
4 0.8.3-drm-reduce-minimum-build-requirements.patch
5 0.8.3-image-replace-deprecated-libpng-function.patch
6 plymouth.initd
7 Log:
8 sys-boot/plymouth: Initial ebuild - 0.8.3. See bug #274065.
9
10 (Portage version: 2.1.9.40/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.1 sys-boot/plymouth/files/gentoo-logo.png
14
15 <<Binary file>>
16
17
18 1.1 sys-boot/plymouth/files/0.8.3-gentoo-fb-path.patch
19
20 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-gentoo-fb-path.patch?rev=1.1&view=markup
21 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-gentoo-fb-path.patch?rev=1.1&content-type=text/plain
22
23 Index: 0.8.3-gentoo-fb-path.patch
24 ===================================================================
25 From 5fd3ed5a1f661eb1d99e1d4df5edad8410cc54e3 Mon Sep 17 00:00:00 2001
26 From: root <root@×××××××××××××××.lan>
27 Date: Sun, 25 Oct 2009 03:55:54 +0100
28 Subject: [PATCH] Gentoo does not have /dev/fb, but /dev/fb0 (at least on i915 KMS)
29
30 ---
31 src/plugins/renderers/frame-buffer/plugin.c | 2 +-
32 1 files changed, 1 insertions(+), 1 deletions(-)
33
34 diff --git a/src/libply/ply-frame-buffer.c b/src/libply/ply-frame-buffer.c
35 index a1e4fcd..19aab4b 100644
36 --- a/src/plugins/renderers/frame-buffer/plugin.c
37 +++ b/src/plugins/renderers/frame-buffer/plugin.c
38 @@ -46,7 +46,7 @@
39 #include <linux/fb.h>
40
41 #ifndef PLY_FRAME_BUFFER_DEFAULT_FB_DEVICE_NAME
42 -#define PLY_FRAME_BUFFER_DEFAULT_FB_DEVICE_NAME "/dev/fb"
43 +#define PLY_FRAME_BUFFER_DEFAULT_FB_DEVICE_NAME "/dev/fb0"
44 #endif
45
46 struct _ply_frame_buffer
47 --
48 1.6.5
49
50
51
52
53 1.1 sys-boot/plymouth/files/0.8.3-drm-reduce-minimum-build-requirements.patch
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-drm-reduce-minimum-build-requirements.patch?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-drm-reduce-minimum-build-requirements.patch?rev=1.1&content-type=text/plain
57
58 Index: 0.8.3-drm-reduce-minimum-build-requirements.patch
59 ===================================================================
60 drm: reduce minimum build requirements
61
62 This patch adds the respective configure options to make it possible to disable
63 libdrm_intel, libdrm_radeon, libdrm_nouveau independently from each other.
64
65 NOTE:
66
67 The patch is based on work of Lucian Muresan <lucianm@×××××××××××××××××.net>
68 that fixes bug report:
69
70 https://bugs.freedesktop.org/show_bug.cgi?id=29804
71
72 This one is adjusted to version 0.8.3 which doesn't support libkms yet.
73
74 ---
75 diff -Naur plymouth-0.8.3/configure.ac plymouth-0.8.3.new/configure.ac
76 --- plymouth-0.8.3/configure.ac 2010-05-06 19:32:20.000000000 +0200
77 +++ plymouth-0.8.3.new/configure.ac 2011-02-03 18:45:11.749557708 +0100
78 @@ -56,49 +56,150 @@
79 AC_SUBST(GTK_CFLAGS)
80 AC_SUBST(GTK_LIBS)
81
82 -PKG_CHECK_MODULES(DRM, [libdrm libdrm_intel libdrm_radeon libdrm_nouveau])
83 +AC_ARG_ENABLE(libdrm_intel, AS_HELP_STRING([--enable-libdrm_intel],[enable building with libdrm_intel support]),enable_libdrm_intel=$enableval,enable_libdrm_intel=yes)
84 +AM_CONDITIONAL(ENABLE_LIBDRM_INTEL, [test "$enable_libdrm_intel" = yes])
85
86 -OLD_CFLAGS="$CFLAGS"
87 -CFLAGS="$CFLAGS $DRM_CFLAGS"
88 -AC_MSG_CHECKING([if i915_drm.h, radeon_drm.h and nouveau_drm.h are in include path])
89 -AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
90 -[[
91 - #include <stdint.h>
92 - #include <stdlib.h>
93 - #include "i915_drm.h"
94 - #include "radeon_drm.h"
95 - #include "nouveau_drm.h"
96 -]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
97 -
98 -if test "$found_drm_kernel_headers" = "yes"; then
99 - AC_MSG_RESULT([yes])
100 -else
101 - AC_MSG_RESULT([no])
102 - AC_MSG_CHECKING([if we can find them anyway])
103 +if test x$enable_libdrm_intel = xyes; then
104 + PKG_CHECK_MODULES(DRM_INTEL, [libdrm libdrm_intel])
105 + OLD_CFLAGS="$CFLAGS"
106 + CFLAGS="$CFLAGS $DRM_INTEL_CFLAGS"
107 + AC_MSG_CHECKING([if i915_drm.h is in include path])
108 + AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
109 + [[
110 + #include <stdint.h>
111 + #include <stdlib.h>
112 + #include "i915_drm.h"
113 + ]],[[]]),[found_drm_intel_kernel_headers=yes],[found_drm_intel_kernel_headers=no])
114 +
115 + if test "$found_drm_intel_kernel_headers" = "yes"; then
116 + AC_MSG_RESULT([yes])
117 + else
118 + AC_MSG_RESULT([no])
119 + AC_MSG_CHECKING([if we can find them anyway])
120 +
121 + MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
122 + CFLAGS="$CFLAGS $MORE_DRM_CFLAGS"
123 + AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
124 + [[
125 + #include <stdint.h>
126 + #include <stdlib.h>
127 + #include "i915_drm.h"
128 + ]],[[]]),[found_drm_intel_kernel_headers=yes],[found_drm_intel_kernel_headers=no])
129 +
130 + if test "$found_drm_intel_kernel_headers" = "yes"; then
131 + AC_MSG_RESULT([yes])
132 + DRM_INTEL_CFLAGS="$DRM_INTEL_CFLAGS $MORE_DRM_CFLAGS"
133 + else
134 + AC_MSG_RESULT([no])
135 + AC_MSG_ERROR([Could not find i915_drm.h])
136 + fi
137 + fi
138 +
139 + AC_SUBST(DRM_INTEL_CFLAGS)
140 + AC_SUBST(DRM_INTEL_LIBS)
141 + AC_DEFINE(PLY_ENABLE_LIBDRM_INTEL, 1, [Enable support for libdrm_intel driver])
142 +fi
143 +
144 +AC_ARG_ENABLE(libdrm_radeon, AS_HELP_STRING([--enable-libdrm_radeon],[enable building with libdrm_radeon support]),enable_libdrm_radeon=$enableval,enable_libdrm_radeon=yes)
145 +AM_CONDITIONAL(ENABLE_LIBDRM_RADEON, [test "$enable_libdrm_radeon" = yes])
146
147 - MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
148 - CFLAGS="$CFLAGS $MORE_DRM_CFLAGS"
149 +if test x$enable_libdrm_radeon = xyes; then
150 + PKG_CHECK_MODULES(DRM_RADEON, [libdrm libdrm_radeon])
151 + OLD_CFLAGS="$CFLAGS"
152 + CFLAGS="$CFLAGS $DRM_RADEON_CFLAGS"
153 + AC_MSG_CHECKING([if radeon_drm.h is in include path])
154 AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
155 [[
156 #include <stdint.h>
157 #include <stdlib.h>
158 #include "i915_drm.h"
159 #include "radeon_drm.h"
160 + ]],[[]]),[found_drm_radeon_kernel_headers=yes],[found_drm_radeon_kernel_headers=no])
161 +
162 + if test "$found_drm_radeon_kernel_headers" = "yes"; then
163 + AC_MSG_RESULT([yes])
164 + else
165 + AC_MSG_RESULT([no])
166 + AC_MSG_CHECKING([if we can find them anyway])
167 +
168 + MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
169 + CFLAGS="$CFLAGS $MORE_DRM_RADEON_CFLAGS"
170 + AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
171 + [[
172 + #include <stdint.h>
173 + #include <stdlib.h>
174 + #include "radeon_drm.h"
175 + ]],[[]]),[found_drm_radeon_kernel_headers=yes],[found_drm_radeon_kernel_headers=no])
176 +
177 + if test "$found_drm_radeon_kernel_headers" = "yes"; then
178 + AC_MSG_RESULT([yes])
179 + DRM_RADEON_CFLAGS="$DRM_RADEON_CFLAGS $MORE_DRM_CFLAGS"
180 + else
181 + AC_MSG_RESULT([no])
182 + AC_MSG_ERROR([Could not find radeon_drm.h])
183 + fi
184 + fi
185 +
186 + AC_SUBST(DRM_RADEON_CFLAGS)
187 + AC_SUBST(DRM_RADEON_LIBS)
188 + AC_DEFINE(PLY_ENABLE_LIBDRM_RADEON, 1, [Enable support for libdrm_radeon driver])
189 +fi
190 +
191 +AC_ARG_ENABLE(libdrm_nouveau, AS_HELP_STRING([--enable-libdrm_nouveau],[enable building with libdrm_nouveau support]),enable_libdrm_nouveau=$enableval,enable_libdrm_nouveau=yes)
192 +AM_CONDITIONAL(ENABLE_LIBDRM_NOUVEAU, [test "$enable_libdrm_nouveau" = yes])
193 +
194 +if test x$enable_libdrm_nouveau = xyes; then
195 + PKG_CHECK_MODULES(DRM_NOUVEAU, [libdrm libdrm_nouveau])
196 + OLD_CFLAGS="$CFLAGS"
197 + CFLAGS="$CFLAGS $DRM_NOUVEAU_CFLAGS"
198 + AC_MSG_CHECKING([if nouveau_drm.h is in include path])
199 + AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
200 + [[
201 + #include <stdint.h>
202 + #include <stdlib.h>
203 #include "nouveau_drm.h"
204 - ]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
205 + ]],[[]]),[found_drm_nouveau_kernel_headers=yes],[found_drm_nouveau_kernel_headers=no])
206
207 - if test "$found_drm_kernel_headers" = "yes"; then
208 + if test "$found_drm_nouveau_kernel_headers" = "yes"; then
209 AC_MSG_RESULT([yes])
210 DRM_CFLAGS="$DRM_CFLAGS $MORE_DRM_CFLAGS"
211 else
212 AC_MSG_RESULT([no])
213 - AC_MSG_ERROR([Could not find i915_drm.h, radeon_drm.h and/or nouveau_drm.h])
214 + AC_MSG_CHECKING([if we can find them anyway])
215 +
216 + MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
217 + CFLAGS="$CFLAGS $MORE_DRM_CFLAGS"
218 + AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
219 + [[
220 + #include <stdint.h>
221 + #include <stdlib.h>
222 + #include "nouveau_drm.h"
223 + ]],[[]]),[found_drm_nouveau_kernel_headers=yes],[found_drm_nouveau_kernel_headers=no])
224 +
225 + if test "$found_drm_nouveau_kernel_headers" = "yes"; then
226 + AC_MSG_RESULT([yes])
227 + DRM_NOUVEAU_CFLAGS="$DRM_NOUVEAU_CFLAGS $MORE_DRM_CFLAGS"
228 + else
229 + AC_MSG_RESULT([no])
230 + AC_MSG_ERROR([Could not find nouveau_drm.h])
231 + fi
232 fi
233 +
234 + AC_SUBST(DRM_NOUVEAU_CFLAGS)
235 + AC_SUBST(DRM_NOUVEAU_LIBS)
236 + AC_DEFINE(PLY_ENABLE_LIBDRM_NOUVEAU, 1, [Enable support for libdrm_nouveau driver])
237 fi
238 -CFLAGS="$OLD_CFLAGS"
239 +
240 +DRM_CFLAGS="$DRM_INTEL_CFLAGS $DRM_RADEON_CFLAGS $DRM_NOUVEAU_CFLAGS"
241 +DRM_LIBS="$DRM_INTEL_LIBS $DRM_RADEON_LIBS $DRM_NOUVEAU_LIBS"
242 AC_SUBST(DRM_CFLAGS)
243 AC_SUBST(DRM_LIBS)
244
245 +AM_CONDITIONAL(ENABLE_DRM_RENDERER,
246 + [test x$enable_libdrm_intel = xyes \
247 + -o x$enable_libdrm_radeon = xyes \
248 + -o x$enable_libdrm_nouveau = xyes])
249 +
250 AC_ARG_ENABLE(tracing, AS_HELP_STRING([--enable-tracing],[enable verbose tracing code]),enable_tracing=$enableval,enable_tracing=yes)
251
252 if test x$enable_tracing = xyes; then
253 diff -Naur plymouth-0.8.3/scripts/plymouth-populate-initrd.in plymouth-0.8.3.new/scripts/plymouth-populate-initrd.in
254 --- plymouth-0.8.3/scripts/plymouth-populate-initrd.in 2010-05-06 19:32:20.000000000 +0200
255 +++ plymouth-0.8.3.new/scripts/plymouth-populate-initrd.in 2011-02-03 19:14:06.316946754 +0100
256 @@ -97,7 +97,7 @@
257
258 inst ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so $INITRDDIR
259
260 -inst ${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so $INITRDDIR
261 +[ -f "${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so" ] && inst ${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so $INITRDDIR
262 inst ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so $INITRDDIR
263
264 if [ -d ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then
265 diff -Naur plymouth-0.8.3/scripts/plymouth-populate-initrd.in.orig plymouth-0.8.3.new/scripts/plymouth-populate-initrd.in.orig
266 --- plymouth-0.8.3/scripts/plymouth-populate-initrd.in.orig 1970-01-01 01:00:00.000000000 +0100
267 +++ plymouth-0.8.3.new/scripts/plymouth-populate-initrd.in.orig 2010-05-06 19:32:20.000000000 +0200
268 @@ -0,0 +1,114 @@
269 +#!/bin/bash
270 +
271 +[ -z "$DESTDIR" ] || exit 0
272 +
273 +[ -z "$PLYMOUTH_LIBEXECDIR" ] && PLYMOUTH_LIBEXECDIR="@PLYMOUTH_LIBEXECDIR@"
274 +[ -z "$PLYMOUTH_DATADIR" ] && PLYMOUTH_DATADIR="@PLYMOUTH_DATADIR@"
275 +[ -z "$PLYMOUTH_PLUGIN_PATH" ] && PLYMOUTH_PLUGIN_PATH="$(plymouth --get-splash-plugin-path)"
276 +[ -z "$PLYMOUTH_LOGO_FILE" ] && PLYMOUTH_LOGO_FILE="@logofile@"
277 +[ -z "$PLYMOUTH_THEME_NAME" ] && PLYMOUTH_THEME_NAME=$(plymouth-set-default-theme)
278 +[ -z "$PLYMOUTH_CONFDIR" ] && PLYMOUTH_CONFDIR="@PLYMOUTH_CONF_DIR@"
279 +[ -z "$PLYMOUTH_POLICYDIR" ] && PLYMOUTH_POLICYDIR="@PLYMOUTH_POLICY_DIR@"
280 +
281 +if [ -z "$PLYMOUTH_POPULATE_SOURCE_FUNCTIONS" ]; then
282 +
283 + if [ -f "${PLYMOUTH_LIBEXECDIR}/initrd-functions" ]; then
284 + PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="${PLYMOUTH_LIBEXECDIR}/initrd-functions"
285 + fi
286 +
287 + if [ -f "${PLYMOUTH_DATADIR}/dracut/dracut-functions" ]; then
288 + PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="${PLYMOUTH_DATADIR}/dracut/dracut-functions"
289 + fi
290 +fi
291 +
292 +if [ -n "$PLYMOUTH_POPULATE_SOURCE_FUNCTIONS" ]; then
293 + source $PLYMOUTH_POPULATE_SOURCE_FUNCTIONS
294 +fi
295 +
296 +if [ " $(type -t inst) " != " function " ]; then
297 + echo "Need 'inst' function, try setting PLYMOUTH_POPULATE_SOURCE_FUNCTIONS to a file that defines it" 1>&2
298 + exit 1
299 +fi
300 +
301 +if [ " $(type -t set_verbose) " != " function " ]; then
302 + function set_verbose { true; }
303 +fi
304 +
305 +function usage() {
306 + local output="/dev/stdout"
307 + local rc=0
308 + if [ "$1" == "error" ]; then
309 + output="/dev/stderr"
310 + rc=1
311 + fi
312 +
313 + echo "usage: plymouth [ --verbose | -v ] { --targetdir | -t } <initrd_directory>" > $output
314 + exit $rc
315 +}
316 +
317 +verbose=false
318 +INITRDDIR=""
319 +while [ $# -gt 0 ]; do
320 + case $1 in
321 + --verbose|-v)
322 + verbose=true
323 + ;;
324 + --targetdir|-t)
325 + shift
326 + INITRDDIR="$1"
327 + ;;
328 + --help|-h)
329 + usage normal
330 + ;;
331 + *)
332 + usage error
333 + break
334 + ;;
335 + esac
336 + shift
337 +done
338 +set_verbose $verbose || :
339 +
340 +[ -z "$INITRDDIR" ] && usage error
341 +
342 +mkdir -p ${INITRDDIR}${PLYMOUTH_DATADIR}/plymouth/themes
343 +inst /sbin/plymouthd $INITRDDIR /bin/plymouthd
344 +inst /bin/plymouth $INITRDDIR
345 +inst ${PLYMOUTH_DATADIR}/plymouth/themes/text/text.plymouth $INITRDDIR
346 +inst ${PLYMOUTH_PLUGIN_PATH}/text.so $INITRDDIR
347 +inst ${PLYMOUTH_DATADIR}/plymouth/themes/details/details.plymouth $INITRDDIR
348 +inst ${PLYMOUTH_PLUGIN_PATH}/details.so $INITRDDIR
349 +inst ${PLYMOUTH_LOGO_FILE} $INITRDDIR
350 +inst @RELEASE_FILE@ $INITRDDIR
351 +inst ${PLYMOUTH_POLICYDIR}/plymouthd.defaults $INITRDDIR
352 +inst ${PLYMOUTH_CONFDIR}/plymouthd.conf $INITRDDIR
353 +
354 +if [ -z "$PLYMOUTH_THEME_NAME" ]; then
355 + echo "No default plymouth plugin is set" > /dev/stderr
356 + exit 1
357 +fi
358 +
359 +PLYMOUTH_MODULE_NAME=$(grep "ModuleName *= *" ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')
360 +
361 +if [ ! -f ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so ]; then
362 + echo "The default plymouth plugin (${PLYMOUTH_MODULE_NAME}) doesn't exist" > /dev/stderr
363 + exit 1
364 +fi
365 +
366 +inst ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so $INITRDDIR
367 +
368 +inst ${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so $INITRDDIR
369 +inst ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so $INITRDDIR
370 +
371 +if [ -d ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then
372 + for x in ${PLYMOUTH_DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/* ; do
373 + [ ! -f "$x" ] && break
374 + inst $x $INITRDDIR
375 + done
376 +fi
377 +
378 +if [ -L ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth ]; then
379 + cp -a ${PLYMOUTH_DATADIR}/plymouth/themes/default.plymouth $INITRDDIR${PLYMOUTH_DATADIR}/plymouth/themes
380 +fi
381 +
382 +# vim:ts=8:sw=4:sts=4:et
383 diff -Naur plymouth-0.8.3/src/plugins/renderers/drm/Makefile.am plymouth-0.8.3.new/src/plugins/renderers/drm/Makefile.am
384 --- plymouth-0.8.3/src/plugins/renderers/drm/Makefile.am 2010-05-06 19:32:20.000000000 +0200
385 +++ plymouth-0.8.3.new/src/plugins/renderers/drm/Makefile.am 2011-02-03 19:07:04.811686193 +0100
386 @@ -1,3 +1,4 @@
387 +if ENABLE_DRM_RENDERER
388 INCLUDES = -I$(top_srcdir) \
389 -I$(srcdir)/../../../libply \
390 -I$(srcdir)/../../../libply-splash-core \
391 @@ -16,12 +17,22 @@
392 ../../../libply/libply.la \
393 ../../../libply-splash-core/libply-splash-core.la
394 drm_la_SOURCES = $(srcdir)/plugin.c \
395 - $(srcdir)/ply-renderer-driver.h \
396 - $(srcdir)/ply-renderer-i915-driver.h \
397 - $(srcdir)/ply-renderer-i915-driver.c \
398 - $(srcdir)/ply-renderer-radeon-driver.h \
399 - $(srcdir)/ply-renderer-radeon-driver.c \
400 - $(srcdir)/ply-renderer-nouveau-driver.h \
401 - $(srcdir)/ply-renderer-nouveau-driver.c
402 + $(srcdir)/ply-renderer-driver.h
403 +if ENABLE_LIBDRM_INTEL
404 +drm_la_SOURCES += $(srcdir)/ply-renderer-i915-driver.h \
405 + $(srcdir)/ply-renderer-i915-driver.c
406 +endif
407 +
408 +if ENABLE_LIBDRM_RADEON
409 +drm_la_SOURCES += $(srcdir)/ply-renderer-radeon-driver.h \
410 + $(srcdir)/ply-renderer-radeon-driver.c
411 +endif
412 +
413 +if ENABLE_LIBDRM_NOUVEAU
414 +drm_la_SOURCES += $(srcdir)/ply-renderer-nouveau-driver.h \
415 + $(srcdir)/ply-renderer-nouveau-driver.c
416 +endif
417 +
418 +endif
419
420 MAINTAINERCLEANFILES = Makefile.in
421 diff -Naur plymouth-0.8.3/src/plugins/renderers/drm/plugin.c plymouth-0.8.3.new/src/plugins/renderers/drm/plugin.c
422 --- plymouth-0.8.3/src/plugins/renderers/drm/plugin.c 2010-05-06 19:32:20.000000000 +0200
423 +++ plymouth-0.8.3.new/src/plugins/renderers/drm/plugin.c 2011-02-03 19:13:35.083078444 +0100
424 @@ -57,9 +57,15 @@
425 #include "ply-renderer.h"
426 #include "ply-renderer-plugin.h"
427 #include "ply-renderer-driver.h"
428 +#ifdef PLY_ENABLE_LIBDRM_INTEL
429 #include "ply-renderer-i915-driver.h"
430 +#endif
431 +#ifdef PLY_ENABLE_LIBDRM_RADEON
432 #include "ply-renderer-radeon-driver.h"
433 +#endif
434 +#ifdef PLY_ENABLE_LIBDRM_NOUVEAU
435 #include "ply-renderer-nouveau-driver.h"
436 +#endif
437
438 #define BYTES_PER_PIXEL (4)
439
440 @@ -443,22 +449,29 @@
441 free (driver_name);
442 return false;
443 }
444 -
445 - if (strcmp (driver_name, "i915") == 0)
446 + backend->driver_interface = NULL;
447 +#ifdef PLY_ENABLE_LIBDRM_INTEL
448 + if (backend->driver_interface == NULL && strcmp (driver_name, "i915") == 0)
449 {
450 backend->driver_interface = ply_renderer_i915_driver_get_interface ();
451 backend->driver_supports_mapping_console = true;
452 }
453 - else if (strcmp (driver_name, "radeon") == 0)
454 +#endif
455 +#ifdef PLY_ENABLE_LIBDRM_RADEON
456 + if (backend->driver_interface == NULL && strcmp (driver_name, "radeon") == 0)
457 {
458 backend->driver_interface = ply_renderer_radeon_driver_get_interface ();
459 backend->driver_supports_mapping_console = false;
460 }
461 - else if (strcmp (driver_name, "nouveau") == 0)
462 +#endif
463 +#ifdef PLY_ENABLE_LIBDRM_NOUVEAU
464 + if (backend->driver_interface == NULL && strcmp (driver_name, "nouveau") == 0)
465 {
466 backend->driver_interface = ply_renderer_nouveau_driver_get_interface ();
467 backend->driver_supports_mapping_console = false;
468 }
469 +#endif
470 +
471 free (driver_name);
472
473 if (backend->driver_interface == NULL)
474 diff -Naur plymouth-0.8.3/src/plugins/renderers/Makefile.am plymouth-0.8.3.new/src/plugins/renderers/Makefile.am
475 --- plymouth-0.8.3/src/plugins/renderers/Makefile.am 2010-05-06 19:32:20.000000000 +0200
476 +++ plymouth-0.8.3.new/src/plugins/renderers/Makefile.am 2011-02-03 19:14:06.316946754 +0100
477 @@ -1,2 +1,3 @@
478 -SUBDIRS = frame-buffer drm x11
479 +SUBDIRS = frame-buffer x11 drm
480 +
481 MAINTAINERCLEANFILES = Makefile.in
482
483
484
485 1.1 sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch
486
487 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch?rev=1.1&view=markup
488 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/0.8.3-image-replace-deprecated-libpng-function.patch?rev=1.1&content-type=text/plain
489
490 Index: 0.8.3-image-replace-deprecated-libpng-function.patch
491 ===================================================================
492 From 07329b72687ccc7a9015de4a48fae297d6d5ff96 Mon Sep 17 00:00:00 2001
493 From: Brett Witherspoon <spoonb@×××××××××.com>
494 Date: Tue, 12 Oct 2010 03:23:47 +0000
495 Subject: image: replace deprecated libpng function
496
497 The png_set_gray_1_2_4_to_8 function is deprecated and has been removed
498 from libpng14. Now png_set_expand_gray_1_2_4_to_8 is used instead which
499 is compatible with libpng-1.2.9 and greater.
500 ---
501 diff --git a/src/libply-splash-graphics/ply-image.c b/src/libply-splash-graphics/ply-image.c
502 index 9369242..4b16783 100644
503 --- a/src/libply-splash-graphics/ply-image.c
504 +++ b/src/libply-splash-graphics/ply-image.c
505 @@ -151,7 +151,7 @@ ply_image_load (ply_image_t *image)
506 png_set_palette_to_rgb (png);
507
508 if ((color_type == PNG_COLOR_TYPE_GRAY) && (bits_per_pixel < 8))
509 - png_set_gray_1_2_4_to_8 (png);
510 + png_set_expand_gray_1_2_4_to_8 (png);
511
512 if (png_get_valid (png, info, PNG_INFO_tRNS))
513 png_set_tRNS_to_alpha (png);
514 --
515 cgit v0.8.3-6-g21f6
516
517
518
519 1.1 sys-boot/plymouth/files/plymouth.initd
520
521 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/plymouth.initd?rev=1.1&view=markup
522 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/plymouth/files/plymouth.initd?rev=1.1&content-type=text/plain
523
524 Index: plymouth.initd
525 ===================================================================
526 #!/sbin/runscript
527 # Copyright 1999-2011 Gentoo Foundation
528 # Distributed under the terms of the GNU General Public License v2
529 # $Header: /var/cvsroot/gentoo-x86/sys-boot/plymouth/files/plymouth.initd,v 1.1 2011/02/21 21:08:17 aidecoe Exp $
530
531 depend() {
532 before xdm
533 }
534
535 start() {
536 ebegin "Hiding plymouth splash"
537 if pgrep plymouthd >/dev/null; then
538 /bin/plymouth --quit
539 chvt 7
540 fi
541 eend $?
542 }
543
544 stop() {
545 ebegin "Showing plymouth splash"
546 /sbin/plymouthd && /bin/plymouth --show-splash
547 eend $?
548 }