Skip to content

Commit

Permalink
Merge pull request #3103 from evan-a-a/glibc-gconv-extra-post
Browse files Browse the repository at this point in the history
scripts: Ignore glibc-gconv-extra lua script in %post
  • Loading branch information
Luca Bruno authored Sep 6, 2021
2 parents 9138d72 + 99d7680 commit 0bb0fa7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/libpriv/rpmostree-scripts.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ static const char glibc_langpacks_script[] =
" exec /usr/sbin/build-locale-archive --install-langs \"%{_install_langs}\"\n"
"fi\n";

static const char glibc_post_script[] =
"libdir=" LIBDIR "\n"
"exec iconvconfig -o ${libdir}/gconv/gconv-modules.cache --nostdlib ${libdir}/gconv";

static const RpmOstreeLuaReplacement lua_replacements[] = {
/* This code only applies to Fedora <= 29, see:
* https://src.fedoraproject.org/rpms/fedora-release/c/617b1bed348d92cba04443f8cce1486639a114f0?branch=master
Expand Down Expand Up @@ -167,8 +171,12 @@ static const RpmOstreeLuaReplacement lua_replacements[] = {
*/
{ "glibc.post",
"/usr/bin/bash",
"libdir=" LIBDIR "\n"
"exec iconvconfig -o ${libdir}/gconv/gconv-modules.cache --nostdlib ${libdir}/gconv"
glibc_post_script
},
/* Code introduced in https://src.fedoraproject.org/rpms/glibc/c/ca0613665ce6e1b4e92dadd3660ad39cf3dc5f3e?branch=main */
{ "glibc-gconv-extra.post",
"/usr/bin/bash",
glibc_post_script
},
/* See https://bugzilla.redhat.com/show_bug.cgi?id=1847454.
* Code originally introduced in:
Expand Down

0 comments on commit 0bb0fa7

Please sign in to comment.