1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

fbcode_builder: getdeps: fboss: extend iproute2 builder to copy lib/*

Summary:
D15588809 introduced manifest and customer builder for iproute2. While the
Iproute2Builder copies include/* from build to install directory, it does not
copy lib/* which contains the libnetlink.a

As a result, the build system looks up libnetlink.a on local machine (which it
may not find).

Fix it by explicitly coping lib/* as well.

Reviewed By: wez

Differential Revision: D15708835

fbshipit-source-id: 3f5906eb48ce982b6e887cca0d3c11314425beab
This commit is contained in:
Shrikrishna Khare
2019-06-10 18:18:27 -07:00
committed by Facebook Github Bot
parent 3af0ced002
commit 5615773803

View File

@@ -225,11 +225,12 @@ class Iproute2Builder(BuilderBase):
self._patch() self._patch()
self._run_cmd(["make", "-j%s" % self.build_opts.num_jobs], env=env) self._run_cmd(["make", "-j%s" % self.build_opts.num_jobs], env=env)
install_cmd = ["make", "install", "DESTDIR=" + self.inst_dir] install_cmd = ["make", "install", "DESTDIR=" + self.inst_dir]
if not os.path.isdir(os.path.join(self.inst_dir, "include")):
shutil.copytree( for d in ["include", "lib"]:
os.path.join(self.build_dir, "include"), if not os.path.isdir(os.path.join(self.inst_dir, d)):
os.path.join(self.inst_dir, "include"), shutil.copytree(
) os.path.join(self.build_dir, d), os.path.join(self.inst_dir, d)
)
self._run_cmd(install_cmd, env=env) self._run_cmd(install_cmd, env=env)