diff mbox series

[O:lowlatency,3/3] UBUNTU: [Packaging] lowlatency: Remove backport packaging logic

Message ID 20240918114115.954562-4-juerg.haefliger@canonical.com
State New
Headers show
Series Don't produce linux-*-cloud-tools-common, linux-*-tools-common and linux-*-tools-host binary packages (LP: #2048183) | expand

Commit Message

Juerg Haefliger Sept. 18, 2024, 11:41 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2080970

This is not a backported kernel so remove the backport packaging logic
which - when present - might produce unexpected packaging results.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 debian.lowlatency/etc/local.conf              |  1 -
 debian.lowlatency/rules.d/hooks.mk            |  6 --
 debian.lowlatency/scripts/helpers/copy-files  | 62 -------------------
 .../scripts/helpers/local-mangle              | 24 -------
 4 files changed, 93 deletions(-)
 delete mode 100644 debian.lowlatency/etc/local.conf
 delete mode 100644 debian.lowlatency/rules.d/hooks.mk
 delete mode 100755 debian.lowlatency/scripts/helpers/copy-files
 delete mode 100755 debian.lowlatency/scripts/helpers/local-mangle
diff mbox series

Patch

diff --git a/debian.lowlatency/etc/local.conf b/debian.lowlatency/etc/local.conf
deleted file mode 100644
index 453a234e64db..000000000000
--- a/debian.lowlatency/etc/local.conf
+++ /dev/null
@@ -1 +0,0 @@ 
-FOREIGN_ARCHES="armhf ppc64el s390x"
diff --git a/debian.lowlatency/rules.d/hooks.mk b/debian.lowlatency/rules.d/hooks.mk
deleted file mode 100644
index 3d2580d7a4c8..000000000000
--- a/debian.lowlatency/rules.d/hooks.mk
+++ /dev/null
@@ -1,6 +0,0 @@ 
-do_enforce_all = true
-do_libc_dev_package	= false
-do_doc_package		= false
-do_tools_common		= false
-do_tools_host		= false
-do_source_package	= false
diff --git a/debian.lowlatency/scripts/helpers/copy-files b/debian.lowlatency/scripts/helpers/copy-files
deleted file mode 100755
index c80862fbf605..000000000000
--- a/debian.lowlatency/scripts/helpers/copy-files
+++ /dev/null
@@ -1,62 +0,0 @@ 
-#!/bin/bash -eu
-
-if [ -f debian/debian.env ]; then
-	# shellcheck disable=SC1091
-	. debian/debian.env
-fi
-
-if [ ! -d "${DEBIAN}" ]; then
-	echo You must run this script from the top directory of this repository.
-	exit 1
-fi
-
-CONF="${DEBIAN}"/etc/update.conf
-if [ -f "${CONF}" ]; then
-	# shellcheck disable=SC1090
-	. "${CONF}"
-fi
-
-FOREIGN_ARCHES=""
-LOCAL_CONF="${DEBIAN}/etc/local.conf"
-if [ -f "${LOCAL_CONF}" ]; then
-	# shellcheck disable=SC1090
-	. "${LOCAL_CONF}"
-fi
-
-SKIP_RULES_D=${SKIP_RULES_D:-}
-
-#
-# Update configs from master
-#
-rsync -avc --exclude 'annotations' --exclude 'config.flavour.lowlatency' --exclude 'config.flavour.lowlatency-64k' --delete "${DEBIAN_MASTER}/config/" "${DEBIAN}/config"
-
-#
-# Update package and DTB settings from master.
-#
-if [ -z "${SKIP_RULES_D}" ] ; then
-	rsync -avc "${DEBIAN_MASTER}/rules.d/"*.mk "${DEBIAN}/rules.d/"
-fi
-
-# Remove the .mk files from the arch's that are not supported
-for i in ${FOREIGN_ARCHES}
-do
-	rm -f "${DEBIAN}/rules.d/${i}.mk"
-	git rm -f --ignore-unmatch "${DEBIAN}/rules.d/${i}.mk" || true
-done
-
-#
-# Update modprobe.d from master
-#
-# Some releases (trusty) don't have this directory, and rsync would fail
-# without this check.
-if [ -d "${DEBIAN}/modprobe.d/" ]; then
-	rsync -avc --delete "${DEBIAN_MASTER}/modprobe.d/" "${DEBIAN}/modprobe.d"
-fi
-
-cp -p "${DEBIAN_MASTER}/control.d/"*.inclusion-list "${DEBIAN}/control.d"
-
-cp -p "${DEBIAN_MASTER}/reconstruct" "${DEBIAN}/reconstruct"
-
-if [ -x "${DEBIAN}/scripts/helpers/local-mangle" ]; then
-	"./${DEBIAN}/scripts/helpers/local-mangle"
-fi
diff --git a/debian.lowlatency/scripts/helpers/local-mangle b/debian.lowlatency/scripts/helpers/local-mangle
deleted file mode 100755
index 4fbed2506102..000000000000
--- a/debian.lowlatency/scripts/helpers/local-mangle
+++ /dev/null
@@ -1,24 +0,0 @@ 
-#!/bin/bash -eu
-
-. debian/debian.env
-
-# We only build the lowlatency/lowlatency-64k flavours
-sed -i '/^flavours.*$/d' ${DEBIAN}/rules.d/amd64.mk
-sed -i '/^flavours.*$/d' ${DEBIAN}/rules.d/arm64.mk
-echo -e "flavours\t= lowlatency" >> ${DEBIAN}/rules.d/amd64.mk
-echo -e "flavours\t= lowlatency lowlatency-64k" >> ${DEBIAN}/rules.d/arm64.mk
-
-# We only care about lowlatency/lowlatency-64k abis
-sed -i /getall/d ${DEBIAN}/etc/getabis
-echo "getall amd64 lowlatency" >> ${DEBIAN}/etc/getabis
-echo "getall arm64 lowlatency lowlatency-64k" >> ${DEBIAN}/etc/getabis
-
-# Override options in rules.d/hooks.mk (normally master does not have this
-# file but it got added for generic annotations enforcement.
-cat <<EOD >>${DEBIAN}/rules.d/hooks.mk
-do_libc_dev_package	= false
-do_doc_package		= false
-do_tools_common		= false
-do_tools_host		= false
-do_source_package	= false
-EOD