[packages/pilot-link] Up to 0.15.0

arekm arekm at pld-linux.org
Fri Nov 27 21:52:31 CET 2026


commit b094728577a3a668dca30bd167479f0bc02e784f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:42:39 2026 +0100

    Up to 0.15.0

 pilot-link-0.12.5-redefinePerlsymbols.patch | 584 ----------------------------
 pilot-link-ac.patch                         |  47 ---
 pilot-link-format.patch                     |  49 ---
 pilot-link-iconv-check.patch                |  15 +
 pilot-link-libpng.patch                     | 100 -----
 pilot-link-man.patch                        |  18 +-
 pilot-link-open.patch                       |  40 --
 pilot-link-python-version.patch             |  12 +
 pilot-link.spec                             |  69 ++--
 types.patch                                 |  49 ---
 10 files changed, 80 insertions(+), 903 deletions(-)
---
diff --git a/pilot-link.spec b/pilot-link.spec
index e143c09..51a05db 100644
--- a/pilot-link.spec
+++ b/pilot-link.spec
@@ -5,6 +5,7 @@
 %bcond_without	perl	# Perl bindings
 %bcond_without	python	# Python bindings
 %bcond_with	tcl	# Tcl/Tk bindings
+%bcond_without	tests	# unit tests
 #
 Summary:	File transfer utilities between Linux and PalmPilots
 Summary(es.UTF-8):	Bibliotecas estáticas necesarias para generar aplicaciones Pilot
@@ -13,25 +14,21 @@ Summary(pt_BR.UTF-8):	Utilitários de transferência de dados entre Unix e o Pil
 Summary(ru.UTF-8):	Утилита пересылки файлов между Linux и PalmPilot
 Summary(uk.UTF-8):	Утиліта пересилки файлів між Linux та PalmPilot
 Name:		pilot-link
-Version:	0.12.5
-Release:	18
+Version:	0.15.0
+Release:	1
 License:	GPL v2+
 Group:		Applications/Communications
-Source0:	http://downloads.pilot-link.org/%{name}-%{version}.tar.bz2
-# Source0-md5:	568c55bf504b044f6fbd50baa407c990
-Patch0:		%{name}-ac.patch
-Patch1:		%{name}-open.patch
-Patch2:		%{name}-man.patch
-Patch3:		%{name}-libpng.patch
-Patch4:		%{name}-format.patch
-# from fc
-Patch5:		pilot-link-0.12.5-redefinePerlsymbols.patch
-Patch6:		types.patch
-URL:		http://www.pilot-link.org/
+Source0:	https://github.com/desrod/pilot-link/releases/download/v%{version}/%{name}-%{version}.tar.xz
+# Source0-md5:	22bab5d4366f97d0e9ed47cf30f8ef34
+Patch0:		%{name}-man.patch
+Patch1:		%{name}-python-version.patch
+Patch2:		%{name}-iconv-check.patch
+URL:		https://github.com/desrod/pilot-link
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake
 BuildRequires:	bison
 BuildRequires:	bluez-libs-devel
+BuildRequires:	iconv
 BuildRequires:	libpng-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
@@ -41,8 +38,10 @@ BuildRequires:	perl-base >= 1:5.6
 %{?with_perl:BuildRequires:	perl-devel >= 1:5.6}
 BuildRequires:	pkgconfig
 BuildRequires:	popt-devel
-%{?with_python:BuildRequires:	python-devel >= 2}
-BuildRequires:	python-modules
+%if %{with python}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+%endif
 BuildRequires:	readline-devel >= 5.0
 BuildRequires:	rpmbuild(macros) >= 1.745
 %if %{with tcl}
@@ -186,16 +185,17 @@ PDA::Pilot - Perl binding to pilot-link library.
 %description -n perl-PDA-Pilot -l pl.UTF-8
 PDA::Pilot - wiązanie Perla do biblioteki pilot-link.
 
-%package -n python-pilot-link
+%package -n python3-pilot-link
 Summary:	Python binding to pilot-link library
 Summary(pl.UTF-8):	Wiązanie Pythona do biblioteki pilot-link
 Group:		Libraries/Python
 Requires:	%{name}-libs = %{version}-%{release}
+Obsoletes:	python-pilot-link < 0.15.0-1
 
-%description -n python-pilot-link
+%description -n python3-pilot-link
 Python binding to pilot-link library.
 
-%description -n python-pilot-link -l pl.UTF-8
+%description -n python3-pilot-link -l pl.UTF-8
 Wiązanie Pythona do biblioteki pilot-link.
 
 %prep
@@ -203,10 +203,6 @@ Wiązanie Pythona do biblioteki pilot-link.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
-%patch -P3 -p1
-%patch -P4 -p1
-%patch -P5 -p1
-%patch -P6 -p1
 
 %if "%{_lib}" != "lib"
 %{__sed} -i -e 's#/lib\>#/%{_lib}#g' m4/python.m4
@@ -225,9 +221,11 @@ Wiązanie Pythona do biblioteki pilot-link.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+# JAVA* from the builder environment would enable Java bindings that need jni.h
 %configure \
-	PYTHON="%{__python}" \
+	PYTHON="%{__python3}" \
 	ac_cv_lib_iconv_libiconv=no \
+	JAVA= JAVAC= JAR= \
 	%{!?debug:--disable-debug} \
 	--enable-conduits \
 	--enable-libusb \
@@ -242,16 +240,24 @@ Wiązanie Pythona do biblioteki pilot-link.
 %{__make} -j1 \
 	LIBDIR="%{_datadir}"
 
+%if %{with tests}
+%{__make} -j1 check
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with perl}
+%{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PDA/Pilot/.packlist
+%endif
+
 %if %{with python}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_postclean
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
 %endif
 
 %clean
@@ -305,10 +311,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python}
-%files -n python-pilot-link
+%files -n python3-pilot-link
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/_pisock.so
-%{py_sitedir}/pisock.py[co]
-%{py_sitedir}/pisockextras.py[co]
-%{py_sitedir}/python_libpisock-%{version}-py*.egg-info
+%attr(755,root,root) %{py3_sitedir}/_pisock.cpython-*.so
+%{py3_sitedir}/pisock.py
+%{py3_sitedir}/pisockextras.py
+%{py3_sitedir}/__pycache__/pisock*.py[co]
+%{py3_sitedir}/python_libpisock-%{version}-py*.egg-info
 %endif
diff --git a/pilot-link-0.12.5-redefinePerlsymbols.patch b/pilot-link-0.12.5-redefinePerlsymbols.patch
deleted file mode 100644
index cdeb1d8..0000000
--- a/pilot-link-0.12.5-redefinePerlsymbols.patch
+++ /dev/null
@@ -1,584 +0,0 @@
-diff -up pilot-link-0.12.5/bindings/Perl/Pilot.xs.symbol pilot-link-0.12.5/bindings/Perl/Pilot.xs
---- pilot-link-0.12.5/bindings/Perl/Pilot.xs.symbol	2007-11-12 18:49:54.000000000 +0100
-+++ pilot-link-0.12.5/bindings/Perl/Pilot.xs	2011-07-01 16:03:35.080212371 +0200
-@@ -47,6 +47,10 @@
- 
- #include "const-c.inc"
- 
-+#ifndef sv_yes 
-+#define sv_yes PL_sv_yes 
-+#define sv_no PL_sv_no 
-+#endif
- 
- typedef unsigned char * CPTR;
- 
-@@ -160,7 +164,7 @@ SvChar4(arg)
- 
- #define pack_dbinfo(arg, var, failure) {	\
- 		if (failure < 0)  {		\
--			arg = &sv_undef;	\
-+			arg = &PL_sv_undef;	\
- 			self->errnop = failure;	\
- 		} else {			\
- 			HV * i = newHV();	\
-@@ -214,15 +218,15 @@ SvChar4(arg)
- 		var.createDate 	= (s = hv_fetch(i, "createDate", 10, 0)) ? SvIV(*s) : 0;\
- 		var.modifyDate 	= (s = hv_fetch(i, "modifyDate", 10, 0)) ? SvIV(*s) : 0;\
- 		var.backupDate 	= (s = hv_fetch(i, "backupDate", 10, 0)) ? SvIV(*s) : 0;\
--		if ((s = hv_fetch(i, "name", 4, 0)) ? SvPV(*s,na) : 0)		\
--			strncpy(var.name, SvPV(*s, na), sizeof(var.name));	\
-+		if ((s = hv_fetch(i, "name", 4, 0)) ? SvPV(*s,PL_na) : 0)		\
-+			strncpy(var.name, SvPV(*s, PL_na), sizeof(var.name));	\
- 		} else	{\
- 			croak("argument is not a hash reference");		\
- 		}
- 
- #define pack_userinfo(arg, var, failure) {	\
- 	if (failure < 0)  {			\
--		arg = &sv_undef;		\
-+		arg = &PL_sv_undef;		\
- 		self->errnop = failure;		\
- 	} else {				\
- 		HV * i = newHV();		\
-@@ -246,8 +250,8 @@ SvChar4(arg)
- 		var.lastSyncPC 		= (s = hv_fetch(i, "lastSyncPC",         10, 0)) ? SvIV(*s) : 0;\
- 		var.lastSyncDate 	= (s = hv_fetch(i, "lastSyncDate",       12, 0)) ? SvIV(*s) : 0;\
- 		var.successfulSyncDate 	= (s = hv_fetch(i, "successfulSyncDate", 18, 0)) ? SvIV(*s) : 0;\
--		if ((s = hv_fetch(i, "name", 4, 0)) ? SvPV(*s,na) : 0)\
--			strncpy(var.username, SvPV(*s, na), sizeof(var.username));\
-+		if ((s = hv_fetch(i, "name", 4, 0)) ? SvPV(*s,PL_na) : 0)\
-+			strncpy(var.username, SvPV(*s, PL_na), sizeof(var.username));\
- 		} else	{\
- 			croak("argument is not a hash reference");\
- 		}
-@@ -287,7 +291,7 @@ SvChar4(arg)
- 	    	}\
- 	} else {\
- 		self->errnop = result;\
--		PUSHs(&sv_undef);\
-+		PUSHs(&PL_sv_undef);\
- 	}
- 
- #define PackSI\
-@@ -329,7 +333,7 @@ SvChar4(arg)
- 	    	}\
- 		} else {\
- 	    	self->errnop = result;\
--	    	PUSHs(&sv_undef);\
-+	    	PUSHs(&PL_sv_undef);\
- 	    }
- 
- #define PackRecord {\
-@@ -421,7 +425,7 @@ SvChar4(arg)
- 	    	}\
- 		} else {\
- 	    	self->errnop = result;\
--	    	PUSHs(&sv_undef);\
-+	    	PUSHs(&PL_sv_undef);\
- 	    }
- 
- #define PackResource\
-@@ -473,7 +477,7 @@ SvChar4(arg)
- 	    	}\
- 		} else {\
- 	    	self->errnop = result;\
--	    	PUSHs(&sv_undef);\
-+	    	PUSHs(&PL_sv_undef);\
- 	    }
- 
- #define PackPref\
-@@ -536,7 +540,7 @@ SvChar4(arg)
- 	    		croak("Unable to create resource");\
- 		} else {\
- 	    	self->errnop = result;\
--	    	PUSHs(&sv_undef);\
-+	    	PUSHs(&PL_sv_undef);\
- 	    }
- 
- void doUnpackCategory(HV * self, struct CategoryAppInfo * c)
-@@ -576,7 +580,7 @@ void doPackCategory(HV * self, struct Ca
- 	
-     if ((s = hv_fetch(self, "categoryName", 12, 0)) && SvOK(*s) && SvRV(*s) && (SvTYPE(av=(AV*)SvRV(*s))==SVt_PVAV))
-     	for (i=0;i<16;i++)
--    		strncpy(c->name[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,na) : "", 16);
-+    		strncpy(c->name[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,PL_na) : "", 16);
- 	else
- 		for (i=0;i<16;i++)
- 			strcpy(c->name[i], "");
-@@ -602,7 +606,7 @@ void doPackCategory(HV * self, struct Ca
- int SvList(SV * arg, char **list)
- {
- 	int i;
--	char * str = SvPV(arg, na);
-+	char * str = SvPV(arg, PL_na);
- 	for (i=0;list[i];i++)
- 		if (strcasecmp(list[i], str)==0)
- 			return i;
-@@ -781,11 +785,11 @@ Pack(record)
- 		    croak("Invalid advance unit %d encountered", u);
- 		}
- 	    } else {
--	    	if (strEQ(SvPV(*s, na), "minutes"))
-+	    	if (strEQ(SvPV(*s, PL_na), "minutes"))
- 		    u = 0;
--	    	else if (strEQ(SvPV(*s, na), "hours"))
-+	    	else if (strEQ(SvPV(*s, PL_na), "hours"))
- 		    u = 1;
--	    	else if (strEQ(SvPV(*s, na), "days"))
-+	    	else if (strEQ(SvPV(*s, PL_na), "days"))
- 		    u = 2;
- 	    	else
- 		    croak("Invalid advance unit %d encountered", u);
-@@ -850,10 +854,10 @@ Pack(record)
- 		}
-     }    	
- 
--    a.description = (s = hv_fetch(h, "description", 11, 0)) ? SvPV(*s,na) : 0;
-+    a.description = (s = hv_fetch(h, "description", 11, 0)) ? SvPV(*s,PL_na) : 0;
-     if (!a.description)
-         croak("appointments must contain a description");
--    a.note = (s = hv_fetch(h, "note", 4, 0)) ? SvPV(*s,na) : 0;
-+    a.note = (s = hv_fetch(h, "note", 4, 0)) ? SvPV(*s,PL_na) : 0;
- 
-     if (pack_Appointment(&a, &pibuf, datebook_v1) < 0) {
- 	croak("pack_Appointment failed");
-@@ -897,7 +901,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_AppointmentAppInfo(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_AppointmentAppInfo(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 		doUnpackCategory(ret, &a.category);
- 	
-@@ -1023,8 +1027,8 @@ Pack(record)
-     	a.indefinite = 1;
-     }
-     
--    a.description = (s = hv_fetch(h, "description", 11, 0)) ? SvPV(*s,na) : 0;
--    a.note = (s = hv_fetch(h, "note", 4, 0)) ? SvPV(*s,na) : 0;
-+    a.description = (s = hv_fetch(h, "description", 11, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.note = (s = hv_fetch(h, "note", 4, 0)) ? SvPV(*s,PL_na) : 0;
- 
-     if (pack_ToDo(&a, &pibuf, todo_v1) < 0) {
- 	croak("pack_ToDo failed");
-@@ -1065,7 +1069,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_ToDoAppInfo(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_ToDoAppInfo(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    doUnpackCategory(ret, &a.category);
- 
-@@ -1160,7 +1164,7 @@ Unpack(record)
- 	hv_store(ret, "entry", 5, newRV_noinc((SV*)e), 0);
- 	
- 	for (i=0;i<19;i++) {
--	    av_push(e, a.entry[i] ? newSVpv(a.entry[i],0) : &sv_undef);
-+	    av_push(e, a.entry[i] ? newSVpv(a.entry[i],0) : &PL_sv_undef);
- 	}
- 	    
- 	hv_store(ret, "showPhone", 9, newSViv(a.showPhone), 0);
-@@ -1200,7 +1204,7 @@ Pack(record)
- 
-     if ((s = hv_fetch(h, "entry", 5, 0)) && SvOK(*s) && SvRV(*s) && (SvTYPE(av=(AV*)SvRV(*s))==SVt_PVAV))
-     	for (i=0;i<19;i++)
--    		a.entry[i] = ((s=av_fetch(av, i, 0)) && SvOK(*s)) ? SvPV(*s,na) : 0;
-+    		a.entry[i] = ((s=av_fetch(av, i, 0)) && SvOK(*s)) ? SvPV(*s,PL_na) : 0;
- 	else
- 		for (i=0;i<19;i++)
- 			a.entry[i] = 0;
-@@ -1249,7 +1253,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_AddressAppInfo(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_AddressAppInfo(&a, (CPTR)SvPV(record, PL_na), len)>0) {
-     
- 	    doUnpackCategory(ret, &a.category);
- 	    
-@@ -1309,13 +1313,13 @@ PackAppBlock(record)
-     a.sortByCompany = (s = hv_fetch(h, "sortByCompany", 13, 0)) ? SvIV(*s) : 0;
- 
-     if ((s = hv_fetch(h, "label", 5, 0)) && SvOK(*s) && SvRV(*s) && (SvTYPE(av=(AV*)SvRV(*s))==SVt_PVAV))
--    	for (i=0;i<22;i++) strncpy(a.labels[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,na) : "", 16);
-+    	for (i=0;i<22;i++) strncpy(a.labels[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,PL_na) : "", 16);
- 	else
- 		for (i=0;i<22;i++) a.labels[i][0] = 0;
- 	for (i=0;i<22;i++) a.labels[i][15] = 0;
- 
-     if ((s = hv_fetch(h, "phoneLabel", 10, 0)) && SvOK(*s) && SvRV(*s) && (SvTYPE(av=(AV*)SvRV(*s))==SVt_PVAV))
--    	for (i=0;i<8;i++) strncpy(a.phoneLabels[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,na) : "", 16);
-+    	for (i=0;i<8;i++) strncpy(a.phoneLabels[i], (s=av_fetch(av, i, 0)) ? SvPV(*s,PL_na) : "", 16);
- 	else
- 		for (i=0;i<8;i++) a.phoneLabels[i][0] = 0;
- 	for (i=0;i<8;i++) a.phoneLabels[i][15] = 0;
-@@ -1396,7 +1400,7 @@ Pack(record)
-     else {
-     
-     if ((s = hv_fetch(h, "text", 4, 0)))
--	    a.text = SvPV(*s,na);
-+	    a.text = SvPV(*s,PL_na);
- 	else
- 		a.text = 0;
-     
-@@ -1438,7 +1442,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_MemoAppInfo(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_MemoAppInfo(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    doUnpackCategory(ret, &a.category);
- 
-@@ -1510,7 +1514,7 @@ Unpack(record)
-     
-     SvPV(record,len);
-     if (len > 0) { /* len == 0 if deleted flag is set */
--	if (unpack_Expense(&e, (CPTR)SvPV(record, na), len)>0) {
-+	if (unpack_Expense(&e, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    hv_store(ret, "date", 4, newRV_noinc((SV*)tmtoav(&e.date)), 0);
- 	    hv_store(ret, "type", 4, newSVlist(e.type,ExpenseTypeNames),0);
-@@ -1570,15 +1574,15 @@ Pack(record)
-     	avtotm((AV*)SvRV(*s), &e.date);
-     else
-     	croak("expense record must contain date");
--    if ((s = hv_fetch(h, "amount", 6, 0))) e.amount = SvPV(*s,na);
-+    if ((s = hv_fetch(h, "amount", 6, 0))) e.amount = SvPV(*s,PL_na);
- 	else e.amount = 0;
--    if ((s = hv_fetch(h, "vendor", 6, 0))) e.vendor = SvPV(*s,na);
-+    if ((s = hv_fetch(h, "vendor", 6, 0))) e.vendor = SvPV(*s,PL_na);
- 	else e.vendor = 0;
--    if ((s = hv_fetch(h, "city", 4, 0))) e.city = SvPV(*s,na);
-+    if ((s = hv_fetch(h, "city", 4, 0))) e.city = SvPV(*s,PL_na);
- 	else e.city = 0;
--    if ((s = hv_fetch(h, "attendess", 9, 0))) e.attendees = SvPV(*s,na);
-+    if ((s = hv_fetch(h, "attendess", 9, 0))) e.attendees = SvPV(*s,PL_na);
- 	else e.attendees = 0;
--    if ((s = hv_fetch(h, "note", 4, 0))) e.note = SvPV(*s,na);
-+    if ((s = hv_fetch(h, "note", 4, 0))) e.note = SvPV(*s,PL_na);
- 	else e.note = 0;
-     
-     len = pack_Expense(&e, mybuf, 0xffff);
-@@ -1619,7 +1623,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_ExpenseAppInfo(&e, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_ExpenseAppInfo(&e, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 		hv_store(ret, "sortOrder", 9, newSVlist(e.sortOrder,ExpenseSortNames),0);
- 		a = newAV();
-@@ -1662,15 +1666,15 @@ PackAppBlock(record)
- 			HV * hv;
- 			if ((s=av_fetch(av, i, 0)) && SvOK(*s) && SvRV(*s) && (SvTYPE(hv=(HV*)SvRV(*s))==SVt_PVHV)) {
- 				if (s = hv_fetch(hv, "name", 4, 0)) {
--					strncpy(e.currencies[i].name, SvPV(*s, na), 16);
-+					strncpy(e.currencies[i].name, SvPV(*s, PL_na), 16);
- 					e.currencies[i].name[15] = 0;
- 				}
- 				if (s = hv_fetch(hv, "symbol", 6, 0)) {
--					strncpy(e.currencies[i].symbol, SvPV(*s, na), 4);
-+					strncpy(e.currencies[i].symbol, SvPV(*s, PL_na), 4);
- 					e.currencies[i].symbol[3] = 0;
- 				}
- 				if (s = hv_fetch(hv, "rate", 4, 0)) {
--					strncpy(e.currencies[i].rate, SvPV(*s, na), 8);
-+					strncpy(e.currencies[i].rate, SvPV(*s, PL_na), 8);
- 					e.currencies[i].rate[7] = 0;
- 				}
- 			}
-@@ -1718,7 +1722,7 @@ UnpackPref(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_ExpensePref(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_ExpensePref(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    hv_store(ret, "unitOfDistance", 14, newSVlist(a.unitOfDistance, ExpenseDistanceNames), 0);
- 	    hv_store(ret, "currentCategory", 15, newSViv(a.currentCategory), 0);
-@@ -1811,7 +1815,7 @@ Unpack(record)
-     
-     SvPV(record,len);
-     if (len > 0) { /* len == 0 if deleted flag is set */
--	if (unpack_Mail(&a, (CPTR)SvPV(record, na), len)>0) {
-+	if (unpack_Mail(&a, (CPTR)SvPV(record, PL_na), len)>0) {
-     
- 	    if (a.subject) hv_store(ret, "subject", 7, newSVpv(a.subject,0), 0);
- 	    if (a.from) hv_store(ret, "from", 4, newSVpv(a.from,0), 0);
-@@ -1858,14 +1862,14 @@ Pack(record)
-     }
-     else {
-     
--    a.subject = (s = hv_fetch(h, "subject", 7, 0)) ? SvPV(*s,na) : 0;
--    a.from = (s = hv_fetch(h, "from", 4, 0)) ? SvPV(*s,na) : 0;
--    a.to = (s = hv_fetch(h, "to", 2, 0)) ? SvPV(*s,na) : 0;
--    a.cc = (s = hv_fetch(h, "cc", 2, 0)) ? SvPV(*s,na) : 0;
--    a.bcc = (s = hv_fetch(h, "bcc", 3, 0)) ? SvPV(*s,na) : 0;
--    a.replyTo = (s = hv_fetch(h, "replyTo", 7, 0)) ? SvPV(*s,na) : 0;
--    a.sentTo = (s = hv_fetch(h, "sentTo", 6, 0)) ? SvPV(*s,na) : 0;
--    a.body = (s = hv_fetch(h, "body", 4, 0)) ? SvPV(*s,na) : 0;
-+    a.subject = (s = hv_fetch(h, "subject", 7, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.from = (s = hv_fetch(h, "from", 4, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.to = (s = hv_fetch(h, "to", 2, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.cc = (s = hv_fetch(h, "cc", 2, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.bcc = (s = hv_fetch(h, "bcc", 3, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.replyTo = (s = hv_fetch(h, "replyTo", 7, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.sentTo = (s = hv_fetch(h, "sentTo", 6, 0)) ? SvPV(*s,PL_na) : 0;
-+    a.body = (s = hv_fetch(h, "body", 4, 0)) ? SvPV(*s,PL_na) : 0;
-     
-     a.read = (s = hv_fetch(h, "read", 4, 0)) ? SvIV(*s) : 0;
-     a.signature = (s = hv_fetch(h, "signature", 9, 0)) ? SvIV(*s) : 0;
-@@ -1913,7 +1917,7 @@ UnpackAppBlock(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_MailAppInfo(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_MailAppInfo(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    doUnpackCategory(ret, &a.category);
- 
-@@ -1989,7 +1993,7 @@ UnpackSyncPref(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_MailSyncPref(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_MailSyncPref(&a, (CPTR)SvPV(record, PL_na), len)>0) {
- 
- 	    hv_store(ret, "syncType", 8, newSVlist(a.syncType, MailSyncTypeNames), 0);
- 	    hv_store(ret, "getHigh", 7, newSViv(a.getHigh), 0);
-@@ -2033,9 +2037,9 @@ PackSyncPref(record, id)
- 	a.getContaining = (s=hv_fetch(h,"getContaining",13,0)) ? SvIV(*s) : 0;
- 	a.truncate = (s=hv_fetch(h,"truncate",8,0)) ? SvIV(*s) : 0;
- 
--	a.filterTo = (s=hv_fetch(h,"filterTo",8,0)) ? SvPV(*s,na) : 0;
--	a.filterFrom = (s=hv_fetch(h,"filterFrom",10,0)) ? SvPV(*s,na) : 0;
--	a.filterSubject = (s=hv_fetch(h,"filterSubject",13,0)) ? SvPV(*s,na) : 0;
-+	a.filterTo = (s=hv_fetch(h,"filterTo",8,0)) ? SvPV(*s,PL_na) : 0;
-+	a.filterFrom = (s=hv_fetch(h,"filterFrom",10,0)) ? SvPV(*s,PL_na) : 0;
-+	a.filterSubject = (s=hv_fetch(h,"filterSubject",13,0)) ? SvPV(*s,PL_na) : 0;
- 
-     len = pack_MailSyncPref(&a, mybuf, 0xffff);
- 
-@@ -2073,7 +2077,7 @@ UnpackSignaturePref(record)
-     }
-     
-     SvPV(record,len);
--    if (unpack_MailSignaturePref(&a, (CPTR)SvPV(record, na), len)>0) {
-+    if (unpack_MailSignaturePref(&a, (CPTR)SvPV(record, PL_na), len)>0) {
-   
- 	    if (a.signature)  
- 		    hv_store(ret, "signature", 9, newSVpv(a.signature, 0), 0);
-@@ -2099,7 +2103,7 @@ PackSignaturePref(record, id)
-     	RETVAL = record;
-     else {
- 
--	a.signature = (s=hv_fetch(h,"signature",9,0)) ? SvPV(*s,na) : 0;
-+	a.signature = (s=hv_fetch(h,"signature",9,0)) ? SvPV(*s,PL_na) : 0;
- 
-     len = pack_MailSignaturePref(&a, mybuf, 0xffff);
- 
-@@ -2129,7 +2133,7 @@ write(socket, msg)
- 	{
- 	    STRLEN len;
- 	    SvPV(msg, len);
--		RETVAL = pi_write(socket,SvPV(msg,na),len);
-+		RETVAL = pi_write(socket,SvPV(msg,PL_na),len);
- 	}
- 
- SV *
-@@ -2146,7 +2150,7 @@ read(socket, len)
- 	    if (result >=0) 
- 	    	RETVAL = newSVpvn((char *) pibuf.data, result);
- 	    else
--	    	RETVAL = &sv_undef;
-+	    	RETVAL = &PL_sv_undef;
- 	}
- 	OUTPUT:
- 	RETVAL
-@@ -2282,7 +2286,7 @@ class(self, name=0)
- 				croak("DBClasses doesn't exist");
- 			if (SvOK(name)) {
- 				(void)SvPV(name,len);
--				s = hv_fetch(h, SvPV(name,na), len, 0);
-+				s = hv_fetch(h, SvPV(name,PL_na), len, 0);
- 			}
- 			if (!s)
- 				s = hv_fetch(h, "", 0, 0);
-@@ -2577,7 +2581,7 @@ getRecords(self)
- 	{
- 		int result = dlp_ReadOpenDBInfo(self->socket, self->handle, &RETVAL);
- 		if (result < 0) {
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 			self->errnop = result;
- 		}
- 	}
-@@ -2745,7 +2749,7 @@ setResource(self, data)
- 		result = dlp_WriteResource(self->socket, self->handle, type, id, c, len);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else
- 			RETVAL = newSViv(result);
- 	}
-@@ -2798,7 +2802,7 @@ getPref(self, id=0, backup=1)
- 		    r = dlp_CloseDB(self->socket, self->handle);
- 	    result = dlp_ReadAppPreference(self->socket, creator, id, backup, 0xFFFF, mybuf, &len, &version);
- 	    if (pi_version(self->socket)< 0x101)
--		    r = dlp_OpenDB(self->socket, self->dbcard, self->dbmode, SvPV(self->dbname,na), &self->handle);
-+		    r = dlp_OpenDB(self->socket, self->dbcard, self->dbmode, SvPV(self->dbname,PL_na), &self->handle);
- 	    ReturnReadPref(mybuf, len);
- 	}
- 
-@@ -2822,10 +2826,10 @@ setPref(self, data)
- 	    	r = dlp_CloseDB(self->socket, self->handle);
- 	    result = dlp_WriteAppPreference(self->socket, creator, id, backup, version, buf, len);
-     	if (pi_version(self->socket)< 0x101)
--		    r = dlp_OpenDB(self->socket, self->dbcard, self->dbmode, SvPV(self->dbname,na), &self->handle);
-+		    r = dlp_OpenDB(self->socket, self->dbcard, self->dbmode, SvPV(self->dbname,PL_na), &self->handle);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			RETVAL = newSViv(result);
- 		}
-@@ -2861,7 +2865,7 @@ setPrefRaw(self, data, number, version, 
- 	    result = dlp_WriteAppPreference(self->socket, creator, number, backup, version, buf, len);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			RETVAL = newSViv(result);
- 		}
-@@ -2904,7 +2908,7 @@ getTime(self)
- 		int result = dlp_GetSysDateTime(self->socket, &t);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else
- 			RETVAL = newSViv(t);
- 	}
-@@ -2929,7 +2933,7 @@ getSysInfo(self)
- 		int result = dlp_ReadSysInfo(self->socket, &si);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			HV * i = newHV();
- 			hv_store(i, "romVersion", 10, newSViv(si.romVersion), 0);\
-@@ -2951,7 +2955,7 @@ getCardInfo(self, cardno=0)
- 		int result = dlp_ReadStorageInfo(self->socket, cardno, &c);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			HV * i = newHV();
- 			hv_store(i, "card", 6, newSViv(c.card), 0);\
-@@ -3037,7 +3041,7 @@ newPref(self, creator, id=0, version=0, 
- 			croak("Default PrefClass not defined");			
-    		PUSHMARK(sp);										
-    		XPUSHs(newSVsv(*s));								
--   		XPUSHs(&sv_undef);									
-+   		XPUSHs(&PL_sv_undef);									
-     	XPUSHs(sv_2mortal(newSVChar4(creator)));			
-     	if (id)
- 	    	XPUSHs(id);					
-@@ -3107,7 +3111,7 @@ open(self, name, mode=0, cardno=0)
- 		result = dlp_OpenDB(self->socket, cardno, nummode, name, &handle);
- 		if (result<0) {
- 			self->errnop = result;
--			RETVAL = &sv_undef;
-+			RETVAL = &PL_sv_undef;
- 		} else {
- 			int type;
- 			PDA__Pilot__DLP__DB * x = malloc(sizeof(PDA__Pilot__DLP__DB));
-@@ -3156,7 +3160,7 @@ create(self, name, creator, type, flags,
- 		int result = dlp_CreateDB(self->socket, creator, type, cardno, flags, version, name, &handle);
- 		if (result<0) {
- 			self->errnop = result;
--			RETVAL = &sv_undef;
-+			RETVAL = &PL_sv_undef;
- 		} else {
- 			PDA__Pilot__DLP__DB * x = malloc(sizeof(PDA__Pilot__DLP__DB));
- 			SV * sv = newSViv((IV)(void*)x);
-@@ -3224,7 +3228,7 @@ setPref(self, data)
- 	    result = dlp_WriteAppPreference(self->socket, creator, id, backup, version, buf, len);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			RETVAL = newSViv(result);
- 		}
-@@ -3248,7 +3252,7 @@ setPrefRaw(self, data, creator, number, 
- 	    result = dlp_WriteAppPreference(self->socket, creator, number, backup, version, buf, len);
- 		if (result < 0) {
- 			self->errnop = result;
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 		} else {
- 			RETVAL = newSViv(result);
- 		}
-@@ -3350,7 +3354,7 @@ findDBInfo(self, start, name, creator, t
- 		else
- 			t = 0;
- 		result = dlp_FindDBInfo(self->socket, cardno, start, 
--			SvOK(name) ? SvPV(name,na) : 0,
-+			SvOK(name) ? SvPV(name,PL_na) : 0,
- 			t, c, &info);
- 		pack_dbinfo(RETVAL, info, result);
- 	}
-@@ -3367,7 +3371,7 @@ getFeature(self, creator, number)
- 		unsigned long f;
- 		int result;
- 		if ((result = dlp_ReadFeature(self->socket, creator, number, &f))<0) {
--			RETVAL = newSVsv(&sv_undef);
-+			RETVAL = newSVsv(&PL_sv_undef);
- 			self->errnop = result;
- 		} else {
- 			RETVAL = newSViv(f);
-@@ -3397,7 +3401,7 @@ getROMToken(self,token)
- 	}
- 
- void
--callApplication(self, creator, type, action, data=&sv_undef)
-+callApplication(self, creator, type, action, data=&PL_sv_undef)
- 	PDA::Pilot::DLP *self
- 	Char4	creator
- 	Char4	type
-@@ -3410,7 +3414,7 @@ callApplication(self, creator, type, act
- 		int result;
- 		(void)SvPV(data,len);
- 		result = dlp_CallApplication(self->socket, creator, 
--				    type, action, len, SvPV(data,na),
-+				    type, action, len, SvPV(data,PL_na),
- 		                    &retcode, &pibuf);
- 		EXTEND(sp, 2);
- 		if (result >= 0) {
-@@ -3419,7 +3423,7 @@ callApplication(self, creator, type, act
- 				PUSHs(sv_2mortal(newSViv(retcode)));
- 			}
- 		} else
--			PUSHs(&sv_undef);
-+			PUSHs(&PL_sv_undef);
- 	}
- 
- int
-@@ -3530,7 +3534,7 @@ class(self, name=0)
- 				croak("DBClasses doesn't exist");
- 			if (SvOK(name)) {
- 				(void)SvPV(name, len);
--				s = hv_fetch(h, SvPV(name, na), len, 0);
-+				s = hv_fetch(h, SvPV(name, PL_na), len, 0);
- 			}
- 			if (!s)
- 				s = hv_fetch(h, "", 0, 0);
diff --git a/pilot-link-ac.patch b/pilot-link-ac.patch
deleted file mode 100644
index f183296..0000000
--- a/pilot-link-ac.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff -urN pilot-link-0.12.1.org/configure.ac pilot-link-0.12.1/configure.ac
---- pilot-link-0.12.1.org/configure.ac	2006-08-29 01:36:47.000000000 +0200
-+++ pilot-link-0.12.1/configure.ac	2007-01-16 22:27:22.324067500 +0100
-@@ -55,17 +55,6 @@
- AC_SUBST(PISYNC_REVISION)
- AC_SUBST(PISYNC_AGE)
- 
--dnl Eat -Werror so configure will run properly, if the user provided it
--enable_werror=no
--save_CFLAGS="$CFLAGS"
--CFLAGS=`echo $save_CFLAGS | sed -e s/-Werror//g`
--CXXFLAGS=`echo $save_CXXFLAGS | sed -e s/-Werror//g`
--if test "x$CFLAGS" != "x$save_CFLAGS"; then
--	dnl -Werror was set; treat it as implicit --enable-werror below
--	enable_werror="yes"
--fi
--
--
- dnl Check host type
- AC_CANONICAL_HOST
- AC_CANONICAL_SYSTEM
-@@ -381,11 +381,11 @@
- 		dnl Determine if system popt is good enough
- 		save_LIBS="$LIBS"
- 		AC_CHECK_HEADER(popt.h,
--			AC_CHECK_DECL(POPT_BIT_SET,
--				AC_CHECK_LIB(popt, poptStrippedArgv,,
--					[with_included_popt="yes"]),
-+			[AC_CHECK_DECL(POPT_BIT_SET,
-+				[AC_CHECK_LIB(popt, poptStrippedArgv,,
-+					[with_included_popt="yes"])],
- 				[with_included_popt="yes"],
--				[#include <popt.h>]),
-+				[#include <popt.h>])],
- 			[with_included_popt="yes"]
- 		)
- 		LIBS="$save_LIBS"
-@@ -735,7 +724,7 @@
- AC_ARG_ENABLE(compile-werror,
- 	      [  --enable-compile-werror
-                           Causes warnings to be treated as errors in GCC],
--	      enable_werror=yes)
-+	      enable_werror=yes, enable_werror=no)
- if test "x$GCC" = "xyes" -a "x$enable_werror" = "xyes"; then
- 	CFLAGS="$CFLAGS -Werror"
- fi
-
diff --git a/pilot-link-format.patch b/pilot-link-format.patch
deleted file mode 100644
index 14193c1..0000000
--- a/pilot-link-format.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- pilot-link-0.12.5/src/pilot-dlpsh.c~	2009-06-04 15:26:19.000000000 +0200
-+++ pilot-link-0.12.5/src/pilot-dlpsh.c	2013-11-03 09:27:00.449103169 +0100
-@@ -389,7 +389,7 @@
- 
- 	strftime(timebuf, 80, "Now setting Palm time from desktop to: "
- 			      "%a %b %d %H:%M:%S %Z %Y\n", tm_ptr);
--	printf(timebuf);
-+	printf("%s", timebuf);
- 	gettimeofday(&tv, 0);
- 	ltime = tv.tv_sec + 1;
- 	usleep(1000000 - tv.tv_usec);
---- pilot-link-0.12.5/src/pilot-hinotes.c~	2009-06-04 15:26:19.000000000 +0200
-+++ pilot-link-0.12.5/src/pilot-hinotes.c	2013-11-03 09:27:46.303998160 +0100
-@@ -80,7 +80,7 @@
- 	else
- 		printf("\n");
- 	printf("\n");
--	printf(m.text);
-+	printf("%s", m.text);
- 	printf("\n");
- }
- 
---- pilot-link-0.12.5/src/pilot-xfer.c~	2010-02-07 03:21:18.000000000 +0100
-+++ pilot-link-0.12.5/src/pilot-xfer.c	2013-11-03 09:28:48.562785630 +0100
-@@ -2478,7 +2478,7 @@
- 					fprintf(stderr, "   ERROR: '%s' is not a directory or does not exist.\n"
- 							"   Please supply a directory name when performing a "
- 							"backup or restore and try again.\n\n", dirname);
--					fprintf(stderr,gracias);
-+					fprintf(stderr, "%s", gracias);
- 					return 1;
- 				}
- 			}
-@@ -2488,13 +2488,13 @@
- 			if (rargc > 0)
- 			{
- 				fprintf(stderr,"   ERROR: Do not pass additional arguments to -busrlLC.\n");
--				fprintf(stderr,gracias);
-+				fprintf(stderr, "%s", gracias);
- 				return 1;
- 			}
- 			break;
- 		case palm_op_noop:
- 			fprintf(stderr,"   ERROR: Must specify one of -bursimfdlC.\n");
--			fprintf(stderr,gracias);
-+			fprintf(stderr, "%s", gracias);
- 			return 1;
- 			break;
- 		case palm_op_merge:
diff --git a/pilot-link-iconv-check.patch b/pilot-link-iconv-check.patch
new file mode 100644
index 0000000..3a88d63
--- /dev/null
+++ b/pilot-link-iconv-check.patch
@@ -0,0 +1,15 @@
+# autoconf eats transbuf[10] and iconv() takes char **, so the CP1252 check never compiled
+--- a/configure.ac
++++ b/configure.ac
+@@ -465,9 +465,9 @@
+ 
+ int main (int argc, char **argv)
+ {
+-	const char *pc = "\x66\x66\x66\x66\x66\x66\x66\xA9";
++	char *pc = "\x66\x66\x66\x66\x66\x66\x66\xA9";
+ 	const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9";
+-	char transbuf[10], *trans = transbuf;
++	char transbuf@<:@10@:>@, *trans = transbuf;
+ 	iconv_t cd;
+ 	size_t pc_len = strlen (pc), utf8_len = 10;
+ 	size_t utf8_real_len = strlen (utf8);
diff --git a/pilot-link-libpng.patch b/pilot-link-libpng.patch
deleted file mode 100644
index 9d75333..0000000
--- a/pilot-link-libpng.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-diff -ru pilot-link-0.12.4/src/pilot-read-notepad.c pilot-link-0.12.4.png14/src/pilot-read-notepad.c
---- pilot-link-0.12.4/src/pilot-read-notepad.c	2007-02-05 00:06:02.000000000 +0100
-+++ pilot-link-0.12.4.png14/src/pilot-read-notepad.c	2010-01-17 15:04:33.000000000 +0100
-@@ -39,10 +39,6 @@
- 
- #ifdef HAVE_PNG
- #include "png.h"
--#if (PNG_LIBPNG_VER < 10201)
-- #define png_voidp_NULL (png_voidp)NULL
-- #define png_error_ptr_NULL (png_error_ptr)NULL
--#endif
- #endif
- 
- const char *progname;
-@@ -166,8 +162,8 @@
-    width = n->body.width + 8;
- 
-    png_ptr = png_create_write_struct
--     ( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
--       png_error_ptr_NULL, png_error_ptr_NULL);
-+     ( PNG_LIBPNG_VER_STRING, NULL,
-+       NULL, NULL);
- 
-    if(!png_ptr)
-      return;
-diff -ru pilot-link-0.12.4/src/pilot-read-palmpix.c pilot-link-0.12.4.png14/src/pilot-read-palmpix.c
---- pilot-link-0.12.4/src/pilot-read-palmpix.c	2007-02-05 00:06:03.000000000 +0100
-+++ pilot-link-0.12.4.png14/src/pilot-read-palmpix.c	2010-01-17 15:03:20.000000000 +0100
-@@ -42,10 +42,6 @@
- 
- #ifdef HAVE_PNG
- #include "png.h"
--#if (PNG_LIBPNG_VER < 10201)
-- #define png_voidp_NULL (png_voidp)NULL
-- #define png_error_ptr_NULL (png_error_ptr)NULL
--#endif
- #endif
- 
- const char *progname;
-@@ -223,8 +219,8 @@
- 	png_infop info_ptr;
- 
- 	png_ptr = png_create_write_struct
--		( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
--		png_error_ptr_NULL, png_error_ptr_NULL);
-+		( PNG_LIBPNG_VER_STRING, NULL,
-+		NULL, NULL);
- 
- 	if(!png_ptr)
- 		return;
-diff -ru pilot-link-0.12.4/src/pilot-read-screenshot.c pilot-link-0.12.4.png14/src/pilot-read-screenshot.c
---- pilot-link-0.12.4/src/pilot-read-screenshot.c	2006-11-02 15:54:31.000000000 +0100
-+++ pilot-link-0.12.4.png14/src/pilot-read-screenshot.c	2010-01-17 15:03:52.000000000 +0100
-@@ -40,10 +40,6 @@
- 
- #ifdef HAVE_PNG
- # include "png.h"
--# if (PNG_LIBPNG_VER < 10201)
--#  define png_voidp_NULL (png_voidp)NULL
--#  define png_error_ptr_NULL (png_error_ptr)NULL
--# endif
- #endif
- 
- #define pi_mktag(c1,c2,c3,c4) (((c1)<<24)|((c2)<<16)|((c3)<<8)|(c4))
-@@ -87,8 +83,8 @@
- 		gray_buf = malloc( state->w );
- 
- 	png_ptr = png_create_write_struct
--		(PNG_LIBPNG_VER_STRING, png_voidp_NULL,
--		png_error_ptr_NULL, png_error_ptr_NULL);
-+		(PNG_LIBPNG_VER_STRING, NULL,
-+		NULL, NULL);
- 
- 	if (!png_ptr)
- 		return;
-diff -ru pilot-link-0.12.4/src/pilot-read-veo.c pilot-link-0.12.4.png14/src/pilot-read-veo.c
---- pilot-link-0.12.4/src/pilot-read-veo.c	2007-02-05 00:06:03.000000000 +0100
-+++ pilot-link-0.12.4.png14/src/pilot-read-veo.c	2010-01-17 15:04:14.000000000 +0100
-@@ -41,10 +41,6 @@
- 
- #ifdef HAVE_PNG
- # include "png.h"
--# if (PNG_LIBPNG_VER < 10201)
--#  define png_voidp_NULL (png_voidp)NULL
--#  define png_error_ptr_NULL (png_error_ptr)NULL
--# endif
- #endif
- 
- #define pi_mktag(c1,c2,c3,c4) (((c1)<<24)|((c2)<<16)|((c3)<<8)|(c4))
-@@ -856,8 +852,8 @@
-    png_infop info_ptr;
- 
-    png_ptr = png_create_write_struct
--	 (PNG_LIBPNG_VER_STRING, png_voidp_NULL,
--	  png_error_ptr_NULL, png_error_ptr_NULL);
-+	 (PNG_LIBPNG_VER_STRING, NULL,
-+	  NULL, NULL);
- 
-    if (!png_ptr)
- 	 return;
diff --git a/pilot-link-man.patch b/pilot-link-man.patch
index baf7c0b..d286476 100644
--- a/pilot-link-man.patch
+++ b/pilot-link-man.patch
@@ -1,6 +1,6 @@
-diff -urN pilot-link-0.12.3.org/doc/Makefile.am pilot-link-0.12.3/doc/Makefile.am
---- pilot-link-0.12.3.org/doc/Makefile.am	2007-11-09 18:24:38.000000000 +0100
-+++ pilot-link-0.12.3/doc/Makefile.am	2008-08-31 20:35:59.289489746 +0200
+# man pages are pregenerated in the tarball, but the Makefiles install them only with xsltproc
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
 @@ -1,7 +1,5 @@
 -if BUILD_XML
  if ENABLE_XSLTPROC
@@ -9,3 +9,15 @@ diff -urN pilot-link-0.12.3.org/doc/Makefile.am pilot-link-0.12.3/doc/Makefile.a
  else
  SUBDIRS = man
  endif
+--- a/doc/man/Makefile.am
++++ b/doc/man/Makefile.am
+@@ -1,4 +1,3 @@
+-if ENABLE_XSLTPROC
+ man_MANS =				\
+ 	ietf2datebook.1			\
+ 	pilot-addresses.1		\
+@@ -39,4 +38,3 @@
+ 	pilot-xfer.1
+ 
+ EXTRA_DIST=$(man_MANS)
+-endif
diff --git a/pilot-link-open.patch b/pilot-link-open.patch
deleted file mode 100644
index 0da10fe..0000000
--- a/pilot-link-open.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- pilot-link-0.12.2/libpisock/serial.c.pom	2006-10-12 16:21:22.000000000 +0200
-+++ pilot-link-0.12.2/libpisock/serial.c	2007-08-29 16:31:25.000000000 +0200
-@@ -286,7 +286,7 @@ pi_serial_connect(pi_socket_t *ps, struc
- 		data->establishrate = data->rate = 57600;
- 	}
- 
--	if ((err = data->impl.open(ps, pa, addrlen)) < 0)
-+	if ((err = (data->impl.open)(ps, pa, addrlen)) < 0)
- 		return err;	/* errno already set */
- 
- 	ps->raddr 	= malloc(addrlen);
-@@ -362,7 +362,7 @@ pi_serial_bind(pi_socket_t *ps, struct s
- 	}
- 
- begin:
--	if ((err = data->impl.open(ps, pa, addrlen)) < 0) {
-+	if ((err = (data->impl.open)(ps, pa, addrlen)) < 0) {
- 		int 	save_errno = errno;
- #ifdef MAXPATHLEN
- 		char	realport[MAXPATHLEN];
---- pilot-link-0.12.2/libpisock/usb.c.pom	2007-02-09 15:26:09.000000000 +0100
-+++ pilot-link-0.12.2/libpisock/usb.c	2007-08-29 16:23:42.000000000 +0200
-@@ -267,7 +267,7 @@ pi_usb_connect(pi_socket_t *ps, struct s
- 		data->establishrate = data->rate = 57600;
- 	}
- 
--	result = data->impl.open(ps, pa, addrlen);
-+	result = (data->impl.open)(ps, pa, addrlen);
- 	if (result < 0)
- 		goto fail;
- 
-@@ -343,7 +343,7 @@ pi_usb_bind(pi_socket_t *ps, struct sock
- 		data->establishrate = data->rate = 57600;
- 	}
- 
--	result = data->impl.open(ps, pa, addrlen);
-+	result = (data->impl.open)(ps, pa, addrlen);
- 	if (result < 0)
- 		return result;
- 
diff --git a/pilot-link-python-version.patch b/pilot-link-python-version.patch
new file mode 100644
index 0000000..961dfd5
--- /dev/null
+++ b/pilot-link-python-version.patch
@@ -0,0 +1,12 @@
+# sys.version[0:3] yields "3.1" on Python 3.10+, so Python.h is not found
+--- a/m4/python.m4
++++ b/m4/python.m4
+@@ -20,7 +20,7 @@
+                 AC_PATH_PROG(PYTHON, python)
+ 
+                 if test "$PYTHON" != ""; then
+-                        PYTHON_VERSION=$($PYTHON -c "import sys; print(sys.version[[0:3]])")
++                        PYTHON_VERSION=$($PYTHON -c "import sys; print('%d.%d' % sys.version_info[[:2]])")
+                         PYTHON_PREFIX=$($PYTHON -c "import sys; print(sys.prefix)")
+                 fi
+ 
diff --git a/types.patch b/types.patch
deleted file mode 100644
index 6e1192d..0000000
--- a/types.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- pilot-link-0.12.5/bindings/Perl/Pilot.xs.orig	2025-08-04 13:38:25.051586394 +0200
-+++ pilot-link-0.12.5/bindings/Perl/Pilot.xs	2025-08-04 13:51:49.459786137 +0200
-@@ -2574,16 +2574,18 @@
- 	OUTPUT:
- 	RETVAL
- 
--int
-+SV*
- getRecords(self)
- 	PDA::Pilot::DLP::DB *self
- 	CODE:
- 	{
--		int result = dlp_ReadOpenDBInfo(self->socket, self->handle, &RETVAL);
-+		int count;
-+		int result = dlp_ReadOpenDBInfo(self->socket, self->handle, &count);
- 		if (result < 0) {
- 			RETVAL = newSVsv(&PL_sv_undef);
- 			self->errnop = result;
--		}
-+		} else
-+			RETVAL = newSViv(count);
- 	}
- 	OUTPUT:
- 	RETVAL
---- pilot-link-0.12.5/src/pilot-read-todos.c.orig	2009-06-04 15:32:32.000000000 +0200
-+++ pilot-link-0.12.5/src/pilot-read-todos.c	2025-08-04 14:04:41.531121517 +0200
-@@ -202,8 +202,8 @@
- 
- 	for (i = 0;; i++) {
- 		int 	attr,
--			category,
--			len;
-+			category;
-+		size_t len;
- 
- 		struct 	ToDo todo;
- 
---- pilot-link-0.12.5/src/parsedate.y.orig	2001-07-12 22:02:11.000000000 +0200
-+++ pilot-link-0.12.5/src/parsedate.y	2026-08-21 13:57:45.144676299 +0200
-@@ -94,8 +94,7 @@
- static time_t	yyRelSeconds;
- 
- 
--extern struct tm	*localtime();
--static void		date_error();
-+static void		date_error(char*);
- %}
- 
- %union {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pilot-link.git/commitdiff/b094728577a3a668dca30bd167479f0bc02e784f



More information about the pld-cvs-commit mailing list