Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwVWx-002FSc-VP for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Apr 2024 23:14:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rwVWw-00Gch6-8L for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Apr 2024 23:14:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwVWv-00Gcgy-VI for pgsql-hackers@lists.postgresql.org; Mon, 15 Apr 2024 23:14:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwVWp-0032Zo-AF for pgsql-hackers@lists.postgresql.org; Mon, 15 Apr 2024 23:14:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 43FNEMlU1012982; Mon, 15 Apr 2024 19:14:22 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: Michael Paquier Subject: Time to back-patch libxml deprecation fixes? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1012980.1713222862.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 15 Apr 2024 19:14:22 -0400 Message-ID: <1012981.1713222862@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I just noticed that my animal indri has been failing in the back branches since I updated its MacPorts packages a few days ago: ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-= statement -Werror=3Dvla -Werror=3Dunguarded-availability-new -Wendif-label= s -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-s= trict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-tok= en-split-by-macro -g -O2 -fno-common -Werror -fvisibility=3Dhidden -I. -I= . -I../../src/include -I/opt/local/include -isysroot /Applications/Xcode.a= pp/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.= sdk -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/includ= e -I/opt/local/include -I/opt/local/include -c -o mbuf.o mbuf.c xpath.c:77:2: error: 'xmlSubstituteEntitiesDefault' is deprecated [-Werror= ,-Wdeprecated-declarations] xmlSubstituteEntitiesDefault(1); ^ /opt/local/include/libxml2/libxml/parser.h:952:1: note: 'xmlSubstituteEnti= tiesDefault' has been explicitly marked deprecated here XML_DEPRECATED XMLPUBFUN int ^ /opt/local/include/libxml2/libxml/xmlversion.h:447:43: note: expanded from= macro 'XML_DEPRECATED' # define XML_DEPRECATED __attribute__((deprecated)) ^ 1 error generated. make[1]: *** [xpath.o] Error 1 I could switch the animal to use -Wno-deprecated-declarations in the back branches, but I'd rather not. I think the right answer is to back-patch Michael's 65c5864d7 (xml2: Replace deprecated routines with recommended ones). We speculated about that at the time (see e.g., 400928b83) but didn't pull the trigger. I think 65c5864d7 has now baked long enough that it'd be safe to back-patch. regards, tom lane