Package: linpqa
Version: 0.51-4
Severity: normal
Tags: patch
Hello,
pilot-link 0.12.0 is now stable and available. The Debian package is
available from experimental. Before uploading it to unstable and replace
libpisock8 by libpisock9 I try to recompile every package using
libpisock8.
linpqa fails to build for obvious reasons.
Proposed patch:
--- linpqa-0.51.orig/PQAcompile.c
+++ linpqa-0.51/PQAcompile.c
@@ -19,10 +19,10 @@
//#include <libhtmlparse.h>
-#include <libpisock/pi-source.h>
-#include <libpisock/pi-socket.h>
-#include <libpisock/pi-dlp.h>
-#include <libpisock/pi-file.h>
+#include <pi-source.h>
+#include <pi-socket.h>
+#include <pi-dlp.h>
+#include <pi-file.h>
#define TYPE_HTML 4
@@ -180,6 +180,7 @@
// return(0);
//}
+#if 0
static time_t
pilot_time_to_unix_time (unsigned long raw_time)
{
@@ -191,6 +192,7 @@
{
return (unsigned long)((unsigned long)t + PILOT_TIME_DELTA);
}
+#endif
int load_bitmap(char *image[], FILE *in)
--- linpqa-0.51.orig/PQAdecompile.c
+++ linpqa-0.51/PQAdecompile.c
@@ -21,11 +21,12 @@
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
+#include <string.h>
-#include <libpisock/pi-source.h>
-#include <libpisock/pi-socket.h>
-#include <libpisock/pi-dlp.h>
-#include <libpisock/pi-file.h>
+#include <pi-source.h>
+#include <pi-socket.h>
+#include <pi-dlp.h>
+#include <pi-file.h>
#ifdef sun
extern char* optarg;
@@ -88,10 +89,7 @@
exit (1);
}
- if (pi_file_get_info (pf, &info) < 0) {
- fprintf (stderr, "can't get info\n\n");
- exit (1);
- }
+ pi_file_get_info (pf, &info);
if(vflag)
dump_header (pf, &info);
@@ -1173,10 +1171,7 @@
int i, pos,x, y, tmp;
char *buf;
- if (pi_file_get_app_info (pf, &app_info, &app_info_size) < 0) {
- printf ("can't get app_info\n\n");
- return;
- }
+ pi_file_get_app_info (pf, &app_info, &app_info_size);
printf ("app_info_size %d\n", app_info_size);
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (90, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.8-mactel
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]