From 128c2d5279e1aa83661ca53e2c45c86e654c7778431e2e1315bfdccee8effe50 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 24 Apr 2007 21:30:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/initviocons?expand=0&rev=2 --- initviocons.changes | 5 +++++ initviocons.ps3-hack.patch | 27 +++++++++++++++++++++++++++ initviocons.spec | 34 +++++++++++++++++++--------------- 3 files changed, 51 insertions(+), 15 deletions(-) create mode 100644 initviocons.ps3-hack.patch diff --git a/initviocons.changes b/initviocons.changes index 651f716..d12e9cd 100644 --- a/initviocons.changes +++ b/initviocons.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 24 20:48:49 CEST 2007 - olh@suse.de + +- do not run initviocons on PS3, until the kernel fb is fixed + ------------------------------------------------------------------- Wed Jan 25 21:36:37 CET 2006 - mls@suse.de diff --git a/initviocons.ps3-hack.patch b/initviocons.ps3-hack.patch new file mode 100644 index 0000000..caf4900 --- /dev/null +++ b/initviocons.ps3-hack.patch @@ -0,0 +1,27 @@ +--- + main.c | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +Index: initviocons-0.4/main.c +=================================================================== +--- initviocons-0.4.orig/main.c ++++ initviocons-0.4/main.c +@@ -157,6 +157,18 @@ int main(int argc, char *argv[]) + int cols = DEFAULT_COLS; + int lines = DEFAULT_ROWS; + char lines_s[4], cols_s[4]; ++ char model[42]; ++ ++ fd = open("/proc/device-tree/model", O_RDONLY); ++ if (fd >=0) { ++ opt = read(fd, model, sizeof(model) - 1); ++ if (opt > 0) { ++ model[opt] = '\0'; ++ if (strcmp("PLAYSTATION 3", model) == 0) ++ exit(0); ++ } ++ close(fd); ++ } + + Debug = 0; + Quiet = 0; diff --git a/initviocons.spec b/initviocons.spec index 3d168c0..8651eea 100644 --- a/initviocons.spec +++ b/initviocons.spec @@ -1,27 +1,28 @@ # # spec file for package initviocons (Version 0.4) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild -Name: initviocons -URL: http://www.iseries.de/ -Version: 0.4 -Release: 305 -Summary: Terminal initialization for the iSeries virtual console -License: GPL -Group: System/Console -Autoreqprov: on -Source: initviocons-%{version}.tar.bz2 -Patch: initviocons-%{version}.dif -Patch1: initviocons.minimal-termsize.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Name: initviocons +URL: http://www.iseries.de/ +Version: 0.4 +Release: 347 +Summary: Terminal Initialization for the iSeries Virtual Console +License: GNU General Public License (GPL) +Group: System/Console +Autoreqprov: on +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: initviocons-%{version}.tar.bz2 +Patch: initviocons-%{version}.dif +Patch1: initviocons.minimal-termsize.patch +Patch3: initviocons.ps3-hack.patch %description Initviocons can be used on the iSeries platform to recognize terminal @@ -43,6 +44,7 @@ Authors: %setup -n initviocons-%{version} %patch0 %patch1 -p1 +%patch3 -p1 %build ./configure --prefix=/ --mandir=%{_mandir} @@ -60,7 +62,9 @@ cp -p termprobes $RPM_BUILD_ROOT/usr/bin/ /bin/* /usr/bin/* -%changelog -n initviocons +%changelog +* Tue Apr 24 2007 - olh@suse.de +- do not run initviocons on PS3, until the kernel fb is fixed * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Sun Jan 08 2006 - olh@suse.de