[oe-commits] org.oe.dev packages/konqueror/konqueror-embedded-20060404: Fix of KDE-config error

kristoffer commit openembedded-commits at lists.openembedded.org
Mon Oct 9 22:12:36 UTC 2006


packages/konqueror/konqueror-embedded-20060404: Fix of KDE-config error
* This fixes configure error "kde-config not found..." by removing
  those checks from acinclude.m4. Changes applied to .bb file
  and addition of patch. Kde-config is the spawn of the devil.
  Confirmed build.

Author: kristoffer at openembedded.org
Branch: org.openembedded.dev
Revision: d34ae4bc4eedb46746f3e03ce6a8dedf8d1a566a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=d34ae4bc4eedb46746f3e03ce6a8dedf8d1a566a
Files:
1
packages/konqueror/konqueror-embedded-20060404
packages/konqueror/konqueror-embedded-20060404/dont-use-kde-config.patch
packages/konqueror/konqueror-embedded_20060404.bb
Diffs:

#
# mt diff -r2d07bbfac0832656a770c9f8bb610ec4ccba55cc -rd34ae4bc4eedb46746f3e03ce6a8dedf8d1a566a
#
# 
# 
# add_dir "packages/konqueror/konqueror-embedded-20060404"
# 
# add_file "packages/konqueror/konqueror-embedded-20060404/dont-use-kde-config.patch"
#  content [b4a811beb101cd8d745c53d0d7aa0f36203ad0b3]
# 
# patch "packages/konqueror/konqueror-embedded_20060404.bb"
#  from [38114eaf7e3ff0718993e3de7ca8a5a0f70df452]
#    to [6d786e23134a32b051d952180273c9bfab14f238]
# 
============================================================
--- packages/konqueror/konqueror-embedded-20060404/dont-use-kde-config.patch	b4a811beb101cd8d745c53d0d7aa0f36203ad0b3
+++ packages/konqueror/konqueror-embedded-20060404/dont-use-kde-config.patch	b4a811beb101cd8d745c53d0d7aa0f36203ad0b3
@@ -0,0 +1,62 @@
+--- kdenox/devscripts/acinclude.m4.in.qt2_orig	2006-10-09 23:45:34.000000000 +0000
++++ kdenox/devscripts/acinclude.m4.in.qt2	2006-10-09 23:47:51.000000000 +0000
+@@ -4937,31 +4937,31 @@
+   AC_PREFIX_DEFAULT(${KDEDIR:-the kde prefix})
+ 
+   KDE_SET_DEFAULT_BINDIRS
+-  if test "x$prefix" = "xNONE"; then
++  dnl if test "x$prefix" = "xNONE"; then
+     dnl no prefix given: look for kde-config in the PATH and deduce the prefix from it
+-    KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
+-  else
++    dnl KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
++  dnl else
+     dnl prefix given: look for kde-config, preferrably in prefix, otherwise in PATH
+-    kde_save_PATH="$PATH"
+-    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
+-    KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
+-    PATH="$kde_save_PATH"
+-  fi
+-
+-  kde_libs_prefix=`$KDECONFIG --prefix`
+-  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
+-       AC_MSG_ERROR([$KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
+-                    This means it has been moved since you installed it.
+-                    This won't work. Please recompile kdelibs for the new prefix.
+-                    ])
+-  fi
+-  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
+-  kde_libs_suffix=`$KDECONFIG --libsuffix`
++    dnl kde_save_PATH="$PATH"
++    dnl PATH="$exec_prefix/bin:$prefix/bin:$PATH"
++    dnl KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
++    dnl PATH="$kde_save_PATH"
++  dnl fi
++
++  dnl kde_libs_prefix=`$KDECONFIG --prefix`
++  dnl if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
++  dnl AC_MSG_ERROR([$KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
++  dnl                    This means it has been moved since you installed it.
++  dnl                    This won't work. Please recompile kdelibs for the new prefix.
++  dnl                    ])
++  dnl fi
++  dnl kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
++  dnl kde_libs_suffix=`$KDECONFIG --libsuffix`
+ 
+   AC_MSG_CHECKING([where to install])
+   if test "x$prefix" = "xNONE"; then
+     prefix=$kde_libs_prefix
+-    AC_MSG_RESULT([$prefix (as returned by kde-config)])
++dnl    AC_MSG_RESULT([$prefix (as returned by kde-config)])
+   else
+     dnl --prefix was given. Compare prefixes and warn (in configure.in.bot.end) if different
+     given_prefix=$prefix
+@@ -4973,7 +4973,7 @@
+   exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
+   given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
+ 
+-  AC_SUBST(KDECONFIG)
++  dnl AC_SUBST(KDECONFIG)
+   AC_SUBST(kde_libs_prefix)
+   AC_SUBST(kde_libs_htmldir)
+ 
============================================================
--- packages/konqueror/konqueror-embedded_20060404.bb	38114eaf7e3ff0718993e3de7ca8a5a0f70df452
+++ packages/konqueror/konqueror-embedded_20060404.bb	6d786e23134a32b051d952180273c9bfab14f238
@@ -12,7 +12,8 @@ SRC_URI = "svn://anonsvn.kde.org/home/kd
 
 SRC_URI = "svn://anonsvn.kde.org/home/kde/tags/KDE/3.5.1;module=kdelibs;date=${PV} \
            svn://anonsvn.kde.org/home/kde/trunk;module=kdenox;date=${PV} \
-           file://gcc4.patch;patch=1"
+           file://gcc4.patch;patch=1 \
+	   file://dont-use-kde-config.patch;patch=0"
 # uncomment this for a static build
 #          file://inject-extraflags.patch;patch=1"
 S = "${WORKDIR}/kdenox"






More information about the Openembedded-commits mailing list