* RE: [ECOS] libc stdio package dependency wrong?
@ 2003-09-03 15:09 Koeller, T.
0 siblings, 0 replies; 4+ messages in thread
From: Koeller, T. @ 2003-09-03 15:09 UTC (permalink / raw)
To: 'Jonathan Larmour'; +Cc: ecos-discuss (E-Mail)
> Jonathan Larmour wrote:
> > Koeller, T. wrote:
> >
> >> Hi,
> >>
> >> the stdio package (CYGPKG_LIBC_STDIO) requires
> >> CYGPKG_IO_SERIAL_HALDIAG. Is this intended? I
> >> want to use a regular /dev/tyyx device instead,
> >> so I could get rid of the haldiag device, but I
> >> can't because of this dependency.
> >>
> >> Wouldn't it be better to have a cdl_interface
> >> for tty drivers to implement and use that instead
> >> of requiring the haldiag driver?
> >
> >
> > Nah, just want to catch the simple case. Instead, I think
> we can get
> > away with something like
> >
> > requires { (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE=="/dev/ttydiag" ?
> > CYGPKG_IO_SERIAL_HALDIAG : 1) }
>
> Oops, I never finished.... what I was going to say was: try
> it and see,
> and if it does what you expect I'll commit it.
>
> Jifl
Here's the patch, works as expected.
tk
--- packages-orig/language/c/libc/stdio/current/ChangeLog 2003-08-20
10:58:11.000000000 +0200
+++ packages/language/c/libc/stdio/current/ChangeLog 2003-09-03
16:58:04.000000000 +0200
@@ -1,3 +1,7 @@
+2003-09-03 Thomas Koeller <thomas.koeller@baslerweb.com>
+
+ * cdl/stdio.cdl: only require "/dev/haldiag" if actually using it.
+
2003-08-12 Scott Wilkinson <scott@alliantnetworks.com>
* src/common/fclose.cxx (fclose): fclose would seg-fault if passed
--- packages-orig/language/c/libc/stdio/current/cdl/stdio.cdl 2003-03-06
21:57:26.000000000 +0100
+++ packages/language/c/libc/stdio/current/cdl/stdio.cdl 2003-09-03
16:17:36.000000000 +0200
@@ -58,7 +58,6 @@
include_dir cyg/libc/stdio
parent CYGPKG_LIBC
requires CYGPKG_IO
- requires CYGPKG_IO_SERIAL_HALDIAG
requires CYGPKG_LIBC_I18N
implements CYGINT_ISO_STDIO_FILETYPES
implements CYGINT_ISO_STDIO_FILEACCESS
@@ -67,6 +66,8 @@
implements CYGINT_ISO_STDIO_DIRECT_IO
implements CYGINT_ISO_STDIO_ERROR
implements CYGINT_ISO_STDIO_STREAMS
+ requires { (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE ==
"\"/dev/ttydiag\"" ? \
+ CYGPKG_IO_SERIAL_HALDIAG : 1) }
requires { CYGBLD_ISO_STDIO_FILETYPES_HEADER == \
"<cyg/libc/stdio/stdio.h>" }
requires { CYGBLD_ISO_STDIO_FILEACCESS_HEADER == \
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] libc stdio package dependency wrong?
2003-09-03 3:07 ` Jonathan Larmour
@ 2003-09-03 3:15 ` Jonathan Larmour
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2003-09-03 3:15 UTC (permalink / raw)
To: Koeller, T.; +Cc: ecos-discuss (E-Mail)
Jonathan Larmour wrote:
> Koeller, T. wrote:
>
>> Hi,
>>
>> the stdio package (CYGPKG_LIBC_STDIO) requires
>> CYGPKG_IO_SERIAL_HALDIAG. Is this intended? I
>> want to use a regular /dev/tyyx device instead,
>> so I could get rid of the haldiag device, but I
>> can't because of this dependency.
>>
>> Wouldn't it be better to have a cdl_interface
>> for tty drivers to implement and use that instead
>> of requiring the haldiag driver?
>
>
> Nah, just want to catch the simple case. Instead, I think we can get
> away with something like
>
> requires { (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE=="/dev/ttydiag" ?
> CYGPKG_IO_SERIAL_HALDIAG : 1) }
Oops, I never finished.... what I was going to say was: try it and see,
and if it does what you expect I'll commit it.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] libc stdio package dependency wrong?
2003-09-02 11:14 Koeller, T.
@ 2003-09-03 3:07 ` Jonathan Larmour
2003-09-03 3:15 ` Jonathan Larmour
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Larmour @ 2003-09-03 3:07 UTC (permalink / raw)
To: Koeller, T.; +Cc: ecos-discuss (E-Mail)
Koeller, T. wrote:
> Hi,
>
> the stdio package (CYGPKG_LIBC_STDIO) requires
> CYGPKG_IO_SERIAL_HALDIAG. Is this intended? I
> want to use a regular /dev/tyyx device instead,
> so I could get rid of the haldiag device, but I
> can't because of this dependency.
>
> Wouldn't it be better to have a cdl_interface
> for tty drivers to implement and use that instead
> of requiring the haldiag driver?
Nah, just want to catch the simple case. Instead, I think we can get away
with something like
requires { (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE=="/dev/ttydiag" ?
CYGPKG_IO_SERIAL_HALDIAG : 1) }
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ECOS] libc stdio package dependency wrong?
@ 2003-09-02 11:14 Koeller, T.
2003-09-03 3:07 ` Jonathan Larmour
0 siblings, 1 reply; 4+ messages in thread
From: Koeller, T. @ 2003-09-02 11:14 UTC (permalink / raw)
To: ecos-discuss (E-Mail)
Hi,
the stdio package (CYGPKG_LIBC_STDIO) requires
CYGPKG_IO_SERIAL_HALDIAG. Is this intended? I
want to use a regular /dev/tyyx device instead,
so I could get rid of the haldiag device, but I
can't because of this dependency.
Wouldn't it be better to have a cdl_interface
for tty drivers to implement and use that instead
of requiring the haldiag driver?
tk
-----------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390
mailto:Thomas.Koeller@baslerweb.com
http://www.baslerweb.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-03 15:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 15:09 [ECOS] libc stdio package dependency wrong? Koeller, T.
-- strict thread matches above, loose matches on Subject: below --
2003-09-02 11:14 Koeller, T.
2003-09-03 3:07 ` Jonathan Larmour
2003-09-03 3:15 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).