[yast-commit] [ci_new_pac] JFYI yast2-core -> sle12
Script 'mail_helper' called by bg Hello packager, This is just FYI. Your package was checked in in distribution "sle12" by autobuild-member: bg. Here comes the log... ---------------------------%<------------------------------ Hi, here is the log from ci_new_pac /mounts/work_src_done/SLE12/yast2-core -> sle12 Changes: -------- --- /work/SRC/SUSE:SLE-12:GA/yast2-core/yast2-core.changes 2014-08-12 14:13:04.000000000 +0200 +++ /mounts/work_src_done/SLE12/yast2-core/yast2-core.changes 2014-08-26 10:30:44.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Aug 26 08:03:08 UTC 2014 - mvidner@suse.com + +- Fixed another batch of compilation warnings. +- 3.1.10 + +------------------------------------------------------------------- calling whatdependson for sle12-i586 Packages directly triggered for rebuild: - yast2-core - at least 83 other packages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/SUSE:SLE-12:GA/yast2-core (Old) and /mounts/work_src_done/SLE12/yast2-core (BS:build ID:43121 MAIL:yast-commit@opensuse.org) (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "yast2-core", Maintainer is "yast-commit@opensuse.org" Old: ---- yast2-core-3.1.9.tar.bz2 New: ---- yast2-core-3.1.10.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-core.spec ++++++ --- /var/tmp/diff_new_pack.5x8GiW/_old 2014-08-26 15:43:32.000000000 +0200 +++ /var/tmp/diff_new_pack.5x8GiW/_new 2014-08-26 15:43:32.000000000 +0200 @@ -18,7 +18,7 @@ Name: yast2-core -Version: 3.1.9 +Version: 3.1.10 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-core-3.1.9.tar.bz2 -> yast2-core-3.1.10.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/agent-system/doc/Makefile.am new/yast2-core-3.1.10/agent-system/doc/Makefile.am --- old/yast2-core-3.1.9/agent-system/doc/Makefile.am 2014-08-11 13:39:56.000000000 +0200 +++ new/yast2-core-3.1.10/agent-system/doc/Makefile.am 2014-08-26 10:09:33.000000000 +0200 @@ -5,5 +5,5 @@ SUBDIRS = htmldir = $(docdir)/agent-system -html_DATA = systemagent.txt passwdagent.txt +html_DATA = systemagent.md EXTRA_DIST = $(html_DATA) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/agent-system/doc/passwdagent.txt new/yast2-core-3.1.10/agent-system/doc/passwdagent.txt --- old/yast2-core-3.1.9/agent-system/doc/passwdagent.txt 2014-08-11 13:39:56.000000000 +0200 +++ new/yast2-core-3.1.10/agent-system/doc/passwdagent.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -Interface specification for .target.passwd. - -1. What is the .target.passwd - -.target.passwd can be used to set or modify the encrypted password of -*already existing* users in /etc/passwd and /etc/shadow. - -2. Interface for .target.passwd - -The path prefix used is - - .target.passwd - -Only the Write() interface is supported. - -To modify e.g. the password field of user root, the following SCR call -must be used - - SCR(`Write(.target.passwd.root, crypt(a_passwd) )) - -This Function returns true on success and false, if it fails. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/agent-system/doc/systemagent.md new/yast2-core-3.1.10/agent-system/doc/systemagent.md --- old/yast2-core-3.1.9/agent-system/doc/systemagent.md 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-core-3.1.10/agent-system/doc/systemagent.md 2014-08-26 10:09:33.000000000 +0200 @@ -0,0 +1,326 @@ +# Target Agent + +## General + +The target agent is the SCR interface to (shell) commands +of the target system. + +## Paths + +Target agent is attached to `.target` path. See all available `.target` commands below. +Target agent can be also invoked via WFM where it lives under `.local` root. +Difference between WFM `.local` and SCR `.target` is only after SCR switch, +which is used for example in installation, when `.local` always work on +root `/` and `.target` work on SCR target. + +## Commands For Execute + +### `.bash` +Executes command in bash. _Returns_ exit code of command. _Arguments_ are command +as string and optional map of environment variables. + +Example in ruby that calls `halt -p` + +``` + exit_code = SCR.Execute(Yast::Path.new(".target.bash"), "halt -p") +``` + +### `.bash_output` +Executes command in bash. _Returns_ map including `"exit"` for exit code, +`"stdout"` for command stdout and `"stderr"` for command stderr. _Arguments_ are +command as string and optional map of environment variables. + +Example in ruby that creates temporary file and raises exception in case of failure. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "mktemp") + if result["exit"] != 0 + raise "Failed to create temporary file with #{result["stderr"]}" + end + file_path = result["stdout"] +``` + +Example in ruby passing ENV variable VERBOSE=1 + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "mktemp", {"VERBOSE" => "1"}) +``` + +### `.bash_input` +Executes command in bash and pass string on stdin. _Returns_ exit code. +_Arguments_ are command and string that is given to stdin. + +Example in ruby that change password to pwd. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.bash_input"), "passwd", "pwd\npwd\n") + if result["exit"] != 0 + raise "Failed to change password" + end +``` + +### `.bash_background` +Executes command in bash in background. _Returns_ zero if succeed and -1 if +failed. _Arguments_ are command as string and optional map of environment +variables. + +Example in ruby that does time consuming job. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.bash_background"), "sleep 1000000") + if result["exit"] != 0 + raise "I cannot sleep. Do not disturb me!" + end +``` + +### `.symlink` +Creates symlink. _Returns_ boolean depending on success. _Arguments_ are two +strings, one with source path and second with target one. + +Example in ruby create symlink `/tmp2` pointing to `/tmp` + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.symlink"), "/tmp", "/tmp2") + raise "Creating symlink failed" unless result +``` + +### `.mkdir` + +Creates directory and all its parents. _Returns_ boolean depending on success. +_Arguments_ are string with path and optional integer with mode. If mode is not +specified, 0755 is used. + +Example in ruby create directory `/tmp/foo/bar` with mode 0700. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.mkdir"), "/tmp/foo/bar", 0700) + raise "Creating directory failed" unless result +``` + +### `.remove` +Removes a file. _Returns_ boolean depending on success. +_Argument_ is string with path to file. +*note*: Cannot remove a directory + +Example in ruby remove file `/tmp/foo`. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.remove"), "/tmp/foo") + raise "Removing file failed" unless result +``` + +### `.mount` + +Mounts a (block) device at a mountpoint. +_Arguments_ are array with device, mountpoint strings and optional third element +for logfile and optional options to pass to mount. +*note*: Deprecated use bash agent directly to run mount + +The return value is true or false, depending of the success + +Example in ruby how to mount floppy. + +``` + result = Yast::SCR.Execute( + Yast::Path.new(".target.mount"), + ["/dev/floppy", "/floppy", "/var/log/y2mountlog"], + "-t msdos" + ) + raise "Mounting floppy failed" unless result +``` + +### `.umount` + +Unmounts a (block) device at a mountpoint. +_Argument_ is mountpoint +*note*: Deprecated use bash agent directly to run umount + +The return value is true or false, depending of the success + +Example in ruby how to umount floppy. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.umount"), "/floppy") + raise "Unmounting floppy failed" unless result +``` + +### `.insmod` + +Load module in target system. +_Arguments_ are module and options for it. +*note*: Deprecated use bash agent directly to run insmod + +The return value is true or false, depending of the success + +Example in ruby how to insert module. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.insmod"), "a_module", "an option") + raise "Module insertion failed" unless result +``` + +### `.modprobe` + +Load module in target system. +_Arguments_ are module and options for it. +*note*: Deprecated use bash agent directly to run modprobe + +The return value is true or false, depending of the success + +Example in ruby how to insert module. + +``` + result = Yast::SCR.Execute(Yast::Path.new(".target.modprobe"), "a_module", "an option") + raise "Module insertion failed" unless result +``` + +## Commands For Read/Write + +### `.string` + +Reads/writes file as a single string. +_Arguments for writing_ can have two types. The first is string filename and string value. +The second one is array with string filename and integer filemode and string content. +_Arguments for reading_ is only string filename. + +The return value fore reading is content of file or nil in case of failure. +For writing it return true or false, depending of the success. + +Example in ruby how to read file content. + +``` + content = Yast::SCR.Read(Yast::Path.new(".target.string"), "/root/test") + raise "Reading file failed" unless content +``` + +Example in ruby how to write file without specified mode. + +``` + result = Yast::SCR.Write(Yast::Path.new(".target.string"), "/root/test", "test content") + raise "Writing to file failed" unless result +``` + +Example in ruby how to write file with specified mode. + +``` + result = Yast::SCR.Write(Yast::Path.new(".target.string"), ["/root/test", 0600], "test content") + raise "Writing to file failed" unless result +``` + +### `.ycp` or `.yast2` + +Reads/Writes programming data serialized as ycp to given file. +_Arguments for writing_ can have two types. The first is string filename and any value. +The second one is array with string filename and integer filemode and any value. +_Arguments for reading_ is string filename and optional default value if file not found. + +Reading for `.yast2` have one speciality, that it search in y2path for data/_filename_. + +The return value is data from file or nil if failed for reading and true or false, depending of +the success, for writing. + +Example in ruby how to read structure from file. + +``` + content = Yast::SCR.Read(Yast::Path.new(".target.ycp"), "/root/test.ycp") + raise "Reading file failed" unless content +``` + +Example in ruby how to read structure from file relative to y2path with default value. + +``` + content = Yast::SCR.Read(Yast::Path.new(".target.yast2"), "test.ycp", :missing) +``` + +Example in ruby how to write data. + +``` + data = { :a => "test" } + result = Yast::SCR.Write(Yast::Path.new(".target.yast2"), "/root/test.ycp", data) + raise "Writing to file failed" unless result +``` + +### `.byte` +Reads/Writes bytes as byteblock from/to given file. +_Arguments for writing_ are filename and byteblock. +_Argument for reading_ is filename. + +Example in ruby how to read/write byteblock. + +``` + content = Yast::SCR.Read(Yast::Path.new(".target.byte"), "/root/test") + raise "Reading byteblock failed" unless content + res = Yast::SCR.Write(Yast::Path.new(".target.byte"), "/root/test2", content) + raise "Writing byteblock failed" unless res +``` + +### `.passwd` +Write-only command to set or modify the encrypted password of already existing +user in /etc/passwd and /etc/shadow. +_Argument_ is crypted password. +The return value is true or false, depending of the success + +Example in ruby how to change root password. + +``` + content = Yast::SCR.Write(Yast::Path.new(".target.passwd.root"), crypted_password) + raise "Changing root password failed" unless content +``` + +### `.tmpdir` +Read-only command to return the (instance specific) directory for storing temporary +files. The directory (and its contents) will be removed by the SystemAgent +destructor (usually when yast2 exits) + +Example in ruby how to read tmpdir. + +``` + path = Yast::SCR.Read(Yast::Path.new(".target.tmpdir")) +``` + +### `.dir` +Read-only command to read a directory. Returns a list of strings, one string for +each file contained in the directory path is pointing to. +The entries '.' and '..' are NOT returned. Returns nil and +doesn't log an error, if path does not point to a readable directory. +If a default value is given, this is returned if path isn't accessible. + +_Arguments_ are string path and optional default value. + +Example in ruby how to get list of files in directory. + +``` + files = Yast::SCR.Read(Yast::Path.new(".target.dir"), "/etc/sysconfig/network") + raise "Reading directory content failed" unless files +``` + +### `.size` +Read-only command to read current size of file. +Returns -1 if the file does not exist + +_Argument_ is string path to file. + +Example in ruby how to get size of file. + +``` + file_size = Yast::SCR.Read(Yast::Path.new(".target.size"), "/root/test") +``` + +### `.stat` +Read-only command to return a map with file information (see stat(2)). If +the file does not exist return an empty map. + +_Argument_ is string path to file. + +### `.lstat` +Read-only command to return a map with file information (see lstat(2)). If +the file does not exist return an empty map. Only difference to stat is that +lstat does not follow link(s) and returns info about link itself + +_Argument_ is string path to file. + +### `.symlink` +Read-only command to get the content of the symbolic link filename. If the filename +does not exist or is not symbolic link, nil is returned and an error logged. + +_Argument_ is string path to symlink. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/agent-system/doc/systemagent.txt new/yast2-core-3.1.10/agent-system/doc/systemagent.txt --- old/yast2-core-3.1.9/agent-system/doc/systemagent.txt 2014-08-11 13:39:56.000000000 +0200 +++ new/yast2-core-3.1.10/agent-system/doc/systemagent.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,76 +0,0 @@ -Some notes about the target agent -================================= - -General -------- - -The target agent is the SCR interface to (shell) commands -of the target system. - -It is used as a replacement for the WFM Shell()/Mkdir()/Symlink() (etc.) -builtins, which were wrong in the first place. Since the WFM isn't -necesseraly running on the target system, the builtins of WFM might -run on the wrong system. - -Paths ------- -The Target agent is mounted to the '.target' path of the SCR -namespace. - -Implemented paths are - -Execute (.target.bash, string command [, map env]) execute command in bash -Execute (.target.bash_output, string command [, map env]) execute command in bash, return output -Execute (.target.bash_background, string command [, map env]) execute command in bash, don't wait for return -Execute (.target.symlink, string old, string new) create symbolic link -Execute (.target.mkdir, string dir [, integer mode]) create directory (with mode) -Execute (.target.remove, string file) remove file -Execute (.target.inject, string file, string path) inject file to target system -Execute (.target.control.printer_reset, string device) reset a printer device - -Execute (.target.mount, ...) -Execute (.target.umount, ...) -Execute (.target.smbmount, ...) -Execute (.target.insmod, ...) -Execute (.target.modprobe, ...) - -The Target agent implements the Execute() interface of SCR, -so a typical call for the target agent would be - -SCR (`Execute (.target.bash, "command_to_run_in_bash", $[ "env":"value"] )); -SCR (`Execute (.target.symlink, "oldpath", "newpath" ); -SCR (`Execute (.target.mkdir, "path" ); // default mode is 0755 -SCR (`Execute (.target.control.printer_reset, "/dev/lp1"); -SCR (`Execute (.target.bash, "command_to_run_in_bash", $[ "env":"value"] )); - -Further interfaces are Read() and Write() which are used for file access. - -(Replaces WFM Read/Write) -Read(.target.file, ...) -Write(.target.file, ...) - -(Replaces WFM ReadY2/WriteY2) -Read(.target.ycpfile, ...) -Write(.target.ycpfile, ...) - -Read(.target.root) -Read(.target.tmpdir) -Read(.target.string, ...) -Read(.target.dir, ...) -Read(.target.size, ...) - -Details -------- -return from .target.bash_output: - $[ "exit" : return_value, // integer - "stdout" : "stdout_from_command", // string - "stderr" : "stderr_from_command" // string - ] - -Logging -------- -The logging is controled by Y2DEBUG environment variable. -Set it to "1" and all messages will go to the y2log file. - -You can also control the logging with ~/.yast2./logcontrol.ycp -file. Use "bash" as component name. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/liby2/src/Y2ProgramComponent.cc new/yast2-core-3.1.10/liby2/src/Y2ProgramComponent.cc --- old/yast2-core-3.1.9/liby2/src/Y2ProgramComponent.cc 2014-08-11 13:39:56.000000000 +0200 +++ new/yast2-core-3.1.10/liby2/src/Y2ProgramComponent.cc 2014-08-26 10:09:33.000000000 +0200 @@ -105,7 +105,8 @@ char **l_argv = new char *[l_argc + 1]; l_argv[0] = argc >= 1 ? argv[0] : strdup(name().c_str()); // component name - l_argv[1] = "stdio"; // I will speak to the server via his stdio + char stdio[] = "stdio"; + l_argv[1] = stdio; // I will speak to the server via his stdio l_argv[2] = strdup(name().c_str()); for (int arg = 1; arg < argc; arg++) l_argv[arg+2] = argv[arg]; @@ -216,24 +217,17 @@ else // this is a real liby2 component { // send arguments via stdio - argc = 4; // name, -s - argv = new char *[argc+1]; - argv[0] = strdup(name().c_str()); - argv[1] = argv[0]; - argv[2] = "-s"; // get arguments on stdin - argv[3] = "stdio"; // communicate via stdio - argv[argc] = NULL; + char * cname = strdup(name().c_str()); + char s[] = "-s"; // get arguments on stdin + char stdio[] = "stdio"; // communicate via stdio + char * argv[] = { cname, cname, s, stdio, NULL}; // launch component if not yet done if (pid == -1) launchExternalProgram(argv); sendToExternal(arglist); // now send arguments - if (argv) - { - if (argv[0]) free(argv[0]); - delete[] argv; - } + free(cname); } // Communication loop with module. Module sends 'result(...)', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/liby2util-r/src/y2changes.cc new/yast2-core-3.1.10/liby2util-r/src/y2changes.cc --- old/yast2-core-3.1.9/liby2util-r/src/y2changes.cc 2014-08-11 13:39:57.000000000 +0200 +++ new/yast2-core-3.1.10/liby2util-r/src/y2changes.cc 2014-08-26 10:09:33.000000000 +0200 @@ -70,7 +70,6 @@ static FILE *Y2CHANGES_STDERR = stderr; /* Default output */ /* static prototypes */ -static void do_log_syslog( const char* logmessage ); static void do_log_yast( const char* logmessage ); static void shift_log_files(string filename); @@ -175,13 +174,6 @@ va_end(ap); } - -static -void do_log_syslog( const char* logmessage ) -{ - syslog (LOG_NOTICE, "%s", logmessage); -} - /** * Logfile name initialization */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/liby2util-r/src/y2log.cc new/yast2-core-3.1.10/liby2util-r/src/y2log.cc --- old/yast2-core-3.1.9/liby2util-r/src/y2log.cc 2014-08-11 13:39:57.000000000 +0200 +++ new/yast2-core-3.1.10/liby2util-r/src/y2log.cc 2014-08-26 10:09:33.000000000 +0200 @@ -95,16 +95,6 @@ static void do_log_yast( const char* logmessage ); static void shift_log_files(string filename); -static const char *log_messages[] = { - "debug", - "milestone", - "warning", - "error", - "error", - "error", - "error", -}; - /** * y2log must use a private copy of stderr, esp. in case we're always logging * to it (option "-l -"). Some classes like liby2(ExternalProgram) redirect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/libycp/src/Type.cc new/yast2-core-3.1.10/libycp/src/Type.cc --- old/yast2-core-3.1.9/libycp/src/Type.cc 2014-08-11 13:39:57.000000000 +0200 +++ new/yast2-core-3.1.10/libycp/src/Type.cc 2014-08-26 10:09:33.000000000 +0200 @@ -958,7 +958,6 @@ #if DO_DEBUG y2debug ("ListType::detailedtype '%s', '%s'", toString().c_str(), type->toString().c_str()); #endif -#warning unfinished if (type->isVoid() || type->isUnspec()) { @@ -1154,7 +1153,6 @@ #if DO_DEBUG y2debug ("MapType::detailedtype '%s', '%s'", toString().c_str(), type->toString().c_str()); #endif -#warning not implemented if (type->isVoid() || type->isUnspec()) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/libycp/src/YCPList.cc new/yast2-core-3.1.10/libycp/src/YCPList.cc --- old/yast2-core-3.1.9/libycp/src/YCPList.cc 2014-08-11 13:39:57.000000000 +0200 +++ new/yast2-core-3.1.10/libycp/src/YCPList.cc 2014-08-26 10:09:33.000000000 +0200 @@ -157,7 +157,6 @@ YCPList YCPListRep::functionalAdd (const YCPValue& val, bool prepend) const { -#warning TODO: implement this better. Avoid duplicating the list. YCPList newlist; newlist->reserve (size() + 1); if (prepend) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/package/yast2-core.changes new/yast2-core-3.1.10/package/yast2-core.changes --- old/yast2-core-3.1.9/package/yast2-core.changes 2014-08-11 13:39:59.000000000 +0200 +++ new/yast2-core-3.1.10/package/yast2-core.changes 2014-08-26 10:09:33.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Aug 26 08:03:08 UTC 2014 - mvidner@suse.com + +- Fixed another batch of compilation warnings. +- 3.1.10 + +------------------------------------------------------------------- Mon Aug 11 11:13:42 UTC 2014 - mvidner@suse.com - agent-any: stub "df" for testing. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/package/yast2-core.spec new/yast2-core-3.1.10/package/yast2-core.spec --- old/yast2-core-3.1.9/package/yast2-core.spec 2014-08-11 13:39:59.000000000 +0200 +++ new/yast2-core-3.1.10/package/yast2-core.spec 2014-08-26 10:09:33.000000000 +0200 @@ -18,7 +18,7 @@ Name: yast2-core -Version: 3.1.9 +Version: 3.1.10 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-core-3.1.9/.yardopts new/yast2-core-3.1.10/.yardopts --- old/yast2-core-3.1.9/.yardopts 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-core-3.1.10/.yardopts 2014-08-26 10:09:32.000000000 +0200 @@ -0,0 +1 @@ +--markup markdown - **/*.md continue with "q"... Checked in at Tue Aug 26 15:43:51 CEST 2014 by bg Remember to have fun... -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
bg