Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309883 - sys-apps/setserial broken with sys-kernel/linux-headers-2.6.33 due to removal of linux/hayesesp.h
Summary: sys-apps/setserial broken with sys-kernel/linux-headers-2.6.33 due to removal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://permalink.gmane.org/gmane.comp...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 00:49 UTC by Gary Stein
Modified: 2011-10-30 23:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for ebuild (setserial-2.17-linuxheaders.patch,61 bytes, patch)
2010-03-22 23:24 UTC, Mark Breddemann
Details | Diff
modified ebuild to apply patch (setserial-2.17-r4.ebuild,1.12 KB, text/plain)
2010-03-22 23:24 UTC, Mark Breddemann
Details
setserial.c patch (setserial-2.17-linuxheaders.patch,285 bytes, patch)
2010-03-25 20:51 UTC, Marcin Deranek
Details | Diff
Ebuild patch (ebuild.diff,349 bytes, patch)
2010-03-25 20:52 UTC, Marcin Deranek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Stein 2010-03-17 00:49:49 UTC
As it says in the link, linux/hayesesp.h was apparently removed in 2.6.33, included in the linux is a patch...which pretty much just does a #undef TIOCGHAYESESP

For those that have old Hayes modems might be mad...but I can confirm it fixes the problem.  This is both x86 and amd64.

gary 

Reproducible: Always

Steps to Reproduce:
1.  Upgrade to linux headers 2.6.33 (in ~x86)
2.  Try to install setserial
3.  Fail on a error: storage size of 'esp' isn't known because hayesesp.h doesn't exist 

Actual Results:  
Crashes with error: storage size of 'esp' isn't known problem

Expected Results:  
compile fully

#undef TIOCGHAYESESP

on line 32 of setserial.c fixes it.

Of anyone still does serial stuff it is a nice set of tools to have.
Comment 1 Mark Breddemann 2010-03-22 23:24:30 UTC
Created attachment 224787 [details, diff]
patch for ebuild
Comment 2 Mark Breddemann 2010-03-22 23:24:51 UTC
Created attachment 224789 [details]
modified ebuild to apply patch
Comment 3 Mark Breddemann 2010-03-22 23:25:14 UTC
Same here, fixed with the attached files.
Comment 4 SpanKY gentoo-dev 2010-03-23 20:39:44 UTC
Comment on attachment 224789 [details]
modified ebuild to apply patch

post ebuild unified diffs, not entire ebuilds
Comment 5 SpanKY gentoo-dev 2010-03-23 20:40:18 UTC
Comment on attachment 224787 [details, diff]
patch for ebuild

post unified diffs, not context -- these are terrible for reading and/or reviewing
Comment 6 Marcin Deranek 2010-03-25 20:51:49 UTC
Created attachment 225257 [details, diff]
setserial.c patch
Comment 7 Marcin Deranek 2010-03-25 20:52:30 UTC
Created attachment 225259 [details, diff]
Ebuild patch
Comment 8 Artur Frysiak 2010-03-26 15:14:54 UTC
From linux-2.6 git repo:

commit f53a2ade0bb9f2a81f473e6469155172a96b7c38
Author: Alan Cox <alan@linux.intel.com>
Date:   Fri Oct 9 12:56:41 2009 +0100

    tty: esp: remove broken driver

    The ESP driver has been marked broken for years. It's an old ISA device
    that clearly nobody cares about any more. Remove it

    Signed-off-by: Alan Cox <alan@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 Documentation/serial/hayes-esp.txt |  154 ---
 drivers/char/Kconfig               |   13 -
 drivers/char/Makefile              |    1 -
 drivers/char/esp.c                 | 2533 ------------------------------------
 include/linux/Kbuild               |    1 -
 include/linux/hayesesp.h           |  114 --
 6 files changed, 0 insertions(+), 2816 deletions(-)
Comment 9 Sunit Das 2010-04-09 16:14:47 UTC
So, are these patches good?  Bump?