Package: lyskom-tty-client
Version: 0.13.alfa.8-3
Severity: serious
Tags: patch
Justification: no longer builds from source
debian/rules build
dh_testdir
./configure --prefix=/usr --mandir=\${prefix}/share/man
--infodir=\${prefix}/share/info
configure: loading cache /dev/null
/dev/null: line 1: ./configure:: No such file or directory
checking for a BSD-compatible install... /usr/bin/install -c
...
if gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-DEDITOR='"/usr/bin/editor"' -I./../include -I./../librar
ies/libmisc -I./../libraries/libclient -I./../intl -I../intl -g -O2 -MT
do-printf.o -MD -MP -MF ".deps/do-printf.Tpo" -c -o
do-printf.o do-printf.c; \
then mv -f ".deps/do-printf.Tpo" ".deps/do-printf.Po"; else rm -f
".deps/do-printf.Tpo"; exit 1; fi
do-printf.c:165: error: conflicting types for 'round'
make[3]: *** [do-printf.o] Error 1
make[3]: Leaving directory `/home/des/lyskom-tty-client-0.13.alfa.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/des/lyskom-tty-client-0.13.alfa.8'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/des/lyskom-tty-client-0.13.alfa.8'
make: *** [build-stamp] Error 2
This is the first error which seems a clashing with round(3), fixing that gives
an error produced by gettext 0.15, both fixed in the attached patch.
--
Damián Viano(Des) ¯ ¯ - _ _ - ¯ ¯
GPG: 0x6EB95A6F Debian ¯-_GNU_-¯ Linux
Web: http://damianv.com.ar/ ¯-¯
diff -Nura lyskom-tty-client-0.13.alfa.8/debian/rules
/home/des/.pbuilder/build/7052/home/des/lyskom-tty-client-0.13.alfa.8/debian/rules
--- lyskom-tty-client-0.13.alfa.8/debian/rules 2006-09-03 12:54:09.000000000
-0300
+++
/home/des/.pbuilder/build/7052/home/des/lyskom-tty-client-0.13.alfa.8/debian/rules
2006-09-03 12:51:02.000000000 -0300
@@ -12,6 +12,7 @@
configure: configure-stamp
configure-stamp:
dh_testdir
+ sed 's/= @MKINSTALLDIRS@/= @install_sh@ -d/' -i po/Makefile.in.in
./configure --prefix=/usr --mandir=\$${prefix}/share/man
--infodir=\$${prefix}/share/info
touch configure-stamp
diff -Nura lyskom-tty-client-0.13.alfa.8/src/do-printf.c
/home/des/.pbuilder/build/7052/home/des/lyskom-tty-client-0.13.alfa.8/src/do-printf.c
--- lyskom-tty-client-0.13.alfa.8/src/do-printf.c 2000-10-02
13:42:40.000000000 -0300
+++
/home/des/.pbuilder/build/7052/home/des/lyskom-tty-client-0.13.alfa.8/src/do-printf.c
2006-09-03 12:44:41.000000000 -0300
@@ -162,7 +162,7 @@
/* Forward declarations */
static int cvt(double, int, int, char *, unsigned char, char *, char *);
-static char *round(double, int *, char *, char *, char, char *);
+static char *my_round(double, int *, char *, char *, char, char *);
static char *exponent(char *, int, unsigned char);
@@ -585,7 +585,7 @@
*t++ = tochar((int)tmp);
} while (--prec && fract);
if (fract)
- startp = round(fract, (int *)NULL, startp,
+ startp = my_round(fract, (int *)NULL, startp,
t - 1, (char)0, signp);
}
for (; prec--; *t++ = '0');
@@ -607,7 +607,7 @@
*/
if (!prec && ++p < endp) {
fract = 0.0;
- startp = round((double)0, &expcnt, startp,
+ startp = my_round((double)0, &expcnt, startp,
t - 1, *p, signp);
}
/* adjust expcnt for digit in front of decimal */
@@ -638,7 +638,7 @@
*t++ = tochar((int)tmp);
} while (--prec && fract);
if (fract)
- startp = round(fract, &expcnt, startp,
+ startp = my_round(fract, &expcnt, startp,
t - 1, (char)0, signp);
}
/* if requires more precision */
@@ -709,7 +709,7 @@
}
}
if (fract)
- startp = round(fract, (int *)NULL, startp,
+ startp = my_round(fract, (int *)NULL, startp,
t - 1, (char)0, signp);
}
/* alternate format, adds 0's for precision, else trim 0's */
@@ -725,7 +725,7 @@
}
static char *
-round(double fract, int *exp_val, char *start, char *end, char ch, char *signp)
+my_round(double fract, int *exp_val, char *start, char *end, char ch, char
*signp)
{
double tmp;