[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1030546: marked as done (qt6-base FTBFS on hppa)



Your message dated Mon, 06 Feb 2023 19:10:07 +0000
with message-id <E1pP6sR-000YLM-Ki@fasolo.debian.org>
and subject line Bug#1030546: fixed in qt6-base 6.4.2+dfsg-2
has caused the Debian Bug report #1030546,
regarding qt6-base FTBFS on hppa
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1030546: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030546
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qt6-base
Tags: patch, ftbfs, hppa
Version: 6.4.2+dfsg

The attached patch fixes this qt6-base "build-from-source" (FTBFS) failure on hppa:
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(error_private.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC

The problem is, that qt6-base suddenly tries to link against the static
library of libzstd.a, while in the past it did linked against the shared library:

In current failing build (6.4.2+dfsg-1):
-- Found WrapZSTD: 1.5.2 (found suitable version "1.5.2", minimum required is "1.3")
Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=qt6-base&arch=hppa&ver=6.4.2%2Bdfsg-1&stamp=1675198832&raw=0

while it worked in the past for qt6-base 6.4.2+dfsg~rc1-1
-- Found WrapZSTD: /usr/lib/hppa-linux-gnu/libzstd.so (found suitable version "1.5.2", minimum required is "1.3")
Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=qt6-base&arch=hppa&ver=6.4.2%2Bdfsg%7Erc1-1&stamp=1672201686&raw=0

The attached patch changes  WrapZSTD to prefer the dynamic library.

Thanks,
Helge
[PATCH] FindWrapZSTD: Prefer libzstd shared library over static library

On some architectures a static library can not be linked into shared library
because shared libraries may need specific symbol relocations.
This fixes the build on hppa architecture which gives those errors: 
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(error_private.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(zstd_v05.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(zstd_v06.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(zstd_v07.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/hppa-linux-gnu/libzstd.a(huf_decompress.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC

Signed-off-by: Helge Deller <deller@gmx.de>

---
diff -up ./cmake/FindWrapZSTD.cmake.org ./cmake/FindWrapZSTD.cmake
--- ./cmake/FindWrapZSTD.cmake.org	2023-02-04 17:50:29.119361823 +0000
+++ ./cmake/FindWrapZSTD.cmake	2023-02-04 17:51:51.876153609 +0000
@@ -25,10 +25,10 @@ include(FindPackageHandleStandardArgs)
 if(TARGET zstd::libzstd_static OR TARGET zstd::libzstd_shared)
     find_package_handle_standard_args(WrapZSTD
                                       REQUIRED_VARS zstd_VERSION VERSION_VAR zstd_VERSION)
-    if(TARGET zstd::libzstd_static)
-        set(zstdtargetsuffix "_static")
-    else()
+    if(TARGET zstd::libzstd_shared)
         set(zstdtargetsuffix "_shared")
+    else()
+        set(zstdtargetsuffix "_static")
     endif()
     if(NOT TARGET WrapZSTD::WrapZSTD)
         add_library(WrapZSTD::WrapZSTD INTERFACE IMPORTED)

--- End Message ---
--- Begin Message ---
Source: qt6-base
Source-Version: 6.4.2+dfsg-2
Done: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>

We believe that the bug you reported is fixed in the latest version of
qt6-base, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1030546@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org> (supplier of updated qt6-base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 06 Feb 2023 15:50:58 -0300
Source: qt6-base
Architecture: source
Version: 6.4.2+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Closes: 1030546
Changes:
 qt6-base (6.4.2+dfsg-2) unstable; urgency=medium
 .
   * Team upload.
   * Update symbols files with buildd's logs.
   * Force the usage of the shared version of libzstd (Closes: #1030546).
Checksums-Sha1:
 52a4a2fccd27e28511b1c254c0f56d6ef56a7f39 4859 qt6-base_6.4.2+dfsg-2.dsc
 4ae8b50b0064c80f23312302c1b3921460a8f927 176824 qt6-base_6.4.2+dfsg-2.debian.tar.xz
 3b2903a8c3f69cc6d66fe37d5edd6f87f4523734 11813 qt6-base_6.4.2+dfsg-2_source.buildinfo
Checksums-Sha256:
 cadb6171a126f6770c15cc302e931942818df9f5bdcb8708311da27bbd531377 4859 qt6-base_6.4.2+dfsg-2.dsc
 58d3a2e2df93499d5267fe5b85db2b3c9251e58e8c739df13e9977125584ce77 176824 qt6-base_6.4.2+dfsg-2.debian.tar.xz
 f92271c88f367b9c6f5734440c2d498f35ea05180f9d9e1b8c0ac63fa69c279f 11813 qt6-base_6.4.2+dfsg-2_source.buildinfo
Files:
 8f02dfe0dd3142d76dddbe501bab3947 4859 libs optional qt6-base_6.4.2+dfsg-2.dsc
 f937ece19b860f7bc9ed285ccaf687f5 176824 libs optional qt6-base_6.4.2+dfsg-2.debian.tar.xz
 9fa4cab71beeb0159599ca0a9385db7c 11813 libs optional qt6-base_6.4.2+dfsg-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEEt36hKwjsrvwSzE8q2RfQGKGp9AFAmPhTGAUHGxpc2FuZHJv
QGRlYmlhbi5vcmcACgkQq2RfQGKGp9C8sg/+OGb8GnjX1GN3daos7kkHRyviwAKc
mkZIhaAFPbnTmaBAQ7sIBNho9hDUm2rFFdS0gzgdutFIJ/osPQ2AUtZ4GPP0gLPc
TdhogtP2nVDN2NT26X+vyUhS0po8VjdwOfkgIqv9+W0R260Ht2vtby37fkPDmNs4
N5r6ih+20OSTihH/TVNVBJ0S4bzKtOUJ57vPKOU46wUH65sY0VnpjDkbzr30ekLo
ex9xKA8F70XoQaugCL+rBzfq5uvzn9XzWKC8wxAJ6raZeCPL8vaPpB7y0g+kmb0+
ao5niAL9C9xqxJYaiJFpAf7BCTQQ2fz+Tct88wEFm1Nmk2LoQdQYH4lZXIwqxdvh
+crxmIqCI7zeg/vbvSqmZhJzpk2CWxqSOB3BNIcDz9dOCKibmyzJWsp/BwqrkZQA
E74UjwalV7gldE8Q7nlXNcn0MkblgGVW6u5FM4uS368GWB9t+qp7tNHf+KwMBHtT
+8d9aCijCtHwT8qEBc8GJ8kmY7eMvUbh2USekRLaX6HKoQ0BWZcpw3g0MSytAh6I
c4GkiS+pn/FP/XglYy9bp4tykfRYNeVb+i8Prikn4ExJGgsyejBl7Nj/7jeQJkIU
nuG/KF+dlxlKqbRyO9AwfMdranj4quFE1ccyG8hohuypOLgyLQlo8oTkVPhOuOkl
VA3Jk3f4p7DKK8Q=
=QRT0
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: