All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v1] package/qt5base: fix libtool la file dependency_libs entries
Date: Tue, 30 Jul 2019 23:25:22 +0200	[thread overview]
Message-ID: <20190730212522.29386-1-ps.report@gmx.net> (raw)

Fixes [1]:

  libtool:   error: cannot find the library '' or unhandled argument '/.../host/riscv64-buildroot-linux-gnu/sysroot/usr/lib/libQt5Widgets.so'

Add upstream suggested patch ([2]) to  change la file dependency_libs entries
to -L<path> -l<library> version.

[1] http://autobuild.buildroot.net/results/79c1e1b7a1bc53c1e9b2ae0c9acb443e6d2e2994
[2] https://codereview.qt-project.org/c/qt/qtbase/+/269110

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 ...tool-la-file-dependency_libs-entries.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/qt5/qt5base/5.12.4/0005-qmake-fix-libtool-la-file-dependency_libs-entries.patch

diff --git a/package/qt5/qt5base/5.12.4/0005-qmake-fix-libtool-la-file-dependency_libs-entries.patch b/package/qt5/qt5base/5.12.4/0005-qmake-fix-libtool-la-file-dependency_libs-entries.patch
new file mode 100644
index 0000000000..f340dba060
--- /dev/null
+++ b/package/qt5/qt5base/5.12.4/0005-qmake-fix-libtool-la-file-dependency_libs-entries.patch
@@ -0,0 +1,34 @@
+From 3587189d495c3b9c9700d3bd0c985f2229675f6a Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Tue, 30 Jul 2019 22:02:53 +0200
+Subject: [PATCH] qmake: fix libtool la file dependency_libs entries
+
+Some versions of libtool does not handle absolute pathes for dynamic
+libraries, e.g.:
+
+  libtool:   error: cannot find the library '' or unhandled argument '/data/buildroot/buildroot-test/instance-0/output/host/riscv64-buildroot-linux-gnu/sysroot/usr/lib/libQt5Widgets.so'
+
+So change la file dependency_libs entries to -L<path> -l<library> version.
+
+Change-Id: I73eea5e73b859fc78c0642b09f765a4e90c71cdc
+Fixes: QTBUG-76625
+---
+ mkspecs/features/qt.prf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
+index 89f4946c50..779aa7df3f 100644
+--- a/mkspecs/features/qt.prf
++++ b/mkspecs/features/qt.prf
+@@ -217,7 +217,7 @@ for(ever) {
+                     lib = $$MODULE_LIBS/$$QMAKE_PREFIX_STATICLIB$${lib}.$$QMAKE_EXTENSION_STATICLIB
+                     PRE_TARGETDEPS += $$lib
+                 } else {
+-                    lib = $$MODULE_LIBS/$$QMAKE_PREFIX_SHLIB$${lib}.$$QMAKE_EXTENSION_SHLIB
++                    lib = -L$$MODULE_LIBS -l$${lib}
+                 }
+                 LIBS$$var_sfx += $$lib
+             }
+--
+2.22.0
+
--
2.22.0

             reply	other threads:[~2019-07-30 21:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 21:25 Peter Seiderer [this message]
2019-07-31  6:06 ` [Buildroot] [PATCH v1] package/qt5base: fix libtool la file dependency_libs entries Bernd Kuhls
2019-07-31  7:14 ` Andreas Naumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190730212522.29386-1-ps.report@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.