summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburntraisin <rbkehan@gmail.com>2023-09-04 22:20:12 -0400
committerburntraisin <rbkehan@gmail.com>2023-09-04 22:20:12 -0400
commit20d87f1b9d6787a1facdb8beeb5d92e1d4ce10e3 (patch)
tree74a3331da0471c46682391281c3c736e568702e0
parent96cf89749282202ceb2654dd9a0017a3bc014b70 (diff)
downloadfork-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-xacprep21
1 files changed, 19 insertions, 2 deletions
diff --git a/acprep b/acprep
index c6665e24..112f20dd 100755
--- a/acprep
+++ b/acprep
@@ -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',