Mailinglist Archive: opensuse-commit (2125 mails)

< Previous Next >
commit yast2-core
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Wed, 09 Apr 2008 01:00:25 +0200
  • Message-id: <20080408230025.64A20678182@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package yast2-core
checked in at Wed Apr 9 01:00:25 CEST 2008.

--------
--- yast2-core/yast2-core.changes 2008-04-06 14:17:25.000000000 +0200
+++ yast2-core/yast2-core.changes 2008-04-08 18:15:29.000000000 +0200
@@ -1,0 +2,8 @@
+Tue Apr 8 18:14:44 CEST 2008 - mvidner@xxxxxxx
+
+- Compress (gzip) the rotated y2logs, in the background (fate#300637).
+- y2base: Added -I and -M options to add search paths for includes and
+ modules (fate#2306).
+- 2.16.45
+
+-------------------------------------------------------------------

Old:
----
yast2-core-2.16.44.tar.bz2

New:
----
yast2-core-2.16.45.tar.bz2

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

Other differences:
------------------
++++++ yast2-core.spec ++++++
--- /var/tmp/diff_new_pack.w30954/_old 2008-04-09 01:00:01.000000000 +0200
+++ /var/tmp/diff_new_pack.w30954/_new 2008-04-09 01:00:01.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-core (Version 2.16.44)
+# spec file for package yast2-core (Version 2.16.45)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@


Name: yast2-core
-Version: 2.16.44
+Version: 2.16.45
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-core-2.16.44.tar.bz2
+Source0: yast2-core-2.16.45.tar.bz2
Prefix: /usr
# obviously
BuildRequires: gcc-c++
@@ -84,7 +84,7 @@
Stanislav Visnovsky <visnov@xxxxxxx>

%prep
-%setup -n yast2-core-2.16.44
+%setup -n yast2-core-2.16.45

%build
%{prefix}/bin/y2tool y2autoconf
@@ -161,6 +161,11 @@
%doc %{prefix}/share/doc/packages/yast2-core
/usr/share/YaST2/data/devtools/bin/generateYCPWrappers
%changelog
+* Tue Apr 08 2008 mvidner@xxxxxxx
+- Compress (gzip) the rotated y2logs, in the background (fate#300637).
+- y2base: Added -I and -M options to add search paths for includes and
+ modules (fate#2306).
+- 2.16.45
* Sun Apr 06 2008 aschnell@xxxxxxx
- added float builtins trunc and pow
- 2.16.44

++++++ yast2-core-2.16.44.tar.bz2 -> yast2-core-2.16.45.tar.bz2 ++++++
++++ 13060 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/dir.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/dir.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/dir.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/dir.scr
2008-02-08 14:18:50.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/dir.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/missing.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/missing.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/missing.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/missing.scr
2008-02-08 14:18:48.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/missing.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/read1.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/read1.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/read1.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/read1.scr
2008-02-08 14:18:48.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/read1.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/write1.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/write1.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/write1.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/write1.scr
2008-02-08 14:18:49.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write1.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/write2.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/write2.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/write2.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/write2.scr
2008-02-08 14:18:50.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write2.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/agent-modules/testsuite/tests/write3.scr
new/yast2-core-2.16.45/agent-modules/testsuite/tests/write3.scr
--- old/yast2-core-2.16.44/agent-modules/testsuite/tests/write3.scr
1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-core-2.16.45/agent-modules/testsuite/tests/write3.scr
2008-02-08 14:18:48.000000000 +0100
@@ -0,0 +1,6 @@
+.
+
+`ag_modules(
+ `ModulesConf("tests/write3.in.test")
+)
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/configure.in new/yast2-core-2.16.45/configure.in
--- old/yast2-core-2.16.44/configure.in 2008-04-06 13:49:51.000000000 +0200
+++ new/yast2-core-2.16.45/configure.in 2008-04-08 18:21:18.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf 2.16.8 - DO NOT EDIT! --
dnl (edit configure.in.in instead)

-AC_INIT(yast2-core, 2.16.44, http://bugs.opensuse.org/, yast2-core)
+AC_INIT(yast2-core, 2.16.45, http://bugs.opensuse.org/, yast2-core)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])

@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)

dnl Important YaST2 variables
-VERSION="2.16.44"
+VERSION="2.16.45"
RPMNAME="yast2-core"
MAINTAINER="Martin Vidner <mvidner@xxxxxxx>"

diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/liby2/src/genericfrontend.cc
new/yast2-core-2.16.45/liby2/src/genericfrontend.cc
--- old/yast2-core-2.16.44/liby2/src/genericfrontend.cc 2008-02-22
12:03:14.000000000 +0100
+++ new/yast2-core-2.16.45/liby2/src/genericfrontend.cc 2008-04-08
12:36:20.000000000 +0200
@@ -568,6 +568,41 @@
arg++;
}

+// FIXME the whole option parsing sucks **** !
+
+ // list of -I / -M pathes
+ // will be pushed to YCPPathSearch later to keep correct order
+ // (the last added path to YCPPathSearch will be searched first)
+ std::list<std::string> modpaths;
+ std::list<std::string> incpaths;
+
+ // include paths
+ while (!strcmp(argv[arg], "-I"))
+ {
+ arg++;
+ incpaths.push_front (string (argv[arg])); // push to front so first one
is last in list
+ arg++;
+ }
+
+ while (!strcmp(argv[arg], "-M"))
+ {
+ arg++;
+ modpaths.push_front (string (argv[arg])); // push to front so first one
is last in list
+ arg++;
+ }
+
+ // add include and module pathes to YCPPathSearch so that the argument
order is kept
+
+ std::list<std::string>::iterator pathit;
+ for (pathit = incpaths.begin(); pathit != incpaths.end(); pathit++)
+ {
+ YCPPathSearch::addPath (YCPPathSearch::Include, pathit->c_str());
+ }
+ for (pathit = modpaths.begin(); pathit != modpaths.end(); pathit++)
+ {
+ YCPPathSearch::addPath (YCPPathSearch::Module, pathit->c_str());
+ }
+
// "arg" and these two are output params
char * client_name;
YCPList arglist;
@@ -681,6 +716,10 @@
fprintf (stderr,
"LogOptions are:\n"
" -l | --logfile LogFile : Set logfile\n"
+ " -c | --logconf ConfFile : Configure logging\n"
+ " -n Namespace=Component : Override component for
namespace\n"
+ " -I Path : Add include search path\n"
+ " -M Path : Add module search path\n"
"ClientOptions are:\n"
" -s : Get options as one YCPList from
stdin\n"
" -f FileName : Get YCPValue(s) from file\n"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/liby2util-r/src/y2log.cc
new/yast2-core-2.16.45/liby2util-r/src/y2log.cc
--- old/yast2-core-2.16.44/liby2util-r/src/y2log.cc 2008-03-19
13:02:25.000000000 +0100
+++ new/yast2-core-2.16.45/liby2util-r/src/y2log.cc 2008-04-08
18:15:33.000000000 +0200
@@ -8,8 +8,9 @@
* Thomas Roelz <tom@xxxxxxx>
* Michal Svec <msvec@xxxxxxx>
* Arvin Schnell <arvin@xxxxxxx>
+ * Martin Vidner <mvidner@xxxxxxx>
*
- * $Id: y2log.cc 44678 2008-02-20 10:39:01Z mvidner $
+ * $Id: y2log.cc 46256 2008-04-08 16:15:32Z mvidner $
*/

#include <errno.h>
@@ -373,14 +374,20 @@
return string (logname);
}

+static string old (const string & filename, int i, const char * suffix) {
+ char numbuf[8];
+ sprintf (numbuf, "%d", i);
+ return filename + "-" + numbuf + suffix;
+}

/**
* Maintain logfiles
+ * We do all of this ourselves because during the installation
+ * logrotate does not run
*/
static void shift_log_files(string filename)
{
struct stat buf;
- char numbuf[8];

if( stat(filename.c_str(), &buf) )
return;
@@ -388,18 +395,23 @@
if( buf.st_size <= maxlogsize )
return;

- /* Delete the last logfile, rename existing ones */
- sprintf (numbuf, "%d", maxlognum - 1);
- remove ((filename + "-" + numbuf).c_str());
+ static const char * gz = ".gz";
+ // Delete the last logfile
+ remove (old (filename, maxlognum - 1, "" ).c_str());
+ remove (old (filename, maxlognum - 1, gz).c_str());

+ // rename existing ones
for( int f = maxlognum-2; f > 0; f-- )
{
- sprintf (numbuf, "%d", f);
- string oldname = filename + "-" + numbuf;
- sprintf (numbuf, "%d", f+1);
- rename (oldname.c_str(), (filename + "-" + numbuf).c_str());
+ rename (old (filename, f, "").c_str(), old (filename, f+1, "").c_str());
+ rename (old (filename, f, gz).c_str(), old (filename, f+1, gz).c_str());
}
- rename( filename.c_str(), (filename + "-1").c_str() );
+
+ // rename and compress first one
+ rename( filename.c_str(), old (filename, 1, "").c_str() );
+ // fate#300637: compress!
+ // may fail, but so what
+ system( ("nice -n 20 gzip " + old (filename, 1, "") + " &").c_str());
}


diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/libycp/src/y2crypt.cc
new/yast2-core-2.16.45/libycp/src/y2crypt.cc
--- old/yast2-core-2.16.44/libycp/src/y2crypt.cc 2008-04-06
13:33:58.000000000 +0200
+++ new/yast2-core-2.16.45/libycp/src/y2crypt.cc 2008-04-07
18:20:29.000000000 +0200
@@ -78,7 +78,10 @@
close (fd);

char output[CRYPT_GENSALT_OUTPUT_SIZE];
- char* retval = xcrypt_gensalt_r (crypt_prefix, crypt_rounds, entropy,
+#if !defined(crypt_gensalt_r)
+#define crypt_gensalt_r xcrypt_gensalt_rn
+#endif
+ char* retval = crypt_gensalt_r (crypt_prefix, crypt_rounds, entropy,
sizeof (entropy), output, sizeof (output));

memset (entropy, 0, sizeof (entropy));
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn
--exclude=.svnignore --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/yast2-core-2.16.44/VERSION new/yast2-core-2.16.45/VERSION
--- old/yast2-core-2.16.44/VERSION 2008-04-06 13:34:14.000000000 +0200
+++ new/yast2-core-2.16.45/VERSION 2008-04-08 18:14:15.000000000 +0200
@@ -1 +1 @@
-2.16.44
+2.16.45


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



Remember to have fun...

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

< Previous Next >