Changes between Initial Version and Version 2 of Skype22ForCentOS5


Ignore:
Timestamp:
Apr 6, 2011 11:24:23 PM (14 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Skype22ForCentOS5

    v1 v2  
     1
     2== Package, install Skype 2.2.0.25 on CentOS 5 ==
     3
     4
     5
     6CentOS 5 has its own **GCC Standard C++ Library** package, but it is relatively old:
     7
     8{{{
     9$ rpm -q --provides libstdc++-4.1.2-48.el5.i386 |grep GLIBC
     10libstdc++.so.6(GLIBCXX_3.4) 
     11libstdc++.so.6(GLIBCXX_3.4.1) 
     12libstdc++.so.6(GLIBCXX_3.4.2) 
     13libstdc++.so.6(GLIBCXX_3.4.3) 
     14libstdc++.so.6(GLIBCXX_3.4.4) 
     15libstdc++.so.6(GLIBCXX_3.4.5) 
     16libstdc++.so.6(GLIBCXX_3.4.6) 
     17libstdc++.so.6(GLIBCXX_3.4.7) 
     18libstdc++.so.6(GLIBCXX_3.4.8) 
     19$
     20}}}
     21
     22Precompiled version of **Skype 2.2 Beta for Linux** requires a slightly newer version, {{{libstdc++.so.6(GLIBCXX_3.4.9)}}}. Will install the {{{libstdc++}}} package from **Fedora 10**, and make sure that it won't overwrite the one that came with the CentOS.
     23
     241. Download, install the GCC Standard C++ Library RPM from the Fedora 10 archive.
     25
     26{{{
     27# rpm -i --relocate /usr/lib=/usr/local/lib \
     28    http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Fedora/i386/os/Packages/libstdc++-4.3.2-7.i386.rpm
     29#
     30# rpm -ql libstdc++-4.3.2-7
     31/usr/local/lib/libstdc++.so.6
     32/usr/local/lib/libstdc++.so.6.0.10
     33#
     34# ( cd /usr/local/lib ; ls -log libstdc++* )
     35lrwxrwxrwx 1     19 Apr  6 12:00 libstdc++.so.6 -> libstdc++.so.6.0.10
     36-rwxr-xr-x 1 954544 Nov  5  2008 libstdc++.so.6.0.10
     37#
     38# whereis libstdc++.so.6
     39libstdc++.so: /usr/lib/libstdc++.so.6 /usr/local/lib/libstdc++.so.6
     40#
     41}}}
     42
     43Now will download a few files, build and install the RPM.
     44
     452. Download statically compiled version of Skype (to avoid installation of **Qt 4**).
     46
     47{{{
     48# cd /usr/src/redhat/SOURCES
     49# wget http://www.skype.com/go/getskype-linux-static/skype_static-2.2.0.25.tar.bz2
     50}}}
     51
     523. Download a simple patch, and a {{{.spec}}} file.
     53
     54{{{
     55# url=http://punkts.org/sw/el5
     56# wget $url/skype-2.2.0.25-shell.patch
     57# wget $url/skype.sh
     58#
     59# cd /usr/src/redhat/SPECS
     60# wget $url/skype.spec
     61#
     62}}}
     63
     644. Build, then install the package.
     65
     66{{{
     67# rpmbuild -bb skype.spec
     68 [...]
     69#
     70# rpm -i /usr/src/redhat/RPMS/i386/skype-2.2.0.25-*.i386.rpm
     71#
     72}}}
     73
     74What was the patch needed for?
     75
     76{{{
     77$ rpm -ql skype |grep desktop
     78/usr/share/applications/skype.desktop
     79$
     80$ grep Exec /usr/share/applications/skype.desktop
     81Exec=skype.sh
     82$
     83$ rpm -ql skype |grep bin/skype
     84/usr/bin/skype
     85/usr/bin/skype.sh
     86$
     87$ pr -to3 /usr/bin/skype.sh
     88   #!/bin/sh
     89   LD_PRELOAD=/usr/local/lib/libstdc++.so.6 /usr/bin/skype
     90$
     91}}}
     92
     93=== See Also ===
     94
     95http://freedesktop.org/wiki/Specifications/desktop-entry-spec \\ Desktop Entry Specification
     96
     97http://wiki.centos.org/HowTos/Skype \\ Skype on CentOS
     98
     99