diff options
author | burntraisin <rbkehan@gmail.com> | 2023-09-04 22:20:12 -0400 |
---|---|---|
committer | burntraisin <rbkehan@gmail.com> | 2023-09-04 22:20:12 -0400 |
commit | 20d87f1b9d6787a1facdb8beeb5d92e1d4ce10e3 (patch) | |
tree | 74a3331da0471c46682391281c3c736e568702e0 | |
parent | 96cf89749282202ceb2654dd9a0017a3bc014b70 (diff) | |
download | fork-ledger-20d87f1b9d6787a1facdb8beeb5d92e1d4ce10e3.tar.gz fork-ledger-20d87f1b9d6787a1facdb8beeb5d92e1d4ce10e3.tar.bz2 fork-ledger-20d87f1b9d6787a1facdb8beeb5d92e1d4ce10e3.zip |
Add support for Ubuntu 22.04 Jammy in ./acprep
Running `./acprep dependencies` in Ubuntu 22.04 Jammy while
building ledger from source returns:
acprep: INFO: Invoking primary phase: dependencies
acprep: INFO: Executing phase: dependencies
acprep: INFO: Installing Ledger's build dependencies ...
acprep: INFO: Looks like you are using APT on Ubuntu jammy
acprep: INFO: I do not recognize your version of Ubuntu!
This error was also present when installing on Ubuntu 20.04
Focal. The solution for Focal is the same for Jammy, which is to
add `ubuntu-jammy` to `BoostInfo` and `jammy` as another `release`.
-rwxr-xr-x | acprep | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -63,7 +63,7 @@ class BoostInfo(object): if system in ['centos']: return [ 'boost-devel' ] - elif system in ['ubuntu-focal', 'ubuntu-bionic', 'ubuntu-xenial', + elif system in ['ubuntu-jammy', 'ubuntu-focal', 'ubuntu-bionic', 'ubuntu-xenial', 'ubuntu-eoan', 'ubuntu-trusty', 'ubuntu-cosmic']: return [ 'libboost-dev', 'libboost-date-time-dev', @@ -549,7 +549,24 @@ class PrepareBuild(CommandLineApp): 'sudo', 'apt-get', 'install', 'build-essential', ] - if release == 'focal': + if release == 'jammy': + packages.extend([ + 'doxygen', + 'cmake', + 'ninja-build', + 'zlib1g-dev', + 'libbz2-dev', + 'python-dev', + 'libgmp3-dev', + 'libmpfr-dev', + 'gettext', + 'libedit-dev', + 'texinfo', + 'lcov', + 'libutfcpp-dev', + 'sloccount' + ]) + elif release == 'focal': packages.extend([ 'doxygen', 'cmake', |