From fd7c9c2fb86953c2608770bc441a2581cf072e8c Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 17 Dec 2013 23:03:29 +0100 Subject: [PATCH] eglibc: convert to new package format Signed-off-by: Stephan Raue --- .../devel/eglibc/config/gai.conf | 0 .../devel/eglibc/config/host.conf | 0 .../devel/eglibc/config/nsswitch.conf | 0 packages/devel/eglibc/package.mk | 218 ++++++++++++++++++ ...-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch | 0 .../eglibc-fix-dns-with-broken-routers.patch | 0 .../eglibc-readdir_r-CVE-2013-4237.patch | 0 .../patches/eglibc-select_fd_type.patch | 0 .../patches/eglibc-strstr-hackfix.patch | 0 .../initramfs/devel/eglibc-initramfs/install | 35 --- .../initramfs/devel/eglibc-initramfs/meta | 40 ---- packages/initramfs/package.mk | 4 +- packages/toolchain/devel/eglibc/build | 158 ------------- packages/toolchain/devel/eglibc/install | 66 ------ packages/toolchain/devel/eglibc/meta | 40 ---- 15 files changed, 220 insertions(+), 341 deletions(-) rename packages/{toolchain => }/devel/eglibc/config/gai.conf (100%) rename packages/{toolchain => }/devel/eglibc/config/host.conf (100%) rename packages/{toolchain => }/devel/eglibc/config/nsswitch.conf (100%) create mode 100644 packages/devel/eglibc/package.mk rename packages/{toolchain => }/devel/eglibc/patches/eglibc-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch (100%) rename packages/{toolchain => }/devel/eglibc/patches/eglibc-fix-dns-with-broken-routers.patch (100%) rename packages/{toolchain => }/devel/eglibc/patches/eglibc-readdir_r-CVE-2013-4237.patch (100%) rename packages/{toolchain => }/devel/eglibc/patches/eglibc-select_fd_type.patch (100%) rename packages/{toolchain => }/devel/eglibc/patches/eglibc-strstr-hackfix.patch (100%) delete mode 100755 packages/initramfs/devel/eglibc-initramfs/install delete mode 100644 packages/initramfs/devel/eglibc-initramfs/meta delete mode 100755 packages/toolchain/devel/eglibc/build delete mode 100755 packages/toolchain/devel/eglibc/install delete mode 100644 packages/toolchain/devel/eglibc/meta diff --git a/packages/toolchain/devel/eglibc/config/gai.conf b/packages/devel/eglibc/config/gai.conf similarity index 100% rename from packages/toolchain/devel/eglibc/config/gai.conf rename to packages/devel/eglibc/config/gai.conf diff --git a/packages/toolchain/devel/eglibc/config/host.conf b/packages/devel/eglibc/config/host.conf similarity index 100% rename from packages/toolchain/devel/eglibc/config/host.conf rename to packages/devel/eglibc/config/host.conf diff --git a/packages/toolchain/devel/eglibc/config/nsswitch.conf b/packages/devel/eglibc/config/nsswitch.conf similarity index 100% rename from packages/toolchain/devel/eglibc/config/nsswitch.conf rename to packages/devel/eglibc/config/nsswitch.conf diff --git a/packages/devel/eglibc/package.mk b/packages/devel/eglibc/package.mk new file mode 100644 index 0000000000..8bab51bb48 --- /dev/null +++ b/packages/devel/eglibc/package.mk @@ -0,0 +1,218 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="eglibc" +PKG_VERSION="2.18-23911" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.eglibc.org/" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="timezone-data" +PKG_BUILD_DEPENDS_TARGET="ccache autotools autoconf-2.68 linux-headers gcc-core" +PKG_BUILD_DEPENDS_INIT="eglibc" +PKG_PRIORITY="optional" +PKG_SECTION="toolchain/devel" +PKG_SHORTDESC="eglibc: The Embedded GNU C library" +PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then + PKG_DEPENDS="$PKG_DEPENDS arm-mem" + PKG_DEPENDS_INIT="$PKG_DEPENDS_INIT arm-mem:init" +fi + +PKG_CONFIGURE_OPTS_TARGET="--libexecdir=/usr/lib/eglibc \ + --cache-file=config.cache \ + --disable-profile \ + --disable-sanity-checks \ + --enable-add-ons \ + --enable-bind-now \ + --with-elf \ + --with-tls \ + --with-__thread \ + --with-binutils=$BUILD/toolchain/bin \ + --with-headers=$SYSROOT_PREFIX/usr/include \ + --without-cvs \ + --without-gd \ + --enable-obsolete-rpc \ + --disable-build-nscd \ + --disable-nscd \ + --enable-lock-elision" + +if [ "$LINUX" = AMLm1 -o "$LINUX" = AMLm3 ]; then + PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-kernel=2.6.34" +else + PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-kernel=3.0.0" +fi + +if [ "$DEBUG" = yes ]; then + PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-debug" +else + PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --disable-debug" + DEBUG_OPTIONS=" OPTION_EGLIBC_MEMUSAGE = n" +fi + +NSS_CONF_DIR="$PKG_BUILD/nss" + +EGLIBC_EXCLUDE_BIN="catchsegv getconf iconv iconvconfig ldconfig lddlibc4" +EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN localedef makedb mtrace pcprofiledump" +EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN pldd rpcgen sln sotruss sprof tzselect" +EGLIBC_EXCLUDE_BIN="$EGLIBC_EXCLUDE_BIN xtrace zdump zic" + +pre_build_target() { + cd $PKG_BUILD + aclocal --force --verbose + autoconf-2.68 --force --verbose + cd - +} + +pre_configure_target() { +# Fails to compile with GCC's link time optimization. + strip_lto + +# eglibc dont support GOLD linker. + strip_gold + +# Filter out some problematic *FLAGS + export CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"` + export CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"` + export CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|g"` + + export LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||g"` + export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|g"` + export LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|g"` + + export LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"` + + unset LD_LIBRARY_PATH + +# set some CFLAGS we need + export CFLAGS="$CFLAGS -g -fno-stack-protector -fgnu89-inline" + +# dont build parallel + export MAKEFLAGS=-j1 + + export BUILD_CC=$HOST_CC + export OBJDUMP_FOR_HOST=objdump + +# create configuration +cat >option-groups.config <config.cache <> configparms +echo "slibdir=/lib" >> configparms +echo "sbindir=/usr/bin" >> configparms +echo "rootsbindir=/usr/bin" >> configparms +} + +post_makeinstall_target() { +# cleanup + for i in $EGLIBC_EXCLUDE_BIN; do + rm -rf $INSTALL/usr/bin/$i + done + rm -rf $INSTALL/usr/lib/audit + rm -rf $INSTALL/usr/lib/eglibc + rm -rf $INSTALL/usr/lib/libc_pic + rm -rf $INSTALL/usr/lib/*.o + rm -rf $INSTALL/usr/lib/*.map + rm -rf $INSTALL/var + +# create default configs + mkdir -p $INSTALL/etc + cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc + cp $PKG_DIR/config/host.conf $INSTALL/etc + cp $PKG_DIR/config/gai.conf $INSTALL/etc + + if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then + ln -sf ld.so $INSTALL/lib/ld-linux.so.3 + fi +} + +configure_init() { + cd $ROOT/$PKG_BUILD + rm -rf $ROOT/$PKG_BUILD/.$TARGET_NAME-init +} + +make_init() { + : # reuse make_target() +} + +makeinstall_init() { + mkdir -p $INSTALL/lib + cp -PR $ROOT/$PKG_BUILD/.$TARGET_NAME/elf/ld*.so* $INSTALL/lib + cp $ROOT/$PKG_BUILD/.$TARGET_NAME/libc.so.6 $INSTALL/lib + cp $ROOT/$PKG_BUILD/.$TARGET_NAME/math/libm.so.6 $INSTALL/lib + cp $ROOT/$PKG_BUILD/.$TARGET_NAME/nptl/libpthread.so.0 $INSTALL/lib + + if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then + ln -sf ld.so $INSTALL/lib/ld-linux.so.3 + fi +} diff --git a/packages/toolchain/devel/eglibc/patches/eglibc-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch b/packages/devel/eglibc/patches/eglibc-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch similarity index 100% rename from packages/toolchain/devel/eglibc/patches/eglibc-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch rename to packages/devel/eglibc/patches/eglibc-ARM_Pass_dl_hwcap_to_IFUNC_resolver.patch diff --git a/packages/toolchain/devel/eglibc/patches/eglibc-fix-dns-with-broken-routers.patch b/packages/devel/eglibc/patches/eglibc-fix-dns-with-broken-routers.patch similarity index 100% rename from packages/toolchain/devel/eglibc/patches/eglibc-fix-dns-with-broken-routers.patch rename to packages/devel/eglibc/patches/eglibc-fix-dns-with-broken-routers.patch diff --git a/packages/toolchain/devel/eglibc/patches/eglibc-readdir_r-CVE-2013-4237.patch b/packages/devel/eglibc/patches/eglibc-readdir_r-CVE-2013-4237.patch similarity index 100% rename from packages/toolchain/devel/eglibc/patches/eglibc-readdir_r-CVE-2013-4237.patch rename to packages/devel/eglibc/patches/eglibc-readdir_r-CVE-2013-4237.patch diff --git a/packages/toolchain/devel/eglibc/patches/eglibc-select_fd_type.patch b/packages/devel/eglibc/patches/eglibc-select_fd_type.patch similarity index 100% rename from packages/toolchain/devel/eglibc/patches/eglibc-select_fd_type.patch rename to packages/devel/eglibc/patches/eglibc-select_fd_type.patch diff --git a/packages/toolchain/devel/eglibc/patches/eglibc-strstr-hackfix.patch b/packages/devel/eglibc/patches/eglibc-strstr-hackfix.patch similarity index 100% rename from packages/toolchain/devel/eglibc/patches/eglibc-strstr-hackfix.patch rename to packages/devel/eglibc/patches/eglibc-strstr-hackfix.patch diff --git a/packages/initramfs/devel/eglibc-initramfs/install b/packages/initramfs/devel/eglibc-initramfs/install deleted file mode 100755 index 5af3b205b1..0000000000 --- a/packages/initramfs/devel/eglibc-initramfs/install +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -EGLIBC_DIR="$BUILD/eglibc-*" - -mkdir -p $INSTALL/lib - cp -PR $EGLIBC_DIR/objdir-eglibc/elf/ld*.so* $INSTALL/lib - cp $EGLIBC_DIR/objdir-eglibc/libc.so.6 $INSTALL/lib - cp $EGLIBC_DIR/objdir-eglibc/math/libm.so.6 $INSTALL/lib - cp $EGLIBC_DIR/objdir-eglibc/nptl/libpthread.so.0 $INSTALL/lib - -if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then - ln -sf ld.so $INSTALL/lib/ld-linux.so.3 -fi diff --git a/packages/initramfs/devel/eglibc-initramfs/meta b/packages/initramfs/devel/eglibc-initramfs/meta deleted file mode 100644 index 9aa3dfbe51..0000000000 --- a/packages/initramfs/devel/eglibc-initramfs/meta +++ /dev/null @@ -1,40 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="eglibc-initramfs" -PKG_VERSION="" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="GPL" -PKG_SITE="http://www.eglibc.org/" -PKG_URL="" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="eglibc" -PKG_PRIORITY="optional" -PKG_SECTION="initramfs/devel" -PKG_SHORTDESC="eglibc: The Embedded GNU C library" -PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers." -PKG_IS_ADDON="no" - -PKG_AUTORECONF="no" - -if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then - PKG_DEPENDS="$PKG_DEPENDS arm-mem-initramfs" -fi diff --git a/packages/initramfs/package.mk b/packages/initramfs/package.mk index ed6362bec8..71233d4e88 100644 --- a/packages/initramfs/package.mk +++ b/packages/initramfs/package.mk @@ -25,8 +25,8 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="eglibc-initramfs busybox-initramfs linux-initramfs plymouth-lite:init diskdev_cmds:init" -PKG_BUILD_DEPENDS_TARGET="toolchain eglibc-initramfs busybox-initramfs" +PKG_DEPENDS="eglibc:init busybox-initramfs linux-initramfs plymouth-lite:init diskdev_cmds:init" +PKG_BUILD_DEPENDS_TARGET="toolchain busybox-initramfs" PKG_PRIORITY="optional" PKG_SECTION="virtual" PKG_SHORTDESC="initramfs: Metapackage for installing initramfs" diff --git a/packages/toolchain/devel/eglibc/build b/packages/toolchain/devel/eglibc/build deleted file mode 100755 index 95f733769f..0000000000 --- a/packages/toolchain/devel/eglibc/build +++ /dev/null @@ -1,158 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -if [ "$LINUX" = AMLm1 -o "$LINUX" = AMLm3 ]; then - KERNEL_VER="2.6.34" -else - KERNEL_VER="3.0.0" -fi - -# Fails to compile with GCC's link time optimization. - strip_lto - -# eglibc dont support GOLD linker. - strip_gold - -# Filter out some problematic *FLAGS - CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"` - CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"` - CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|g"` - - LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||g"` - LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|g"` - LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|g"` - - LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"` - - unset LD_LIBRARY_PATH - -# set some CFLAGS we need - CFLAGS="$CFLAGS -g -fno-stack-protector -fgnu89-inline" - -# dont build parallel - MAKEFLAGS=-j1 - -export BUILD_CC=$HOST_CC -export OBJDUMP_FOR_HOST=objdump - -if [ "$DEBUG" = yes ]; then - DEBUG_CONFIG="--enable-debug" -else - DEBUG_CONFIG="--disable-debug" - DEBUG_OPTIONS=" OPTION_EGLIBC_MEMUSAGE = n" -fi - -NSS_CONF_DIR=`ls -d $ROOT/$BUILD/eglibc*/nss` - -cd $PKG_BUILD - -aclocal --force --verbose -autoconf-2.68 --force --verbose - -mkdir -p objdir-$1 && cd objdir-$1 - -# OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG = $NSS_CONF_DIR/fixed-nsswitch.conf -# OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS = $NSS_CONF_DIR/fixed-nsswitch.functions - -cat >option-groups.config <config.cache <> configparms -echo "slibdir=/lib" >> configparms -echo "sbindir=/usr/bin" >> configparms -echo "rootsbindir=/usr/bin" >> configparms - -../configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --libexecdir=/usr/lib/eglibc \ - --cache-file=config.cache \ - --disable-profile \ - --disable-sanity-checks \ - --enable-add-ons \ - --enable-bind-now \ - --with-elf \ - --with-tls \ - --enable-kernel=$KERNEL_VER \ - --with-__thread \ - --with-binutils=$BUILD/toolchain/bin \ - --with-headers=$SYSROOT_PREFIX/usr/include \ - --without-cvs \ - --without-gd \ - --enable-obsolete-rpc \ - --disable-build-nscd \ - --disable-nscd \ - --enable-lock-elision \ - $DEBUG_CONFIG \ - -make -$MAKEINSTALL diff --git a/packages/toolchain/devel/eglibc/install b/packages/toolchain/devel/eglibc/install deleted file mode 100755 index 3d51002644..0000000000 --- a/packages/toolchain/devel/eglibc/install +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/lib - cp -P $PKG_BUILD/objdir-$1/elf/ld*.so* $INSTALL/lib - cp $PKG_BUILD/objdir-$1/libc.so.6 $INSTALL/lib - cp $PKG_BUILD/objdir-$1/math/libm.so.6 $INSTALL/lib - -if [ "$TARGET_ARCH" = "arm" -a "$TARGET_FLOAT" = "hard" ]; then - ln -sf ld.so $INSTALL/lib/ld-linux.so.3 -fi - -mkdir -p $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/crypt/libcrypt.so.1 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/dlfcn/libdl.so.2 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/nis/libnsl.so.1 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/nis/libnss_compat.so.2 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/nss/libnss_files.so.2 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/resolv/libnss_dns.so.2 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/resolv/libresolv.so.2 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/rt/librt.so.1 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/nptl/libpthread.so.0 $INSTALL/usr/lib - cp $PKG_BUILD/objdir-$1/login/libutil.so.1 $INSTALL/usr/lib # e.g. for utmp support, needed by PAM_filter - - - [ "$DEVTOOLS" = yes ] && cp $PKG_BUILD/objdir-$1/nptl_db/libthread_db.so.1 $INSTALL/usr/lib # for GDB - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/objdir-$1/elf/ldd $INSTALL/usr/bin - sed -i 's%/usr/bin/bash%/bin/sh%g' $INSTALL/usr/bin/ldd - - cp $PKG_BUILD/objdir-$1/nss/getent $INSTALL/usr/bin - - cp $PKG_BUILD/objdir-$1/locale/locale $INSTALL/usr/bin - -# libiconv replacement: - mkdir -p $INSTALL/usr/lib/gconv - cp $PKG_BUILD/iconvdata/gconv-modules $INSTALL/usr/lib/gconv - cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv - -mkdir -p $INSTALL/etc - cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc - cp $PKG_DIR/config/host.conf $INSTALL/etc - cp $PKG_DIR/config/gai.conf $INSTALL/etc - cp $PKG_BUILD/sunrpc/etc.rpc $INSTALL/etc/rpc diff --git a/packages/toolchain/devel/eglibc/meta b/packages/toolchain/devel/eglibc/meta deleted file mode 100644 index 82b6ba4471..0000000000 --- a/packages/toolchain/devel/eglibc/meta +++ /dev/null @@ -1,40 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="eglibc" -PKG_VERSION="2.18-23911" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="GPL" -PKG_SITE="http://www.eglibc.org/" -PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" -PKG_DEPENDS="timezone-data" -PKG_BUILD_DEPENDS="ccache autotools autoconf-2.68 linux-headers gcc-core" -PKG_PRIORITY="optional" -PKG_SECTION="toolchain/devel" -PKG_SHORTDESC="eglibc: The Embedded GNU C library" -PKG_LONGDESC="The Embedded GLIBC (EGLIBC) is a variant of the GNU C Library (GLIBC) that is designed to work well on embedded systems. EGLIBC strives to be source and binary compatible with GLIBC. EGLIBC's goals include reduced footprint, configurable components, better support for cross-compilation and cross-testing. In contrast to what Ulrich Drepper makes out of GLIBC, in EGLIBC all patches assigned to the FSF will be considered regardless of individual or company affiliation and cooperation is encouraged, as well as communication, civility, and respect among developers." -PKG_IS_ADDON="no" - -PKG_AUTORECONF="no" - -if [ "$XBMCPLAYER_DRIVER" = "bcm2835-driver" ]; then - PKG_DEPENDS="$PKG_DEPENDS arm-mem" -fi