Your message dated Tue, 17 Feb 2009 21:25:31 GMT
with message-id <[email protected]>
and subject line gradio has been removed from Debian, closing #191920
has caused the Debian Bug report #191920,
regarding gradio: should support another device
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
191920: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=191920
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gradio
Version: 1.0.1-6
Severity: normal
Tags: patch
Hi, it would be nice if gradio supported another device.
The real device for devfs is /dev/v4l/radio0, /dev/radio0 would probably
be a symlink to the other on machines that have this.
unfortunately mine does not so I'd like you to include this patch.
I've also sent a almost identical patch to upstream as well. so this
support should appear there to.
Thanks.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bart 2.4.21-pre5-ac1 #1 Sun Apr 27 23:14:21 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages gradio depends on:
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libglib1.2 1.2.10-8 The GLib library of C routines
ii libgtk1.2 1.2.10-14 The GIMP Toolkit set of widgets fo
ii xlibs 4.2.1-6 X Window System client libraries
-- no debconf information
diff -aur orig/gradio-1.0.1/Makefile gradio-1.0.1/Makefile
--- orig/gradio-1.0.1/Makefile 2003-05-05 09:29:53.000000000 +1000
+++ gradio-1.0.1/Makefile 2003-05-05 09:45:48.000000000 +1000
@@ -25,10 +25,6 @@
BINDIR = $(INSTALLROOT)/bin
MANDIR = $(INSTALLROOT)/man/man1
-# The device to access by default (can be changed at runtime)
-DEVICE = /dev/radio
-DEVFS_DEVICE = /dev/radio0
-
# These should be OK ---------------------------------------
CC = cc
@@ -37,7 +33,7 @@
SRCS = ui.c gradio-main.c callbacks.c interface.c lowlevel.c
OBJS = $(SRCS:.c=.o)
HDRS = gradio.h pixmaps.h logo.h
-DEFS = -D$(COLOR) -DDEV_NAME=\"$(DEVICE)\"
-DDEVFS_DEV_NAME=\"$(DEVFS_DEVICE)\"
+DEFS = -D$(COLOR)
all: $(SRCS) $(HDRS) $(OBJS)
$(CC) -o gradio $(OBJS) $(ALL_CFLAGS) $(LIBS)
diff -aur orig/gradio-1.0.1/gradio-main.c gradio-1.0.1/gradio-main.c
--- orig/gradio-1.0.1/gradio-main.c 2003-05-05 09:29:53.000000000 +1000
+++ gradio-1.0.1/gradio-main.c 2003-05-05 09:48:28.000000000 +1000
@@ -29,6 +29,14 @@
radio_status gr_stat;
+/* only 128 bytes are allocated */
+char *devices[] = {
+ "/dev/radio",
+ "/dev/radio0",
+ "/dev/v4l/radio0",
+ NULL
+};
+
int gradio_init (int argc, char **argv)
{
FILE *rcfile;
@@ -41,14 +49,13 @@
int opt;
int cli_only = FALSE;
int volume = -1, mute = -1, freq = -1;
+ int found = FALSE, d = 0;
- /* Initially, use the compiled-in device.
- * We should check whether we're using Linux devfs,
- * and if we are, default to that device. */
- if (stat(DEVFS_DEV_NAME, stat_tmp) == 0) {
- strncpy(gr_stat.dev_name, DEVFS_DEV_NAME, 128);
- } else {
- strncpy (gr_stat.dev_name, DEV_NAME, 128);
+ for (d = 0; ((devices[d] != NULL) || (! found)); d++) {
+ if (stat(devices[d], stat_tmp) == 0) {
+ strncpy(gr_stat.dev_name, devices[d], 128);
+ found = TRUE;
+ }
}
if (stat_tmp) free(stat_tmp);
Only in gradio-1.0.1: install-stamp
--- End Message ---
--- Begin Message ---
Version: 1.0.1-7+rm
The gradio package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.
For more information about this package's removal, read
http://bugs.debian.org/515669 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
Kind regards,
--
Marco Rodrigues
--- End Message ---