[trusty/azure,v2,2/3] UBUNTU: Packaging: Make update-from-*master call copy-files
diff mbox series

Message ID 20190226151806.21352-3-cascardo@canonical.com
State New
Headers show
Series
  • Split copy-files from update-from-*master
Related show

Commit Message

Thadeu Lima de Souza Cascardo Feb. 26, 2019, 3:18 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1817734

Now that copy-files (and optionally local-magle) are introduced,
update-from-*master may make use of them, instead of doing the copies and
mangles itself. That makes it easier to replace update-from-*master with a
single script version for all trees in the future.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
---
 .../etc/update-from-azure-xenial-master       | 32 +------------------
 1 file changed, 1 insertion(+), 31 deletions(-)

Patch
diff mbox series

diff --git a/debian.azure-trusty/etc/update-from-azure-xenial-master b/debian.azure-trusty/etc/update-from-azure-xenial-master
index 5a819c7e4a09..98de164a3bf9 100755
--- a/debian.azure-trusty/etc/update-from-azure-xenial-master
+++ b/debian.azure-trusty/etc/update-from-azure-xenial-master
@@ -96,37 +96,7 @@  then
 	exit 1
 fi
 
-#
-# Pick up any master branch changes to udeb modules or firmware.
-#
-rsync -av --delete ${DEBIAN_SOURCE}/d-i/ ${DEBIAN_TARGET}/d-i
-
-#
-# Update configs from master
-#
-rsync -av --delete ${DEBIAN_SOURCE}/config/ ${DEBIAN_TARGET}/config
-
-#
-# Turn off strong stack protection as it requires gcc 4.9+
-#
-sed -i -e 's/^.*CONFIG_CC_STACKPROTECTOR_REGULAR.*$/CONFIG_CC_STACKPROTECTOR_REGULAR=y/' -e 's/^CONFIG_CC_STACKPROTECTOR_STRONG.*$/# CONFIG_CC_STACKPROTECTOR_STRONG is not set/' ${DEBIAN_TARGET}/config/config.common.ubuntu
-sed -i 's/CONFIG_CC_STACKPROTECTOR_STRONG/CONFIG_CC_STACKPROTECTOR_REGULAR/' ${DEBIAN_TARGET}/config/annotations
-
-#
-# Update package and DTB settings from master.
-#
-rsync -av ${DEBIAN_SOURCE}/rules.d/*.mk ${DEBIAN_TARGET}/rules.d/
-# Disable ZFS as we have no tooling in trusty to mount these.
-sed -i -e 's/^\(do_zfs[ \t]*=[ \t]\)true\(.*\)$/\1false\2/' debian.xenial/rules.d/*.mk
-
-#
-# Update modprobe.d from master
-#
-rsync -av --delete ${DEBIAN_SOURCE}/modprobe.d/ ${DEBIAN_TARGET}/modprobe.d
-
-cp -p ${DEBIAN_SOURCE}/control.d/*.inclusion-list ${DEBIAN_TARGET}/control.d
-
-cp -p ${DEBIAN_SOURCE}/reconstruct ${DEBIAN_TARGET}/reconstruct
+"./${DEBIAN_TARGET}/scripts/helpers/copy-files"
 
 fakeroot debian/rules clean updateconfigs