apply patch fro sparc console
This commit is contained in:
parent
d6acba0c07
commit
4aaacfa8a6
26
initscripts-8.67-sparc-console.patch
Normal file
26
initscripts-8.67-sparc-console.patch
Normal file
@ -0,0 +1,26 @@
|
||||
--- initscripts-8.67/src/console_check.c.BAD 2008-03-25 09:26:45.000000000 -0500
|
||||
+++ initscripts-8.67/src/console_check.c 2008-03-25 09:29:08.000000000 -0500
|
||||
@@ -48,6 +48,15 @@
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
+#if defined(__sparc__)
|
||||
+static int termcmp(struct termios *a, struct termios *b)
|
||||
+{
|
||||
+ if (a->c_iflag != b->c_iflag || a->c_oflag != b->c_oflag ||
|
||||
+ a->c_cflag != b->c_cflag || a->c_lflag != b->c_lflag)
|
||||
+ return 1;
|
||||
+ return memcmp(a->c_cc, b->c_cc, sizeof(a->c_cc));
|
||||
+}
|
||||
+#else
|
||||
int termcmp(struct termios *a, struct termios *b) {
|
||||
if (a->c_iflag != b->c_iflag || a->c_oflag != b->c_oflag ||
|
||||
a->c_cflag != b->c_cflag || a->c_lflag != b->c_lflag ||
|
||||
@@ -55,6 +64,7 @@
|
||||
return 1;
|
||||
return memcmp(a->c_cc, b->c_cc, sizeof(a->c_cc));
|
||||
}
|
||||
+#endif
|
||||
|
||||
int get_serial_speed(int fd) {
|
||||
struct termios mode;
|
@ -4,8 +4,10 @@ Version: 8.67
|
||||
# ppp-watch is GPLv2+, everything else is GPLv2
|
||||
License: GPLv2 and GPLv2+
|
||||
Group: System Environment/Base
|
||||
Release: 1
|
||||
Release: 2
|
||||
Source: initscripts-%{version}.tar.bz2
|
||||
Patch0: initscripts-8.67-sparc-console.patch
|
||||
|
||||
BuildRoot: /%{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
Requires: mingetty, /bin/awk, /bin/sed, mktemp, e2fsprogs >= 1.15
|
||||
Requires: /sbin/sysctl, syslog
|
||||
@ -41,6 +43,7 @@ deactivate most network interfaces.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make
|
||||
@ -216,6 +219,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%ghost %attr(0664,root,utmp) /var/run/utmp
|
||||
|
||||
%changelog
|
||||
* Tue Mar 25 2008 Dennis Gilmore <dennis@ausil.us> - 8.67-2
|
||||
- apply patch for sparc console
|
||||
|
||||
* Tue Mar 11 2008 Bill Nottingham <notting@redhat.com> - 8.67-1
|
||||
- actually, don't
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user