Bug#813461: cqrlog: FTBFS: lcommon.pp(515,18) Error: (5038) identifier idents no member "family"
tags 813461 +patch
thanks
cqrlog fails to build from source in unstable/amd64:
Colin asked me to take a look at this.
Fixing the build failure is trivial enough, just a matter of avoiding
some field aliases that iirc were considered deprecated for some time
and have been removed in 3.0.0
A patch is attatched, note that I have not tested whether the resulting
packages work. No intent to NMU.
diff -urN cqrlog-1.9.0/debian/patches/fpc-3.0 cqrlog-1.9.0.new/debian/patches/fpc-3.0
--- cqrlog-1.9.0/debian/patches/fpc-3.0 1970-01-01 00:00:00.000000000 +0000
+++ cqrlog-1.9.0.new/debian/patches/fpc-3.0 2016-03-01 01:51:42.000000000 +0000
@@ -0,0 +1,31 @@
+Description: Fix build with fpc 3.0
+ Some deprecated field name aliases were removed in fpc 3.0. Update the code
+ to use non-deprecated names.
+Author: Peter Michael Green <plugwash@debian.org>
+Bug-Debian: https://bugs.debian.org/813461
+
+Index: cqrlog-1.9.0.new/src/lnet/lib/lcommon.pp
+===================================================================
+--- cqrlog-1.9.0.new.orig/src/lnet/lib/lcommon.pp
++++ cqrlog-1.9.0.new/src/lnet/lib/lcommon.pp
+@@ -512,15 +512,15 @@ end;
+ procedure FillAddressInfo(var aAddrInfo: TLSocketAddress; const aFamily: sa_family_t;
+ const Address: string; const aPort: Word);
+ begin
+- aAddrInfo.IPv4.family := aFamily;
+- aAddrInfo.IPv4.Port := htons(aPort);
++ aAddrInfo.IPv4.sin_family := aFamily;
++ aAddrInfo.IPv4.sin_port := htons(aPort);
+
+ case aFamily of
+ LAF_INET :
+ begin
+- aAddrInfo.IPv4.Addr := StrToNetAddr(Address);
+- if (Address <> LADDR_ANY) and (aAddrInfo.IPv4.Addr = 0) then
+- aAddrInfo.IPv4.Addr := StrToNetAddr(GetHostIP(Address));
++ aAddrInfo.IPv4.sin_addr.s_addr := StrToNetAddr(Address);
++ if (Address <> LADDR_ANY) and (aAddrInfo.IPv4.sin_addr.s_addr = 0) then
++ aAddrInfo.IPv4.sin_addr.s_addr := StrToNetAddr(GetHostIP(Address));
+ end;
+ LAF_INET6 :
+ begin
diff -urN cqrlog-1.9.0/debian/patches/series cqrlog-1.9.0.new/debian/patches/series
--- cqrlog-1.9.0/debian/patches/series 2015-09-22 17:59:53.000000000 +0000
+++ cqrlog-1.9.0.new/debian/patches/series 2016-02-29 23:13:15.000000000 +0000
@@ -1,3 +1,4 @@
makefile-no-homedir-use
desktop-keywords
apparmor.patch
+fpc-3.0
Reply to: