#684 wrong requires in spec file for mandriva

Incorrect_result
closed-fixed
5
2012-05-09
2012-05-08
Patrick G.
No

Version 0.7.57-1.

When installing the mediainfo-gui 64bits rpm on Mandriva, it tries to pull a lot of i586 libraries.
That's due to (at least) two wrong requires in the spec file.
%if 0%{?mandriva_version}
BuildRequires: libwxgtku2.8-devel
and
%if 0%{?mandriva_version}
Requires: libwxgtku2.8
these must be replaced with respectively %%{_lib}wxgtku2.8-devel and %%{_lib}wxgtku2.8
This way, when compiling on x86_64, you got the right lib64wxgtk... names.

Regards,

Discussion

  • Oh, awful issue...

    The proposed patch does not work with OBS (Open Build Service, I use it for compiling RPMs)
    I changed the patch to:
    http://mediainfo.svn.sourceforge.net/viewvc/mediainfo/MediaInfo/trunk/Project/GNU/mediainfo.spec?r1=4828&r2=4829

    Before:
    Requires
    libzen0 >= 0.4.25 libzen0
    libmediainfo0 >= 0.7.57 libmediainfo0
    libwxgtku2.8
    libc.so.6()(64bit) glibc
    libc.so.6(GLIBC_2.2.5)(64bit) glibc
    libc.so.6(GLIBC_2.4)(64bit) glibc
    libgcc_s.so.1()(64bit) lib64gcc1 libreoffice-common
    libgcc_s.so.1(GCC_3.0)(64bit) lib64gcc1 libreoffice-common
    libmediainfo.so.0()(64bit) libmediainfo0
    libpthread.so.0()(64bit) glibc
    libpthread.so.0(GLIBC_2.2.5... glibc
    libstdc++.so.6()(64bit) lib64stdc++6 libreoffice-common
    libstdc++.so.6(GLIBCXX_3.4)... lib64stdc++6 libreoffice-common
    libstdc++.so.6(GLIBCXX_3.4.... lib64stdc++6 libreoffice-common
    libstdc++.so.6(GLIBCXX_3.4.... lib64stdc++6 libreoffice-common
    libwx_baseu-2.8.so.0()(64bit) wxGTK wxGTK-devel lib64wxgtku2.8
    libwx_gtk2u_core-2.8.so.0()... wxGTK wxGTK-devel lib64wxgtku2.8
    libwx_gtk2u_html-2.8.so.0()... wxGTK wxGTK-devel lib64wxgtku2.8
    libzen.so.0()(64bit) libzen0
    desktop-file-utils desktop-file-utils

    After:
    Requires
    libzen0 >= 0.4.24 libzen0
    libmediainfo0 >= 0.7.53 libmediainfo0
    libc.so.6()(64bit) glibc
    libc.so.6(GLIBC_2.2.5)(64bit) glibc
    libc.so.6(GLIBC_2.4)(64bit) glibc
    libgcc_s.so.1()(64bit) libgcc1
    libgcc_s.so.1(GCC_3.0)(64bit) libgcc1
    libmediainfo.so.0()(64bit) libmediainfo0
    libpthread.so.0()(64bit) glibc
    libpthread.so.0(GLIBC_2.2.5... glibc
    libstdc++.so.6()(64bit) libstdc++6
    libstdc++.so.6(GLIBCXX_3.4)... libstdc++6
    libstdc++.so.6(GLIBCXX_3.4.... libstdc++6
    libstdc++.so.6(GLIBCXX_3.4.... libstdc++6
    libwx_baseu-2.8.so.0()(64bit) lib64wxgtku2.8
    libwx_gtk2u_core-2.8.so.0()... lib64wxgtku2.8
    libwx_gtk2u_html-2.8.so.0()... lib64wxgtku2.8
    libzen.so.0()(64bit) libzen0
    rtld(GNU_HASH) glibc

    For next version

     
    • status: open --> closed-fixed