From: Jakub Bogusz Date: Mon, 26 Dec 2022 14:54:47 +0000 (+0100) Subject: - added link patch to fix build when older libxfce4ui is installed in system X-Git-Tag: auto/th/libxfce4ui-4.18.1-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=dc9f44cd5f75b1450d4b54f8f4fcca55cea210c7;p=packages%2Flibxfce4ui.git - added link patch to fix build when older libxfce4ui is installed in system --- diff --git a/libxfce4ui-link.patch b/libxfce4ui-link.patch new file mode 100644 index 0000000..7e440de --- /dev/null +++ b/libxfce4ui-link.patch @@ -0,0 +1,13 @@ +Drop -L%{_libdir} from linking so that just built libxfce4ui is before +older system version in linker search path. + +--- libxfce4ui-4.18.0/libxfce4kbd-private/Makefile.am.orig 2022-10-30 12:33:05.000000000 +0100 ++++ libxfce4ui-4.18.0/libxfce4kbd-private/Makefile.am 2022-12-26 15:50:55.466362077 +0100 +@@ -61,7 +61,6 @@ libxfce4kbd_private_3_la_LDFLAGS = \ + -version-info $(LIBXFCE4KBD_PRIVATE_VERINFO) \ + -export-symbols-regex "^[^_].*" \ + -no-undefined \ +- $(LIBX11_LDFLAGS) \ + $(PLATFORM_LDFLAGS) + + libxfce4kbd_private_3_la_LIBADD = \ diff --git a/libxfce4ui.spec b/libxfce4ui.spec index ea0b630..710d18c 100644 --- a/libxfce4ui.spec +++ b/libxfce4ui.spec @@ -13,6 +13,7 @@ License: LGPL v2 Group: X11/Libraries Source0: https://archive.xfce.org/src/xfce/libxfce4ui/4.18/%{name}-%{version}.tar.bz2 # Source0-md5: e7b94990266683a0998bd25f78b208cb +Patch0: %{name}-link.patch URL: https://www.xfce.org/ BuildRequires: autoconf >= 2.60 BuildRequires: automake >= 1:1.11 @@ -138,6 +139,7 @@ Wsparcie dla libxfce4ui w Glade. %prep %setup -q +%patch0 -p1 mkdir -p m4