Compare commits
No commits in common. "c9" and "patch-2" have entirely different histories.
@ -1,23 +0,0 @@
|
|||||||
From 7b11a7796d1fcfd14a58ea0a46c953f18d0c3066 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Daniil Anfimov <anfimovdan@gmail.com>
|
|
||||||
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
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
From 24df755f0dc1555fdeaaa416c96a73719eb8a63c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Daniil Anfimov <anfimovdan@gmail.com>
|
|
||||||
Date: Wed, 20 May 2026 21:13:50 +0200
|
|
||||||
Subject: [PATCH] Backport b0d3dbe3: "abuild: do not export tmpdir/pkgbasedir"
|
|
||||||
|
|
||||||
---
|
|
||||||
abuild-3.15.0/abuild.in | 13 ++++++++-----
|
|
||||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/abuild.in b/abuild.in
|
|
||||||
index c33a230..4447b4d 100644
|
|
||||||
--- a/abuild.in
|
|
||||||
+++ b//abuild.in
|
|
||||||
@@ -2563,7 +2563,13 @@ rootbld() {
|
|
||||||
"$BUILD_ROOT/tmp/tmp" "$BUILD_ROOT/usr/bin" \
|
|
||||||
"$REPODEST" "$BUILD_ROOT/$HOME/.ccache"
|
|
||||||
|
|
||||||
- cp /etc/abuild.conf "$BUILD_ROOT/etc"
|
|
||||||
+ # Avoid exporting {src,pkgbase,tmp}dir
|
|
||||||
+ cat - /etc/abuild.conf <<-EOF > "$BUILD_ROOT"/etc/abuild.conf
|
|
||||||
+ srcdir=/tmp/src
|
|
||||||
+ pkgbasedir=/tmp/pkg
|
|
||||||
+ tmpdir=/tmp/tmp
|
|
||||||
+
|
|
||||||
+ EOF
|
|
||||||
|
|
||||||
local dir
|
|
||||||
for dir in /usr/share/apk/keys/$CBUILD_ARCH /etc/apk/keys; do
|
|
||||||
@@ -2653,9 +2659,6 @@ rootbld() {
|
|
||||||
--hostname "build-$buildhost-$CARCH" \
|
|
||||||
--chdir "$startdir" \
|
|
||||||
--clearenv \
|
|
||||||
- --setenv abuild_srcdir /tmp/src \
|
|
||||||
- --setenv pkgbasedir /tmp/pkg \
|
|
||||||
- --setenv tmpdir /tmp/tmp \
|
|
||||||
--setenv CARCH "$CARCH" \
|
|
||||||
--setenv HOME "$HOME" \
|
|
||||||
--setenv REPODEST "$REPODEST" \
|
|
||||||
@@ -2976,7 +2979,7 @@ fi
|
|
||||||
APKBUILD=$(readlink -f "$APKBUILD")
|
|
||||||
|
|
||||||
startdir="${APKBUILD%/*}"
|
|
||||||
-srcdir=${srcdir:-${abuild_srcdir:-"$startdir/src"}}
|
|
||||||
+srcdir=${srcdir:-"$startdir/src"}
|
|
||||||
pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
|
|
||||||
tmpdir=${tmpdir:-"$startdir/tmp"}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.54.0
|
|
||||||
|
|
||||||
@ -11,8 +11,6 @@ Source2: %{name}.tmpfiles
|
|||||||
|
|
||||||
Patch0: 0001-Do-not-build-docs.patch
|
Patch0: 0001-Do-not-build-docs.patch
|
||||||
Patch1: 0002-Allow-running-abuild-rootbld.patch
|
Patch1: 0002-Allow-running-abuild-rootbld.patch
|
||||||
Patch2: 0003-Pass-startdir-as-a-bind-mount.patch
|
|
||||||
Patch3: 0004-Backport-b0d3dbe3.patch
|
|
||||||
|
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -56,8 +54,6 @@ abuild is a set of scripts used to build Alpine Linux packages.
|
|||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make VERSION=%{version}
|
make VERSION=%{version}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user