tags 818448 +patch thanks The fix for this build failure is trivial. Patch attatched.
Note: I have tested that this builds, I have not tested it beyond that.
diff -Nru imapcopy-1.04/debian/changelog imapcopy-1.04/debian/changelog --- imapcopy-1.04/debian/changelog 2014-03-29 18:40:37.000000000 +0000 +++ imapcopy-1.04/debian/changelog 2016-09-04 11:31:36.000000000 +0000 @@ -1,3 +1,10 @@ +imapcopy (1.04-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix build with fpc 3.0.0 (Closes: 818448) + + -- Peter Michael Green <[email protected]> Sun, 04 Sep 2016 11:31:36 +0000 + imapcopy (1.04-2) unstable; urgency=low * Changed git packaging to git-dpm format diff -Nru imapcopy-1.04/debian/patches/0004-fpc-3.0.0.patch imapcopy-1.04/debian/patches/0004-fpc-3.0.0.patch --- imapcopy-1.04/debian/patches/0004-fpc-3.0.0.patch 1970-01-01 00:00:00.000000000 +0000 +++ imapcopy-1.04/debian/patches/0004-fpc-3.0.0.patch 2016-09-04 11:31:36.000000000 +0000 @@ -0,0 +1,36 @@ +Description: Fix build with fpc 3.0.0 + Change socket address field names from family/addr/port to sin_family/sin_addr.s_addr/sin_port +Author: Peter Michael Green <[email protected]> +Bug-Debian: https://bugs.debian.org/818448 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: <vendor|upstream|other>, <url of original patch> +Bug: <url in upstream bugtracker> +Bug-Debian: https://bugs.debian.org/<bugnumber> +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> +Forwarded: <no|not-needed|url proving that it has been forwarded> +Reviewed-By: <name and email of someone who approved the patch> +Last-Update: 2016-09-04 + +Index: imapcopy-1.04/imaptools.pas +=================================================================== +--- imapcopy-1.04.orig/imaptools.pas ++++ imapcopy-1.04/imaptools.pas +@@ -235,10 +235,10 @@ BEGIN + END; + + +- Addr.family := AF_INET; +- Addr.port := ShortHostToNet (Port); ++ Addr.sin_family := AF_INET; ++ Addr.sin_port := ShortHostToNet (Port); + {WriteLn ('IP: ',hostaddrtostr (Host.IPAddress));} +- Addr.addr := HostToNet (LONGINT (Host.IPAddress)); ++ Addr.sin_addr.s_addr := HostToNet (LONGINT (Host.IPAddress)); + aSocket := fpSocket(AF_INET,SOCK_STREAM,0); + IF -1 = Sockets.fpconnect (aSocket,@ADDR,SIZEOF(ADDR)) THEN + BEGIN diff -Nru imapcopy-1.04/debian/patches/series imapcopy-1.04/debian/patches/series --- imapcopy-1.04/debian/patches/series 2014-03-29 18:40:37.000000000 +0000 +++ imapcopy-1.04/debian/patches/series 2016-09-04 11:31:36.000000000 +0000 @@ -1,3 +1,4 @@ 0001-Makefile-from-previous-packaging.patch 0002-Update-FSF-address.patch 0003-Make-it-compile-with-FP-2.4-or-newer.patch +0004-fpc-3.0.0.patch

