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#38944 - makepkg unsets environment variables when installing missing dependencies with --syncdeps

Attached to Project: Pacman
Opened by Quentin (Quentin) - Monday, 17 February 2014, 13:07 GMT
Last edited by Allan McRae (Allan) - Saturday, 08 March 2014, 02:41 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info:

When using makepkg with --syncdeps, if there are missing dependencies, the `handle_deps` function will source `/etc/profile` and discard any environment variables defined in ~/.bashrc. Among those, the locale variables will be erased, and makepkg will produce English output, which is not expected: "makepkg uses your current locale by default and does not unset it when building packages." It also breaks the pacaur AUR wrapper which expects makepkg to use the locale and does 'yes `gettext pacman Y` | makepkg -sfi`.

See https://projects.archlinux.org/pacman.git/tree/scripts/makepkg.sh.in?id=v4.1.2#n1045 for the locale-erasing part of makepkg.

A work-around is to define locale in ~/.config/locale.conf, but it's only one of the ways to do it according to the wiki: https://wiki.archlinux.org/index.php/locale#Setting_per_user_locale

Steps to Reproduce:

1. Prepare to install any package which has uninstalled dependencies which are not in AUR ('dissy' worked for me)
2. LC_ALL=fr_FR.UTF-8 makepkg -si # or any other locale
3. Notice that makepkg produces English output
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 08 March 2014, 02:41 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Saturday, 08 March 2014, 02:40 GMT
Defining environmental variables in .bashrc is not a great idea... My conclusion is the Arch wiki is wrong and the ~/.config/locale.conf is the only supported method.

Loading...