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#9156 - makepkg build logs are localized

Attached to Project: Pacman
Opened by Thomas Bächler (brain0) - Friday, 11 January 2008, 16:23 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 06 February 2008, 01:55 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.1.0
Due in Version 3.1.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

makepkg doesn't unset the locale anymore before starting build(). Thus all make/gcc/foo messages are localized, making them useless for posting build logs online.

Solution: Unset locale before calling build().
This task depends upon

Closed by  Dan McGee (toofishes)
Wednesday, 06 February 2008, 01:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  See commit a7a9f37561b45d2d2900b4c419ac3b9f0c7f2d75 , locale issues are now documented in makepkg.8
Comment by Xavier (shining) - Friday, 11 January 2008, 18:17 GMT
That was apparently originally done for another reason :
http://www.archlinux.org/pipermail/pacman-dev/2007-May/008279.html

Anyway, I agree that localizing the build messages is not practical when you want to share them.

But on the other hand, it looks a little hackish to have makepkg unset them. Also, what if an user does want to have
the messages localized? In the current situation, the messages are localized by default if the system locale is set.
And that can be overwritten with LC_MESSAGES=C makepkg. Maybe this is not widely known, but in this case, the information
could be spread, couldn't it?
Comment by Aaron Griffin (phrakture) - Friday, 11 January 2008, 18:20 GMT
Um, why not "LC_ALL=C makepkg" if you plan to share them. Seems a little hokey to manage locale like that
Comment by Xavier (shining) - Friday, 11 January 2008, 18:25 GMT
You are right, I was a bit confused. In this situation, that would be more logical.
Comment by Xavier (shining) - Thursday, 17 January 2008, 14:54 GMT
Since all makepkg users are concerned by this, what about asking on arch-general ML or something ?
To know if some users do want having localized build messages, and if they do, informing them that they
should use LC_ALL=C before sharing outputs.

I asked on IRC. slubman said he liked having the localized french output :
15:01 slubman >> keep my gcc messages in french !!
and Xilon :
15:05 Xilon >> shining: removing a feature isn't really a good idea if you can just change it temporarily
15:05 Xilon >> It's good that makepkg respects LANG
Comment by Aaron Griffin (phrakture) - Thursday, 17 January 2008, 20:32 GMT
I see two situations here:
* you're reporting a bug, in which case you'd want everything in the C locale.
* you're running as normal, in which case you'd want it in your default locale.

I agree we should make a note to use LC_ALL if sharing output, and close this with "Won't Implement"
Comment by Xavier (shining) - Saturday, 02 February 2008, 19:12 GMT
That sounds good to me. The only question left is where the note should be made.
Comment by Aaron Griffin (phrakture) - Tuesday, 05 February 2008, 20:19 GMT
Hrm, maybe in a NOTES section of the makepkg man page?

Loading...