diff options
Diffstat (limited to 'source/a/cxxlibs')
-rwxr-xr-x | source/a/cxxlibs/cxxlibs.SlackBuild | 57 | ||||
-rwxr-xr-x | source/a/cxxlibs/oldgcc/oldgcc.build | 73 | ||||
-rw-r--r-- | source/a/cxxlibs/slack-desc | 19 | ||||
-rw-r--r-- | source/a/cxxlibs/symlinks-to-tracked-libs | 5 | ||||
-rw-r--r-- | source/a/cxxlibs/symlinks-to-tracked-libs64 | 2 |
5 files changed, 156 insertions, 0 deletions
diff --git a/source/a/cxxlibs/cxxlibs.SlackBuild b/source/a/cxxlibs/cxxlibs.SlackBuild new file mode 100755 index 00000000..025a6494 --- /dev/null +++ b/source/a/cxxlibs/cxxlibs.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/sh +# Copyright 2006, 2007, 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PKGNAM=cxxlibs +VERSION=${VERSION:-6.0.10} +ARCH=${ARCH:-x86_64} +BUILD=${BUILD:-1} + + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp} +PKG=$TMP/package-${PKGNAM} +rm -rf $PKG +mkdir -p $TMP $PKG + +cd $PKG +cat $CWD/symlinks-to-tracked-libs${LIBDIRSUFFIX} | while read library ; do + ( mkdir -p $(dirname $library | cut -b2- ) + cd $(dirname $library | cut -b2- ) + rm -f $(basename $library) + cp -a $library . + rm -f $(readlink $library) + cp -a $(dirname $library)/$(readlink $library) . + ) +done + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz + diff --git a/source/a/cxxlibs/oldgcc/oldgcc.build b/source/a/cxxlibs/oldgcc/oldgcc.build new file mode 100755 index 00000000..471fefa1 --- /dev/null +++ b/source/a/cxxlibs/oldgcc/oldgcc.build @@ -0,0 +1,73 @@ +#!/bin/sh +# GCC package build script (written by volkerdi@slackware.com) +# +# Copyright 2003, 2005 Slackware Linux, Inc., Concord, California, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +# NOTE - THIS DOESN'T MAKE PACKAGES! IT JUST BUILDS GCC AND G++ +# this is for the purpose of getting libstdc++.so.5 +VERSION=3.3.6 +ARCH=${ARCH:-x86_64} +TARGET=${TARGET:-$ARCH-slackware-linux} +BUILD=${BUILD:-1} + +CWD=`pwd` +# Temporary build location. This should *NOT* be a directory +# path a non-root user could create later... +TMP=/gcc-build-$(mcookie) + +# Clear the build locations: +if [ -d $TMP ]; then + rm -rf $TMP +fi + +EXTRA=--disable-multilib + +mkdir -p $TMP +cd $TMP +tar xjvf $CWD/gcc-$VERSION.tar.bz2 +# install docs +( cd gcc-$VERSION + # Fix perms/owners + chown -R root.root . + find . -perm 777 -exec chmod 755 {} \; + find . -perm 775 -exec chmod 755 {} \; + find . -perm 754 -exec chmod 755 {} \; + find . -perm 664 -exec chmod 644 {} \; +) +# build gcc +( mkdir gcc.build.lnx; + cd gcc.build.lnx; + CFLAGS="-O2 -fPIC" \ + ../gcc-$VERSION/configure \ + --enable-shared \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --enable-languages=c,c++ \ + --disable-checking \ + --with-gnu-ld \ + --verbose \ + --target=${TARGET} \ + --host=${TARGET} \ + $EXTRA + # Include all debugging info (for now): + make #bootstrap; +) 2>&1 | tee $TMP/gcc.build.log diff --git a/source/a/cxxlibs/slack-desc b/source/a/cxxlibs/slack-desc new file mode 100644 index 00000000..c1428f94 --- /dev/null +++ b/source/a/cxxlibs/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +cxxlibs: cxxlibs (C++ shared library compatibility package) +cxxlibs: +cxxlibs: This package contains the shared libraries needed to run dynamically +cxxlibs: linked C++ binaries linked with older versions of libstdc++. +cxxlibs: +cxxlibs: +cxxlibs: +cxxlibs: +cxxlibs: +cxxlibs: +cxxlibs: diff --git a/source/a/cxxlibs/symlinks-to-tracked-libs b/source/a/cxxlibs/symlinks-to-tracked-libs new file mode 100644 index 00000000..e4f67cf6 --- /dev/null +++ b/source/a/cxxlibs/symlinks-to-tracked-libs @@ -0,0 +1,5 @@ +/usr/i486-slackware-linux/lib/libstdc++-libc6.1-2.so.3 +/usr/i486-slackware-linux/lib/libstdc++-libc6.2-2.so.3 +/usr/i486-slackware-linux/lib/libstdc++.so.4 +/usr/i486-slackware-linux/lib/libstdc++.so.5 +/usr/lib/libstdc++.so.6 diff --git a/source/a/cxxlibs/symlinks-to-tracked-libs64 b/source/a/cxxlibs/symlinks-to-tracked-libs64 new file mode 100644 index 00000000..3a348cf1 --- /dev/null +++ b/source/a/cxxlibs/symlinks-to-tracked-libs64 @@ -0,0 +1,2 @@ +/usr/lib64/libstdc++.so.5 +/usr/lib64/libstdc++.so.6 |