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#70254 - makepkg doesn't handle spaces in destination filenames from source array

Attached to Project: Pacman
Opened by David Coriat (davcor) - Thursday, 01 April 2021, 08:19 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 18 April 2021, 16:15 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.2
Due in Version 6.0.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

When attempting to create my own package, I tried to download simple fonts from an URL with %20 characters in it (spaces in URL encoding). Thus I wanted my destination files to have spaces in their name (as is the case for multiple fonts such as the powerline patched fonts and the like). Instead makepkg interpreted the spaces as newlines.

Steps to Reproduce:
Using this simple PKGBUILD file (attached), one can reproduce the issue.

It can be seen in /usr/share/makepkg/util/source.sh that if quotes were appropriately added in the get_filename() function, this issue would be resolved. I'm not familiar enough with makepkg to warn about potential side effects.

   PKGBUILD (0.8 KiB)
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 18 April 2021, 16:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://git.archlinux.org/pacman.git/com mit/?id=8aa2a48fc34bb55ee620c0eec4855c62 d91ef97b
Comment by Eli Schwartz (eschwartz) - Monday, 05 April 2021, 23:22 GMT
No potential side effects, and this worked once. Patch proposed at https://lists.archlinux.org/pipermail/pacman-dev/2021-April/024955.html
Comment by David Coriat (davcor) - Tuesday, 06 April 2021, 07:12 GMT
Thank you very much. Really happy with the resolution

Loading...