]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #28258: Fixed build with Estonian locale (python-config and distclean
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 29 Sep 2016 17:46:08 +0000 (20:46 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 29 Sep 2016 17:46:08 +0000 (20:46 +0300)
targets in Makefile).  Patch by Arfrever Frehtes Taifersar Arahesis.

1  2 
Makefile.pre.in
Misc/NEWS

diff --cc Makefile.pre.in
index 18ba615c3f0a879d6e7a256e1235ea30e4eede1d,094bdd042cc2a8be22909cb6cf732c34bbf98d68..dac9d55fb4bf467edf2f416f6c3c90a29bc29857
@@@ -1343,15 -1343,15 +1343,15 @@@ libinstall:  build_all $(srcdir)/Modules
                $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
  
  python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
 -      # Substitution happens here, as the completely-expanded BINDIR
 -      # is not available in configure
 +      # Substitution happens here, as the completely-expanded BINDIR
 +      # is not available in configure
        sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
 -      # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
 +      # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
-       sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
+       LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
 -      # On Darwin, always use the python version of the script, the shell
 -      # version doesn't use the compiler customizations that are provided
 -      # in python (_osx_support.py).
 -      if test `uname -s` = Darwin; then \
 +      # On Darwin, always use the python version of the script, the shell
 +      # version doesn't use the compiler customizations that are provided
 +      # in python (_osx_support.py).
 +      @if test `uname -s` = Darwin; then \
                cp python-config.py python-config; \
        fi
  
diff --cc Misc/NEWS
index 7e0f3d59959634e622c809c8430d4d95c41d1d15,e71a20df2b498808c93bfd7a6844f2a8723a9b7a..c733eba4732609154a65370f151bab58d74e6dc4
+++ b/Misc/NEWS
@@@ -161,12 -155,11 +161,15 @@@ Window
  Build
  -----
  
+ - Issue #28258: Fixed build with Estonian locale (python-config and distclean
+   targets in Makefile).  Patch by Arfrever Frehtes Taifersar Arahesis.
  - Issue #26661: setup.py now detects system libffi with multiarch wrapper.
  
 +- Issue #27979: A full copy of libffi is no longer bundled for use when
 +  building _ctypes on non-OSX UNIX platforms.  An installed copy of libffi is
 +  now required when building _ctypes on such platforms.
 +
  - Issue #15819: Remove redundant include search directory option for building
    outside the source tree.