Bug#1038447: librsvg: FTBFS on big-endian architectures: multiple test regressions since September 2022

Gayathri Berli Gayathri.Berli at ibm.com
Tue Dec 19 04:46:49 GMT 2023


Hi @Simon McVittie<mailto:smcv at debian.org>

With the help of cargo build environment setup inside the docker environment, we are finally able to reproduce the issue in Debian on s390x.
After a lot of trails, we were able to figure out the working and non-working debian unstable releases. Please find the details below..

Working docker setup: debian:unstable-20221114-librsvg2-dev_2.54.5+dfsg-1_s390x.deb
Non-Working docker setup: debian:unstable-20221024-librsvg2-dev_2.54.5+dfsg-1_s390x.deb.

We are suspecting that the dependency packages might be causing the issue. Here is the list of dependency packages. By keeping the working setup as a base, we are now trying to upgrade each of these packages one by one, run the cargo test to see if we can reproduce the issue…


  *
libxml (2.9.14+dfsg-1.1+b2)
  *
gi-docgen (2022.2+ds-1)
  *
gobject (5.2.0-2+b1)
  *
python (3.10.6-2)
  *
rust (1.62.1+dfsg1-1)
  *
harfbuzz (5.2.0-2+b1)

Out of the packages listed above, I tried upgrading libxml, libharfbuzz and libglib packages. So far, I have not been able to reproduce the issue. I will try upgrading the remaining packages and see if I can reproduce the issue. I will update more on this sooner.

 Please note that I am working on upgrading the dependency package according to the https://snapshot.debian.org/


Thanks,
Gayathri.
________________________________
From: Gayathri Berli
Sent: Wednesday, September 20, 2023 10:42 AM
To: 1038447 at bugs.debian.org <1038447 at bugs.debian.org>
Cc: Vishwanatha H.D <Vishwanatha.HD at ibm.com>; Simon McVittie <smcv at debian.org>
Subject: RE: Bug#1038447: librsvg: FTBFS on big-endian architectures: multiple test regressions since September 2022


Gentle Reminder..!

Thanks,

Gayathri



From: Gayathri Berli
Sent: Monday, August 28, 2023 11:36 AM
To: 1038447 at bugs.debian.org
Cc: Vishwanatha H.D <Vishwanatha.HD at ibm.com>; Simon McVittie <smcv at debian.org>
Subject: Bug#1038447: librsvg: FTBFS on big-endian architectures: multiple test regressions since September 2022



Hi Debian folks,



We are looking into a Debian Bug#1038447: librsvg: FTBFS on big-endian architectures: multiple test regressions since September 2022.



Simon has helped us to reproduce the issue by the following way. Thanks, simon for your kind support. We are trying these steps on our s390x machine of Debian kernel version 6.3.7-1.



  *   Have a Debian unstable chroot, container or machine with build-dependencies for the package. I used schroot on the Debian s390x
  *   porterbox zelenka:



     *   schroot -n librsvg -c sid --begin
     *   s=librsvg; p=librsvg; dd-schroot-cmd -c $s apt-get -y update && dd-schroot-cmd -c $s apt-get -y dist-upgrade && dd-schroot-cmd -c $s apt-get -y install ccache git quilt git-buildpackage && dd-schroot-cmd -c $s apt-get -y build-dep $p



  *   but any chroot/container/machine with the build-dependencies should behave the same.
  *   gbp clone https://salsa.debian.org/gnome-team/librsvg.git
  *   cd librsvg
  *   git reset --hard debian/2.54.7+dfsg-2 (or skip this step to build the latest version)
  *   gbp pq import
  *   Edit debian/rules to remove the workaround: delete the lines from
  *   "ifeq ($(DEB_HOST_ARCH_ENDIAN),big)" until the next "endif"
  *   Build the package in the chroot
  *   schroot -c librsvg -r -- debuild -eCCACHE_DIR=$HOME/.cache/ccache -ePATH=/usr/lib/ccache:$PATH -uc -us -b

     *   Or you can enter the appropriate environment interactively and use:

  *   debuild -us -uc -b
  *   Expected result: a successful build.
  *   Actual result: multiple test failures, as reported previously.



These are "reftests" which render a reference SVG and compare it with a reference rendering. You can find the SVGs and reference renderings in

tests/fixtures/reftests/: for example, one failing test is coords-viewattr-02-b, which has its SVG at tests/fixtures/reftests/svg1.1/coords-viewattr-02-b.svg

and its reference rendering at

tests/fixtures/reftests/svg1.1/coords-viewattr-02-b.svg.

After the build finishes, each failed test will have the actual output in a file named like target/release/build/librsvg-*/out/coords-viewattr-02-b-out.png,

and a highlighted/emphasized visual diff in a file like target/release/build/librsvg-*/out/coords-viewattr-02-b-diff.png.

Those are the files that I attached to the upstream issues.

  *   Building librsvg using its upstream build procedure without Debian patches/packaging might also result in failed tests, but I haven't verified this.





Unfortunately, we are encountering an issue with the chroot as followed. We tried the best to resolve it, but nothing helped us move forward. Could anyone has faced the same issue/solution of it please let us know. If any other steps might be needed to reproduce the same, please confirm.



 [cid:image001.png at 01D9EBAF.1462BE40]



Thanks in Advance..!





Thanks,

Gayathri.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20231219/53512996/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 25250 bytes
Desc: image001.png
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20231219/53512996/attachment-0001.png>


More information about the pkg-gnome-maintainers mailing list