@BryanLiang: when I set -fuse-ld=mold
in LDFLAGS in PKGBUILD I also get an error
in xz when compiling a conftest. This might not be supported by xz itself to
compile with mold and statically..
Search Criteria
Package Details: pacman-static 6.1.0-7
Package Actions
Git Clone URL: | https://aur.archlinux.org/pacman-static.git (read-only, click to copy) |
---|---|
Package Base: | pacman-static |
Description: | Statically-compiled pacman (to fix or install systems without libc) |
Upstream URL: | https://www.archlinux.org/pacman/ |
Licenses: | GPL |
Submitter: | mazieres |
Maintainer: | Morganamilo (andreas_baumann) |
Last Packager: | andreas_baumann |
Votes: | 44 |
Popularity: | 2.18 |
First Submitted: | 2013-01-09 02:17 (UTC) |
Last Updated: | 2024-03-31 15:03 (UTC) |
Dependencies (5)
- pacman (pacman-pbAUR, pacman-fancy-progress-gitAUR, pacman-gitAUR)
- git (git-gitAUR) (make)
- kernel-headers-musl (make)
- meson (meson-gitAUR, meson-rustAUR) (make)
- musl (musl-gitAUR) (make)
Required by (0)
Sources (33)
- ca-dir.patch
- git+https://git.tukaani.org/xz.git#tag=v5.6.1
- https://c-ares.haxx.se/download/c-ares-1.27.0.tar.gz
- https://c-ares.haxx.se/download/c-ares-1.27.0.tar.gz.asc
- https://curl.haxx.se/download/curl-8.6.0.tar.gz
- https://curl.haxx.se/download/curl-8.6.0.tar.gz.asc
- https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.zst
- https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.zst.sig
- https://github.com/libarchive/libarchive/releases/download/v3.7.2/libarchive-3.7.2.tar.xz
- https://github.com/libarchive/libarchive/releases/download/v3.7.2/libarchive-3.7.2.tar.xz.asc
- https://github.com/nghttp2/nghttp2/releases/download/v1.60.0/nghttp2-1.60.0.tar.xz
- https://gitlab.archlinux.org/pacman/pacman/-/releases/v6.1.0/downloads/pacman-6.1.0.tar.xz
- https://gitlab.archlinux.org/pacman/pacman/-/releases/v6.1.0/downloads/pacman-6.1.0.tar.xz.sig
- https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.6.tar.bz2
- https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.6.tar.bz2.sig
- https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.48.tar.bz2
- https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.48.tar.bz2.sig
- https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
- https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz.sig
- https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2
- https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2.sig
- https://www.openssl.org/source/openssl-3.2.1.tar.gz
- https://www.openssl.org/source/openssl-3.2.1.tar.gz.asc
- https://zlib.net/zlib-1.3.1.tar.gz
- https://zlib.net/zlib-1.3.1.tar.gz.asc
- openssl-3.0.7-no-atomic.patch
- pacman-static-drop-result-warn.patch
- pacman-static-fix-debugedit.patch
- pacman-static-fix-msg-unknown-key.patch
- pacman-static-make-aligned-titles.patch
- pacman-static-man-gitlab.patch
- pacman-static-repo-add-parseopts.patch
- revertme-makepkg-remove-libdepends-and-libprovides.patch
andreas_baumann commented on 2024-04-18 16:12 (UTC)
andreas_baumann commented on 2024-04-18 14:03 (UTC) (edited on 2024-04-20 08:20 (UTC) by andreas_baumann)
Interesting case on pentium4 (ARch32), pacman-static runs, but I get
pacman-static -U /var/cache/pacman/pkg/coreutils-9.4-3.0-pentium4.pkg.tar.zst
loading packages...
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: '/var/cache/pacman/pkg/coreutils-9.4-3.0-pentium4.pkg.tar.zst': invalid or corrupted package (PGP signature)
Post scriptum: this discussion we had in disguise: "..you just have to set the proper enviroment variables.." (my original saying). Having fallen into my own trap now I think it's better to make sure that pacman-static calls static/self-contained versions of gpg for instance or that we have a static pacman-key per default.
BryanLiang commented on 2024-04-12 11:39 (UTC)
I fail to build xz
part when using mold
as linker.
Here is the log: https://pastebin.com/raw/GW432UU0
Is this package can only build with GNU ld?
andreas_baumann commented on 2024-03-31 14:52 (UTC) (edited on 2024-03-31 14:57 (UTC) by andreas_baumann)
We could get rid of po4a and doxygen as makedends by using ./autogen.sh --no-po4a --no-doxygen
Are we now so paranoid to assume that disabling documentation triggers something?
https://github.com/google/oss-fuzz/commit/6403e93344476972e908ce17e8244f5c2b957dfd
As I can tell autogen.sh just calls update-po and update-doxygen which also look quite ok to me.
Upstream xz should also either add makedepends (as autogen.sh fails in a similar way).
I'm opting to add the flags to autogen for now.
andreas_baumann commented on 2024-03-31 09:39 (UTC)
yep, was missing too, fixed in 6.1.0-6.
petronny commented on 2024-03-31 09:24 (UTC) (edited on 2024-03-31 09:27 (UTC) by petronny)
Updated: I just see that you are working with building in a clean chroot. Sorry to interupt. I'll just wait then.
==> ERROR: Cannot find the git package needed to handle git sources.
andreas_baumann commented on 2024-03-31 09:08 (UTC) (edited on 2024-03-31 09:15 (UTC) by andreas_baumann)
Did I introduce that now with autogen.sh in xz? Checking.. ..didn't build in a clean devtools chroot yet. A, yes. Thanks. Also added git. This is all because autogen.sh in xz needs some more things installed.
deadite66 commented on 2024-03-31 09:01 (UTC) (edited on 2024-03-31 09:04 (UTC) by deadite66)
missing po4a and doxygen makedepends
parallel-tests: installing 'build-aux/test-driver'
+ generate_po4a=y
+ generate_doxygen=y
+ test y '!=' n
+ cd po4a
+ sh update-po
po4a/update-po: The program 'po4a' was not found.
po4a/update-po: Translated man pages were not generated.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: pacman-static-exit status 4
-> Failed to install the following packages. Manual intervention is required:
pacman-static - exit status 4
andreas_baumann commented on 2024-03-31 08:00 (UTC) (edited on 2024-03-31 08:33 (UTC) by andreas_baumann)
Yep, done. Using https://git.tukaani.org/xz.git now. Generating a tarball from git sources directly doesn't contain the backdoored code. And autogen.sh regenerates the autoconf stuff during the build..
yochananmarqos commented on 2024-03-30 19:54 (UTC)
@andreas_baumann: Please use the developer's repo as Arch has done. I know this has all been a confusing mess.
Pinned Comments
Morganamilo commented on 2022-02-20 18:30 (UTC)
There's now a custom repo and binaries again. Though only for x86_64 currently.
Custom Repo
Pre compiled binaries
https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/