Workaround impossiblity to have arch-specific recommends

    dpkg-gencontrol: error: the Recommends field contains an arch-specific dependency but the package is architecture all
So instead hack the arch limitation in d/tests/control through sed…

Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent dc9ee98b
Pipeline #12782 failed with stage
in 20 minutes and 20 seconds
......@@ -79,6 +79,7 @@ override_dh_auto_clean:
@echo "#" >> debian/tests/control.tmp
@cat debian/tests/control.in >> debian/tests/control.tmp
@sed -i "s#%RECOMMENDS%#$(shell bin/diffoscope --list-debian-substvars | cut -d= -f2)#" debian/tests/control.tmp
@sed -i "s,apktool,apktool [!ppc64el !s390x]," debian/tests/control.tmp
@set -e ; if ! diff -q debian/tests/control debian/tests/control.tmp ; then \
echo ;\
echo "The generated control file differs from the actual one." ;\
......
......@@ -22,7 +22,7 @@ EXTERNAL_TOOLS = {
'debian': 'abootimg',
},
'apktool': {
'debian': 'apktool [!ppc64el !s390x]',
'debian': 'apktool',
},
'db_dump': {
'debian': 'db-util',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment