wok-6.x annotate gcc83-lib-base/receipt @ rev 21619
gcc83-lib-base: revert to gcc-lib-base post install
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 25 14:09:45 2019 +0300 (2019-05-25) |
parents | 6fd8c733a7a8 |
children | 352e1cee9466 |
rev | line source |
---|---|
Hans-G?nter@20957 | 1 # SliTaz package receipt. |
Hans-G?nter@20957 | 2 |
Hans-G?nter@20957 | 3 PACKAGE="gcc83-lib-base" |
Hans-G?nter@20957 | 4 VERSION="8.3.0" |
Hans-G?nter@20957 | 5 CATEGORY="development" |
Hans-G?nter@20957 | 6 SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." |
Hans-G?nter@20957 | 7 WEB_SITE="https://gcc.gnu.org/" |
Hans-G?nter@20957 | 8 MAINTAINER="developer@slitaz.org" |
Hans-G?nter@20957 | 9 LICENSE="GPL2" |
Hans-G?nter@20957 | 10 |
Hans-G?nter@20957 | 11 WANTED="gcc83" |
Hans-G?nter@20957 | 12 PROVIDE="gcc-lib-base" |
Hans-G?nter@20957 | 13 |
Hans-G?nter@20957 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@20957 | 15 genpkg_rules() |
Hans-G?nter@20957 | 16 { |
Hans-G?nter@20957 | 17 mkdir -p $fs/usr/lib |
Hans-G?nter@20957 | 18 cp -a $install/usr/libgcc83/libgcc_s.so* $fs/usr/lib |
Hans-G?nter@20957 | 19 cp -a $install/usr/libgcc83/libstdc++.so* $fs/usr/lib |
Hans-G?nter@20957 | 20 rm -f $fs/usr/lib/*-gdb.py |
Hans-G?nter@20957 | 21 } |
Hans-G?nter@20957 | 22 |
Hans-G?nter@20957 | 23 pre_install() |
Hans-G?nter@20957 | 24 { |
Hans-G?nter@20957 | 25 cd "$1/usr/lib" |
Hans-G?nter@20957 | 26 [ -s libgcc_s.so.1 ] && cp -a libgcc_s.so.1 libgcc_s.so.1.prev |
Hans-G?nter@20957 | 27 cd - >/dev/null |
Hans-G?nter@20957 | 28 } |
Hans-G?nter@20957 | 29 |
Hans-G?nter@20957 | 30 post_remove() |
Hans-G?nter@20957 | 31 { |
Hans-G?nter@20957 | 32 cd "$1/usr/lib" |
Hans-G?nter@20957 | 33 ln -s libstdc++.so.8.*.* libstdc++.so.8 |
Hans-G?nter@20957 | 34 ln -s libstdc++.so.8.*.* libstdc++.so |
Hans-G?nter@20957 | 35 [ -s libgcc_s.so.1.prev ] && mv libgcc_s.so.1.prev libgcc_s.so.1 |
Hans-G?nter@20957 | 36 cd - >/dev/null |
al@21619 | 37 |
al@21619 | 38 tazpkg -gi gcc-lib-base --forced |
Hans-G?nter@20957 | 39 } |