Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit wsmancli
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Fri, 03 Aug 2007 17:20:49 +0200
  • Message-id: <20070803152049.44B11678180@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package wsmancli
checked in at Fri Aug 3 17:20:49 CEST 2007.

--------
--- wsmancli/wsmancli.changes   2007-07-24 10:44:21.000000000 +0200
+++ /mounts/work_src_done/STABLE/wsmancli/wsmancli.changes      2007-08-03 14:13:19.085343000 +0200
@@ -1,0 +2,7 @@
+Fri Aug  3 14:12:32 CEST 2007 - kkaempf@xxxxxxx
+
+- update to 1.2.0
+- fix dependencies
+- fix compiler warnings
+
+-------------------------------------------------------------------

Old:
----
  wsmancli-1.1.0.tar.bz2
  wsmancli-1.1.0-uninitialized.patch

New:
----
  wsmancli-1.2.0.patch
  wsmancli-1.2.0.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wsmancli.spec ++++++
--- /var/tmp/diff_new_pack.H21490/_old  2007-08-03 17:20:35.000000000 +0200
+++ /var/tmp/diff_new_pack.H21490/_new  2007-08-03 17:20:35.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package wsmancli (Version 1.1.0)
+# spec file for package wsmancli (Version 1.2.0)
 #
 # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # This file and all modifications and additions to the pristine
@@ -17,14 +17,14 @@
 %else
 BuildRequires:  curl-devel
 %endif
-Version:        1.1.0
-Release:        3
+Version:        1.2.0
+Release:        1
 URL:            http://www.openwsman.org/
 License:        BSD 3-Clause
 Group:          System/Management
 Summary:        Opensource Implementation of WS-Management - Command line utility
 Source:         %{name}-%{version}.tar.bz2
-Patch0:         %{name}-%{version}-uninitialized.patch
+Patch0:         %{name}-%{version}.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -32,6 +32,12 @@
 
 
 
+Authors:
+--------
+    Anas Nashif <anas.nashif@xxxxxxxxx>
+    Vadim Revyakin <vadim.revyakin@xxxxxxxxx>
+    Denis Sadykov <denis.sadykov@xxxxxxxxx>
+
 %prep
 %setup -q
 %patch0
@@ -51,6 +57,10 @@
 %{_bindir}/wsman
 
 %changelog
+* Fri Aug 03 2007 - kkaempf@xxxxxxx
+- update to 1.2.0
+- fix dependencies
+- fix compiler warnings
 * Tue Jul 24 2007 - prusnak@xxxxxxx
 - added openwsman-client to BuildRequires
 * Fri Jul 13 2007 - prusnak@xxxxxxx

++++++ wsmancli-1.1.0-uninitialized.patch -> wsmancli-1.2.0.patch ++++++
--- wsmancli/wsmancli-1.1.0-uninitialized.patch 2007-07-13 13:32:44.000000000 +0200
+++ /mounts/work_src_done/STABLE/wsmancli/wsmancli-1.2.0.patch  2007-08-03 14:13:19.068362000 +0200
@@ -1,6 +1,26 @@
---- src/wsman.c
-+++ src/wsman.c
-@@ -430,7 +430,7 @@
+Index: src/wsman.c
+===================================================================
+--- src/wsman.c        (revision 1740)
++++ src/wsman.c        (revision 1745)
+@@ -49,13 +49,13 @@
+ #include <time.h>

+ #include <wsman-client-api.h>
++#include <wsman-client-transport.h>
+ #include <wsman-debug.h>
+ // #include "wsman-client-options.h"

+-
+-
+-static const char **wsman_argv = NULL;
+-
++#if __linux__
++extern char *getpass (const char *__prompt);
++#endif

+ static int server_port = 0;
+ static char *cainfo = NULL;
+@@ -486,7 +486,7 @@
        dictionary *ini = NULL;
        WsManClient *cl;
        WsXmlDocH doc;
@@ -9,3 +29,69 @@
        WsXmlDocH rqstDoc;
        client_opt_t *options;
        WsXmlDocH enum_response;
+@@ -836,7 +836,7 @@
+               }
+       }
+       wsmc_options_destroy(options);
+-      wsmc_transport_fini();
++      wsmc_transport_fini(cl);
+       wsmc_release(cl);
+       if (ini) {
+               iniparser_freedict(ini);
+Index: examples/win32_service.c
+===================================================================
+--- examples/win32_service.c   (revision 1740)
++++ examples/win32_service.c   (revision 1745)
+@@ -160,7 +160,7 @@
+ static int list_services(WsManClient *cl, WsXmlDocH doc, void *data)
+ {
+       if (!doc) {
+-              return;
++              return 0;
+       }
+       if (dump)
+               ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc));
+@@ -174,7 +174,9 @@
+                               RESOURCE_URI, NULL,
+                               0, 0);
+               print_info(service);
++              return 1;
+       }
++      return 0;
+ }


+Index: examples/create_resource.c
+===================================================================
+--- examples/create_resource.c (revision 1740)
++++ examples/create_resource.c (revision 1745)
+@@ -120,7 +120,7 @@
+     u_uri_t *uri;
+     if (endpoint) {
+       if (u_uri_parse((const char *)endpoint, &uri)!=0 )
+-              return;
++              return 1;
+     }
+     if (!endpoint || !uri) {
+       fprintf(stderr, "endpoint option required\n");
+Index: examples/enum_epr.c
+===================================================================
+--- examples/enum_epr.c        (revision 1740)
++++ examples/enum_epr.c        (revision 1745)
+@@ -130,7 +130,6 @@
+ {
+       
+     WsManClient *cl;
+-    WsXmlDocH doc;
+     client_opt_t *options;
+     char retval = 0;
+     u_error_t *error = NULL;
+@@ -185,7 +184,7 @@
+     wsmc_action_enumerate_and_pull(cl, argv[1] , options, collect_epr, l );
+     
+     
+-    printf("returned items: %d\n", list_count(l));
++    printf("returned items: %d\n", (int)list_count(l));
+     lnode_t *node = list_first(l);
+     while(node) {
+       WsmanEpr* epr = (WsmanEpr*) node->list_data;

++++++ wsmancli-1.1.0.tar.bz2 -> wsmancli-1.2.0.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/configure new/wsmancli-1.2.0/configure
--- old/wsmancli-1.1.0/configure        2007-06-25 19:00:37.000000000 +0200
+++ new/wsmancli-1.2.0/configure        2007-08-02 23:33:15.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.60 for wsmancli 1.1.0.
+# Generated by GNU Autoconf 2.60 for wsmancli 1.2.0.
 #
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -557,8 +557,8 @@
 # Identity of this package.
 PACKAGE_NAME='wsmancli'
 PACKAGE_TARNAME='wsmancli'
-PACKAGE_VERSION='1.1.0'
-PACKAGE_STRING='wsmancli 1.1.0'
+PACKAGE_VERSION='1.2.0'
+PACKAGE_STRING='wsmancli 1.2.0'
 PACKAGE_BUGREPORT=''
 
 ac_unique_file="wsmancli.spec.in"
@@ -1209,7 +1209,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures wsmancli 1.1.0 to adapt to many kinds of systems.
+\`configure' configures wsmancli 1.2.0 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1275,7 +1275,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of wsmancli 1.1.0:";;
+     short | recursive ) echo "Configuration of wsmancli 1.2.0:";;
    esac
   cat <<\_ACEOF
 
@@ -1366,7 +1366,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-wsmancli configure 1.1.0
+wsmancli configure 1.2.0
 generated by GNU Autoconf 2.60
 
 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1380,7 +1380,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by wsmancli $as_me 1.1.0, which was
+It was created by wsmancli $as_me 1.2.0, which was
 generated by GNU Autoconf 2.60.  Invocation command line was
 
   $ $0 $@
@@ -2051,7 +2051,7 @@
 
 # Define the identity of the package.
  PACKAGE=wsmancli
- VERSION=1.1.0
+ VERSION=1.2.0
 
 
 cat >>confdefs.h <<_ACEOF
@@ -6891,7 +6891,7 @@
 fi
 
 
-ac_config_files="$ac_config_files wsmancli.spec Makefile src/Makefile examples/Makefile tests/Makefile tests/interop/Makefile tests/cunit/Makefile"
+ac_config_files="$ac_config_files wsmancli.spec Makefile src/Makefile examples/Makefile examples/cpp/Makefile tests/Makefile tests/interop/Makefile tests/cunit/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -7325,7 +7325,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by wsmancli $as_me 1.1.0, which was
+This file was extended by wsmancli $as_me 1.2.0, which was
 generated by GNU Autoconf 2.60.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -7378,7 +7378,7 @@
 _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-wsmancli config.status 1.1.0
+wsmancli config.status 1.2.0
 configured by $0, generated by GNU Autoconf 2.60,
   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
@@ -7497,6 +7497,7 @@
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
+    "examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;;
     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
     "tests/interop/Makefile") CONFIG_FILES="$CONFIG_FILES tests/interop/Makefile" ;;
     "tests/cunit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cunit/Makefile" ;;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/configure.in new/wsmancli-1.2.0/configure.in
--- old/wsmancli-1.1.0/configure.in     2007-06-25 19:00:35.000000000 +0200
+++ new/wsmancli-1.2.0/configure.in     2007-08-02 23:33:02.000000000 +0200
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(wsmancli, 1.1.0)
+AC_INIT(wsmancli, 1.2.0)
 AC_CONFIG_SRCDIR(wsmancli.spec.in)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 AM_CONFIG_HEADER(config.h)
@@ -25,6 +25,7 @@
        Makefile
        src/Makefile
        examples/Makefile
+       examples/cpp/Makefile
         tests/Makefile
         tests/interop/Makefile
         tests/cunit/Makefile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/examples/cpp/EnumInstance.cpp new/wsmancli-1.2.0/examples/cpp/EnumInstance.cpp
--- old/wsmancli-1.1.0/examples/cpp/EnumInstance.cpp    1970-01-01 01:00:00.000000000 +0100
+++ new/wsmancli-1.2.0/examples/cpp/EnumInstance.cpp    2007-08-02 23:29:54.000000000 +0200
@@ -0,0 +1,48 @@
+#include <iostream>
+#include <cpp/OpenWsmanClient.h>
+#include <u/libu.h>
+
+using std::cout;
+
+using namespace WsmanClientNamespace;
+int main(int argc, char* argv[])
+{
+       const char *endpoint, *resource_uri;
+       u_uri_t *uri;
+       if (argc< 3) {
+               fprintf(stderr, "Usage: %s <endpoint> <resource uri>\n", argv[0]);
+       }
+       endpoint= argv[1];
+       resource_uri = argv[2];
+
+       if (!endpoint || !resource_uri) {
+               fprintf(stderr, "endpoint option required\n");
+               return 1;
+       }
+       if (endpoint != NULL)
+               if (u_uri_parse((const char *) endpoint, &uri) != 0 )
+                       return 1;
+       OpenWsmanClient *client = new OpenWsmanClient( uri->host,
+                       uri->port,
+                       uri->path,
+                       uri->scheme,
+                       "digest",
+                       uri->user,
+                       uri->pwd);
+       vector<string> vec;
+       try {
+               client->Enumerate(resource_uri, vec );
+       }
+
+       catch (GeneralWsmanException &e) {
+               printf("\nError: failed while calling AMT_SOAPEventSubscriber::Delete routine\n");
+               printf("GeneralWsmanException:\n");
+               printf("%s\n", e.what());
+
+       }
+       for (vector<string>::iterator iter = vec.begin();
+                       iter != vec.end(); ++iter) {
+               cout << "item: " << *iter << "\n";
+       }
+       return 0;
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/examples/cpp/Makefile.am new/wsmancli-1.2.0/examples/cpp/Makefile.am
--- old/wsmancli-1.1.0/examples/cpp/Makefile.am 1970-01-01 01:00:00.000000000 +0100
+++ new/wsmancli-1.2.0/examples/cpp/Makefile.am 2007-08-02 23:31:55.000000000 +0200
@@ -0,0 +1,14 @@
+       
+LDADD = \
+       -lwsman_clientpp
+
+CXXFLAGS = \
+       $(OPENWSMAN_CFLAGS) 
+EnumInstance_SOURCES = \
+               EnumInstance.cpp
+
+noinst_PROGRAMS = \
+       EnumInstance 
+   
+
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/examples/cpp/Makefile.in new/wsmancli-1.2.0/examples/cpp/Makefile.in
--- old/wsmancli-1.1.0/examples/cpp/Makefile.in 1970-01-01 01:00:00.000000000 +0100
+++ new/wsmancli-1.2.0/examples/cpp/Makefile.in 2007-08-02 23:33:15.000000000 +0200
@@ -0,0 +1,394 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+noinst_PROGRAMS = EnumInstance$(EXEEXT)
+subdir = examples/cpp
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+PROGRAMS = $(noinst_PROGRAMS)
+am_EnumInstance_OBJECTS = EnumInstance.$(OBJEXT)
+EnumInstance_OBJECTS = $(am_EnumInstance_OBJECTS)
+EnumInstance_LDADD = $(LDADD)
+EnumInstance_DEPENDENCIES =
+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+       -o $@
+SOURCES = $(EnumInstance_SOURCES)
+DIST_SOURCES = $(EnumInstance_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BUILD_CUNIT_TESTS_FALSE = @BUILD_CUNIT_TESTS_FALSE@
+BUILD_CUNIT_TESTS_TRUE = @BUILD_CUNIT_TESTS_TRUE@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = \
+       $(OPENWSMAN_CFLAGS) 
+
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+OPENWSMAN_CFLAGS = @OPENWSMAN_CFLAGS@
+OPENWSMAN_LIBS = @OPENWSMAN_LIBS@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+WSMAN_PKG = @WSMAN_PKG@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+LDADD = \
+       -lwsman_clientpp
+
+EnumInstance_SOURCES = \
+               EnumInstance.cpp
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cpp .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  examples/cpp/Makefile'; \
+       cd $(top_srcdir) && \
+         $(AUTOMAKE) --foreign  examples/cpp/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+clean-noinstPROGRAMS:
+       -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
+EnumInstance$(EXEEXT): $(EnumInstance_OBJECTS) $(EnumInstance_DEPENDENCIES) 
+       @rm -f EnumInstance$(EXEEXT)
+       $(CXXLINK) $(EnumInstance_LDFLAGS) $(EnumInstance_OBJECTS) $(EnumInstance_LDADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EnumInstance.Po@am__quote@
+
+.cpp.o:
+@am__fastdepCXX_TRUE@  if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+@am__fastdepCXX_TRUE@  then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
+
+.cpp.obj:
+@am__fastdepCXX_TRUE@  if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+@am__fastdepCXX_TRUE@  then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+uninstall-info-am:
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       mkid -fID $$unique
+tags: TAGS
+
+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+           $$tags $$unique; \
+       fi
+ctags: CTAGS
+CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+               $(TAGS_FILES) $(LISP)
+       tags=; \
+       here=`pwd`; \
+       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+       unique=`for i in $$list; do \
+           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+         done | \
+         $(AWK) '    { files[$$0] = 1; } \
+              END { for (i in files) print i; }'`; \
+       test -z "$(CTAGS_ARGS)$$tags$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$tags $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && cd $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       list='$(DISTFILES)'; for file in $$list; do \
+         case $$file in \
+           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+         esac; \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+           dir="/$$dir"; \
+           $(mkdir_p) "$(distdir)$$dir"; \
+         else \
+           dir=''; \
+         fi; \
+         if test -d $$d/$$file; then \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+           fi; \
+           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+         else \
+           test -f $(distdir)/$$file \
+           || cp -p $$d/$$file $(distdir)/$$file \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+         `test -z '$(STRIP)' || \
+           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
+
+distclean: distclean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+       clean-noinstPROGRAMS ctags distclean distclean-compile \
+       distclean-generic distclean-tags distdir dvi dvi-am html \
+       html-am info info-am install install-am install-data \
+       install-data-am install-exec install-exec-am install-info \
+       install-info-am install-man install-strip installcheck \
+       installcheck-am installdirs maintainer-clean \
+       maintainer-clean-generic mostlyclean mostlyclean-compile \
+       mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
+       uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/examples/Makefile.am new/wsmancli-1.2.0/examples/Makefile.am
--- old/wsmancli-1.1.0/examples/Makefile.am     2007-06-06 17:12:41.000000000 +0200
+++ new/wsmancli-1.2.0/examples/Makefile.am     2007-08-02 22:55:42.000000000 +0200
@@ -1,4 +1,4 @@
-SUBDIRS =  #cpp
+SUBDIRS =  cpp
 
 AM_CFLAGS = @CFLAGS@
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/examples/Makefile.in new/wsmancli-1.2.0/examples/Makefile.in
--- old/wsmancli-1.1.0/examples/Makefile.in     2007-06-25 19:00:37.000000000 +0200
+++ new/wsmancli-1.2.0/examples/Makefile.in     2007-08-02 23:33:15.000000000 +0200
@@ -179,7 +179,7 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
-SUBDIRS = #cpp
+SUBDIRS = cpp
 AM_CFLAGS = @CFLAGS@
 LDADD = \
        $(OPENWSMAN_LIBS) \
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/wsmancli-1.1.0/src/wsman.c new/wsmancli-1.2.0/src/wsman.c
--- old/wsmancli-1.1.0/src/wsman.c      2007-05-30 00:12:40.000000000 +0200
+++ new/wsmancli-1.2.0/src/wsman.c      2007-08-02 20:16:02.000000000 +0200
@@ -298,7 +298,7 @@
        }
        u_error_free(error);
 
-       // set default options 
+       // set default options
        if (server_port == 0) {
                server_port = cainfo ? 8888 : 8889;
        }
@@ -349,7 +349,7 @@
 
 
 static void
-request_usr_pwd( wsman_auth_type_t auth,
+request_usr_pwd( WsManClient *client, wsman_auth_type_t auth,
                 char **username,
                 char **password)
 {
@@ -363,8 +363,8 @@
           wsmc_transport_get_auth_name( auth));
          */
   printf("User name: ");
-  fflush(stdout); 
-  if ( (p = fgets(user, 20, stdin) ) != NULL ) 
+  fflush(stdout);
+  if ( (p = fgets(user, 20, stdin) ) != NULL )
   {
 
     if (strchr(user, '\n'))
@@ -467,7 +467,7 @@
                cl = wsmc_create(server,
                                server_port,
                                url_path,
-                               cainfo? "https" : "http", 
+                               cainfo? "https" : "http",
                                username,
                                password);
        }
@@ -711,8 +711,10 @@
                        if (wsmc_get_response_code(cl) != 200
                                        && wsmc_get_response_code(cl) != 400
                                        && wsmc_get_response_code(cl) != 500) {
+                               u_free(enumContext);
                                break;
                        }
+                       u_free(enumContext);
                        enumContext = wsmc_get_enum_context(doc);
                        if (doc) {
                                ws_xml_destroy_doc(doc);
@@ -735,9 +737,8 @@
                }
        }
        wsmc_options_destroy(options);
-       wsmc_release(cl);
-
        wsmc_transport_fini();
+       wsmc_release(cl);
        if (ini) {
                iniparser_freedict(ini);
        }


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages