Re: XML test error on Arch Linux

Erik Wienhold <ewie@ewie.name>

From: Erik Wienhold <ewie@ewie.name>
To: Frank Streitzig <fstreitzig@gmx.net>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2024-07-06T11:52:22Z
Lists: pgsql-hackers
On 2024-07-06 11:57 +0200, Frank Streitzig wrote:
> >> My system is a Arch Linux.
> >> I get after upgrade the libxml2 package (from 2.12.7-1 to 2.13.1-1)
> >> test errors for xml:
> >> 
> >> not ok 202   + xml                                      1464 ms
> >> [...snip...]
> >> # 1 of 222 tests failed.
> >> # The differences that caused some tests to fail can be viewed in the file "/home/frastr/devel/postgresql/src/test/regress/regression.diffs".
> >> # A copy of the test summary that you see above is saved in the file "/home/frastr/devel/postgresql/src/test/regress/regression.out".
> >> make[1]: *** [GNUmakefile:118: check] Fehler 1
> >> make[1]: Verzeichnis „/home/frastr/devel/postgresql/src/test/regress“ wird verlassen
> >> make: *** [GNUmakefile:69: check] Fehler 2
> > 
> > Hmm, I did not get this error after upgrading libxml2 on my Arch machine
> > a couple of weeks ago.  Did you just run  make check  after upgrading,
> > without recompiling?  Please try  make clean && make && make check
> 
> i get same error.

Ah!  I forgot to run ./configure --with-libxml.  I thought it was
enabled by default if libxml2 is available.  Now I get the same errors.
Also with 2.13.2-1 which is currently still in core-testing.

So, there must be breaking changes in 2.13.0:
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.0

Maybe you can downgrade in the meantime, if you still have 2.12.7 in the
cache:

    pacman -U /var/cache/pacman/pkg/libxml2-2.12.7-1-x86_64.pkg.tar.zst

-- 
Erik



Commits

  1. Make our back branches compatible with libxml2 2.13.x.

  2. Remove new XML test cases added by e7192486d.

  3. Suppress "chunk is not well balanced" errors from libxml2.

  4. Use xmlParseInNodeContext not xmlParseBalancedChunkMemory.

  5. Use xmlAddChildList not xmlAddChild in XMLSERIALIZE.