Package Details: pacman-static 6.1.0-7

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: 45
Popularity: 2.37
First Submitted: 2013-01-09 02:17 (UTC)
Last Updated: 2024-03-31 15:03 (UTC)

Dependencies (5)

Required by (0)

Sources (33)

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
[pacman-static]
SigLevel = Required
Server = https://pkgbuild.com/~morganamilo/$repo/$arch
Pre compiled binaries

https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »

BrainDamage commented on 2023-09-17 07:07 (UTC)

here's a small patch to move source patching to a separate prepare() function, this way one can use --noextract with makepkg to resume a partial build ( I've had to do this a few times since it takes a while to build the whole thing )

diff --git a/PKGBUILD b/PKGBUILD
index 1650390..9b4efde 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -146,13 +146,23 @@ export CXXFLAGS+=' -D_LARGEFILE64_SOURCE'
 # recover on systems with broken zstd support in libarchive
 [[ $PKGEXT = .pkg.tar.zst ]] && PKGEXT=.pkg.tar.xz

+prepare() {
+    # openssl
+    cd "${srcdir}"/openssl-${_sslver}
+    patch -Np1 -i "${srcdir}/ca-dir.patch"
+    case ${CARCH} in
+   arm|armv6h|armv7h)
+            # special patch to omit -latomic when installing pkgconfig files
+            patch -Np1 -i "${srcdir}/openssl-3.0.7-no-atomic.patch"
+    esac
+}
+
 build() {
     export PKG_CONFIG_PATH="${srcdir}"/temp/usr/lib/pkgconfig
     export PATH="${srcdir}/temp/usr/bin:${PATH}"

     # openssl
     cd "${srcdir}"/openssl-${_sslver}
-    patch -Np1 -i "${srcdir}/ca-dir.patch"
     case ${CARCH} in
         x86_64)
             openssltarget='linux-x86_64'
@@ -173,8 +183,6 @@ build() {
         arm|armv6h|armv7h)
             openssltarget='linux-armv4'
             optflags=''
-            # special patch to ommit -latomic when installing pkgconfig files
-            patch -Np1 -i "${srcdir}/openssl-3.0.7-no-atomic.patch"
             ;;
         aarch64)
             openssltarget='linux-aarch64'
--

yochananmarqos commented on 2023-09-08 19:17 (UTC)

@Morganamilo: PKGBUILD, please? Did you update any dependencies?

user_58180 commented on 2023-09-08 19:08 (UTC)

curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://zlib.net/zlib-1.2.13.tar.gz

Should probably be replaced with https://www.zlib.net/fossils/zlib-1.2.13.tar.gz.

andreas_baumann commented on 2023-06-01 08:43 (UTC)

I added the _LARGEFILE64_SOURCE define. I cannot reproduce the ARFLAGS issues in libassuan though.

arglebargle commented on 2023-05-30 04:51 (UTC)

As of 2023-05 you now need to specify ar flags too, here's the patch I'm using to build:

commit 8d66b546d4ed08a5250bd2964ee2883982e148ec
Author: Arglebargle <arglebargle@arglebargle.dev>
Date:   Mon May 29 21:13:14 2023 -0700

    patched to build as of 2023-05-21

diff --git a/PKGBUILD b/PKGBUILD
index 4454724..fc1ae94 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ _libarchive_ver=3.6.1
 _gpgerrorver=1.46
 _libassuanver=2.5.5
 _gpgmever=1.18.0
-pkgrel=2
+pkgrel=2.1
 pkgdesc="Statically-compiled pacman (to fix or install systems without libc)"
 arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
 url="https://www.archlinux.org/pacman/"
@@ -137,6 +137,7 @@ if [[ $CARCH = i686 || $CARCH = pentium4 || $CARCH = i486 ]]; then
     export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
     export CXXFLAGS="${CXXFLAGS/-fstack-protector-strong/}"
 fi
+export CFLAGS+=' -D_LARGEFILE64_SOURCE'

 # keep using xz-compressed packages, because one use of the package is to
 # recover on systems with broken zstd support in libarchive
@@ -272,7 +273,8 @@ build() {

     # libassuan
     cd "${srcdir}"/libassuan-${_libassuanver}
-    ./configure --prefix="${srcdir}"/temp/usr \
+    # libassuan needs ARFLAGS specified or a warning from -u kills the build
+    AR_FLAGS=cr ARFLAGS=cr ./configure --prefix="${srcdir}"/temp/usr \
         --disable-shared
     make -C src
     make -C src install-{binSCRIPTS,libLTLIBRARIES,nodist_includeHEADERS,pkgconfigDATA}

ericwoud commented on 2023-05-24 19:27 (UTC) (edited on 2023-05-25 06:07 (UTC) by ericwoud)

I need the following patch to build (aarch64). gpgme complains about undefined ino64_t and off64_t.

diff -Naur a/PKGBUILD b/PKGBUILD
--- a/PKGBUILD    2023-05-23 14:21:17.569868489 +0200
+++ b/PKGBUILD    2023-05-23 14:18:54.134365754 +0200
@@ -137,6 +137,7 @@
     export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
     export CXXFLAGS="${CXXFLAGS/-fstack-protector-strong/}"
 fi
+export CFLAGS+=' -D_LARGEFILE64_SOURCE'

 # keep using xz-compressed packages, because one use of the package is to
 # recover on systems with broken zstd support in libarchive

Same as gpgme: Fix with with largefile support

Also see Q: Do I need to define _LARGEFILE64_SOURCE to get 64bit off_t?

andreas_baumann commented on 2023-02-26 15:11 (UTC)

This would be from xz (maybe it didn't unpack properly):

src/xz-5.2.7/src/liblzma/lzma/lzma_common.h

I cannot reproduce this.

vagem22 commented on 2023-02-26 14:09 (UTC)

It errors out with:

configure: error: cannot find sources (src/liblzma/common/common.h) in . or ..

philo commented on 2022-12-30 09:46 (UTC)

In the pinned comments, the version offered in the link to pre-compiled binaries is old.

andreas_baumann commented on 2022-11-18 16:56 (UTC)

hotfixed -latomic for ARMv7 (and possibly ARMv6) (openssl was appending -latomic to pkgconfigs which fail with gcc-musl and -static).