From 79764ec78817a9a6c294288d877892ac2aef68b8 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 24 Jul 2024 11:14:48 +0200 Subject: [PATCH] MT#55283 [debian] fix links backports for buster and focal since 7e140e8a31bef41389d4fcc201698deafd84794b buster and focal are generating these links: > 09:47:43 lrwxrwxrwx root/root 0 2024-07-24 07:39 ./${env:deb_systemdsystemunitdir}/rtpengine.service -> rtpengine-daemon.service > 09:47:43 lrwxrwxrwx root/root 0 2024-07-24 07:39 ./${env:deb_systemdsystemunitdir}/rtpengine@.service -> rtpengine-daemon@.service Change-Id: Ie0dbace10f78252c43c45d92d323a44218384348 (cherry picked from commit 38fe21427d4568b7d31c824ebb28411fdc406d3e) (cherry picked from commit 56411f0c656c6f1dfea7166b5de57efbb537cedb) (cherry picked from commit f32fd6719ec4456e120cc4d5d5cf2f220ffc404a) --- pkg/deb/backports/buster | 7 +++++++ pkg/deb/backports/focal | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/pkg/deb/backports/buster b/pkg/deb/backports/buster index 00c884cf4..d25bd425a 100755 --- a/pkg/deb/backports/buster +++ b/pkg/deb/backports/buster @@ -21,6 +21,13 @@ sed -i -e 's/^execute_before_dh_auto_configure:/override_dh_auto_configure:/' ${ sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules + +# fix links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-recording-daemon.links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-daemon.links + # Add dwz override cat >> ${DIST}/rules <<'EOF' diff --git a/pkg/deb/backports/focal b/pkg/deb/backports/focal index 20773ff27..d50cd6e02 100755 --- a/pkg/deb/backports/focal +++ b/pkg/deb/backports/focal @@ -20,6 +20,13 @@ sed -i -e 's/debhelper-compat.*/debhelper-compat (= 12),/' ${DIST}/control sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules + +# fix links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-recording-daemon.links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-daemon.links + # Add dwz override cat >> ${DIST}/rules <<'EOF'