DEB: Make adjustments for time64 ABI in the 'control' file before building -

in the cleaning phase and not to return the changes back. This is workaround
due to newer dpkg, where cdbs rules for debhelper do not reflect additional
changes in the control file made during build.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8b4a12b773)
r14.1.x
Slávek Banko 4 days ago
parent 6606c94ea4
commit 828ca3cfac
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -57,6 +57,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libk3b3$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libk3b3\\)-trinity$$/Package: \\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libk3b3-trinity\\)\\( [^,]*\|$$\)/\\1:\\2\\3/" \
-e "s/\\(libk3b3\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -149,6 +149,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/tdelibs14$(DEB_TIME64_SUFFIX)-trinity\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: tdelibs14\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(tdelibs\\)4c2a-trinity\\( \|$$\)/\\1:\\2\\34c2a-trinity, \\314-trinity\\4/" \
-e "s/\\(tdelibs14\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -141,6 +141,17 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libkleopatra1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libmimelib1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libmimelib1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libmimelib1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
\
-e "s/^\\(Package: libkleopatra1\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libkleopatra1\\)-trinity\\( \|$$\)/\\1:\\2\\3-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libkleopatra1\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -89,6 +89,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libarts1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libarts1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libarts1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libarts1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -59,6 +59,12 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libcaldav$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libcaldav\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
-e "s/\\(libcaldav\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -59,6 +59,12 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libcarddav$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libcarddav\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
-e "s/\\(libcarddav\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -258,6 +258,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libtqt3-mt$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
-e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -222,6 +222,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/tdelibs14$(DEB_TIME64_SUFFIX)-trinity\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: tdelibs14\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(tdelibs\\)4c2a-trinity\\( \|$$\)/\\1:\\2\\34c2a-trinity, \\314-trinity\\4/" \
-e "s/\\(tdelibs14\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -147,6 +147,17 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libkleopatra1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libmimelib1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libmimelib1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libmimelib1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
\
-e "s/^\\(Package: libkleopatra1\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libkleopatra1\\)-trinity\\( \|$$\)/\\1:\\2\\3-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libkleopatra1\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -96,6 +96,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libarts1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libarts1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libarts1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libarts1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -264,6 +264,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libtqt3-mt$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
-e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -57,6 +57,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libk3b3$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libk3b3\\)-trinity$$/Package: \\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libk3b3-trinity\\)\\( [^,]*\|$$\)/\\1:\\2\\3/" \
-e "s/\\(libk3b3\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -149,6 +149,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/tdelibs14$(DEB_TIME64_SUFFIX)-trinity\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: tdelibs14\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(tdelibs\\)4c2a-trinity\\( \|$$\)/\\1:\\2\\34c2a-trinity, \\314-trinity\\4/" \
-e "s/\\(tdelibs14\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -141,6 +141,17 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libkleopatra1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libmimelib1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libmimelib1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libmimelib1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
\
-e "s/^\\(Package: libkleopatra1\\)-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libkleopatra1\\)-trinity\\( \|$$\)/\\1:\\2\\3-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libkleopatra1\\)-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -89,6 +89,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libarts1$(DEB_TIME64_SUFFIX)-" | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libarts1\\)c2a-trinity$$/\\1$(DEB_TIME64_SUFFIX)-trinity/" \
-e "s/^\\(Replaces\\|Breaks\\):\\(.*\\)\\(libarts1\\)c2a-trinity\\( \|$$\)/\\1:\\2\\3c2a-trinity, \\3$(DEB_TIME64_SUFFIX)-trinity\\4/" \
-e "s/\\(libarts1\\)c2a-trinity (=/\\1$(DEB_TIME64_SUFFIX)-trinity (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -59,6 +59,12 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libcaldav$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libcaldav\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
-e "s/\\(libcaldav\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -59,6 +59,12 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libcarddav$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^Package: \\(libcarddav\\)$$/Package: \\1$(DEB_TIME64_SUFFIX)\\nReplaces: \\1\\nBreaks: \\1/" \
-e "s/\\(libcarddav\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

@ -258,6 +258,13 @@ ifeq ($(DEB_TIME64_API),true)
ls -d debian/* | \
grep -E "/libtqt3-mt$(DEB_TIME64_SUFFIX)\." | \
xargs -r rm
[ -f debian/control.t64 ] || \
sed -i.t64 \
-e "s/^\\(Package: libtqt3-mt\\)$$/\\1$(DEB_TIME64_SUFFIX)/" \
-e "s/^\\(Replaces\\|Breaks\\): \\(libtqt3-mt\\)\\( \|$$\)/\\1: \\2, \\2$(DEB_TIME64_SUFFIX)\\3/" \
-e "s/\\(libtqt3-mt\\) (=/\\1$(DEB_TIME64_SUFFIX) (=/" \
debian/control
else
[ ! -f debian/control.t64 ] || \
mv debian/control.t64 debian/control
endif

Loading…
Cancel
Save