mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Compare commits
6 Commits
1cf889b058
...
fcbd8d6cb4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcbd8d6cb4 | ||
|
|
ffcf9b46ae | ||
|
|
1545aa4b76 | ||
|
|
73df823da1 | ||
|
|
63f3ae10b0 | ||
|
|
4369ade6a3 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,3 +11,5 @@ packages/*
|
|||||||
/testinstall*.efivars
|
/testinstall*.efivars
|
||||||
/*.qcow2
|
/*.qcow2
|
||||||
/*.tar
|
/*.tar
|
||||||
|
.DS_Store
|
||||||
|
._.DS_Store
|
||||||
|
|||||||
@ -14,7 +14,7 @@ vyos_mirror = "https://packages.vyos.net/repositories/current"
|
|||||||
vyos_branch = "current"
|
vyos_branch = "current"
|
||||||
release_train = "current"
|
release_train = "current"
|
||||||
|
|
||||||
kernel_version = "6.6.89"
|
kernel_version = "6.6.90"
|
||||||
kernel_flavor = "vyos"
|
kernel_flavor = "vyos"
|
||||||
bootloaders = "syslinux,grub-efi"
|
bootloaders = "syslinux,grub-efi"
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,8 @@ RUN apt-get update && apt-get install -y \
|
|||||||
po4a \
|
po4a \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
jq \
|
jq \
|
||||||
socat
|
socat \
|
||||||
|
python-is-python3
|
||||||
|
|
||||||
# Packages needed for vyos-build
|
# Packages needed for vyos-build
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@ -191,34 +192,7 @@ RUN wget https://salsa.debian.org/klausenbusk-guest/debootstrap/commit/a9a603b17
|
|||||||
dpkg-buildpackage -us -uc && \
|
dpkg-buildpackage -us -uc && \
|
||||||
sudo dpkg -i ../debootstrap*.deb
|
sudo dpkg -i ../debootstrap*.deb
|
||||||
|
|
||||||
# Packages needed for Linux Kernel
|
|
||||||
# cmake required by accel-ppp
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
cmake \
|
|
||||||
gnupg2 \
|
|
||||||
rsync \
|
|
||||||
libelf-dev \
|
|
||||||
libncurses5-dev \
|
|
||||||
flex \
|
|
||||||
bison \
|
|
||||||
bc \
|
|
||||||
kmod \
|
|
||||||
cpio \
|
|
||||||
python-is-python3 \
|
|
||||||
dwarves \
|
|
||||||
nasm \
|
|
||||||
rdfind
|
|
||||||
|
|
||||||
# Packages needed for Intel QAT out-of-tree drivers
|
|
||||||
# FPM is used when generation Debian pckages for e.g. Intel QAT drivers
|
# FPM is used when generation Debian pckages for e.g. Intel QAT drivers
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
pciutils \
|
|
||||||
yasm \
|
|
||||||
ruby \
|
|
||||||
libudev-dev \
|
|
||||||
ruby-dev \
|
|
||||||
rubygems \
|
|
||||||
build-essential
|
|
||||||
RUN gem install --no-document fpm
|
RUN gem install --no-document fpm
|
||||||
|
|
||||||
# Packages needed for vyos-1x
|
# Packages needed for vyos-1x
|
||||||
@ -226,6 +200,7 @@ RUN pip install --break-system-packages \
|
|||||||
git+https://github.com/aristanetworks/j2lint.git@341b5d5db86 \
|
git+https://github.com/aristanetworks/j2lint.git@341b5d5db86 \
|
||||||
pyhumps==3.8.0; \
|
pyhumps==3.8.0; \
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
|
build-essential \
|
||||||
dh-python \
|
dh-python \
|
||||||
fakeroot \
|
fakeroot \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
@ -315,12 +290,6 @@ RUN if dpkg-architecture -iarm64; then \
|
|||||||
grub-efi-arm; \
|
grub-efi-arm; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Packages needed for openvpn-otp
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
debhelper \
|
|
||||||
libssl-dev \
|
|
||||||
openvpn
|
|
||||||
|
|
||||||
# Packages needed for OWAMP/TWAMP (service sla)
|
# Packages needed for OWAMP/TWAMP (service sla)
|
||||||
RUN git clone -b 4.4.6 https://github.com/perfsonar/i2util.git /tmp/i2util && \
|
RUN git clone -b 4.4.6 https://github.com/perfsonar/i2util.git /tmp/i2util && \
|
||||||
cd /tmp/i2util && \
|
cd /tmp/i2util && \
|
||||||
@ -333,30 +302,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
udev \
|
udev \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
# Packages needed for Accel-PPP
|
|
||||||
# XXX: please note that this must be installed after nftable dependencies - otherwise
|
|
||||||
# APT will remove liblua5.3-dev which breaks the Accel-PPP build
|
|
||||||
# With bookworm, updated to libssl3 (Note: https://github.com/accel-ppp/accel-ppp/issues/68)
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
liblua5.3-dev \
|
|
||||||
libssl3 \
|
|
||||||
libssl-dev \
|
|
||||||
libpcre3-dev
|
|
||||||
|
|
||||||
# debmake: a native Debian tool for preparing sources for packaging
|
# debmake: a native Debian tool for preparing sources for packaging
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
debmake \
|
debmake \
|
||||||
python3-debian
|
python3-debian
|
||||||
|
|
||||||
# Packages for jool
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
libnl-genl-3-dev \
|
|
||||||
libxtables-dev
|
|
||||||
|
|
||||||
# Packages needed for nftables
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
asciidoc-base
|
|
||||||
|
|
||||||
# Allow password-less 'sudo' for all users in group 'sudo'
|
# Allow password-less 'sudo' for all users in group 'sudo'
|
||||||
RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
|
RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
|
||||||
echo "vyos_bld\tALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
echo "vyos_bld\tALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
||||||
|
|||||||
@ -37,6 +37,7 @@ def ensure_dependencies(dependencies: list) -> None:
|
|||||||
return
|
return
|
||||||
|
|
||||||
print("I: Ensure Debian build dependencies are met")
|
print("I: Ensure Debian build dependencies are met")
|
||||||
|
run(['sudo', 'apt-get', 'update'], check=True)
|
||||||
run(['sudo', 'apt-get', 'install', '-y'] + dependencies, check=True)
|
run(['sudo', 'apt-get', 'install', '-y'] + dependencies, check=True)
|
||||||
|
|
||||||
|
|
||||||
@ -112,9 +113,6 @@ def build_package(package: dict, dependencies: list) -> None:
|
|||||||
# Clone or update the repository
|
# Clone or update the repository
|
||||||
#clone_or_update_repo(repo_dir, package['scm_url'], package['commit_id'])
|
#clone_or_update_repo(repo_dir, package['scm_url'], package['commit_id'])
|
||||||
|
|
||||||
# Ensure dependencies
|
|
||||||
#ensure_dependencies(dependencies)
|
|
||||||
|
|
||||||
# Prepare the package if required
|
# Prepare the package if required
|
||||||
#if package.get('prepare_package', False):
|
#if package.get('prepare_package', False):
|
||||||
# prepare_package(repo_dir, package.get('install_data', ''))
|
# prepare_package(repo_dir, package.get('install_data', ''))
|
||||||
@ -275,6 +273,11 @@ if __name__ == '__main__':
|
|||||||
with open(defaults_path, 'r') as file:
|
with open(defaults_path, 'r') as file:
|
||||||
defaults = toml.load(file)
|
defaults = toml.load(file)
|
||||||
|
|
||||||
|
# Load global dependencies
|
||||||
|
global_dependencies = config.get('dependencies', {}).get('packages', [])
|
||||||
|
if global_dependencies:
|
||||||
|
ensure_dependencies(global_dependencies)
|
||||||
|
|
||||||
packages = config['packages']
|
packages = config['packages']
|
||||||
|
|
||||||
# Filter packages if specific packages are specified in the arguments
|
# Filter packages if specific packages are specified in the arguments
|
||||||
|
|||||||
@ -81,3 +81,45 @@ name = "ipt-netflow"
|
|||||||
commit_id = "0eb2092e93"
|
commit_id = "0eb2092e93"
|
||||||
scm_url = "https://github.com/aabc/ipt-netflow"
|
scm_url = "https://github.com/aabc/ipt-netflow"
|
||||||
build_cmd = "build_ipt_netflow"
|
build_cmd = "build_ipt_netflow"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
packages = [
|
||||||
|
"cmake",
|
||||||
|
"gnupg2",
|
||||||
|
"rsync",
|
||||||
|
"libelf-dev",
|
||||||
|
"libncurses5-dev",
|
||||||
|
"flex",
|
||||||
|
"bison",
|
||||||
|
"bc",
|
||||||
|
"kmod",
|
||||||
|
"cpio",
|
||||||
|
"dwarves",
|
||||||
|
"nasm",
|
||||||
|
"rdfind",
|
||||||
|
"pciutils",
|
||||||
|
"yasm",
|
||||||
|
"libudev-dev",
|
||||||
|
"ruby",
|
||||||
|
"ruby-dev",
|
||||||
|
"rubygems",
|
||||||
|
"build-essential",
|
||||||
|
"libdw-dev",
|
||||||
|
"libunwind-dev",
|
||||||
|
"systemtap-sdt-dev",
|
||||||
|
"libslang2-dev",
|
||||||
|
"python-dev-is-python3",
|
||||||
|
"libzstd-dev",
|
||||||
|
"libcap-dev",
|
||||||
|
"libnuma-dev",
|
||||||
|
"libbabeltrace-ctf-dev",
|
||||||
|
"libpfm4-dev",
|
||||||
|
"libtraceevent-dev",
|
||||||
|
"liblua5.3-dev",
|
||||||
|
"libssl3",
|
||||||
|
"libssl-dev",
|
||||||
|
"libpcre3-dev",
|
||||||
|
"libnl-genl-3-dev",
|
||||||
|
"libxtables-dev",
|
||||||
|
"asciidoc-base"
|
||||||
|
]
|
||||||
|
|||||||
@ -6,6 +6,7 @@ Subject: [PATCH] VyOS: Add linkstate IP device attribute
|
|||||||
Backport of earlier Vyatta patch.
|
Backport of earlier Vyatta patch.
|
||||||
|
|
||||||
(cherry picked from commit 7c5a851086686be14ae937c80d6cee34814dbefc)
|
(cherry picked from commit 7c5a851086686be14ae937c80d6cee34814dbefc)
|
||||||
|
|
||||||
---
|
---
|
||||||
Documentation/networking/ip-sysctl.rst | 11 +++++++++++
|
Documentation/networking/ip-sysctl.rst | 11 +++++++++++
|
||||||
include/linux/inetdevice.h | 1 +
|
include/linux/inetdevice.h | 1 +
|
||||||
@ -100,7 +101,7 @@ index c33b1ecc591e..7576d51cd16d 100644
|
|||||||
};
|
};
|
||||||
|
|
||||||
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
|
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
|
||||||
index 8360939acf85..b13832a08d28 100644
|
index bb9add46e382..20346b1dd103 100644
|
||||||
--- a/net/ipv6/addrconf.c
|
--- a/net/ipv6/addrconf.c
|
||||||
+++ b/net/ipv6/addrconf.c
|
+++ b/net/ipv6/addrconf.c
|
||||||
@@ -5674,6 +5674,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf,
|
@@ -5674,6 +5674,7 @@ static inline void ipv6_store_devconf(struct ipv6_devconf *cnf,
|
||||||
@ -111,7 +112,7 @@ index 8360939acf85..b13832a08d28 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline size_t inet6_ifla6_size(void)
|
static inline size_t inet6_ifla6_size(void)
|
||||||
@@ -7103,6 +7104,13 @@ static const struct ctl_table addrconf_sysctl[] = {
|
@@ -7116,6 +7117,13 @@ static const struct ctl_table addrconf_sysctl[] = {
|
||||||
.extra1 = (void *)SYSCTL_ZERO,
|
.extra1 = (void *)SYSCTL_ZERO,
|
||||||
.extra2 = (void *)SYSCTL_ONE,
|
.extra2 = (void *)SYSCTL_ONE,
|
||||||
},
|
},
|
||||||
@ -126,10 +127,10 @@ index 8360939acf85..b13832a08d28 100644
|
|||||||
.procname = "ioam6_id",
|
.procname = "ioam6_id",
|
||||||
.data = &ipv6_devconf.ioam6_id,
|
.data = &ipv6_devconf.ioam6_id,
|
||||||
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
|
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
|
||||||
index 5715d54f3d0b..e88971b512ba 100644
|
index 53197087353a..4fed0253cf83 100644
|
||||||
--- a/net/ipv6/route.c
|
--- a/net/ipv6/route.c
|
||||||
+++ b/net/ipv6/route.c
|
+++ b/net/ipv6/route.c
|
||||||
@@ -682,6 +682,14 @@ static inline void rt6_probe(struct fib6_nh *fib6_nh)
|
@@ -716,6 +716,14 @@ static inline void rt6_probe(struct fib6_nh *fib6_nh)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -144,7 +145,7 @@ index 5715d54f3d0b..e88971b512ba 100644
|
|||||||
/*
|
/*
|
||||||
* Default Router Selection (RFC 2461 6.3.6)
|
* Default Router Selection (RFC 2461 6.3.6)
|
||||||
*/
|
*/
|
||||||
@@ -723,6 +731,8 @@ static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif,
|
@@ -757,6 +765,8 @@ static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif,
|
||||||
|
|
||||||
if (!m && (strict & RT6_LOOKUP_F_IFACE))
|
if (!m && (strict & RT6_LOOKUP_F_IFACE))
|
||||||
return RT6_NUD_FAIL_HARD;
|
return RT6_NUD_FAIL_HARD;
|
||||||
|
|||||||
@ -19,6 +19,7 @@ for bug #303, and will allow that commit to be reverted.
|
|||||||
Bug #425 http://bugzilla.vyos.net/show_bug.cgi?id=425
|
Bug #425 http://bugzilla.vyos.net/show_bug.cgi?id=425
|
||||||
|
|
||||||
(cherry picked from commit a93f1128bc83b5a6628da242e71c18ef05e81ea2)
|
(cherry picked from commit a93f1128bc83b5a6628da242e71c18ef05e81ea2)
|
||||||
|
|
||||||
---
|
---
|
||||||
fs/notify/inotify/Kconfig | 9 +++
|
fs/notify/inotify/Kconfig | 9 +++
|
||||||
fs/notify/inotify/inotify_user.c | 114 ++++++++++++++++++++++++++++++-
|
fs/notify/inotify/inotify_user.c | 114 ++++++++++++++++++++++++++++++-
|
||||||
@ -190,7 +191,7 @@ index 1c4bfdab008d..cf567cc33679 100644
|
|||||||
struct inotify_inode_mark *i_mark)
|
struct inotify_inode_mark *i_mark)
|
||||||
{
|
{
|
||||||
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
|
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
|
||||||
index 2c056d737c27..2cb1f0024e70 100644
|
index 93ee57bc82ad..5f4f886d011e 100644
|
||||||
--- a/fs/overlayfs/super.c
|
--- a/fs/overlayfs/super.c
|
||||||
+++ b/fs/overlayfs/super.c
|
+++ b/fs/overlayfs/super.c
|
||||||
@@ -15,6 +15,7 @@
|
@@ -15,6 +15,7 @@
|
||||||
@ -201,7 +202,7 @@ index 2c056d737c27..2cb1f0024e70 100644
|
|||||||
#include <linux/file.h>
|
#include <linux/file.h>
|
||||||
#include <linux/fs_context.h>
|
#include <linux/fs_context.h>
|
||||||
#include <linux/fs_parser.h>
|
#include <linux/fs_parser.h>
|
||||||
@@ -1528,6 +1529,18 @@ static void ovl_inode_init_once(void *foo)
|
@@ -1533,6 +1534,18 @@ static void ovl_inode_init_once(void *foo)
|
||||||
inode_init_once(&oi->vfs_inode);
|
inode_init_once(&oi->vfs_inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +221,7 @@ index 2c056d737c27..2cb1f0024e70 100644
|
|||||||
static int __init ovl_init(void)
|
static int __init ovl_init(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
@@ -1543,18 +1556,24 @@ static int __init ovl_init(void)
|
@@ -1548,18 +1561,24 @@ static int __init ovl_init(void)
|
||||||
err = ovl_aio_request_cache_init();
|
err = ovl_aio_request_cache_init();
|
||||||
if (!err) {
|
if (!err) {
|
||||||
err = register_filesystem(&ovl_fs_type);
|
err = register_filesystem(&ovl_fs_type);
|
||||||
@ -294,5 +295,5 @@ index 8d20caa1b268..c126e2f93a73 100644
|
|||||||
+
|
+
|
||||||
#endif /* _LINUX_INOTIFY_H */
|
#endif /* _LINUX_INOTIFY_H */
|
||||||
--
|
--
|
||||||
2.39.2
|
2.39.5
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,62 @@
|
|||||||
|
diff --git c/scripts/package/builddeb i/scripts/package/builddeb
|
||||||
|
index d7dd0d04c70c..6f4a9a7c2c62 100755
|
||||||
|
--- c/scripts/package/builddeb
|
||||||
|
+++ i/scripts/package/builddeb
|
||||||
|
@@ -182,6 +182,16 @@ install_libc_headers () {
|
||||||
|
mv $pdir/usr/include/asm $pdir/usr/include/$host_arch/
|
||||||
|
}
|
||||||
|
|
||||||
|
+install_perf () {
|
||||||
|
+ pdir=$1
|
||||||
|
+
|
||||||
|
+ rm -rf $pdir
|
||||||
|
+
|
||||||
|
+ $MAKE -C tools/ perf_install prefix=$pdir/usr
|
||||||
|
+ mv tools/perf/$pdir/usr $srctree/$pdir
|
||||||
|
+
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
rm -f debian/files
|
||||||
|
|
||||||
|
packages_enabled=$(dh_listpackages)
|
||||||
|
@@ -199,6 +209,8 @@ do
|
||||||
|
install_libc_headers debian/linux-libc-dev;;
|
||||||
|
linux-headers-*)
|
||||||
|
install_kernel_headers debian/linux-headers ${package#linux-headers-};;
|
||||||
|
+ linux-perf-*)
|
||||||
|
+ install_perf debian/linux-perf ${package};;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
@@ -213,6 +225,8 @@ do
|
||||||
|
create_package ${package} debian/linux-libc-dev;;
|
||||||
|
linux-headers-*)
|
||||||
|
create_package ${package} debian/linux-headers;;
|
||||||
|
+ linux-perf-*)
|
||||||
|
+ create_package ${package} debian/linux-perf;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
diff --git c/scripts/package/mkdebian i/scripts/package/mkdebian
|
||||||
|
index 5044224cf671..21f98ae50be0 100755
|
||||||
|
--- c/scripts/package/mkdebian
|
||||||
|
+++ i/scripts/package/mkdebian
|
||||||
|
@@ -238,6 +238,18 @@ Description: Linux support headers for userspace development
|
||||||
|
Multi-Arch: same
|
||||||
|
EOF
|
||||||
|
|
||||||
|
+cat <<EOF >> debian/control
|
||||||
|
+
|
||||||
|
+Package: linux-perf-$version
|
||||||
|
+Section: devel
|
||||||
|
+Architecture: $debarch
|
||||||
|
+Depends: \${shlibs:Depends}
|
||||||
|
+Description: Performance analysis tools for Linux $version
|
||||||
|
+ This package contains the 'perf' performance analysis tools for Linux
|
||||||
|
+ kernel version $version .
|
||||||
|
+Multi-Arch: same
|
||||||
|
+EOF
|
||||||
|
+
|
||||||
|
if is_enabled CONFIG_MODULES; then
|
||||||
|
cat <<EOF >> debian/control
|
||||||
|
|
||||||
@ -17,3 +17,11 @@ fpm --input-type dir --output-type deb --name openvpn-otp \
|
|||||||
--depends openvpn --architecture $(dpkg --print-architecture) \
|
--depends openvpn --architecture $(dpkg --print-architecture) \
|
||||||
--version $(git describe --tags --always | cut -c2-) --deb-compression gz usr
|
--version $(git describe --tags --always | cut -c2-) --deb-compression gz usr
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
packages = [
|
||||||
|
"debhelper",
|
||||||
|
"libssl-dev",
|
||||||
|
"openvpn"
|
||||||
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user