Package: awesfx
Version: 0.5.1a-1
Severity: normal
Tags: patch
Hi,
during Ubuntu's rebuild test, awesfx failed to build[1]. The reason is that
getline is a definition in the newer eglibc (as per POSIX 2008 afair).
Attached is a patch to rename the local getline function to getline_local.
Would be excellent, if you could include this patch in the package.
Thanks,
Stefan.
[1]:
<http://launchpadlibrarian.net/31571526/buildlog_ubuntu-karmic-amd64.awesfx_0.5.1a-1_FAILEDTOBUILD.txt.gz>
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-12-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages awesfx depends on:
ii libasound2 1.0.20-3ubuntu5 shared library for ALSA applicatio
ii libc6 2.10.1-0ubuntu15 GNU C Library: Shared libraries
awesfx recommends no packages.
Versions of packages awesfx suggests:
pn aumix <none> (no description available)
-- no debconf information
--- awesfx-0.5.1a.orig/setfx.c
+++ awesfx-0.5.1a/setfx.c
@@ -37,7 +37,7 @@
/*----------------------------------------------------------------*/
static void usage(void);
-static int getline(FILE *fp);
+static int getline_local(FILE *fp);
static int nextline(FILE *fp);
static char *gettok(FILE *fp);
static char *divtok(char *src, char *divs, int only_one);
@@ -126,7 +126,7 @@
}
curline = 0;
- if (!getline(fp))
+ if (!getline_local(fp))
return 0;
seq_init(seq_devname, seq_devidx);
@@ -370,7 +370,7 @@
* read a line and parse tokens
*----------------------------------------------------------------*/
-static int getline(FILE *fp)
+static int getline_local(FILE *fp)
{
char *p;
curline++;
@@ -393,12 +393,12 @@
{
if (connected) {
do {
- if (! getline(fp))
+ if (! getline_local(fp))
return FALSE;
} while (connected);
return TRUE;
} else {
- return getline(fp);
+ return getline_local(fp);
}
}
@@ -415,7 +415,7 @@
tok = divtok(NULL, " \t\r\n", FALSE);
while (tok == NULL || *tok == 0) {
if (! connected) return NULL;
- if (! getline(fp)) return NULL;
+ if (! getline_local(fp)) return NULL;
tok = divtok(line, " \t\r\n", FALSE);
}
return tok;