Compare commits

..
Author SHA1 Message Date
sisungo b9533a5c6e fix: pkg-config link is not defined
Signed-off-by: sisungo <[email protected]>
2026-07-07 16:12:17 +08:00
2 changed files with 2 additions and 12 deletions
+1 -12
View File
@@ -1,7 +1,6 @@
import json
import os
import shutil
import subprocess
import sys
if sys.version_info >= (3, 14):
@@ -46,14 +45,4 @@ class PkgComposer:
shutil.copy2(src, f"{self.workdir}/bundle/{dst}", follow_symlinks=False)
def add_dir(self, src: str, dst: str, merge: bool = False):
target = f"{self.workdir}/bundle/{dst}"
if not os.path.exists(src):
raise FileNotFoundError(f"Source directory not found: {src}")
os.makedirs(os.path.dirname(target), exist_ok=True)
if merge and os.path.exists(target) and os.path.isdir(target):
cmd = ["cp", "-a", f"{src}/.", target]
else:
cmd = ["cp", "-a", src, target]
result = subprocess.run(cmd, capture_output=True, text=True)
if result.returncode != 0:
raise RuntimeError(f"cp command failed: {result.stderr}")
shutil.copytree(src, f"{self.workdir}/bundle/{dst}", dirs_exist_ok=merge)
+1
View File
@@ -31,6 +31,7 @@ dep("semi-libc @same-arch")
package("pkgconf")
cpp.use_auto_pack(["bin"])
dep("libpkgconf (same)")
link("bin/pkgconf", "/bin/pkg-config")
package("libpkgconf-dev")
cpp.use_auto_pack(["dev"])