FS#17376 - [mercurial] package includes Python binary files
Attached to Project:
Arch Linux
Opened by Pierre Chapuis (catwell) - Friday, 04 December 2009, 13:04 GMT
Last edited by Giovanni Scafora (giovanni) - Saturday, 05 December 2009, 18:15 GMT
Opened by Pierre Chapuis (catwell) - Friday, 04 December 2009, 13:04 GMT
Last edited by Giovanni Scafora (giovanni) - Saturday, 05 December 2009, 18:15 GMT
|
Details
There are .pyo/.pyc files in the mercurial-1.4.1-4 package;
they shouldn't be here (and it triggers an error when
-Syu-ing).
See these related threads: http://mailman.archlinux.org/pipermail/arch-dev-public/2009-October/013973.html http://mailman.archlinux.org/pipermail/arch-general/2009-October/008364.html |
This task depends upon
Closed by Giovanni Scafora (giovanni)
Saturday, 05 December 2009, 18:15 GMT
Reason for closing: Not a bug
Saturday, 05 December 2009, 18:15 GMT
Reason for closing: Not a bug
http://mailman.archlinux.org/pipermail/arch-dev-public/2009-October/013996.html
What is the error message you are getting?
There are many ways to deal with it, the one you proposed is to touch them during build() so that they are tracked by Pacman and then generate them during post_install(), but here there is no post_install() and --optimize=1 is used during build().
As for the error message, Pacman complains that these files exist on my system but this is probably my fault because I might have generated them by hand earlier. I can fix it by removing them first or with -Sf if needed.
www.mail-archive.com/python-list@python.org/msg36945.html
I still don't think it is a good solution because .pyo/.pyc are not guaranteed to be architecture independant forever.
The compile path issue looks to have been fixed quite a while ago. .pyo/.pyc files are architecture independent and that is very unlikely to change.
When you are done with the packaging policy, it would be worth a news on the website or at least a post to aur-general!
Thanks for your work, you can close this as 'not a bug'.