Mageia Bugzilla – Attachment 9482 Details for
Bug 21215
Dependency loop between libgtk+2.0_0's %post and libgtk+-x11-2.0_0. (ERROR: 'script' failed for libgtk+2...." during install)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Proposed patch to prevent circular dep in %post
gtk+2.0-fix-post-circular-dep.patch (text/plain), 1.07 KB, created by
Rémi Verschelde
on 2017-07-10 21:26:08 CEST
(
hide
)
Description:
Proposed patch to prevent circular dep in %post
Filename:
MIME Type:
Creator:
Rémi Verschelde
Created:
2017-07-10 21:26:08 CEST
Size:
1.07 KB
patch
obsolete
>Index: SPECS/gtk+2.0.spec >=================================================================== >--- SPECS/gtk+2.0.spec (révision 1109634) >+++ SPECS/gtk+2.0.spec (copie de travail) >@@ -157,7 +157,7 @@ > Requires: libglib2.0 >= %{req_glib_version} > Requires: libpango1.0 >= %{req_pango_version} > Requires: glib2.0-common >-Requires(post): %{libname_x11} = %{version} >+Requires(posttrans): %{libname_x11} = %{version} > # required for icon theme apis to work > Requires: hicolor-icon-theme > >@@ -166,11 +166,10 @@ > This package contains the library needed to run programs dynamically > linked with gtk+. > >-%post -n %{libname} >-if [ "$1" = "2" ]; then >- if [ -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules ]; then >- rm -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules >- fi >+# Needs to be %%posttrans and not %%post to prevent circular dep (mga#21215) >+%posttrans -n %{libname} >+if [ -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules ]; then >+ rm -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules > fi > > %{_libdir}/gtk-%{api_version}/bin/gtk-query-immodules-%{api_version} --update-cache
Index: SPECS/gtk+2.0.spec =================================================================== --- SPECS/gtk+2.0.spec (révision 1109634) +++ SPECS/gtk+2.0.spec (copie de travail) @@ -157,7 +157,7 @@ Requires: libglib2.0 >= %{req_glib_version} Requires: libpango1.0 >= %{req_pango_version} Requires: glib2.0-common -Requires(post): %{libname_x11} = %{version} +Requires(posttrans): %{libname_x11} = %{version} # required for icon theme apis to work Requires: hicolor-icon-theme @@ -166,11 +166,10 @@ This package contains the library needed to run programs dynamically linked with gtk+. -%post -n %{libname} -if [ "$1" = "2" ]; then - if [ -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules ]; then - rm -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules - fi +# Needs to be %%posttrans and not %%post to prevent circular dep (mga#21215) +%posttrans -n %{libname} +if [ -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules ]; then + rm -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules fi %{_libdir}/gtk-%{api_version}/bin/gtk-query-immodules-%{api_version} --update-cache
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21215
:
9479
| 9482