Hello, (sorry for the delay!) Am Montag, 14. Juli 2014 schrieb 1xx:
2014-07-14 1:25 GMT+09:00 Christian Boltz
: What about this: (from the spec, marked line added)
%if 0%{?suse_version} ... BuildRequires: libzypp BuildRequires: yum # <----- try adding this line
Thank you for being interested in etckeeper.
I added it.
But upstream Makefile supports only 1 HIGHLEVEL_PACKAGE_MANAGER. http://git.kitenet.net/?p=etckeeper.git;a=blob;f=Makefile;h=cf034a2d50 98ec6d1b2c405c916d5aeb5b1f35be;hb=52582f72a50502bc467abf679618b7c10159 2e74
And /etc/etckeeper/etckeeper.conf have to write only 1 HIGHLEVEL_PACKAGE_MANAGER. http://git.kitenet.net/?p=etckeeper.git;a=blob;f=etckeeper.conf;h=f988 c10e4d27427727572853cc2d2066193045b6;hb=52582f72a50502bc467abf679618b7 c101592e74
For building yum-plugin in openSUSE, I called "make" and "make install" twice for YUM and ZYpper in spec_file. https://build.opensuse.org/package/view_file/home:Mitsutoshi:branches :utilities/etckeeper/etckeeper.spec?expand=1 (I will rollback this package soon.)
Sounds like a funny workaround ;-)
I culd build yum-plugin on openSUSE. Now openSUSE users may be able to choose YUM or zypper. (I do not test yet.)
But we have 2 problems.
1. We have a bug.
At present, it seems that etckeeper use $HIGHLEVEL_PACKAGE_MANAGER only for logging messages . But if we use double package-managers, We have a bug. For example, when HIGHLEVEL_PACKAGE_MANAGER=zypper in etckeeper.conf, if we type "yum erase package", then VCS log says "zypper run".
Oh, how nice. You can configure the log message in the config file ;-) I wonder what happens if you set HIGHLEVEL_PACKAGE_MANAGER="grin, duck and" *g,d&r* Please open a bugreport for this upstream and ask them to let the zypp/yum plugins specify the log message. Those plugins should know who/what called them ;-)
2. It is very tricky. The upstream do not think that users use 2 package-managers.
In spite of it, if we use 2 package-managers, I am afraid we have troubles.
Well, at least it needs some testing ;-) (but in theory it shouldn't cause major problems)
If we want to use both ZYypper and YUM, we must modify many source files. We need to talk with upstream.
I think that openSUSE's etckeeper should support only zypper, and I think that supporting YUM is future study.
Yes, I agree. If upstream doesn't support using two package managers, then it doesn't make sense to implement this for openSUSE only. Talking with upstream is the way to go - and when upstream supports using more than one packagemanager one day, it's easy to add to the openSUSE package. Regards, Christian Boltz -- No, you are wrong here. Typical user does not even know how to start command line, and of course is not aware of "zypper" or how to understand "zypper ps" output. Subscribers to -devel lists are in no way typical users. [Andrey Borzenkov in opensuse-factory] -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org