From: Michael Andres Date: Wed, 30 Jul 2008 17:15:36 +0000 (+0000) Subject: - /var/lib/zypp and /var/cache/zypp should be owned by libzypp (bnc #412094) X-Git-Tag: BASE-SuSE-Code-11-Branch~553 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibzypp.git;a=commitdiff_plain;h=3434cc2329977615ca0334a23d7c3a1a3fbab493 - /var/lib/zypp and /var/cache/zypp should be owned by libzypp (bnc #412094) --- diff --git a/VERSION.cmake b/VERSION.cmake index 7f7299f..f3a1ced 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -42,9 +42,27 @@ # # 6) If any interfaces have been removed since the last public release, then # set COMPATMINOR to MINOR. (binary incompatible change) -# +# ================================================== +#======= +# - Update version according to your changes, +# but based on 'LAST RELEASED:' below. I.e +# there's no need to increase LIBZYPP_MINOR +# if it already differs from 'LAST RELEASED:'. +# +# - MOST IMPORTANT: +# Before you submitt to autobuild, rmember the +# new version in 'LAST RELEASED:', and add a +# note in the changes file. +# +# - Consider calling ./mkChangelog to edit the +# changes file. See './mkChangelog -h' for help. +# SET(LIBZYPP_MAJOR "5") -SET(LIBZYPP_MINOR "4") SET(LIBZYPP_COMPATMINOR "4") +SET(LIBZYPP_MINOR "4") SET(LIBZYPP_PATCH "0") +# +# LAST RELEASED: 5.3.0 (2) +# (The number in parenthesis is LIBZYPP_COMPATMINOR) +#======= diff --git a/devel/devel.ma/MaTest.cc b/devel/devel.ma/MaTest.cc index a463ed3..9b74140 100644 --- a/devel/devel.ma/MaTest.cc +++ b/devel/devel.ma/MaTest.cc @@ -73,7 +73,7 @@ struct X : public trackable X() {_s=++s;} X( const X & ) {_s=++s;} X& operator=( const X & ) { return *this; } - ~X() {_s=-_s;} + virtual ~X() {_s=-_s;} static int s; int _s; @@ -102,7 +102,7 @@ int main( int argc, const char * argv[] ) { X x; - m.siga().connect( boost::bind( &X::pong, &x, _1 ) ); + m.siga().connect( boost::bind( &X::pong, boost::ref(x), _1 ) ); m.ping(); X y; diff --git a/libzypp.spec.cmake b/libzypp.spec.cmake index cc853a8..3c2a0a5 100644 --- a/libzypp.spec.cmake +++ b/libzypp.spec.cmake @@ -204,6 +204,8 @@ rm -rf "$RPM_BUILD_ROOT" %dir /etc/zypp/products.d %config(noreplace) /etc/zypp/zypp.conf %config(noreplace) /etc/zypp/systemCheck +%dir /var/lib/zypp +%dir /var/cache/zypp %{prefix}/lib/zypp %{prefix}/share/zypp %{prefix}/share/applications/package-manager.desktop diff --git a/mkChangelog b/mkChangelog new file mode 100755 index 0000000..e964567 --- /dev/null +++ b/mkChangelog @@ -0,0 +1,165 @@ +#! /bin/bash +# + +function errexit() { + exec >&2 + echo "Error: $@" + exit 1 +} + +export LC_ALL="" +EDITOR=${EDITOR:-vi} + +TDIR=$(dirname $0) +test -n "$TDIR" && cd $TDIR + +CHANGESFILE="package/libzypp.changes" +test -f "$CHANGESFILE" || errexit "No changes file '$CHANGESFILE'" + +VERSIONFILE="VERSION.cmake" +test -f "$VERSIONFILE" || errexit "No version file '$VERSIONFILE'" + + +function usage() { + exec >&2 +cat <&1- +exec >$TMPFILE +echo "-------------------------------------------------------------------" +echo "$(date) $EMAIL" +echo "" +echo "- " +echo "- revision $(nextrevision)" +echo "$(getversion)" +echo "" +cat $CHANGESFILE +exec >&3 + +RES=e +while [ "$RES" == "e" ]; do + $EDITOR $TMPFILE + echo + NEWREL=$(grep '#---delete-or-release---#' $TMPFILE) + test -n "$NEWREL" && echo "$NEWREL" + read -n 1 -p "(a)bort, (c)ontinue, (e)dit : " RES + echo + case "$RES" in + [eE]*) + RES=e + ;; + [cC]) + test -n "$NEWREL" && { + echo "Remember new release in $VERSIONFILE" + sed -i 's/^.*#---delete-or-release---#.*RELEASE:/- version/' $TMPFILE + NEWREL=$(sed 's/^.*#---delete-or-release---#.*RELEASE:/# LAST RELEASED:/' <<<"$NEWREL") + sed -i "s/^# LAST RELEASED:.*$/$NEWREL/" $VERSIONFILE + } + + echo "Store new $CHANGESFILE" + cp $TMPFILE $CHANGESFILE + + cat $CHANGESFILE \ + | awk '{print}/----------/{n=n+1; if ( n == 2 ) exit 0; }' + ;; + *) + echo "Leave $CHANGESFILE untouched" + ;; + esac +done + +rm -f $TMPFILE diff --git a/package/libzypp.changes b/package/libzypp.changes index 9c5bb3a..0c24064 100644 --- a/package/libzypp.changes +++ b/package/libzypp.changes @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Jul 30 19:12:00 CEST 2008 ma@suse.de + +- /var/lib/zypp and /var/cache/zypp should be owned by libzypp + (bnc #412094) +- revision 10702 + +------------------------------------------------------------------- Wed Jul 30 12:47:48 CEST 2008 - jkupec@suse.cz - Service renamed to ServiceInfo