Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110775 - new setserial-2.17-r3 config approach doesn`t allow some configuration to be made
Summary: new setserial-2.17-r3 config approach doesn`t allow some configuration to be ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-29 02:34 UTC by Vladimir
Modified: 2008-01-15 15:48 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2005-10-29 02:34:04 UTC
sys-apps/setserial-2.17-r2 used /etc/rc.d/config/serial file as source for
function setports(), where typically were 'setserial' commands with parameters.

in 2.17-r3 configuration moved to /etc/serial.conf (good), but now it allows
only arguments for setserial and not stty, which i used to setup some terminal
properties (for example rows & cols).

it seems to me that serial.conf is right place to configure more options than
only port parameters, so i think that serial.conf format should be extended to
allow more options.

currently, i just added some lines to /etc/init.d/serial, which is not the right
way of configuring system.

Reproducible: Always
Steps to Reproduce:
1.use /etc/rc.d/config/setserial with new ebuild
2.
3.

Actual Results:  
syntax errors

Expected Results:  
configured serial line

 Portage 2.0.51.22-r3 (hardened/x86, gcc-3.3.6, glibc-2.3.5-r1, 2.4.31-hardened i
686)
=================================================================
System uname: 2.4.31-hardened i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.2.3-r1, 2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r1, 1.5.18-r1
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
LANG="ru_RU.KOI8-R"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb cli crypt ctype dba dlloader doc gd gdbm hardened hardenedph
p iconv imap innodb jpeg lvm lvm2 maildir mode-owner mysql ncurses nls pam pcre 
pdo pear perl pic png python readline session simplexml soap ssl tcpd tiff truet
ype userlocales x86 xml xml2 xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-10-29 03:18:15 UTC
only way to extend it without breaking existing support would be to allow a
keyword, say 'stty', in the file:

<device> <args>
stty <device> <args>

then the init.d would check to see if device == stty and if so, run stty instead
of setserial
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-01-15 08:43:44 UTC
In CVS now. Sorry about the 2 year delay.
Comment 3 Vladimir 2008-01-15 15:48:28 UTC
better late than never ;-)