summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-06 11:58:10 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2023-12-06 12:07:03 +0100
commit63dc7e9517968f315b95ac0c445b9668b77de794 (patch)
treed528d8a0751937da984e349c3ce440ed616eb550 /acprep
parentdebad90709aa5ae146eec6144a309cbd3b289fc8 (diff)
downloadfork-ledger-63dc7e9517968f315b95ac0c445b9668b77de794.tar.gz
fork-ledger-63dc7e9517968f315b95ac0c445b9668b77de794.tar.bz2
fork-ledger-63dc7e9517968f315b95ac0c445b9668b77de794.zip
acprep: Add dependencies for Debian trixie
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep27
1 files changed, 27 insertions, 0 deletions
diff --git a/acprep b/acprep
index 0322d886..786bc63a 100755
--- a/acprep
+++ b/acprep
@@ -709,6 +709,33 @@ class PrepareBuild(CommandLineApp):
self.log.info('Executing: ' + ' '.join(packages))
self.execute(*packages)
+ if exists('/etc/debian_version'):
+ release = open('/etc/debian_version').readline()
+ if release.startswith('trixie'):
+ self.log.info(f'Looks like you are using APT on Debian {release}')
+ packages = [
+ 'sudo', 'apt', 'install', '-y', '--no-install-recommends',
+ 'clang',
+ 'cmake',
+ 'ninja',
+ 'libboost-dev',
+ 'libmpfr-dev',
+ 'libgmp-dev',
+ 'libicu-dev',
+ 'libedit-dev',
+ 'libutfcpp-dev',
+ 'gettext',
+ 'texinfo',
+ 'doxygen',
+ 'graphviz',
+ 'lcov',
+ 'sloccount',
+ ]
+ self.log.info('Executing: ' + ' '.join(packages))
+ self.execute(*packages)
+ else:
+ self.log.info(f"I do not recognize your version '{release}' of Debian!")
+
if exists('/etc/redhat-release'):
release = open('/etc/redhat-release').readline()
if release.startswith('CentOS'):