From e330f85add4e2e075876b6768bfca4d7684507fe Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 8 Dec 2009 08:32:04 +0100 Subject: [PATCH] gcc: move ssp devel stuff to libssp-devel subpkg. --HG-- extra : convert_revision : cdcdcd1aa66827f66097a0563f552e973206154f --- srcpkgs/gcc/libssp-devel.template | 29 +++++++++++++++++++++++++++++ srcpkgs/gcc/libssp.template | 20 +++++--------------- srcpkgs/gcc/template | 6 +++--- srcpkgs/libssp-devel | 1 + 4 files changed, 38 insertions(+), 18 deletions(-) create mode 100644 srcpkgs/gcc/libssp-devel.template create mode 120000 srcpkgs/libssp-devel diff --git a/srcpkgs/gcc/libssp-devel.template b/srcpkgs/gcc/libssp-devel.template new file mode 100644 index 00000000000..b5f98b9ec4b --- /dev/null +++ b/srcpkgs/gcc/libssp-devel.template @@ -0,0 +1,29 @@ +# Template file for 'libssp'. +# +short_desc="GCC SSP library support" +long_desc="${long_desc} + + This package contains the Stack Smashing Protection development + files provided by GCC." + +Add_dependency run glibc-devel +Add_dependency run libssp + +do_install() +{ + local triplet= + + if [ "${xbps_machine}" = "x86_64" ]; then + triplet="${xbps_machine}-unknown-linux-gnu" + else + triplet="${xbps_machine}-pc-linux-gnu" + fi + + mkdir -p ${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include + mkdir -p ${DESTDIR}/usr/lib + + mv ${SRCPKGDESTDIR}/usr/lib/libssp*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/libssp.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/ssp \ + ${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include +} diff --git a/srcpkgs/gcc/libssp.template b/srcpkgs/gcc/libssp.template index 32e46fd0c47..e25313b80fe 100644 --- a/srcpkgs/gcc/libssp.template +++ b/srcpkgs/gcc/libssp.template @@ -1,26 +1,16 @@ # Template file for 'libssp'. # -short_desc="GCC SSP library support" +short_desc="GCC SSP shared library support" long_desc="${long_desc} - This package contains the Stack Smashing Protection shared/static - libraries provided by GCC." + This package contains the Stack Smashing Protection shared library + provided by GCC." +revision=1 Add_dependency run glibc do_install() { - local triplet= - - if [ "${xbps_machine}" = "x86_64" ]; then - triplet="${xbps_machine}-unknown-linux-gnu" - else - triplet="${xbps_machine}-pc-linux-gnu" - fi - - mkdir -p ${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include mkdir -p ${DESTDIR}/usr/lib - mv ${SRCPKGDESTDIR}/usr/lib/libssp* ${DESTDIR}/usr/lib - mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/ssp \ - ${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include + mv ${SRCPKGDESTDIR}/usr/lib/libssp.so.* ${DESTDIR}/usr/lib } diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 90c9352615b..a4c0b82d5dc 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -17,8 +17,8 @@ long_desc=" The GNU C Compiler suite, with support for C, C++, Fortran, ObjC." base_chroot=yes -subpackages="libgcc libssp libstdc++ libstdc++-devel libgomp libmudflap" -subpackages="${subpackages} libmudflap-devel libobjc libobjc-devel" +subpackages="libgcc libssp libssp-devel libstdc++ libstdc++-devel libgomp" +subpackages="${subpackages} libmudflap libmudflap-devel libobjc libobjc-devel" subpackages="${subpackages} gcc-c++ gcc-objc gcc-objc++" Add_dependency full gmp @@ -26,8 +26,8 @@ Add_dependency full mpfr Add_dependency full binutils Add_dependency full cloog-ppl Add_dependency run libgcc -Add_dependency run libssp Add_dependency run libgomp +Add_dependency run libssp-devel Add_dependency run glibc-devel # As specified in the LFS book, disable installing libiberty. diff --git a/srcpkgs/libssp-devel b/srcpkgs/libssp-devel new file mode 120000 index 00000000000..b08d5af5795 --- /dev/null +++ b/srcpkgs/libssp-devel @@ -0,0 +1 @@ +gcc \ No newline at end of file