From e5e7300c39175f838b830422d78e906ac3f235ff Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 22 Feb 2025 11:09:17 +0100 Subject: [PATCH] guix: remove xcb libs --- contrib/depends/packages/libXau.mk | 4 ++++ contrib/depends/packages/native_qt.mk | 1 - contrib/guix/libexec/build.sh | 4 ---- contrib/guix/manifest.scm | 9 --------- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/contrib/depends/packages/libXau.mk b/contrib/depends/packages/libXau.mk index 59a117b4..cc220bd2 100644 --- a/contrib/depends/packages/libXau.mk +++ b/contrib/depends/packages/libXau.mk @@ -31,3 +31,7 @@ endef define $(package)_stage_cmds DESTDIR=$($(package)_staging_dir) ninja -C build install endef + +define $(package)_postprocess_cmds + sed -i 's/Requires: xproto//g' lib/pkgconfig/xau.pc +endef diff --git a/contrib/depends/packages/native_qt.mk b/contrib/depends/packages/native_qt.mk index 410cf7b0..89164040 100644 --- a/contrib/depends/packages/native_qt.mk +++ b/contrib/depends/packages/native_qt.mk @@ -166,7 +166,6 @@ define $(package)_config_cmds export PKG_CONFIG_LIBDIR=$(build_prefix)/lib/pkgconfig && \ export QT_MAC_SDK_NO_VERSION_CHECK=1 && \ unset CMAKE_PREFIX_PATH && \ - export CMAKE_PREFIX_PATH="$(QT_LIBS)" && \ cd qtbase && \ ./configure -top-level $($(package)_config_opts) endef diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 21879f48..3c5182e6 100755 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -83,8 +83,6 @@ store_path() { # includes/libs NATIVE_GCC="$(store_path gcc-toolchain)" NATIVE_GCC_STATIC="$(store_path gcc-toolchain static)" -QT_LIBS="$(store_path xcb-util):$(store_path xcb-util-renderutil):$(store_path xcb-util-keysyms):$(store_path xcb-util-cursor):$(store_path xcb-util-image):$(store_path xcb-util-wm):" -QT_LIBS_LIBS="$(echo "${QT_LIBS}" | sed 's/:/\/lib:/g')" unset LIBRARY_PATH unset CPATH @@ -98,8 +96,6 @@ export C_INCLUDE_PATH="${NATIVE_GCC}/include" export CPLUS_INCLUDE_PATH="${NATIVE_GCC}/include/c++:${NATIVE_GCC}/include" export OBJC_INCLUDE_PATH="${NATIVE_GCC}/include" export OBJCPLUS_INCLUDE_PATH="${NATIVE_GCC}/include/c++:${NATIVE_GCC}/include" -export QT_LIBS -export QT_LIBS_LIBS prepend_to_search_env_var() { export "${1}=${2}${!1:+:}${!1}" diff --git a/contrib/guix/manifest.scm b/contrib/guix/manifest.scm index 538ba8a1..b9f29112 100644 --- a/contrib/guix/manifest.scm +++ b/contrib/guix/manifest.scm @@ -487,15 +487,6 @@ inspecting signatures in Mach-O binaries.") ;; Git git-minimal ; used to create the release source archive - - ;; Xcb - ;; needed to build native_qt in depends - xcb-util - xcb-util-cursor - xcb-util-image - xcb-util-keysyms - xcb-util-renderutil - xcb-util-wm ) (let ((target (getenv "HOST"))) (cond ((string-contains target "-mingw32") -- 2.52.0