wok-current rev 20373
gcc??-lib-base: restore previous libgcc_s.so.1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 10 15:08:22 2018 +0200 (2018-06-10) |
parents | e54f35249a89 |
children | 4b1e9a88ff15 |
files | gcc49-lib-base/receipt gcc54-lib-base/receipt gcc61-lib-base/receipt gcc63-lib-base/receipt |
line diff
1.1 --- a/gcc49-lib-base/receipt Sun Jun 10 13:24:20 2018 +0200 1.2 +++ b/gcc49-lib-base/receipt Sun Jun 10 15:08:22 2018 +0200 1.3 @@ -19,10 +19,18 @@ 1.4 rm -f $fs/usr/lib/*-gdb.py 1.5 } 1.6 1.7 +pre_install() 1.8 +{ 1.9 + cd "$1/usr/lib" 1.10 + [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev 1.11 + cd - >/dev/null 1.12 +} 1.13 + 1.14 post_remove() 1.15 { 1.16 cd "$1/usr/lib" 1.17 ln -s libstdc++.so.6.*.* libstdc++.so.6 1.18 ln -s libstdc++.so.6.*.* libstdc++.so 1.19 + [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 1.20 cd - >/dev/null 1.21 }
2.1 --- a/gcc54-lib-base/receipt Sun Jun 10 13:24:20 2018 +0200 2.2 +++ b/gcc54-lib-base/receipt Sun Jun 10 15:08:22 2018 +0200 2.3 @@ -19,10 +19,18 @@ 2.4 rm -f $fs/usr/lib/*-gdb.py 2.5 } 2.6 2.7 +pre_install() 2.8 +{ 2.9 + cd "$1/usr/lib" 2.10 + [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev 2.11 + cd - >/dev/null 2.12 +} 2.13 + 2.14 post_remove() 2.15 { 2.16 cd "$1/usr/lib" 2.17 ln -s libstdc++.so.6.*.* libstdc++.so.6 2.18 ln -s libstdc++.so.6.*.* libstdc++.so 2.19 + [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 2.20 cd - >/dev/null 2.21 }
3.1 --- a/gcc61-lib-base/receipt Sun Jun 10 13:24:20 2018 +0200 3.2 +++ b/gcc61-lib-base/receipt Sun Jun 10 15:08:22 2018 +0200 3.3 @@ -19,10 +19,18 @@ 3.4 rm -f $fs/usr/lib/*-gdb.py 3.5 } 3.6 3.7 +pre_install() 3.8 +{ 3.9 + cd "$1/usr/lib" 3.10 + [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev 3.11 + cd - >/dev/null 3.12 +} 3.13 + 3.14 post_remove() 3.15 { 3.16 cd "$1/usr/lib" 3.17 ln -s libstdc++.so.6.*.* libstdc++.so.6 3.18 ln -s libstdc++.so.6.*.* libstdc++.so 3.19 + [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 3.20 cd - >/dev/null 3.21 }
4.1 --- a/gcc63-lib-base/receipt Sun Jun 10 13:24:20 2018 +0200 4.2 +++ b/gcc63-lib-base/receipt Sun Jun 10 15:08:22 2018 +0200 4.3 @@ -19,10 +19,18 @@ 4.4 rm -f $fs/usr/lib/*-gdb.py 4.5 } 4.6 4.7 +pre_install() 4.8 +{ 4.9 + cd "$1/usr/lib" 4.10 + [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev 4.11 + cd - >/dev/null 4.12 +} 4.13 + 4.14 post_remove() 4.15 { 4.16 cd "$1/usr/lib" 4.17 ln -s libstdc++.so.6.*.* libstdc++.so.6 4.18 ln -s libstdc++.so.6.*.* libstdc++.so 4.19 + [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 4.20 cd - >/dev/null 4.21 }