Skip to content
Advertisement

exists in filesystem (owned by filesystem) in PKGBUILD for arch linux

I am trying to build my own mariaDB arch linux package with PKGBUILD i have binries which are teady to be installed . I has bash script (arch linux PKGBUILD) which runs fime and creaes the pkg.tar file . When I try to install it with pacman I get this :-

JavaScript

here is my PKGBUILD file :-

JavaScript

what should I do ? I know this question suites more on arch forum but since we can ask about bash and shell scripting , So ..

Advertisement

Answer

Arch Linux implemented the UsrMerge in 2013 and since then it is required that Arch Linux packages use the libdir “/usr/lib” and sbindir “/usr/bin”. If you do not, then the files you try to install will conflict with the symlinks on disk, which pacman does not allow.

You will need to fix the directory locations in your package() function.

As you can see, this really has nothing to do with bash scripting, and everything to do with the nature of pacman’s packaging format and policies. 🙂

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement