Quantcast
Channel: Pacman issues
Viewing all articles
Browse latest Browse all 125

`makepkg --packagelist` incorrectly reports debug packages

$
0
0
* Version: pacman 6.1.0-3 * Example package: https://aur.archlinux.org/packages/ttf-unifont When I run `makepkg --packagelist`, I get the following: ``` $ makepkg --packagelist /tmp/ttf-unifont-6986631825153075368/ttf-unifont/ttf-unifont-15.1.05-2-any.pkg.tar.zst /tmp/ttf-unifont-6986631825153075368/ttf-unifont/ttf-unifont-debug-15.1.05-2-any.pkg.tar.zst ``` However, when I build, the debug package `ttf-unifont-debug-15.1.05-2-any.pkg.tar.zst` is not present. After investigating with `bash -x`, I found that when building, `create_debug_package` not only checks the `debug`+`strip` options, it also [tests whether the debug package directory is empty or not](https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/scripts/makepkg.sh.in?ref_type=tags#L647). However, [`print_all_package_names` only checks for the `debug`+`strip` options](https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/scripts/libmakepkg/util/pkgbuild.sh.in#L205). This results in a package that does not get built being printed, as shown in the output above. This is counter to the documentation of the flag: ``` --packagelist Only list package filepaths that would be produced ``` Given that `debug`+`strip` are [enabled by default in `makepkg.conf`](https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/blob/6.1.0-3/makepkg.conf?ref_type=tags#L100) as of https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/commit/90bf367e61b4f77f8351d0412be3d0c4ddadb85a, this breaks scripts that rely on `--packagelist` in any package that does not disable either `debug` or `strip`.

Viewing all articles
Browse latest Browse all 125

Trending Articles