first-run: Reduce use of ksb::Util, remove dead code.

Authored by mpyne on Oct 21 2018, 9:01 PM.

Description

first-run: Reduce use of ksb::Util, remove dead code.

Some minimal versions of popular Linux distros have Docker images that
provide a stripped-down Perl install to save space. You cannot rely on
"core" modules being present in this case.

kdesrc-build should be able to at least spit out a message of which
packages are required on the distribution. This means that
ksb::OSSupport and ksb::FirstRun must be loadable in this distros, and
kdesrc-build must not load "full fat" Perl modules until after checking
whether to handle initial setup.

Making this happen leads me to refactor exception code out of ksb::Util.
While doing so I noticed that download_file is no longer needed
(kde_projects.xml support drove that need), so that is removed as well
to eliminate a dependency on HTTP::Tiny (a core module, but not
available in minimal distros).

Details

Committed
mpyneOct 21 2018, 9:01 PM
Parents
R365:6b48a781caff: Clean up --help, add stub for initial setup helper.
Branches
Unknown
Tags
Unknown