From c0bfe7f4fa5b73af7eb3c423897e729fa1ec52b6 Mon Sep 17 00:00:00 2001 From: Daniil Anfimov Date: Thu, 21 May 2026 09:00:30 +0000 Subject: [PATCH] Pass $startdir as a bind mount (#1) Reviewed-on: https://git.almalinux.org/rpms/abuild/pulls/1 Co-authored-by: Daniil Anfimov Co-committed-by: Daniil Anfimov --- .../0003-Pass-startdir-as-a-bind-mount.patch | 23 +++++++++++++++++++ SPECS/abuild.spec | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 SOURCES/0003-Pass-startdir-as-a-bind-mount.patch diff --git a/SOURCES/0003-Pass-startdir-as-a-bind-mount.patch b/SOURCES/0003-Pass-startdir-as-a-bind-mount.patch new file mode 100644 index 0000000..3ce23e3 --- /dev/null +++ b/SOURCES/0003-Pass-startdir-as-a-bind-mount.patch @@ -0,0 +1,23 @@ +From 7b11a7796d1fcfd14a58ea0a46c953f18d0c3066 Mon Sep 17 00:00:00 2001 +From: Daniil Anfimov +Date: Thu, 4 Sep 2025 14:23:00 +0300 +Subject: [PATCH] Pass $startdir as a bind mount + +--- + abuild-3.15.0/abuild.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/abuild.in b/abuild.in +index c33a230..f6761e5 100644 +--- a/abuild.in ++++ b/abuild.in +@@ -2650,6 +2650,7 @@ rootbld() { + --bind "$BUILD_ROOT/tmp" /tmp \ + --bind "$BUILD_ROOT/var/tmp" /var/tmp \ + --bind "$REPODEST" "$REPODEST" \ ++ --bind "$startdir" "$startdir" \ + --hostname "build-$buildhost-$CARCH" \ + --chdir "$startdir" \ + --clearenv \ +-- +2.50.1 \ No newline at end of file diff --git a/SPECS/abuild.spec b/SPECS/abuild.spec index 02006d0..888b344 100644 --- a/SPECS/abuild.spec +++ b/SPECS/abuild.spec @@ -11,6 +11,7 @@ Source2: %{name}.tmpfiles Patch0: 0001-Do-not-build-docs.patch Patch1: 0002-Allow-running-abuild-rootbld.patch +Patch2: 0003-Pass-startdir-as-a-bind-mount.patch BuildRequires: zlib-devel BuildRequires: make @@ -54,6 +55,7 @@ abuild is a set of scripts used to build Alpine Linux packages. %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build make VERSION=%{version}