Hi,
I have updated the branch page
http://en.opensuse.org/openSUSE:WebYaST_Branches
and created the maintenance branch for WY 1.1 (so that I could fix
the RPM dependencies for the SP1 update, which is still in
progress).
So the master branch is now open to integrate your own branches.
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On Tue, Nov 02, 2010 at 01:03:09PM -0000, lslezak(a)svn2.opensuse.org wrote:
> Author: lslezak
> Date: Tue Nov 2 14:03:08 2010
> New Revision: 62714
>
> URL: http://svn.opensuse.org/viewcvs/yast?rev=62714&view=rev
> Log:
> - correctly display download progress in DownloadInAdvance
> libzypp mode (bnc#616708)
Ah, nice to see this fixed :-)
>
> Added:
> trunk/packager/agents/etc_zypp_conf.scr
[...]
But this reminds me that it is high time to replace the Ini Agent
(and mostly all agents) with something more modern and maintained,
namely Augeas (already used by zypper).
See what it can parse (and write!)
http://git.fedorahosted.org/git/?p=augeas.git;a=tree;f=lenses;h=60be35d5c8a…
(or rpm -ql augeas-lenses )
and how it can define macros for the regexes seen below
http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/sep.aug;h=c49…http://git.fedorahosted.org/git/?p=augeas.git;a=blob;f=lenses/rx.aug;h=95df…
Anyone interested in playing with it?
Of course it has scripting bindings so we can use it in the Lighter
WebYaST.
> +.etc.zypp_conf
> +
> +`ag_ini(
> + `IniAgent( "/etc/zypp/zypp.conf" , $[
> + "options" : [ "no_nested_sections", "line_can_continue", "comments_last" ],
> + "comments": [
> + "^[ \t]*$", // empty line
> + "^[ \t]*#.*$", // comment char
> + ],
> + "sections" : [
> + $[
> + "begin" : [ "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*", "[%s]" ],
> + ]
> + ],
> + "params" : [
> + $[
> + "match" : [ "^[ \t]*([^=]*[^ \t=])[ \t]*=[ \t]*(.*[^ \t]|)[ \t]*$" , "%s=%s"],
> + ]
> + ]
> + ]
> + )
> +)
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On Mon, Nov 08, 2010 at 10:50:47PM +0100, Pavel Nemec wrote:
> > the problem is that, contrary to expectations, the WFM plugin needs
> > to be linked explicitly to the executable.
>
> You know what. I thought that. So I tried to link it. I am using cmake.
> however
> FindYast.cmake return this
> -- YaST2 found: includes in /usr/include/YaST2, library in /usr/lib/liby2.so
> -- plugins in /usr/local/lib/YaST2/plugin
> -- scr in YAST_PLUGIN_SCR_LIBRARY-NOTFOUND
> -- wfm in YAST_PLUGIN_WFM_LIBRARY-NOTFOUND
> -- UI in YAST_PLUGIN_UI_LIBRARY-NOTFOUND
>
> Is this bug?
Maybe, but I must admit I am not familiar with CMake. So it is hard
to tell if you do not tell us how you use it. I assume you compiled
and installed yast2-core to the /usr/local prefix, and...?
Anyway, look in these files to find examples of using the module:
(under http://svn.opensuse.org/svn/yast/trunk )
control-center/CMakeLists.txt:INCLUDE(YastCommon)
qt/CMakeLists.txt:INCLUDE(YastCommon)
qt-graph/CMakeLists.txt:FIND_PACKAGE(Yast)
qt-graph/CMakeLists.txt:INCLUDE(YastCommon)
qt-pkg/CMakeLists.txt:FIND_PACKAGE(Yast)
qt-pkg/CMakeLists.txt:INCLUDE(YastCommon)
ruby-bindings/CMakeLists.txt:FIND_PACKAGE(Yast REQUIRED)
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On Mon, Nov 08, 2010 at 11:19:21PM +0100, Pavel Nemec wrote:
> I tried to debug yast, however I find out that debuginfo packages are out of
> sync.
They are, if you install updates but don't have (enabled) the
debuginfo repo for them:
http://download.opensuse.org/update/11.3-testhttp://download.opensuse.org/debug/update/11.3-test
(you probably use the variants without "-test")
> So i tried compile my yast2-core with rpmbuild
> I got:strange error:
>
> Running /usr/src/packages/BUILD/yast2-
> core-2.19.2/scr/testsuite/scr.test/scr.exp ...
> Running dir...
> Running order...
> Running error...
> Running simple...
> Running register...
> FAIL: Wrong stderr for register
> Running overload...
> Running direct...
>
> === scr Summary ===
>
> # of expected passes 6
> # of unexpected failures 1
> make[4]: *** [check-DEJAGNU] Error 1
> make[4]: Leaving directory `/usr/src/packages/BUILD/yast2-
> core-2.19.2/scr/testsuite'
>[...]
> error: Bad exit status from /var/tmp/rpm-tmp.0QVCTm (%install)
>
> As this was clean build,, it look like that yast2-core-2.19 is broken. Is it
> worth bug report?
Well, we do not use rpmbuild, because it does not provide a
consistent environment. If you still want to rebuild the rpm, please
try build.rpm or "osc build" (osc.rpm)
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
(full quote for the list)
On Sun, Nov 07, 2010 at 12:09:22AM +0100, Pavel Nemec wrote:
> Hi Martin,
> today I finaly find sime time to dig into Yast again.
>
> I realize that I will need my own starter. It is because I need to set
> communication handler and doing that when UI start is overhead. (and I also
> need to start it from linked program and not as external app)
>
> So I am trying to create my own genericsfrontend.cc Which at the and wasn`t so
> hard.
>
> Problem is that for some reason I cant load client from "ycp".
> Y2Component *client = Y2ComponentBroker::createClient(client_name);
>
> will print into logs that it only look in pathsearch.cc(findy2exe) and
> pathsearch.cc(findy2plugin)
>
> For some reason Y2CCWFM.cc do not kick in and client is always null.
>
> I looked into genericsfrontend.cc how path is created, but I only fond
>
> YCPPathSearch::initialize();
>
> Which I am using too.
Hi Pavel,
the problem is that, contrary to expectations, the WFM plugin needs
to be linked explicitly to the executable.
I am attaching a modified version of your source which I have
successfully compiled and run. See the inlined compilation command
there.
Also compare how we link the actual y2base program:
http://svn.opensuse.org/svn/yast/trunk/core/base/src/Makefile.am
Good luck with your work. I've connected to you on GTalk and I'll
try to hang out on IRC in the evenings too so that we can connect
faster.
Martin
> This is log I get with my program:
> ...
> /home/pavel/.yast2/clients_non_y2/nfs
> 2010-11-06 23:26:54 <0> deepblue(26442) [libycp] pathsearch.cc(findy2exe):210
> Trying file /home/pavel/.yast2/clients/nfs
> 2010-11-06 23:26:54 <0> deepblue(26442) [libycp]
> pathsearch.cc(findy2plugin):233 Testing existence of plugin
> /usr/lib/YaST2/plugin/libpy2nfs.so.2
> 2010-11-06 23:26:54 <0> deepblue(26442) [libycp] pathsearch.cc(findy2exe):210
> Trying file /usr/lib/YaST2/clients_non_y2/nfs
> 2010-11-06 23:26:54 <0> deepblue(26442) [libycp] pathsearch.cc(findy2exe):210
> Trying file /usr/lib/YaST2/clients/nfs
> 2010-11-06 23:26:54 <3> deepblue(26442) [CustomLoader]
> loader/CustomLoader.cpp(main):39 client is null, exiting
>
>
> This is how it should look like:
> ...2010-11-06 23:26:21 <0> deepblue(26415) [wfm] Y2CCWFM.cc(createInLevel):67
> Trying to create nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp] pathsearch.cc(findy2exe):210
> Trying file /y2update/clients_non_y2/nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp] pathsearch.cc(findy2exe):210
> Trying file /y2update/clients/nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp]
> pathsearch.cc(findy2plugin):233 Testing existence of plugin
> /home/pavel/.yast2/plugin/libpy2nfs.so.2
> 2010-11-06 23:26:21 <0> deepblue(26415) [wfm] Y2CCWFM.cc(createInLevel):67
> Trying to create nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp] pathsearch.cc(findy2exe):210
> Trying file /home/pavel/.yast2/clients_non_y2/nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp] pathsearch.cc(findy2exe):210
> Trying file /home/pavel/.yast2/clients/nfs
> 2010-11-06 23:26:21 <0> deepblue(26415) [libycp]
> pathsearch.cc(findy2plugin):233 Testing existence of plugin
>
>
> Please use you magic insight and tell me what I am missing to call/set.
>
> Thanks,
> Pavel
> /*
> * CustomLoader.cpp
> *
> * Created on: Nov 6, 2010
> * Author: pavel
> */
>
> #include "CustomLoader.h"
>
>
>
> CustomLoader::CustomLoader() {
> // TODO Auto-generated constructor stub
>
> }
>
> CustomLoader::~CustomLoader() {
> // TODO Auto-generated destructor stub
> }
>
> int main(int argc, char **argv) {
> char *progname = "CustomLoader";
> char *client_name="nfs";
> char *server_name = "jast";
> char **server_argv = new char *[0];
>
> YCPPathSearch::initialize();
> string module = YCPPathSearch::findModule("nfs",true);
> y2milestone("Launched YaST2 component '%s' jast", progname);
> Y2ComponentBroker::getNamespaceComponent("UI");
> Y2Component *server = Y2ComponentBroker::createServer(server_name);
> server->setServerOptions(0, server_argv);
> Y2Component *client = Y2ComponentBroker::createClient(client_name);
>
> if(!server){
> y2error("server is null, exiting");
> exit(1);
> }
> if(!client){
> y2error("client is null, exiting");
> exit(1);
> }
>
> setenv("YAST_IS_RUNNING", "instsys", 1);
> y2milestone("YAST_IS_RUNNING is %s", getenv("YAST_IS_RUNNING"));
>
> YCPList arglist;
> YCPValue result = client->doActualWork(arglist, server);
> server->result(result);
>
> // Cleanup
> delete server;
> delete[] server_argv;
> delete client;
>
> // might be useful in tracking segmentation faults
> y2milestone("Finished YaST2 component '%s'", progname);
>
> if (result.isNull())
> exit(0);
>
> y2milestone("Exiting with client return value '%s'",
> result->toString().c_str());
> }
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Hi,
I'm looking for information on how to create an update medium. So far I
found
http://ftp.suse.com/pub/people/hvogel/Update-Media-HOWTO/index.html, but
that is not maintained anymore, and describes <= 9.1.
My goal is to insert a RAID driver right before install begins.
Can somebody please point me in the right direction?
Thanks in advance,
Joerg
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-devel+help(a)opensuse.org