From 67abe960c0f0c429d54365fe363742cc26f30de5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Aug 16 2017 12:30:33 +0000 Subject: Replace create_lang_packages macro with its Lua code This works around an RPM change in the processing of macro argument lists. Newer RPM versions split the argument list, so that %1 contains just eo, and not the whole language list. Instead, use %language_list directly. This is compatible with earlier RPM versions, too. --- diff --git a/glibc.spec b/glibc.spec index 1acb677..50bfe7e 100644 --- a/glibc.spec +++ b/glibc.spec @@ -605,14 +605,11 @@ to support the %{1} language in your applications.\ # translations. %define language_list eo %(cat %{SOURCE11} | grep -E '^[a-z]+_' | cut -d _ -f 1 | sort -u | tr "\\\\n" " " | sed 's/ $//') -%define create_lang_packages()\ -%{lua:\ -local languages = rpm.expand("%1")\ -string.gsub(languages, "(%a+)",\ -function(i) print(rpm.expand("%lang_package "..i.."")) end)}\ -%{nil} - -%create_lang_packages %language_list +%{lua: +local languages = rpm.expand("%language_list") +string.gsub(languages, "(%a+)", + function(i) print(rpm.expand("%lang_package "..i.."")) end) +} # The glibc-all-langpacks provides the virtual glibc-langpack, # and thus satisfies glibc's requirement for installed locales.