2013-12-27
Slitaz -- wink
get-wink
get-libstdc++5
# /usr/bin/wink: exec: line 2: wink-15_b1060/fs/usr/share/wink/wink: not found
# /usr/share/wink/wink: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
1.
root@slitaz:/home/tux# diff /usr/bin/get-wink-orig /usr/bin/get-wink
--- /usr/bin/get-wink-orig
+++ /usr/bin/get-wink
@@ -55,7 +55,7 @@
tar xzf installdata.tar.gz -C $PACKAGE-$VERSION/fs/usr/share/$PACKAGE
cat > $PACKAGE-$VERSION/fs/usr/bin/$PACKAGE <<EOT
#!/bin/sh
-exec $PACKAGE-$VERSION/fs/usr/share/$PACKAGE/$PACKAGE "$@"
+exec /usr/share/$PACKAGE/$PACKAGE "$@"
EOT
chmod +x $PACKAGE-$VERSION/fs/usr/bin/$PACKAGE
root@slitaz:/home/tux#
2.
root@slitaz:/home/tux# tazpkg list-files libstdc++5
Installed files by: libstdc++5
================================================================================
/usr/lib/i386-linux-gnu/libstdc++.so.5
/usr/lib/i386-linux-gnu/libstdc++.so.5.0.7
================================================================================
2 files installed with libstdc++5
3.
root@slitaz:/home/tux# diff /usr/bin/get-libstdc\+\+5-orig /usr/bin/get-libstdc\+\+5
--- /usr/bin/get-libstdc++5-orig
+++ /usr/bin/get-libstdc++5
@@ -59,6 +59,18 @@
CATEGORY="development"
SHORT_DESC="Obsolate GNU C++ library."
WEB_SITE="$WEB_SITE"
+
+post_install()
+ {
+ # ldconfig
+ ln -s /usr/lib/i386-linux-gnu/libstdc++.so.5.0.7 /usr/lib/.
+ ln -s /usr/lib/i386-linux-gnu/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5
+ }
+
+post_remove()
+ {
+ rm -f /usr/lib/libstdc++.so.5*
+ }
EOT
# Pack
root@slitaz:/home/tux#