FS#49319 - pacman does not list bzip2 as dependency

Attached to Project: Arch Linux
Opened by Sander Maijers (sanmai-NL) - Friday, 13 May 2016, 10:09 GMT
Last edited by Antonio Rojas (arojas) - Friday, 13 May 2016, 10:14 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
pacman 5.0.1-3 is linked to libbz2, but does not list the `bzip2` package as a dependency. This is a problem since e.g. GNU `tar` will not use `lbzip2` by default unless it cannot find `bzip2`, and the user is therefore encouraged to replace `bzip2` with `libbz2`.

Steps to reproduce:
```
pacman -R bzip2
pacman -S otherpackage
```

```
pacman: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
```

Desired behavior:

It should not be possible to remove bzip2 without warning, since it requires a nasty recovery procedure.
I'm not sure why pacman is even linked against bzip2.
Linking against lbzip2 and listing that as a dependency would be even better, because of the potential speedup on modern multicore systems.
This task depends upon

Closed by  Antonio Rojas (arojas)
Friday, 13 May 2016, 10:14 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Friday, 13 May 2016, 10:14 GMT
No, pacman is not linked to libbz2. It's libarchive, and it already depends on bzip

Loading...