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#16871 - Split packages do not mix well with spaces in license name

Attached to Project: Pacman
Opened by Devin Cofer (Ranguvar) - Tuesday, 27 October 2009, 23:46 GMT
Last edited by Allan McRae (Allan) - Wednesday, 11 November 2009, 00:12 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.1
Due in Version 3.3.3
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Summary and Info:
It appears as though if your license array in your PKGBUILD contains spaces, like:
license=("custom:University of Illinois/NCSA Open Source License")

and you are building split packages, makepkg will mess up on the latter's license.
After running makepkg, looking at the .PKGINFO file for each package built will show that while the first has:
license = custom:University of Illinois/NCSA Open Source License

The second has:
license = custom:University
license = of
license = Illinois/NCSA
license = Open
license = Source
license = License


This leads to the oddity that when you've installed both packages, the first package's pacman -Qi | grep Licenses:
Licenses : custom:University of Illinois/NCSA Open Source License

And the second package's pacman -Qi | grep Licenses:
Licenses : custom:University of Illinois/NCSA Open Source License


This might also cause trouble with submitting to AUR and such, I haven't tried.



Attached is a PKGBUILD which demonstrates the problem. Look in pkg/{llvm,clang}/.PKGINFO, and try `pacman -Qi {llvm,clang} | grep Licenses` after you've installed both.
   PKGBUILD (3.6 KiB)
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 11 November 2009, 00:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Commit db756ed9
Comment by Devin Cofer (Ranguvar) - Wednesday, 28 October 2009, 10:10 GMT
Whoops, just relealized that there appears to be nothing wrong with what I pasted in as the pacman -Qi output. Actually, it looks weird on the terminal, having multiple spaces between the words of the license name.
Comment by Evangelos Foutras (foutrelis) - Sunday, 01 November 2009, 04:32 GMT
I came here to post the same problem, but Devin beat me to it. :P

A workaround is to specify the license in all package_foo functions.
Comment by Loui Chang (louipc) - Monday, 09 November 2009, 20:31 GMT Comment by Xavier (shining) - Monday, 09 November 2009, 20:51 GMT
Cedric already sent a patch a few days ago, and its in allan's working branch now.
http://projects.archlinux.org/users/allan/pacman.git/commit/?h=working&id=70d7a8ec55da2b958f3441f31e13e0f6e313b7aa

Loading...