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

Re: qscintilla2: FTBFS on hppa - LD_LIBRARY_PATH incorrectly set



Control: retitle -1 'FTBFS on multiple architectures due to incorrect LD_LIBRARY_PATH'
Control: tags -1 +patch

Hi!

On Tue, 2023-11-28 at 10:13 +0100, John Paul Adrian Glaubitz wrote:
> --- qscintilla2-2.14.1+dfsg/debian/rules.orig   2023-07-22 20:17:16.000000000 +0200
> +++ qscintilla2-2.14.1+dfsg/debian/rules        2023-11-28 10:12:29.317757619 +0100
> @@ -46,7 +46,7 @@
>  Python/build-%/configure-stamp: build-library-stamp
>         dh_testdir
>         cp -f Python/pyproject-qt5.toml Python/pyproject.toml
> -       cd Python && python$* /usr/bin/sip-build \
> +       cd Python && LD_LIBRARY_PATH=$(CURDIR)/QSciQt5 python$* /usr/bin/sip-build \
>                 --verbose --no-make --pep484-pyi \
>                 --qmake /usr/bin/$(DEB_HOST_GNU_TYPE)-qmake \
>                 --qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \
> @@ -59,7 +59,7 @@
>                 --qsci-library-dir $(CURDIR)/QSciQt5
>  ifeq ($(qt6), "yes")
>         cp -f Python/pyproject-qt6.toml Python/pyproject.toml
> -       cd Python && python$* /usr/bin/sip-build \
> +       cd Python && LD_LIBRARY_PATH=$(CURDIR)/QSciQt6 python$* /usr/bin/sip-build \
>                 --verbose --no-make --pep484-pyi \
>                 --qmake /usr/bin/qmake6 \
>                 --qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \

I can confirm that this patch fixes the problem for me. Attaching it as a file.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- qscintilla2-2.14.1+dfsg/debian/rules.orig	2023-07-22 20:17:16.000000000 +0200
+++ qscintilla2-2.14.1+dfsg/debian/rules	2023-11-28 10:12:29.317757619 +0100
@@ -46,7 +46,7 @@
 Python/build-%/configure-stamp: build-library-stamp
 	dh_testdir
 	cp -f Python/pyproject-qt5.toml Python/pyproject.toml
-	cd Python && python$* /usr/bin/sip-build \
+	cd Python && LD_LIBRARY_PATH=$(CURDIR)/QSciQt5 python$* /usr/bin/sip-build \
 		--verbose --no-make --pep484-pyi \
 		--qmake /usr/bin/$(DEB_HOST_GNU_TYPE)-qmake \
 		--qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \
@@ -59,7 +59,7 @@
 		--qsci-library-dir $(CURDIR)/QSciQt5
 ifeq ($(qt6), "yes")
 	cp -f Python/pyproject-qt6.toml Python/pyproject.toml
-	cd Python && python$* /usr/bin/sip-build \
+	cd Python && LD_LIBRARY_PATH=$(CURDIR)/QSciQt6 python$* /usr/bin/sip-build \
 		--verbose --no-make --pep484-pyi \
 		--qmake /usr/bin/qmake6 \
 		--qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \

Reply to: