subversion-1.8.0-kwallet.patch 1.5 KB

12345678910111213141516171819202122232425262728
  1. The first half of this is certainly upstream-worthy, but the second half is presumably
  2. some Fedora-specific KDE packaging thing. It's not obvious how to get
  3. kde4-config to report the directory which contains the .so files.
  4. --- subversion-1.8.0/build/ac-macros/kwallet.m4.kwallet
  5. +++ subversion-1.8.0/build/ac-macros/kwallet.m4
  6. @@ -63,15 +63,15 @@ AC_DEFUN(SVN_LIB_KWALLET,
  7. fi
  8. done
  9. qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
  10. - kde_dir="`$KDE4_CONFIG --prefix`"
  11. - SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
  12. + kde_include_dirs="-I`$KDE4_CONFIG --path include`"
  13. + SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_include_dirs"
  14. qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
  15. SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
  16. CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
  17. LIBS="$LIBS $SVN_KWALLET_LIBS"
  18. qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
  19. kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
  20. - LDFLAGS="$old_LDFLAGS `SVN_REMOVE_STANDARD_LIB_DIRS($qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix)`"
  21. + LDFLAGS="$old_LDFLAGS `SVN_REMOVE_STANDARD_LIB_DIRS($qt_lib_dirs)` -L$libdir/kde4/devel"
  22. AC_LANG(C++)
  23. AC_LINK_IFELSE([AC_LANG_SOURCE([[
  24. #include <kwallet.h>