summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/pack/deb/main.lua3
-rw-r--r--xmake/scripts/xpack/deb/debian/compat1
2 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index 501af8c57..ebbdb548e 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -255,7 +255,8 @@ function _pack_deb(debuild, package)
archive.archive(archivefile, archivefiles, {curdir = rootdir, compress = "best"})
-- build package
- os.vrunv(debuild, {"-us", "-uc"}, {curdir = sourcedir})
+ -- https://github.com/xmake-io/xmake/issues/7626
+ os.vrunv(debuild, {"-e", "PATH=" .. (os.getenv("PATH") or ""), "-us", "-uc"}, {curdir = sourcedir})
-- copy deb file
os.vcp(path.join(path.directory(sourcedir), "*.deb"), package:outputfile())
diff --git a/xmake/scripts/xpack/deb/debian/compat b/xmake/scripts/xpack/deb/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/xmake/scripts/xpack/deb/debian/compat
@@ -0,0 +1 @@
+9