View Single Post
Old 11-24-2023, 01:17 PM   #7
xtradeb
Junior Member
xtradeb began at the beginning.
 
xtradeb's Avatar
 
Posts: 9
Karma: 10
Join Date: Feb 2023
Device: Onyx BOOX Note Air2 Plus
Hi!

I looked into the changes prior to the failure and I found a workaround. See patch below.
Both, my local environment and launchpad.net (https://launchpad.net/~xtradeb/+arch...-archive-extra) are affected by the lines I'm removing as part of the workaround.
Strangely enough, the official source build system is not: https://launchpad.net/ubuntu/+source/calibre/7.0.0+ds-1

I'm not very knowledgeable in python. So, could you you please provide me a small patch to dump those variables (QMAKE_*) into to the build log? Hopefully, we will be able to understand why the build fails from it.


Quote:
--- a/setup/build.py
+++ b/setup/build.py
@@ -687,16 +687,6 @@
{abi_version}
sip-include-dirs = ["/usr/lib/python3/dist-packages/PyQt6/bindings"]

-[tool.sip.builder]
-qmake-settings = [
- 'QMAKE_CC = {self.env.cc}',
- 'QMAKE_CXX = {self.env.cxx}',
- 'QMAKE_LINK = {self.env.linker or self.env.cxx}',
- 'QMAKE_CFLAGS += {shlex.join(self.env.base_cflags)}',
- 'QMAKE_CXXFLAGS += {shlex.join(self.env.base_cxxflags)}',
- 'QMAKE_LFLAGS += {shlex.join(self.env.base_ldflags)}',
-]
-
[tool.sip.bindings.{ext.name}]
headers = {ext.headers}
sources = {sorted(ext.sources)}
Thanks!

Last edited by xtradeb; 11-24-2023 at 01:20 PM.
xtradeb is offline   Reply With Quote