On 10/20/26 05:30, Damjan Georgievski wrote:
I am trying to build apparmor and I get the following errors
I tried in a clean chroot and then just in the PKGBUILD directory, both
results in the same errors

It would help to know which version of the package (of the PKGBUILD
really) you're trying to build.

but if it's what I see in the latest PKGBUILD that is probably because
of the `git cherry-pick`,
try adding `--no-commit` to the `git cherry-pick` command (and then,
if it works, open a PR to the arch packages).


git clone https://gitlab.archlinux.org/archlinux/packaging/packages/apparmor.git

That worked many thanks

diff --git a/PKGBUILD b/PKGBUILD
index 6a64df8..bdbf447 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -67,9 +67,8 @@ _core_perl="/usr/bin/core_perl"

 prepare() {
   cd $pkgname/libraries/libapparmor/
-
   # Fix build with SWIG 4.5
-  git cherry-pick 6b80489953728aab8aeb4f9075283feb26e2e262
+  git cherry-pick --no-commit 6b80489953728aab8aeb4f9075283feb26e2e262
   autoreconf -fiv
 }


How do you do a PR?



Run

    git config --global user.email "[email protected]"
    git config --global user.name "Your Name"



--
Hindi madali ang maging ako

Reply via email to