From 46d7891a221e82fc942b5d0fd14b072d6dfbcdc4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 5 Oct 2018 09:05:31 +0200 Subject: [PATCH] When copying aports to chroots, resolve symlinks When doing it this way, we can share patches between kernels the aports (pmaports!35, pmaports#95). --- pmb/build/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmb/build/other.py b/pmb/build/other.py index 39b9ea1c..9259979a 100644 --- a/pmb/build/other.py +++ b/pmb/build/other.py @@ -86,8 +86,8 @@ def copy_to_buildpath(args, package, suffix="native"): if os.path.exists(build): pmb.chroot.root(args, ["rm", "-rf", "/home/pmos/build"], suffix) - # Copy aport contents - pmb.helpers.run.root(args, ["cp", "-r", aport + "/", build]) + # Copy aport contents with resolved symlinks + pmb.helpers.run.root(args, ["cp", "-rL", aport + "/", build]) pmb.chroot.root(args, ["chown", "-R", "pmos:pmos", "/home/pmos/build"], suffix)