Skip to content

Commit 9438a58

Browse files
committed
Support Debian 12 (bookworm)
1 parent 0b8ef8f commit 9438a58

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
i.e. `<Major version>.<Minor version>.<Patch version>`
99

10+
## [v0.8.0] - 2024-09-14
11+
- Support Debian 12 (bookworm)
12+
1013
## [v0.7.2] - 2024-09-14
1114
- Support call recovery capability (HA) #140
1215
- Support config build as var for kamailio/freeswitch

build/ansible/roles/libre/tasks/liberator.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,23 @@
4343
- reload logrotate
4444
- restart rsyslog
4545

46+
## BOOKWORM
47+
- name: variable libre_python_binary
48+
set_fact:
49+
libre_python_binary: "{% if ansible_distribution_major_version|int >= 12 %}{{dstdir}}/venv/bin/python3{% else %}/usr/bin/python3{% endif %}"
50+
- name: Update python lib/package for venv
51+
pip:
52+
requirements: "{{dstdir}}/liberator/requirements.txt"
53+
virtualenv: "{{dstdir}}/venv"
54+
virtualenv_command: /usr/bin/python3 -m venv
55+
when: ansible_distribution_major_version|int >= 12
56+
## BOOKWORM
57+
4658
- name: Install specified python requirements
4759
pip:
4860
requirements: "{{dstdir}}/liberator/requirements.txt"
4961
executable: pip3
62+
when: ansible_distribution_major_version|int < 12
5063

5164
- name: Create a directory if it does not exist
5265
file:

build/ansible/roles/platform/tasks/debian.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,18 @@
6969
- python3-pip
7070
- python3
7171
- python3-dev
72-
- python-setuptools
72+
- python3-venv
7373
- liblua5.2-dev
7474
- lua5.2
7575
- luarocks
7676
state: latest
77+
78+
- name: Install essential/extend packages
79+
apt:
80+
pkg:
81+
- python-setuptools
82+
state: latest
83+
when: libre_debian_version != "bookworm"
7784

7885
- name: Enable and start chronyd
7986
systemd:

liberator/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
requests==2.32.2
2-
fastapi==0.110.3
1+
requests==2.32.3
2+
fastapi==0.114.2
33
typing==3.7.4.1
44
pydantic==1.10.15
5-
uvicorn==0.11.7
5+
uvicorn==0.30.6
66
Jinja2==3.1.4
77
aiofiles==0.5.0
8-
redis==4.4.4
8+
redis==5.0.8
99
contextvars==2.4
1010
schedule==0.6.0
1111
redfs==0.0.4rc0
12-
validators==0.18.2
12+
validators==0.34.0

liberator/system/systemd/liberator.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ User=root
99
Group=root
1010
EnvironmentFile={{dstdir}}/libre.env
1111
WorkingDirectory={{dstdir}}/liberator
12-
ExecStart=/usr/bin/python3 {{dstdir}}/liberator/main.py
12+
ExecStart={{libre_python_binary}} {{dstdir}}/liberator/main.py
1313

1414
SyslogIdentifier=libresbc
1515
SyslogFacility=5

0 commit comments

Comments
 (0)