https://bugs.freedesktop.org/show_bug.cgi?id=66754

          Priority: medium
            Bug ID: 66754
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: Remove own implementations of various Perl functions
                    in installer
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: ke...@suse.cz
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: Libreoffice
           Product: LibreOffice

Some Perl knowledge is needed for this Easy Hack.

solenv/bin/modules/installer/systemactions.pm implements for example
create_directory() that can be exchanged with standard Perl's make_path()
[http://perldoc.perl.org/File/Path.html].  Similarly other functions there, for
which standard (or widely used) implementations exist.

What needs to be done (in the create_directory case; but similarly for more
functions there):

Find all Perl scripts that use create_directory:

git grep '\<create_directory\>'

Edit all those that are Perl (end with .pl or .pm) so that you add use
File::Path qw(make_path); at the top and then instead of create_directory()
calls, you use make_path().

Then, remove the create_directory and create_directory_with_privileges
declarations / definitions.

As the last step, make sure that everything builds & packages still :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to