summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2025-11-19 10:21:19 +0100
committerdd <dd@wx.tnyzeq.icu>2025-11-19 10:21:19 +0100
commit456ded76b4b16532da4d421b82f3dc31ec82ca18 (patch)
tree5b11e195e799fdd9197665e58613d1699223f936
parent103f2782c346b42c2ed8d041635911d9552dac12 (diff)
downloadvyos-jenkins-456ded76b4b16532da4d421b82f3dc31ec82ca18.tar.gz
vyos-jenkins-456ded76b4b16532da4d421b82f3dc31ec82ca18.zip
fixed linux-kernel 2025.11 build - missing libpcre2-dev dependency and also broken dependency on vpp due to package.toml lacking our modifications during linux-kernel build, this is why now all package.toml files are modified before any package build globally
-rwxr-xr-xnew/package_builder.py17
-rw-r--r--new/scripts/linux-kernel.sh5
2 files changed, 18 insertions, 4 deletions
diff --git a/new/package_builder.py b/new/package_builder.py
index 791ccb3..4fee369 100755
--- a/new/package_builder.py
+++ b/new/package_builder.py
@@ -197,6 +197,13 @@ class PackageBuilder:
git_url = git.get_remote_url("origin")
logging.info("Pulling repository %s" % git_url)
git.pull()
+
+ if repo_name == "vyos-build":
+ for parent, directories, files in os.walk(repo_path):
+ for file_name in files:
+ if file_name == "package.toml":
+ package_toml_path = os.path.join(parent, file_name)
+ self.modify_package_toml(package_toml_path)
else:
git_url = git.get_remote_url("origin")
logging.info("Using shared repository %s" % git_url)
@@ -213,9 +220,6 @@ class PackageBuilder:
if package["build_type"] == "build.py":
my_directory = os.path.join(self.my_build_dir, "vyos-build", package["path"])
if not self.skip_build or new:
- package_toml_path = os.path.join(my_directory, "package.toml")
- if os.path.exists(package_toml_path):
- self.modify_package_toml(package_toml_path)
# It's important to run bash in interactive mode, non-interactive shell breaks dependency on .bashrc.
build_script = os.path.join(virtual_scripts, "build_py.sh")
vyos_dir = "/vyos/%s" % package["path"]
@@ -279,7 +283,12 @@ class PackageBuilder:
)
if scm_url != package["scm_url"]:
changed = True
- logging.info("Updating package.toml GIT url from %s to %s" % (package["scm_url"], scm_url))
+
+ file_name = os.path.basename(path)
+ parent_directory_name = os.path.basename(os.path.dirname(path))
+ relative_path = os.path.join(parent_directory_name, file_name)
+
+ logging.info("Updating %s GIT url from %s to %s" % (relative_path, package["scm_url"], scm_url))
package["scm_url"] = scm_url
if "commit_id" in package and package["commit_id"] in ["master", "main"]:
package["commit_id"] = self.branch
diff --git a/new/scripts/linux-kernel.sh b/new/scripts/linux-kernel.sh
new file mode 100644
index 0000000..ac9ddda
--- /dev/null
+++ b/new/scripts/linux-kernel.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+set -e
+sudo apt-get update
+sudo apt-get install -y libpcre2-dev
+python3 ./build.py