Package: nn
Version: 6.7.3-2.1
Severity: normal
Tags: patch
Hi,
thanks for maintaining nn. During Ubuntu's rebuild test, nn failed to
build from source[1], since it declares its own getline function. This
collides with newer eglibc though (iirc the one in experimental should
also show the problem).
Attached is a patch to rename getline.
Cheers,
Stefan.
[1]:
<http://launchpadlibrarian.net/31953727/buildlog_ubuntu-karmic-amd64.nn_6.7.3-2.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-10-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
diff -u nn-6.7.3/global.c nn-6.7.3/global.c
--- nn-6.7.3/global.c
+++ nn-6.7.3/global.c
@@ -1328,7 +1328,7 @@
*/
int
-getline(char *line, int max)
+getline_nn(char *line, int max)
{
if (fgets(line, max, stdin) == NULL)
return 0;
diff -u nn-6.7.3/global.h nn-6.7.3/global.h
--- nn-6.7.3/global.h
+++ nn-6.7.3/global.h
@@ -271,7 +271,7 @@
char *strsave(char *);
char *str3save(char *, char *, char *);
char *fgetstr(FILE *);
-int getline(char *, int);
+int getline_nn(char *, int);
extern char *tmp_directory;
extern char *nntp_cache_dir;
#endif /* _NN_GLOBAL_H */
only in patch2:
unchanged:
--- nn-6.7.3.orig/aux.c
+++ nn-6.7.3/aux.c
@@ -507,7 +507,7 @@
prompt_line = Lines - 1;
prompt("To: ");
unset_raw();
- if (getline(&cc[0], sizeof(cc)) == 0)
+ if (getline_nn(&cc[0], sizeof(cc)) == 0)
cc[0] = CR;
nn_raw();
if (cc[0] != CR)