Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#75668 - pacman make a wrong symbol link when installing or upgrading a package

Attached to Project: Pacman
Opened by VirusCamp (viruscamp) - Monday, 22 August 2022, 12:30 GMT
Last edited by Allan McRae (Allan) - Monday, 22 August 2022, 12:51 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
pacman make a wrong symbol link when installing or upgrading a package

Steps to Reproduce:
```
[user1@arch-vm ~]$ ls -l /usr/lib/libfreetype*
lrwxrwxrwx 1 root root 16 May 1 17:04 /usr/lib/libfreetype.so -> libfreetype.so.6
lrwxrwxrwx 1 root root 21 May 1 17:04 /usr/lib/libfreetype.so.6 -> libfreetype.so.6.18.3
-rwxr-xr-x 1 root root 841592 May 1 17:04 /usr/lib/libfreetype.so.6.18.3

[user1@arch-vm ~]$ sudo cp /usr/lib/libfreetype.so.6.18.3 /usr/lib/libfreetype.so.17.1.arch

[user1@arch-vm ~]$ sudo pacman -S freetype2

[user1@arch-vm ~]$ ls -l /usr/lib/libfreetype*
lrwxrwxrwx 1 root root 16 May 1 17:04 /usr/lib/libfreetype.so -> libfreetype.so.6
-rwxr-xr-x 1 root root 841592 Aug 9 04:07 /usr/lib/libfreetype.so.17.1.arch
lrwxrwxrwx 1 root root 24 Aug 9 04:08 /usr/lib/libfreetype.so.6 -> libfreetype.so.17.1.arch
-rwxr-xr-x 1 root root 841592 May 1 17:04 /usr/lib/libfreetype.so.6.18.3


```
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 22 August 2022, 12:51 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Expected behaviour of ldconfig.
Comment by Allan McRae (Allan) - Monday, 22 August 2022, 12:41 GMT
Nothing to do with pacman. Everything to do with ldconfig and whatever that cp was supposed to do...
Comment by VirusCamp (viruscamp) - Monday, 22 August 2022, 12:46 GMT
Additional steps to restore normal which prove that is not a package error :

```
[user1@arch-vm ~]$ sudo rm /usr/lib/libfreetype.so.17.1.arch

[user1@arch-vm ~]$ sudo pacman -S freetype2

[user1@arch-vm ~]$ ls -l /usr/lib/libfreetype*
lrwxrwxrwx 1 root root 16 May 1 17:04 /usr/lib/libfreetype.so -> libfreetype.so.6
lrwxrwxrwx 1 root root 21 May 1 17:04 /usr/lib/libfreetype.so.6 -> libfreetype.so.6.18.3
-rwxr-xr-x 1 root root 841592 May 1 17:04 /usr/lib/libfreetype.so.6.18.3


```

Loading...