Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

doxyblocks issue

(1/1)

killerbot:
Can anyone try to see if they have a similar issue as I have [I am running OpenSuse 11.4 64-bit, latest svn CB].

When I issue "extract documentation" a few things should occur :
- doxygen directory created
- in there doxyfile created
- and more ...

For me step 1 is done, but not correctly causing step 2 to fail. The doxygen directory is created with the following (wrong) rights :
owner : rw
group : r
other : r

However when I look at other directories : owner + group + other have "x" right. When I add this right manually after the first failure, then the second attempt works [since the dir exists(with correct rights) it is not recreated, and step 2 works].

Looking at the code :

--- Code: ---    wxFileName fnOutput(sDoxygenDir, wxT(""));
    wxFileName fnDoxyfile(sDoxygenDir + wxFileName::GetPathSeparator() + sCfgBaseFile);
    wxFileName fnDoxygenLog(sDoxygenDir + wxFileName::GetPathSeparator() + sLogFile);
    fnOutput.Normalize();
    fnDoxyfile.Normalize();
    fnDoxygenLog.Normalize();

    if (!fnOutput.Mkdir(wxS_DEFAULT, wxPATH_MKDIR_FULL)){
        wxString sMsg = _("Failed. ") + fnOutput.GetFullPath() + _(" was not created.");
        AppendToLog(sMsg, LOG_WARNING);
        wxSetWorkingDirectory(sOldPath);
        return -1;
    }

--- End code ---
There's very little that looks wrong : fnOutput.Mkdir(wxS_DEFAULT, wxPATH_MKDIR_FULL) .
Maybe the wxS_DEFAULT ? or a bug in wxwidgets 2.8.11 ?

Jenna:
Confirmed with wxWidgets 2.8.10 .

Jenna:

--- Quote from: killerbot on August 09, 2011, 08:36:36 am ---There's very little that looks wrong : fnOutput.Mkdir(wxS_DEFAULT, wxPATH_MKDIR_FULL) .
Maybe the wxS_DEFAULT ? or a bug in wxwidgets 2.8.11 ?

--- End quote ---
wxS_DEFAULT is wrong, because it does not include the executable-bits, instead we should use 0777 (note the leading zero), so all bits, that er not explicitely removed by the umask are set.
Can you please test if it works for you also ?

killerbot:
yes, committed the fix.

Door open for the next issue . I don't get any warnings about undoc-ed stuff anymore, though the configuration for it is in place ...

Navigation

[0] Message Index

Go to full version