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#62001 - [pacman] [makepkg] makepkg 5.1.3 misses to archive some files

Attached to Project: Pacman
Opened by Ongun Kanat (6ng4n) - Thursday, 14 March 2019, 02:13 GMT
Last edited by Allan McRae (Allan) - Saturday, 16 March 2019, 00:29 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 5.1.2
Due in Version 5.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After the latest update I discovered some problems with makepkg. It forgets to put some generated files into archive although it successfully generates .MTREE file for them. My test case was gtk3-mushrooms AUR package but it might happen in others too. I checked working previous commits of gtk3-mushrooms from AUR and tried to build them with new makepkg 5.1.3 and the previously working packages generated from old PKGBUILDs was also missing some files (i.e some locale and XML UI definitions). Downgrading pacman to 5.1.2 solves the issue.

Additional info:
pacman 5.1.3

Steps to reproduce:
- Download gtk3-mushrooms AUR package using git
- Run makepkg -si
- Build completes, but pacman -U complains some files are missing in the archive but they are in the generated .MTREE

- Downgrade pacman to 5.1.2
- Clean everything and do a clean build with makepkg -si
- Everything works correctly
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 16 March 2019, 00:29 GMT
Reason for closing:  Works for me
Additional comments about closing:  Not reproducible
Comment by Ongun Kanat (6ng4n) - Thursday, 14 March 2019, 02:24 GMT
It seems like it affected gtk3 package too.
Comment by Allan McRae (Allan) - Thursday, 14 March 2019, 02:41 GMT
There is no difference between makepkg in pacman-5.1.2 and pacman-5.1.3.
Comment by Ongun Kanat (6ng4n) - Thursday, 14 March 2019, 03:07 GMT
Edit: I realized downgrading doesn't fix the issue. But find the cause. I have LC_COLLATE=tr_TR.UTF-8 in my locale for some weird reason it changes the outcome of the makepkg.
Comment by Ongun Kanat (6ng4n) - Thursday, 14 March 2019, 03:09 GMT
I export'ed LC_COLLATE=en_US.UTF-8 it resulted in the normal package. In both cases I can see the outputs in pkg but they are only packaged when I export LC_COLLATE=en_US.UTF-8
Comment by Allan McRae (Allan) - Thursday, 14 March 2019, 03:45 GMT
I can not replicate with LC_COLLATE=tr_TR.UTF-8

Our list_package_files() function, which gets all files to include in a package, has "export LC_COLLATE=C" at the start. And this is used both to generate the .MTREE file and to compress the package.
Comment by Ongun Kanat (6ng4n) - Saturday, 16 March 2019, 00:13 GMT
After trying again and again and fooling with my environment variables the issue has disappeared. My guess is that my .bashrc file was the one to blame not makepkg.

Loading...