aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs3
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2006-12-19 21:19:54 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2006-12-19 21:19:54 +0000
commit1160fd7012e9178dcc628403246431be1258220c (patch)
tree7e40351a3df9a22683e158e9f84074c3071a0c56 /x11/kdelibs3
parentcba6322b417f491888799446be04740401e2d0fb (diff)
downloadports-1160fd7012e9178dcc628403246431be1258220c.tar.gz
ports-1160fd7012e9178dcc628403246431be1258220c.zip
Notes
Diffstat (limited to 'x11/kdelibs3')
-rw-r--r--x11/kdelibs3/Makefile7
-rw-r--r--x11/kdelibs3/distinfo6
-rw-r--r--x11/kdelibs3/files/patch-configure702
-rw-r--r--x11/kdelibs3/files/patch-cups-1.2.x-sockets441
-rw-r--r--x11/kdelibs3/pkg-plist1
5 files changed, 229 insertions, 928 deletions
diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile
index e005048593a6..af363daed050 100644
--- a/x11/kdelibs3/Makefile
+++ b/x11/kdelibs3/Makefile
@@ -8,7 +8,6 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE_VERSION}
-PORTREVISION?= 4
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
@@ -67,6 +66,7 @@ CONFIGURE_ARGS+=--disable-ltdl-install \
--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
--with-libthai=yes \
+ --with-lua=no \
--with-ssl-dir=${OPENSSLBASE}
CONFIGURE_ENV+= libltdl_cv_shlibext=".so"
@@ -88,6 +88,11 @@ pre-configure:
${REINPLACE_CMD} -e "s,applications.menu,kde-applications.menu,g" \
${WRKSRC}/kded/Makefile.in ${WRKSRC}/kded/kbuildsycoca.cpp
${REINPLACE_CMD} -e "s,hicolor,,g" ${WRKSRC}/pics/Makefile.in
+ ${REINPLACE_CMD} -e "s,/etc/exports,/nonexistent,g" \
+ -e "s,/etc/samba/,${LOCALBASE}/etc/,g" \
+ -e "s,/etc/security/,${LOCALBASE}/etc/,g" \
+ -e "s,'fileshare','network',g" \
+ ${WRKSRC}/kio/misc/fileshareset
${MV} ${WRKSRC}/kded/applications.menu ${WRKSRC}/kded/kde-applications.menu
post-configure:
diff --git a/x11/kdelibs3/distinfo b/x11/kdelibs3/distinfo
index 2097cf54e7e3..85c7caa7ecab 100644
--- a/x11/kdelibs3/distinfo
+++ b/x11/kdelibs3/distinfo
@@ -1,3 +1,3 @@
-MD5 (KDE/kdelibs-3.5.4.tar.bz2) = 979d056ca0e21c12caed270126e60e3e
-SHA256 (KDE/kdelibs-3.5.4.tar.bz2) = 9458d94d842855b4f0ea30520dc9ed0988563564bc72c8a86a5c40d57ab6887e
-SIZE (KDE/kdelibs-3.5.4.tar.bz2) = 15450025
+MD5 (KDE/kdelibs-3.5.5.tar.bz2) = 2cba792e3b0a766431b837c8ef924117
+SHA256 (KDE/kdelibs-3.5.5.tar.bz2) = e487cdd56aa14eec3e100501a5e14658c6329fac30ea0ce812c860e3564c31e3
+SIZE (KDE/kdelibs-3.5.5.tar.bz2) = 15486690
diff --git a/x11/kdelibs3/files/patch-configure b/x11/kdelibs3/files/patch-configure
deleted file mode 100644
index daa62d1877ab..000000000000
--- a/x11/kdelibs3/files/patch-configure
+++ /dev/null
@@ -1,702 +0,0 @@
---- configure.orig Tue May 23 23:15:11 2006
-+++ configure Sat May 27 14:25:02 2006
-@@ -21855,10 +21855,10 @@
-
-
- # This can be used to rebuild libtool when needed
--LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh"
-
- # Always use our own libtool.
--LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
-+LIBTOOL='$(SHELL) /usr/local/bin/libtool --silent'
-
- # Prevent multiple expansion
-
-@@ -42536,521 +42536,6 @@
-
-
-
-- HAVE_LUA=""
--
--
--# Check whether --with-lua-dir or --without-lua-dir was given.
--if test "${with_lua_dir+set}" = set; then
-- withval="$with_lua_dir"
--
-- LUA="$withval"
-- LUA_INCLUDES=-I"$withval"/include
-- LUA_LIBS="-L$withval/lib"
--fi;
--
--
--# Check whether --with-lua-includes or --without-lua-includes was given.
--if test "${with_lua_includes+set}" = set; then
-- withval="$with_lua_includes"
-- LUA_INCLUDES="-I$withval"
--fi;
--
--
--# Check whether --with-lua-libraries or --without-lua-libraries was given.
--if test "${with_lua_libraries+set}" = set; then
-- withval="$with_lua_libraries"
--
-- LUA_LIBS="-L$withval"
--fi;
--
--
-- if ! test "x$LUA" = "x"; then
-- echo "$as_me:$LINENO: result: using Lua from $LUA" >&5
--echo "${ECHO_T}using Lua from $LUA" >&6
-- fi
-- if ! test "x$LUA_LIBS" = "x"; then
-- echo "$as_me:$LINENO: result: using Lua libraries in $LUA_LIBS" >&5
--echo "${ECHO_T}using Lua libraries in $LUA_LIBS" >&6
-- fi
-- if ! test "x$LUA_INCLUDES" = "x"; then
-- echo "$as_me:$LINENO: result: using Lua includes in $LUA_INCLUDES" >&5
--echo "${ECHO_T}using Lua includes in $LUA_INCLUDES" >&6
-- fi
--
-- ac_save_CFLAGS="$CFLAGS"
-- ac_save_CPPFLAGS="$CPPFLAGS"
-- ac_save_LDFLAGS="$LDFLAGS"
-- CFLAGS="$LUA_INCLUDES $CFLAGS"
-- CPPFLAGS="$LUA_INCLUDES $CPPFLAGS"
-- LDFLAGS="$LUA_LIBS $LDFLAGS"
--
-- LUAH_FOUND=""
-- if test "${ac_cv_header_lua_h+set}" = set; then
-- echo "$as_me:$LINENO: checking for lua.h" >&5
--echo $ECHO_N "checking for lua.h... $ECHO_C" >&6
--if test "${ac_cv_header_lua_h+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--fi
--echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
--echo "${ECHO_T}$ac_cv_header_lua_h" >&6
--else
-- # Is the header compilable?
--echo "$as_me:$LINENO: checking lua.h usability" >&5
--echo $ECHO_N "checking lua.h usability... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--$ac_includes_default
--#include <lua.h>
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-- (eval $ac_compile) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } &&
-- { ac_try='test -z "$ac_c_werror_flag"
-- || test ! -s conftest.err'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; } &&
-- { ac_try='test -s conftest.$ac_objext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
-- ac_header_compiler=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_header_compiler=no
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
--echo "${ECHO_T}$ac_header_compiler" >&6
--
--# Is the header present?
--echo "$as_me:$LINENO: checking lua.h presence" >&5
--echo $ECHO_N "checking lua.h presence... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--#include <lua.h>
--_ACEOF
--if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
-- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } >/dev/null; then
-- if test -s conftest.err; then
-- ac_cpp_err=$ac_c_preproc_warn_flag
-- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
-- else
-- ac_cpp_err=
-- fi
--else
-- ac_cpp_err=yes
--fi
--if test -z "$ac_cpp_err"; then
-- ac_header_preproc=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
-- ac_header_preproc=no
--fi
--rm -f conftest.err conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
--echo "${ECHO_T}$ac_header_preproc" >&6
--
--# So? What about this header?
--case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-- yes:no: )
-- { echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
--echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
--echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
-- ac_header_preproc=yes
-- ;;
-- no:yes:* )
-- { echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
--echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: check for missing prerequisite headers?" >&5
--echo "$as_me: WARNING: lua.h: check for missing prerequisite headers?" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
--echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&5
--echo "$as_me: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
--echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
--echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
-- (
-- cat <<\_ASBOX
--## ------------------------------------------ ##
--## Report this to the AC_PACKAGE_NAME lists. ##
--## ------------------------------------------ ##
--_ASBOX
-- ) |
-- sed "s/^/$as_me: WARNING: /" >&2
-- ;;
--esac
--echo "$as_me:$LINENO: checking for lua.h" >&5
--echo $ECHO_N "checking for lua.h... $ECHO_C" >&6
--if test "${ac_cv_header_lua_h+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- ac_cv_header_lua_h=$ac_header_preproc
--fi
--echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
--echo "${ECHO_T}$ac_cv_header_lua_h" >&6
--
--fi
--if test $ac_cv_header_lua_h = yes; then
-- LUAH_FOUND="true"
--else
-- echo "$as_me:$LINENO: result: lua.h was not found or was not usable, Lua 5.0 headers are required !" >&5
--echo "${ECHO_T}lua.h was not found or was not usable, Lua 5.0 headers are required !" >&6
--
--fi
--
--
-- LUALIBH_FOUND=""
-- if test "${ac_cv_header_lualib_h+set}" = set; then
-- echo "$as_me:$LINENO: checking for lualib.h" >&5
--echo $ECHO_N "checking for lualib.h... $ECHO_C" >&6
--if test "${ac_cv_header_lualib_h+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--fi
--echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5
--echo "${ECHO_T}$ac_cv_header_lualib_h" >&6
--else
-- # Is the header compilable?
--echo "$as_me:$LINENO: checking lualib.h usability" >&5
--echo $ECHO_N "checking lualib.h usability... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--$ac_includes_default
--#include <lualib.h>
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-- (eval $ac_compile) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } &&
-- { ac_try='test -z "$ac_c_werror_flag"
-- || test ! -s conftest.err'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; } &&
-- { ac_try='test -s conftest.$ac_objext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
-- ac_header_compiler=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_header_compiler=no
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
--echo "${ECHO_T}$ac_header_compiler" >&6
--
--# Is the header present?
--echo "$as_me:$LINENO: checking lualib.h presence" >&5
--echo $ECHO_N "checking lualib.h presence... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--#include <lualib.h>
--_ACEOF
--if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
-- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } >/dev/null; then
-- if test -s conftest.err; then
-- ac_cpp_err=$ac_c_preproc_warn_flag
-- ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
-- else
-- ac_cpp_err=
-- fi
--else
-- ac_cpp_err=yes
--fi
--if test -z "$ac_cpp_err"; then
-- ac_header_preproc=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
-- ac_header_preproc=no
--fi
--rm -f conftest.err conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
--echo "${ECHO_T}$ac_header_preproc" >&6
--
--# So? What about this header?
--case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-- yes:no: )
-- { echo "$as_me:$LINENO: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&5
--echo "$as_me: WARNING: lualib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the compiler's result" >&5
--echo "$as_me: WARNING: lualib.h: proceeding with the compiler's result" >&2;}
-- ac_header_preproc=yes
-- ;;
-- no:yes:* )
-- { echo "$as_me:$LINENO: WARNING: lualib.h: present but cannot be compiled" >&5
--echo "$as_me: WARNING: lualib.h: present but cannot be compiled" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: check for missing prerequisite headers?" >&5
--echo "$as_me: WARNING: lualib.h: check for missing prerequisite headers?" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: see the Autoconf documentation" >&5
--echo "$as_me: WARNING: lualib.h: see the Autoconf documentation" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: section \"Present But Cannot Be Compiled\"" >&5
--echo "$as_me: WARNING: lualib.h: section \"Present But Cannot Be Compiled\"" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: proceeding with the preprocessor's result" >&5
--echo "$as_me: WARNING: lualib.h: proceeding with the preprocessor's result" >&2;}
-- { echo "$as_me:$LINENO: WARNING: lualib.h: in the future, the compiler will take precedence" >&5
--echo "$as_me: WARNING: lualib.h: in the future, the compiler will take precedence" >&2;}
-- (
-- cat <<\_ASBOX
--## ------------------------------------------ ##
--## Report this to the AC_PACKAGE_NAME lists. ##
--## ------------------------------------------ ##
--_ASBOX
-- ) |
-- sed "s/^/$as_me: WARNING: /" >&2
-- ;;
--esac
--echo "$as_me:$LINENO: checking for lualib.h" >&5
--echo $ECHO_N "checking for lualib.h... $ECHO_C" >&6
--if test "${ac_cv_header_lualib_h+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- ac_cv_header_lualib_h=$ac_header_preproc
--fi
--echo "$as_me:$LINENO: result: $ac_cv_header_lualib_h" >&5
--echo "${ECHO_T}$ac_cv_header_lualib_h" >&6
--
--fi
--if test $ac_cv_header_lualib_h = yes; then
-- LUALIBH_FOUND="true"
--else
-- echo "$as_me:$LINENO: result: lualib.h was not found or was not usable, Lua 5.0 headers are required !" >&5
--echo "${ECHO_T}lualib.h was not found or was not usable, Lua 5.0 headers are required !" >&6
--
--fi
--
--
--
--
-- if test -z "$LUALIBH_FOUND" -o -z "$LUAH_FOUND"; then
-- LUA_LIBS=""
-- else
-- echo "$as_me:$LINENO: checking for lua_version in -llua50" >&5
--echo $ECHO_N "checking for lua_version in -llua50... $ECHO_C" >&6
--if test "${ac_cv_lib_lua50_lua_version+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- ac_check_lib_save_LIBS=$LIBS
--LIBS="-llua50 $LIBS"
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--
--/* Override any gcc2 internal prototype to avoid an error. */
--#ifdef __cplusplus
--extern "C"
--#endif
--/* We use char because int might match the return type of a gcc2
-- builtin and then its argument prototype would still apply. */
--char lua_version ();
--int
--main ()
--{
--lua_version ();
-- ;
-- return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext conftest$ac_exeext
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-- (eval $ac_link) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } &&
-- { ac_try='test -z "$ac_c_werror_flag"
-- || test ! -s conftest.err'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; } &&
-- { ac_try='test -s conftest$ac_exeext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
-- ac_cv_lib_lua50_lua_version=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_cv_lib_lua50_lua_version=no
--fi
--rm -f conftest.err conftest.$ac_objext \
-- conftest$ac_exeext conftest.$ac_ext
--LIBS=$ac_check_lib_save_LIBS
--fi
--echo "$as_me:$LINENO: result: $ac_cv_lib_lua50_lua_version" >&5
--echo "${ECHO_T}$ac_cv_lib_lua50_lua_version" >&6
--if test $ac_cv_lib_lua50_lua_version = yes; then
-- LUA_LIBS="$LUA_LIBS -llua50 -llualib50"
--else
-- echo "$as_me:$LINENO: checking for lua_version in -llua" >&5
--echo $ECHO_N "checking for lua_version in -llua... $ECHO_C" >&6
--if test "${ac_cv_lib_lua_lua_version+set}" = set; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- ac_check_lib_save_LIBS=$LIBS
--LIBS="-llua $LIBS"
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--
--/* Override any gcc2 internal prototype to avoid an error. */
--#ifdef __cplusplus
--extern "C"
--#endif
--/* We use char because int might match the return type of a gcc2
-- builtin and then its argument prototype would still apply. */
--char lua_version ();
--int
--main ()
--{
--lua_version ();
-- ;
-- return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext conftest$ac_exeext
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-- (eval $ac_link) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } &&
-- { ac_try='test -z "$ac_c_werror_flag"
-- || test ! -s conftest.err'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; } &&
-- { ac_try='test -s conftest$ac_exeext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
-- ac_cv_lib_lua_lua_version=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_cv_lib_lua_lua_version=no
--fi
--rm -f conftest.err conftest.$ac_objext \
-- conftest$ac_exeext conftest.$ac_ext
--LIBS=$ac_check_lib_save_LIBS
--fi
--echo "$as_me:$LINENO: result: $ac_cv_lib_lua_lua_version" >&5
--echo "${ECHO_T}$ac_cv_lib_lua_lua_version" >&6
--if test $ac_cv_lib_lua_lua_version = yes; then
-- LUA_LIBS="$LUA_LIBS -llua -llualib"
--else
-- LUA_LIBS=""
-- echo "$as_me:$LINENO: result: Lua 5.0 libraries were not found !" >&5
--echo "${ECHO_T}Lua 5.0 libraries were not found !" >&6
--
--fi
--
--
--fi
--
-- fi
-- CFLAGS="$ac_save_CFLAGS"
-- CPPFLAGS="$ac_save_CPPFLAGS"
-- LDFLAGS="$ac_save_LDFLAGS"
--
--
-- if test -z "$LUA_LIBS"; then
-- LUA=""
-- LUA_INCLUDES=""
-- LUA_LIBS=""
-- else
--
--cat >>confdefs.h <<_ACEOF
--#define HAVE_LUA 1
--_ACEOF
--
-- HAVE_LUA="yes"
-- fi
--
--
--
--
--
--
--
- cat >>confdefs.h <<_ACEOF
- #define __KDE_EXECPREFIX "$exec_prefix"
- _ACEOF
-@@ -46439,7 +45924,7 @@
-
- echo "$as_me:$LINENO: checking installation of PS driver needed" >&5
- echo $ECHO_N "checking installation of PS driver needed... $ECHO_C" >&6
--ac_cups_share_test="/usr/share/cups /usr/local/share/cups /opt/share/cups /opt/local/share/cups"
-+ac_cups_share_test=`$kde_cups_config --datadir`
- cups_modeldir=""
- for d in $ac_cups_share_test; do
- if test -d $d && test -d $d/model; then
-@@ -48102,155 +47587,6 @@
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-
-
--
--for ac_header in valgrind/memcheck.h
--do
--as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
-- echo "$as_me:$LINENO: checking for $ac_header" >&5
--echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--fi
--echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
--echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
--else
-- # Is the header compilable?
--echo "$as_me:$LINENO: checking $ac_header usability" >&5
--echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--$ac_includes_default
--#include <$ac_header>
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-- (eval $ac_compile) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } &&
-- { ac_try='test -z "$ac_cxx_werror_flag"
-- || test ! -s conftest.err'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; } &&
-- { ac_try='test -s conftest.$ac_objext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
-- ac_header_compiler=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--ac_header_compiler=no
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
--echo "${ECHO_T}$ac_header_compiler" >&6
--
--# Is the header present?
--echo "$as_me:$LINENO: checking $ac_header presence" >&5
--echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--#include <$ac_header>
--_ACEOF
--if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
-- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
-- ac_status=$?
-- grep -v '^ *+' conftest.er1 >conftest.err
-- rm -f conftest.er1
-- cat conftest.err >&5
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } >/dev/null; then
-- if test -s conftest.err; then
-- ac_cpp_err=$ac_cxx_preproc_warn_flag
-- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
-- else
-- ac_cpp_err=
-- fi
--else
-- ac_cpp_err=yes
--fi
--if test -z "$ac_cpp_err"; then
-- ac_header_preproc=yes
--else
-- echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
-- ac_header_preproc=no
--fi
--rm -f conftest.err conftest.$ac_ext
--echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
--echo "${ECHO_T}$ac_header_preproc" >&6
--
--# So? What about this header?
--case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
-- yes:no: )
-- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
--echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
--echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-- ac_header_preproc=yes
-- ;;
-- no:yes:* )
-- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
--echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
--echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
--echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
--echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
--echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
--echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-- (
-- cat <<\_ASBOX
--## ------------------------------------------ ##
--## Report this to the AC_PACKAGE_NAME lists. ##
--## ------------------------------------------ ##
--_ASBOX
-- ) |
-- sed "s/^/$as_me: WARNING: /" >&2
-- ;;
--esac
--echo "$as_me:$LINENO: checking for $ac_header" >&5
--echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
--if eval "test \"\${$as_ac_Header+set}\" = set"; then
-- echo $ECHO_N "(cached) $ECHO_C" >&6
--else
-- eval "$as_ac_Header=\$ac_header_preproc"
--fi
--echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
--echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
--
--fi
--if test `eval echo '${'$as_ac_Header'}'` = yes; then
-- cat >>confdefs.h <<_ACEOF
--#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
--_ACEOF
--
--fi
--
--done
-
- CPPFLAGS=$kde_safe_cppflags
- ac_ext=c
diff --git a/x11/kdelibs3/files/patch-cups-1.2.x-sockets b/x11/kdelibs3/files/patch-cups-1.2.x-sockets
index be679ae693e6..ae126ad441f6 100644
--- a/x11/kdelibs3/files/patch-cups-1.2.x-sockets
+++ b/x11/kdelibs3/files/patch-cups-1.2.x-sockets
@@ -1,251 +1,248 @@
---- kdeprint/cups/Makefile.in Tue Sep 26 17:18:13 2006
-+++ kdeprint/cups/Makefile.in Tue Sep 26 17:19:12 2006
-@@ -110,7 +110,7 @@
- make_driver_db_cups_DEPENDENCIES = ../libdriverparse.a \
- $(top_builddir)/kdecore/libkdefakes.la $(am__DEPENDENCIES_1) \
- $(am__DEPENDENCIES_1)
--DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/dcop -I$(top_builddir)/kdecore -I$(top_builddir)/kio/kssl -I$(top_builddir)/kjs
-+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/dcop -I$(top_builddir)/kdecore -I$(top_builddir)/kdecore/network -I$(top_builddir)/kio/kssl -I$(top_builddir)/kjs
- depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
- am__depfiles_maybe = depfiles
- COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
---- kdeprint/cups/cupsinfos.cpp 2005/09/29 09:47:40 465272
-+++ kdeprint/cups/cupsinfos.cpp 2006/09/20 15:33:24 586778
-@@ -69,6 +69,13 @@
- {
+--- kdeprint/cups/ipprequest.cpp
++++ kdeprint/cups/ipprequest.cpp
+@@ -329,6 +329,10 @@
+ dumpRequest(request_, true);
+ }
+
++ /* No printers found */
++ if ( request_ && request_->request.status.status_code == 0x406 )
++ return true;
++
+ if (!request_ || request_->state == IPP_ERROR || (request_->request.status.status_code & 0x0F00))
+ return false;
+
+--- kdeprint/cups/kmcupsmanager.cpp
++++ kdeprint/cups/kmcupsmanager.cpp
+@@ -61,7 +61,7 @@
+ #define ppdi18n(s) i18n(QString::fromLocal8Bit(s).utf8())
+
+ void extractMaticData(QString& buf, const QString& filename);
+-QString printerURI(KMPrinter *p, bool useExistingURI = false);
++QString printerURI(KMPrinter *p, bool useExistingURI);
+ QString downloadDriver(KMPrinter *p);
+
+ static int trials = 5;
+@@ -218,7 +218,7 @@
+ QString uri;
+
+ req.setOperation(state);
+- uri = printerURI(p);
++ uri = printerURI(p, true);
+ req.addURI(IPP_TAG_OPERATION,"printer-uri",uri);
+ if (req.doRequest("/admin/"))
+ return true;
+--- kdeprint/cups/cupsinfos.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/cupsinfos.cpp 2006-10-26 21:29:07.000000000 +0300
+@@ -21,6 +21,7 @@
+ #include "kmfactory.h"
+ #include "kmtimer.h"
+ #include "messagewindow.h"
++#include "ipprequest.h"
+
+ #include <kio/passdlg.h>
+ #include <kio/authinfo.h>
+@@ -76,6 +77,11 @@
+ return host_;
}
-+QString CupsInfos::hostaddr() const
++QString CupsInfos::ippAssembleURI(const QString& resource) const
+{
-+ if (host_[0] != '/')
-+ return host_ + ":" + port_;
-+ return host_;
++ return IppRequest::assembleURI(host(), port(), resource);
+}
+
void CupsInfos::setHost(const QString& s)
{
host_ = s;
---- kdeprint/cups/kmcupsmanager.cpp 2005/11/28 03:56:46 483752
-+++ kdeprint/cups/kmcupsmanager.cpp 2006/09/20 15:38:41 586782
-@@ -45,12 +45,14 @@
- #include <klocale.h>
- #include <kconfig.h>
- #include <kstandarddirs.h>
-+#include <ksocketbase.h>
- #include <klibloader.h>
- #include <kmessagebox.h>
- #include <kaction.h>
- #include <kdialogbase.h>
- #include <kextendedsocket.h>
- #include <kprocess.h>
-+#include <kbufferedsocket.h>
- #include <kfilterdev.h>
- #include <cups/cups.h>
- #include <cups/ppd.h>
-@@ -88,7 +90,7 @@
-
- KMCupsManager::~KMCupsManager()
- {
-- //delete m_socket;
-+ delete m_socket;
+--- kdeprint/cups/cupsinfos.h 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/cupsinfos.h 2006-10-26 21:26:26.000000000 +0300
+@@ -34,6 +34,7 @@
+ const QString& host() const;
+ QString hostaddr() const;
+ int port() const;
++ QString ippAssembleURI(const QString& resource) const;
+ const QString& login() const;
+ const QString& password() const;
+ const QString& realLogin() const;
+--- kdeprint/cups/ipprequest.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/ipprequest.cpp 2006-10-26 21:33:09.000000000 +0300
+@@ -529,4 +529,48 @@
+ attr = attr->next;
+ }
+ #endif
++
++
}
++
++
++QString IppRequest::assembleURI(const QString& host, int port, const QString& resource)
++{
++ const char* hostname;
++
++ // Replace UNIX socket address with "localhost". ipp URI specification
++ // does not allow UNIX socket addresses in the host portion
++ if (host[0] == '/' || host.isEmpty()) {
++ hostname = "localhost";
++ port = 0;
++ } else {
++ hostname = host.local8Bit();
++ }
++
++ if (port < 0)
++ return QString::null;
++
++#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
++ QCString uri(HTTP_MAX_URI);
++
++ // Use URI assembling function provided by CUPS
++ if (httpAssembleURI(HTTP_URI_CODING_ALL, uri.data(), uri.size(),
++ "ipp", NULL, hostname, port, resource.local8Bit()) == HTTP_URI_OK)
++ return QString(uri);
++ else
++ return QString::null;
++
++#else
++ // Use our own URI assembling function
++ if (port > 0)
++ return QString("ipp://%1:%2%3")
++ .arg(hostname)
++ .arg(port)
++ .arg(KURL::encode_string(resource));
++ else
++ return QString("ipp://%1%2")
++ .arg(hostname)
++ .arg(KURL::encode_string(resource));
++#endif
++}
++
+--- kdeprint/cups/ipprequest.h 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/ipprequest.h 2006-10-26 21:24:41.000000000 +0300
+@@ -86,6 +86,9 @@
+ // debug function
+ void dump(int state);
+
++ // URI assembling function [static]
++ static QString assembleURI(const QString& host, int port, const QString& resource);
++
+ protected:
+ void addString_p(int group, int type, const QString& name, const QString& value);
+ void addStringList_p(int group, int type, const QString& name, const QStringList& values);
+--- kdeprint/cups/kmcupsjobmanager.cpp 2006-10-26 21:45:23.000000000 +0300
++++ kdeprint/cups/kmcupsjobmanager.cpp 2006-10-27 01:33:12.000000000 +0300
+@@ -92,7 +92,7 @@
+ case KMJob::Move:
+ if (argstr.isEmpty()) return false;
+ req.setOperation(CUPS_MOVE_JOB);
+- uri = QString::fromLatin1("ipp://%1:%2/printers/%3").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port()).arg(argstr);
++ uri = CupsInfos::self()->ippAssembleURI(QString("/printers/%1").arg(argstr));
+ req.addURI(IPP_TAG_OPERATION, "job-printer-uri", uri);
+ break;
+ default:
+@@ -109,7 +109,6 @@
+ bool KMCupsJobManager::listJobs(const QString& prname, KMJobManager::JobType type, int limit)
+ {
+ IppRequest req;
+- QString uri("ipp://%1:%2/%3/%4");
+ QStringList keys;
+ CupsInfos *infos = CupsInfos::self();
- QString KMCupsManager::driverDbCreationProgram()
-@@ -135,7 +137,8 @@
- {
+@@ -143,7 +142,8 @@
+ */
+ }
+ else
+- req.addURI(IPP_TAG_OPERATION, "printer-uri", uri.arg(infos->host()).arg(infos->port()).arg(((mp&&mp->isClass())?"classes":"printers")).arg(prname));
++ req.addURI(IPP_TAG_OPERATION, "printer-uri",
++ infos->ippAssembleURI(QString("/%1/%2").arg(((mp&&mp->isClass())?"classes":"printers")).arg(prname)));
+
+ // other attributes
+ req.addKeyword(IPP_TAG_OPERATION, "requested-attributes", keys);
+--- kdeprint/cups/kmcupsmanager.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/kmcupsmanager.cpp 2006-10-26 21:31:12.000000000 +0300
+@@ -138,7 +138,7 @@
req.setOperation(CUPS_ADD_CLASS);
QStringList members = p->members(), uris;
-- QString s = QString::fromLocal8Bit("ipp://%1:%2/printers/").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port());
-+ QString s;
-+ s = QString::fromLocal8Bit("ipp://%1/printers/").arg(CupsInfos::self()->hostaddr());
+ QString s;
+- s = QString::fromLocal8Bit("ipp://%1/printers/").arg(CupsInfos::self()->hostaddr());
++ s = CupsInfos::self()->ippAssembleURI("/printers/");
for (QStringList::ConstIterator it=members.begin(); it!=members.end(); ++it)
uris.append(s+(*it));
req.addURI(IPP_TAG_PRINTER,"member-uris",uris);
-@@ -907,25 +910,23 @@
-
- QString KMCupsManager::stateInformation()
- {
-- return QString("%1: %2:%3")
-+ return QString("%1: %2")
- .arg(i18n("Server"))
-- .arg(CupsInfos::self()->host())
-- .arg(CupsInfos::self()->port());
-+ .arg(CupsInfos::self()->hostaddr());
- }
-
- void KMCupsManager::checkUpdatePossibleInternal()
- {
- kdDebug(500) << "Checking for update possible" << endl;
- delete m_socket;
-- /*m_socket = new KExtendedSocket( CupsInfos::self()->host(), CupsInfos::self()->port() );
-- connect( m_socket, SIGNAL( connectionSuccess() ), SLOT( slotConnectionSuccess() ) );
-- connect( m_socket, SIGNAL( connectionFailed( int ) ), SLOT( slotConnectionFailed( int ) ) );
-- m_socket->setTimeout( 1 );*/
-- m_socket = new QSocket( this );
-- connect( m_socket, SIGNAL( connected() ), SLOT( slotConnectionSuccess() ) );
-- connect( m_socket, SIGNAL( error( int ) ), SLOT( slotConnectionFailed( int ) ) );
-- trials = 5;
-- QTimer::singleShot( 1, this, SLOT( slotAsyncConnect() ) );
-+ m_socket = new KNetwork::KBufferedSocket;
-+ m_socket->setTimeout( 1 );
-+ connect( m_socket, SIGNAL( connected(const KResolverEntry&) ),
-+ SLOT( slotConnectionSuccess() ) );
-+ connect( m_socket, SIGNAL( gotError( int ) ), SLOT( slotConnectionFailed( int ) ) );
-+
-+ trials = 5;
-+ QTimer::singleShot( 1, this, SLOT( slotAsyncConnect() ) );
- }
-
- void KMCupsManager::slotConnectionSuccess()
-@@ -959,7 +960,10 @@
- {
- kdDebug(500) << "Starting async connect" << endl;
- //m_socket->startAsyncConnect();
-- m_socket->connectToHost( CupsInfos::self()->host(), CupsInfos::self()->port() );
-+ if (CupsInfos::self()->host().startsWith("/"))
-+ m_socket->connect( QString(), CupsInfos::self()->host());
-+ else
-+ m_socket->connectToHost( CupsInfos::self()->host(), CupsInfos::self()->port() );
- }
-
- void KMCupsManager::slotConnectionFailed( int errcode )
-@@ -975,9 +979,25 @@
- return;
- }
-
-- setErrorMsg( i18n( "Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. "
-- "Error: %1." ).arg( errcode == QSocket::ErrConnectionRefused ? i18n( "connection refused" ) : i18n( "host not found" ) ) );
-- setUpdatePossible( false );
-+ QString einfo;
-+
-+ switch (errcode) {
-+ case KNetwork::KSocketBase::ConnectionRefused:
-+ case KNetwork::KSocketBase::ConnectionTimedOut:
-+ einfo = i18n("connection refused") + QString(" (%1)").arg(errcode);
-+ break;
-+ case KNetwork::KSocketBase::LookupFailure:
-+ einfo = i18n("host not found") + QString(" (%1)").arg(errcode);
-+ break;
-+ case KNetwork::KSocketBase::WouldBlock:
-+ default:
-+ einfo = i18n("read failed (%1)").arg(errcode);
-+ break;
-+ }
-+
-+ setErrorMsg( i18n( "Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. "
-+ "Error: %2: %1." ).arg( einfo, CupsInfos::self()->host()));
-+ setUpdatePossible( false );
- }
-
- void KMCupsManager::hostPingSlot() {
-@@ -1014,7 +1034,7 @@
+@@ -1024,7 +1024,7 @@
if (use && !p->uri().isEmpty())
uri = p->uri().prettyURL();
else
-- uri = QString("ipp://%1:%2/%4/%3").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port()).arg(p->printerName()).arg((p->isClass(false) ? "classes" : "printers"));
-+ uri = QString("ipp://%1/%3/%2").arg(CupsInfos::self()->hostaddr()).arg(p->printerName()).arg((p->isClass(false) ? "classes" : "printers"));
+- uri = QString("ipp://%1/%3/%2").arg(CupsInfos::self()->hostaddr()).arg(p->printerName()).arg((p->isClass(false) ? "classes" : "printers"));
++ uri = CupsInfos::self()->ippAssembleURI(QString("/%2/%1").arg(p->printerName()).arg((p->isClass(false) ? "classes" : "printers")));
return uri;
}
---- kdeprint/cups/kmcupsuimanager.cpp 2005/09/29 09:47:40 465272
-+++ kdeprint/cups/kmcupsuimanager.cpp 2006/09/20 15:38:41 586782
+--- kdeprint/cups/kmcupsuimanager.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/kmcupsuimanager.cpp 2006-10-26 21:34:02.000000000 +0300
@@ -135,7 +135,7 @@
QString uri;
req.setOperation(CUPS_GET_DEVICES);
-- uri = QString::fromLocal8Bit("ipp://%1:%2/printers/").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port());
-+ uri = QString::fromLocal8Bit("ipp://%1/printers/").arg(CupsInfos::self()->hostaddr());
+- uri = QString::fromLocal8Bit("ipp://%1/printers/").arg(CupsInfos::self()->hostaddr());
++ uri = CupsInfos::self()->ippAssembleURI("/printers/");
req.addURI(IPP_TAG_OPERATION,"printer-uri",uri);
if (req.doRequest("/"))
---- kdeprint/cups/cupsinfos.h 2005/09/29 09:47:40 465272
-+++ kdeprint/cups/cupsinfos.h 2006/09/20 15:33:24 586778
-@@ -32,6 +32,7 @@
- ~CupsInfos();
-
- const QString& host() const;
-+ QString hostaddr() const;
- int port() const;
- const QString& login() const;
- const QString& password() const;
---- kdeprint/cups/kmcupsmanager.h 2005/09/29 09:47:40 465272
-+++ kdeprint/cups/kmcupsmanager.h 2006/09/20 15:38:41 586782
-@@ -25,7 +25,10 @@
- class IppRequest;
- class KLibrary;
- class KExtendedSocket;
--class QSocket;
-+
-+namespace KNetwork {
-+ class KStreamSocket;
-+}
-
- class KMCupsManager : public KMManager
- {
-@@ -95,7 +98,7 @@
- private:
- KLibrary *m_cupsdconf;
- KMPrinter *m_currentprinter;
-- QSocket *m_socket;
-+ KNetwork::KStreamSocket *m_socket;
- bool m_hostSuccess;
- bool m_lookupDone;
- };
---- kdeprint/cups/cupsdconf2/cups-util.c 2005/11/30 19:59:17 484443
-+++ kdeprint/cups/cupsdconf2/cups-util.c 2006/09/20 15:22:50 586776
-@@ -14,7 +14,7 @@
- static int cups_local_auth(http_t *http);
-
- const char * /* O - Filename for PPD file */
--cupsGetConf()
-+cupsGetConf(void)
+--- kdeprint/cups/kmwfax.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/kmwfax.cpp 2006-10-26 21:34:54.000000000 +0300
+@@ -48,7 +48,7 @@
+ // initialize
+ IppRequest req;
+ req.setOperation(CUPS_GET_DEVICES);
+- QString uri = QString::fromLatin1("ipp://%1:%2/printers/").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port());
++ QString uri = CupsInfos::self()->ippAssembleURI("/printers/");
+ req.addURI(IPP_TAG_OPERATION,"printer-uri",uri);
+ if (req.doRequest("/"))
+ {
+--- kdeprint/cups/kmwippprinter.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/kmwippprinter.cpp 2006-10-26 21:41:20.000000000 +0300
+@@ -157,7 +157,7 @@
+ req.setOperation(IPP_GET_PRINTER_ATTRIBUTES);
+ req.setHost(item->text(1));
+ req.setPort(item->text(2).toInt());
+- uri = QString::fromLatin1("ipp://%1:%2/ipp").arg(item->text(1)).arg(item->text(2));
++ uri = IppRequest::assembleURI(item->text(1), item->text(2).toInt(), "/ipp");
+ req.addURI(IPP_TAG_OPERATION,"printer-uri",uri);
+ keys.append("printer-name");
+ keys.append("printer-state");
+@@ -176,7 +176,7 @@
+ if (req.uri("printer-uri-supported",value))
+ {
+ if (value[0] == '/')
+- value.prepend(QString::fromLatin1("ipp://%1:%2").arg(item->text(1)).arg(item->text(2)));
++ value = IppRequest::assembleURI(item->text(1), item->text(2).toInt(), value);
+ m_uri->setText(value);
+ }
+ if (req.text("printer-make-and-model",value) && !value.isEmpty()) txt.append(i18n("<b>Model</b>: %1<br>").arg(value));
+@@ -203,7 +203,7 @@
+ void KMWIppPrinter::slotIppReport()
{
- int fd; /* PPD file */
- int bytes; /* Number of bytes read */
-@@ -142,7 +142,11 @@
- */
-
- snprintf(plain, sizeof(plain), "%s:%s", cupsUser(), pwdstring);
-- httpEncode64(encode, plain);
-+#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
-+ httpEncode64_2(encode, sizeof(encode), plain, sizeof(plain));
-+#else
-+ httpEncode64(encode, plain);
-+#endif
- snprintf(authstring, sizeof(authstring), "Basic %s", encode);
- }
- else
-@@ -364,7 +368,11 @@
- */
-
- snprintf(plain, sizeof(plain), "%s:%s", cupsUser(), pwdstring);
-- httpEncode64(encode, plain);
-+#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
-+ httpEncode64_2(encode, sizeof(encode), plain, sizeof(plain));
-+#else
-+ httpEncode64(encode, plain);
-+#endif
- snprintf(authstring, sizeof(authstring), "Basic %s", encode);
- }
- else
-@@ -443,8 +451,7 @@
- the struct has changed in newer versions - PiggZ (adam@piggz.co.uk)
- */
- #if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
-- if (ntohl(*(int*)&http->_hostaddr.sin_addr) != 0x7f000001 &&
-- strcasecmp(http->hostname, "localhost") != 0)
-+ if (!httpAddrLocalhost(http))
- #else
- if (ntohl(*(int*)&http->hostaddr.sin_addr) != 0x7f000001 &&
- strcasecmp(http->hostname, "localhost") != 0)
---- kdeprint/cups/cupsdconf2/cups-util.h 2005/09/29 09:47:40 465272
-+++ kdeprint/cups/cupsdconf2/cups-util.h 2006/09/20 15:22:50 586776
-@@ -20,7 +20,7 @@
- #ifndef CUPS_UTIL_H
- #define CUPS_UTIL_H
-
--const char* cupsGetConf();
-+const char* cupsGetConf(void);
- int cupsPutConf(const char *filename);
-
- #endif
+ IppRequest req;
+- QString uri("ipp://%1:%2/ipp");
++ QString uri;
+ QListViewItem *item = m_list->currentItem();
+
+ if (item)
+@@ -211,7 +211,7 @@
+ req.setOperation(IPP_GET_PRINTER_ATTRIBUTES);
+ req.setHost(item->text(1));
+ req.setPort(item->text(2).toInt());
+- uri = uri.arg(item->text(1)).arg(item->text(2));
++ uri = IppRequest::assembleURI(item->text(1), item->text(2).toInt(), "/ipp");
+ req.addURI(IPP_TAG_OPERATION, "printer-uri", uri);
+ if (req.doRequest("/ipp/"))
+ {
+--- kdeprint/cups/kmwippselect.cpp 2006-10-26 19:31:11.000000000 +0300
++++ kdeprint/cups/kmwippselect.cpp 2006-10-26 21:32:34.000000000 +0300
+@@ -75,7 +75,7 @@
+ IppRequest req;
+ QString uri;
+ req.setOperation(CUPS_GET_PRINTERS);
+- uri = QString::fromLatin1("ipp://%1:%2/printers/").arg(url.host()).arg(url.port());
++ uri = IppRequest::assembleURI(url.host(), url.port(), "/printers/");
+ req.addURI(IPP_TAG_OPERATION,"printer-uri",uri);
+ req.addKeyword(IPP_TAG_OPERATION,"requested-attributes",QString::fromLatin1("printer-name"));
+ if (req.doRequest("/printers/"))
diff --git a/x11/kdelibs3/pkg-plist b/x11/kdelibs3/pkg-plist
index bfad1b9ed1a6..eb29486ed87e 100644
--- a/x11/kdelibs3/pkg-plist
+++ b/x11/kdelibs3/pkg-plist
@@ -59,6 +59,7 @@ bin/make_driver_db_lpr
bin/makekdewidgets
bin/meinproc
bin/preparetips
+bin/start_kdeinit
etc/rc.d/kdelibs.sh
etc/xdg/menus/kde-applications.menu
include/arts/artskde.h