incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 118615] New: make epm more verbose
Date Fri, 18 Nov 2011 11:14:17 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=118615

             Bug #: 118615
        Issue Type: DEFECT
           Summary: make epm more verbose
    Classification: Code
           Product: tools
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: solenv
        AssignedTo: hjs@openoffice.org
        ReportedBy: arielch@apache.org
                CC: ooo-issues@incubator.apache.org


Currently, epm is invoked with the -v switch in
solenv/bin/modules/installer/epmfile.pm sub call_epm

The problem is that internally epm uses a verbosity level, that redirects the
output to /dev/null when Verbosity < 2, this makes the developer clueless about
errors with the tools epm invokes (rpmbuid for building rpm packages, etc).

See http://svn.easysw.com/public/epm/tags/release-4.2/run.c line 122

   /*
    * Child comes here...  Redirect stdin, stdout, and stderr to /dev/null
    * if !Verbosity...
    */

    if (Verbosity < 2)
    {
      close(0);
      close(1);
      close(2);

      open("/dev/null", O_RDWR);
      dup(0);
      dup(0);
    }


The verbosity level is not set as an argument to -v, as in -v VERBOSITY, but is
taken as the length of the argv char. string - 1:
http://svn.easysw.com/public/epm/tags/release-4.2/epm.c line 282
        case 'v' : /* Be verbose */
        Verbosity += strlen(argv[i]) - 1;
        break;

this means, 
-v is verbosity 1
-vX is verbosity 2
-vXX is verbosity 3
and so on; it doesn't matter what chars you place after -v to increase the
verbosity.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message