mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-05 08:46:34 +01:00
Work around build issues with custom LC_COLLATE values.
Some users use a customized LC_COLLATE value, which is known to be a source of script breakage. This patch makes sure that LC_COLLATE is set to C (the default) when building. Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
cad2731d34
commit
18d3f37956
2 changed files with 6 additions and 0 deletions
|
@ -33,4 +33,5 @@ enhancements:
|
|||
starting the build process.
|
||||
* Reworked the options selection menu to avoid seeing only a truncated set
|
||||
of the actual options.
|
||||
* Work around build issues caused by custom LC_COLLATE values.
|
||||
+--------------------------+
|
||||
|
|
|
@ -3133,6 +3133,11 @@ build_package() {
|
|||
[[ $BUILDOPTIONS ]] && eval "export $BUILDOPTIONS"
|
||||
fi
|
||||
export OUTPUT=$SB_OUTPUT
|
||||
# Custom LC_COLLATE settings can break scripts (since some
|
||||
# expressions, like [A-Z], don't behave as expected -- for
|
||||
# example, LC_COLLATE=fr_FR expands it to AbBcC..zZ).
|
||||
# See also the comment in /etc/profile.d/lang.sh
|
||||
export LC_COLLATE=C
|
||||
if [[ $CLEANUP ]]; then
|
||||
# We want to remove all the build residuals after running the
|
||||
# SlackBuild script. To do that reliably (i.e. without
|
||||
|
|
Loading…
Add table
Reference in a new issue