aMule Bug Tracker - aMule
View Issue Details
0001394aMuleMiscpublic2008-08-25 00:222008-08-26 11:45
mr_hyde 
Wuischke 
normalminoralways
resolvedfixed 
SVN 
 
Any
0001394: When configured with --program-suffix/--program-prefix amule cannot launch amuleweb
Tested with amule 2.2.2 AND amule SVN.

If you configure amule with --program-prefix and/or --program-suffix amule is not able to launch amuleweb.

If you use --program-prefix=XXX_ then amuleweb it is _INSTALLED_ as "XXX_amuleweb", but in amule.cpp the code used to launch amuleweb on startup considers the name "amuleweb" only.

In amule.cpp you can read:

    // Run webserver?
    if (thePrefs::GetWSIsEnabled()) {
        wxString aMuleConfigFile = ConfigDir + wxT("amule.conf");
        wxString amulewebPath = wxT("amuleweb");
[...]

        wxString cmd =
            wxT("'") +
            amulewebPath +
            wxT("' '--amule-config-file=") +
            aMuleConfigFile +
            wxT("'");
        CTerminationProcessAmuleweb *p = new CTerminationProcessAmuleweb(cmd, &webserver_pid);
        webserver_pid = wxExecute(cmd, wxEXEC_ASYNC, p);


I suppose that it should be necessary to create some macros with the arguments of --program-prefix and --program-suffix to compose the right name, but this goes beyond my poor knowledge of automake/autoconf tools, sorry :-)

No tags attached.
Issue History
2008-08-25 00:22mr_hydeNew Issue
2008-08-25 00:22mr_hydeOperating System => Any
2008-08-26 11:45WuischkeStatusnew => resolved
2008-08-26 11:45WuischkeResolutionopen => fixed
2008-08-26 11:45WuischkeAssigned To => Wuischke
2008-08-26 11:45WuischkeNote Added: 0002929

Notes
(0002929)
Wuischke   
2008-08-26 11:45   
A new command line option will be available in tomorrow's SVN tarball.