Skip to content

Commit f32fd67

Browse files
committed
MT#55283 [debian] fix links backports for buster and focal
since 7e140e8 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}/[email protected] -> [email protected] Change-Id: Ie0dbace10f78252c43c45d92d323a44218384348 (cherry picked from commit 38fe214) (cherry picked from commit 56411f0)
1 parent 077a126 commit f32fd67

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pkg/deb/backports/buster

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ sed -i -e 's/^execute_before_dh_auto_configure:/override_dh_auto_configure:/' ${
2121
sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules
2222
sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules
2323
sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules
24+
25+
# fix links
26+
sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \
27+
${DIST}/rtpengine-recording-daemon.links
28+
sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \
29+
${DIST}/rtpengine-daemon.links
30+
2431
# Add dwz override
2532
cat >> ${DIST}/rules <<'EOF'
2633

pkg/deb/backports/focal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ sed -i -e 's/debhelper-compat.*/debhelper-compat (= 12),/' ${DIST}/control
2020
sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules
2121
sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules
2222
sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules
23+
24+
# fix links
25+
sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \
26+
${DIST}/rtpengine-recording-daemon.links
27+
sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \
28+
${DIST}/rtpengine-daemon.links
29+
2330
# Add dwz override
2431
cat >> ${DIST}/rules <<'EOF'
2532

0 commit comments

Comments
 (0)