Package: plymouth
Version: 0.7.2-1
Severity: grave

Hi,
if anything goes wrong plymouth falls back to text mode, however
plymouthd then crashes since it can't parse the release info file.
Attached to patches fix this. The second one sets the correct path during
configure while the first one fixes the parsing function to parse what
Debian expects. This way plymouth at least works in text mode. Please
apply.
Cheers,
 -- Guido


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.33 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From 98be8f4e9f72fb8be85228fd3f3a935205c75c72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org>
Date: Fri, 12 Mar 2010 20:54:49 +0100
Subject: [PATCH 1/2] Parse /etc/debian_version

---
 src/libplybootsplash/ply-text-progress-bar.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/src/libplybootsplash/ply-text-progress-bar.c b/src/libplybootsplash/ply-text-progress-bar.c
index 1f97206..f7127b2 100644
--- a/src/libplybootsplash/ply-text-progress-bar.c
+++ b/src/libplybootsplash/ply-text-progress-bar.c
@@ -109,15 +109,7 @@ get_os_string (void)
    read(fd, buf, sbuf.st_size);
    close(fd);
    
-   pos = strstr(buf, " release ");
-   if (!pos) goto out;
-   pos2 = strstr(pos, " (");
-   if (!pos2) goto out;
-   *pos = '\0';
-   pos+= 9;
-   *pos2 = '\0';
-   asprintf(&os_string," %s %s", buf, pos);
-out:
+   asprintf(&os_string," Debian %s", buf);
    free(buf);
 }
 
-- 
1.7.0

>From ad371556519d65226021440e1033e34aa2984972 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org>
Date: Fri, 12 Mar 2010 20:55:31 +0100
Subject: [PATCH 2/2] Parse /etc/debian_version

---
 debian/rules |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/debian/rules b/debian/rules
index 3f341bd..0c5fd17 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,8 @@ override_dh_auto_configure:
 	dh_auto_configure -- --prefix=/usr --localstatedir=/var --enable-pango \
 		--enable-tracing --disable-tests --enable-gdm-transition \
 		--with-system-root-install --without-rhgb-compat-link \
-		--with-gdm-autostart-file --without-default-plugin
+		--with-gdm-autostart-file --without-default-plugin \
+		--with-release-file=/etc/debian_version
 
 	#	--with-logo=$(CURDIR)/debian/local/logo.png \
 	#	--with-background-color=0x3391cd \
-- 
1.7.0

Reply via email to