@andreas_baumann
The reason pacman-static is built internally is to enable building it both with LTO enabled and disabled.
The pacman-static package in the AUR did not take LTO into account. This meant symbols were sometimes not found in libalpm.a, making linking difficult.
Search Criteria
Package Details: paru-static 2.2.0-7
Package Actions
| Git Clone URL: | https://aur.archlinux.org/paru-static.git (read-only, click to copy) |
|---|---|
| Package Base: | paru-static |
| Description: | Feature packed AUR helper |
| Upstream URL: | https://github.com/Morganamilo/paru |
| Licenses: | GPL-3.0-or-later |
| Submitter: | phoepsilonix |
| Maintainer: | phoepsilonix |
| Last Packager: | phoepsilonix |
| Votes: | 2 |
| Popularity: | 0.123812 |
| First Submitted: | 2023-12-27 03:11 (UTC) |
| Last Updated: | 2026-01-31 22:05 (UTC) |
Dependencies (13)
- binutils (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- gtk-doc (make)
- kernel-headers-musl (make)
- libxslt (libxslt-gitAUR) (make)
- lld (llvm-gitAUR) (make)
- meson (meson-gitAUR) (make)
- musl (musl-gitAUR) (make)
- publicsuffix-list (make)
- rustup (rustup-gitAUR) (make)
- bat (bat-cat-gitAUR) (optional) – colored pkgbuild printing
- devtools (devtools-gitAUR, devtools-doasAUR) (optional) – build in chroot and downloading pkgbuilds
Required by (0)
Sources (17)
- attr.patch
- brotli-1.2.0.tar.gz
- e2fsprogs-1.47.3.tar.gz
- git+https://aur.archlinux.org/pacman-static.git
- git+https://github.com/Morganamilo/paru.git?commit=9ac3578807a87858651e81a02586ceb947686e7c
- https://curl.haxx.se/download/curl-8.17.0.tar.gz
- https://download-mirror.savannah.gnu.org/releases/acl/acl-2.3.2.tar.gz
- https://download.savannah.gnu.org/releases/attr/attr-2.5.2.tar.gz
- https://ftp.gnu.org/gnu/libidn/libidn2-2.3.8.tar.gz
- https://ftp.gnu.org/gnu/libunistring/libunistring-1.4.1.tar.gz
- https://github.com/Morganamilo/paru/pull/1500.patch
- https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.15.1/libxml2-v2.15.1.tar.gz
- https://libssh2.org/download/libssh2-1.11.1.tar.gz
- libpsl-0.21.5.tar.gz
- lz4-1.10.0.tar.gz
- nghttp3-1.13.1.tar.gz
- rust_2024_edition.patch
Latest Comments
phoepsilonix commented on 2026-01-10 02:47 (UTC)
andreas_baumann commented on 2026-01-08 07:02 (UTC)
IMHO there should be just a makedepends=(pacman-static), there is no need to build pacman-static inside build().
phoepsilonix commented on 2025-11-07 07:02 (UTC) (edited on 2026-01-10 03:08 (UTC) by phoepsilonix)
I checked the build with the pkgctl build command.
I think it now builds without problems, even in the chroot environment.
The reason pacman-static is built internally is to enable building it both with LTO enabled and disabled.
phoepsilonix commented on 2024-06-20 08:30 (UTC) (edited on 2024-06-24 05:07 (UTC) by phoepsilonix)
@LukeShortCloud
In order for you to build this package you will need to have all of the following packages installed.
makedepends=('rustup' 'musl' 'meson' 'kernel-headers-musl' 'lld' 'binutils')
depends=('git' 'pacman' 'paru')
please install lld etc.
yay -S rustup musl meson kernel-headers-musl lld binutils git pacman paru --needed
or
paru -S rustup musl meson kernel-headers-musl lld binutils git pacman --needed
If you still can't build it, please provide the following information.
uname -a
echo $LD
echo $CC
cat ~/.cargo/config*
LukeShortCloud commented on 2024-06-04 01:46 (UTC)
Thanks @phoepsilonix ! The build gets a little further for me now.
I now get the error /home/user/.cache/yay/paru-static/PKGBUILD: line 47: rustup: command not found because the dependency is not installed yet. It looks like that line of code should go in the prepare() and/or build() function.
After installing rustup and running the build again, I get the following error during the Compiling paru step: error: couldn't extract file stem from specified linker.
phoepsilonix commented on 2024-05-20 10:37 (UTC) (edited on 2024-05-20 14:52 (UTC) by phoepsilonix)
@LukeShortCloud
Enabled git features by default.
LukeShortCloud commented on 2024-05-10 07:23 (UTC)
This package fails to build for me. Here is a snippet of the error.
$ yay -S paru-static
/usr/sbin/ld: (.text+0x1b15): undefined reference to `archive_error_string'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
Compiling dtoa-short v0.3.4
error: could not compile `alpm` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
Aborting...
-> error making: paru-static-exit status 4
-> Failed to install the following packages. Manual intervention is required:
paru-static - exit status 4
Pinned Comments
phoepsilonix commented on 2025-11-07 07:02 (UTC) (edited on 2026-01-10 03:08 (UTC) by phoepsilonix)
I checked the build with the
pkgctl buildcommand.I think it now builds without problems, even in the chroot environment.
The reason pacman-static is built internally is to enable building it both with LTO enabled and disabled.