Package: pacman-package-manager
Version: 7.1.0-2
Severity: grave
Justification: completely breaks basic functionality

Hello,

With curl 8.20 landing in Debian testing, basic pacman operations hang.

On a clean Debian testing system, or e.g. in

   podman run -it --rm docker.io/debian:testing

this can be reproduced with:

cat > /tmp/pacman.conf <<'EOF'
[options]
Architecture = x86_64
SigLevel = Never

[core]
Server = https://geo.mirror.pkgbuild.com/core/os/x86_64
EOF

apt update
apt install -y pacman-package-manager
mkdir -p /tmp/root/var/lib/pacman
pacman --config /tmp/pacman.conf --root /tmp/root --noconfirm -Sy glibc

This starts with

| :: Proceed with installation? [Y/n] 
| :: Retrieving packages...
|  glibc-2.43+r22+g8362e8ce10b2-2-x86_64                 10.3 MiB  9.25 MiB/s 
00:01 [###############################################] 100%
|  linux-api-headers-7.0-1-x86_64                      1533.9 KiB  9.02 MiB/s 
00:00 [###############################################] 100%
|  iana-etc-20260530-1-any                              401.8 KiB  7.01 MiB/s 
00:00 [###############################################] 100%
|  tzdata-2026b-1-x86_64                                304.6 KiB  6.47 MiB/s 
00:00 [###############################################] 100%
|  filesystem-2025.10.12-1-any                           15.1 KiB  1080 KiB/s 
00:00 [###############################################] 100%
|  Total (5/5)                                           12.5 MiB  8.96 MiB/s 
00:01 [###############################################] 100%
| (5/5) checking keys in keyring                                                
    [###############################################] 100%
| (5/5) checking package integrity                                              
    [###############################################] 100%
| (5/5) loading package files                                                   
    [###############################################] 100%
| (5/5) checking for file conflicts                                             
    [###############################################] 100%
| :: Processing package changes...
| (1/5) installing linux-api-headers                                            
    [###############################################] 100%
| (2/5) installing tzdata                                                       
    [###############################################] 100%
| Optional dependencies for tzdata
|     bash: for tzselect
|     glibc: for zdump, zic [pending]
| (3/5) installing iana-etc                                                     
    [###############################################] 100%
| (4/5) installing filesystem                                                   
    [###############################################] 100%
| (5/5) installing glibc                                                        
    [###############################################] 100%
| Optional dependencies for glibc
|     gd: for memusagestat
|     perl: for mtrace

and then hangs forever.

The fix was proposed upstream at 
https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/361
and got applied in Arch: 
https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/387ebf06060fd5f

https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/360 is a better fix
(without memory leaks), but neither has been accepted upstream yet. But being
accepted in Arch is good enough for now, and avoids the hangs.

I also applied the same patch to Fedora recently:
https://src.fedoraproject.org/rpms/pacman/pull-request/5#

I'll prepare a debdiff with the same patch.

Pitti

Reply via email to