From abdc5181945ccd6b4d99edc66713054742b7a320 Mon Sep 17 00:00:00 2001
From: Christophe Monniez <moc@odoo.com>
Date: Fri, 5 Mar 2021 15:13:38 +0000
Subject: [PATCH] [FIX] packaging: add python3-renderpm in debian package
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In Debian and Ubuntu distros, the python reportlab package provides
multiple binary packages among which python3-reportlab [0] [1] and
python3-renderpm [2] [3]. The latter is only recommended, but is mandatory for
odoo because it's needed for rendering barcode with the `asString` method.

[0] https://packages.debian.org/buster/python3-reportlab
[1] https://packages.ubuntu.com/focal/python3-reportlab
[2] https://packages.debian.org/buster/python3-renderpm
[3] https://packages.ubuntu.com/focal/python3-renderpm

closes odoo/odoo#67418

X-original-commit: 73e9926435f0b3c6eb4fe06457231aa60c8bb557
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
---
 debian/control         | 1 +
 setup/package.dfdebian | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/control b/debian/control
index d92c6fe01b50..6072f0931f5c 100644
--- a/debian/control
+++ b/debian/control
@@ -42,6 +42,7 @@ Depends:
  python3-pydot,
  python3-pypdf2,
  python3-qrcode,
+ python3-renderpm,
  python3-reportlab,
  python3-requests,
  python3-stdnum,
diff --git a/setup/package.dfdebian b/setup/package.dfdebian
index 312e98d0d0bf..158790546104 100644
--- a/setup/package.dfdebian
+++ b/setup/package.dfdebian
@@ -43,6 +43,7 @@ RUN apt-get update -qq &&  \
         python3-pydot \
         python3-pypdf2 \
         python3-qrcode \
+        python3-renderpm \
         python3-reportlab \
         python3-requests \
         python3-serial \
-- 
GitLab