wok view glibc-base/receipt @ rev 12814

glibc-base (arm): include libc_noneshared.a, ld-linux.so.3 and fix path in libc.so
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 20 23:22:04 2012 +0200 (2012-05-20)
parents b2cd0b970950
children 521a11df54e7
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-base"
4 VERSION="2.14.1"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU libc minimal libraries and UTF-8 support for SliTaz."
7 WEB_SITE="http://www.gnu.org/software/libc/"
8 MAINTAINER="pankso@slitaz.org"
9 HOST_ARCH="i486 arm"
11 case "$ARCH" in
12 arm)
13 VERSION="2.13" ;;
14 i?86)
15 WANTED="glibc" ;;
16 esac
18 DEFAULT_LOCALE="de_DE en_US en_GB es_ES fr_FR it_IT pt_BR pt_PT ru_RU"
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 #
22 # Full glibc is very long to compile (see package glibc for more
23 # informations). You can use the precompiled package available on
24 # SliTaz mirror to build a distro without recompiling glibc.
25 #
26 genpkg_rules()
27 {
28 case "$ARCH" in
29 arm)
30 # EXPERIMENTAL: Glibc is cross compiled by cross to have a
31 # toolchain so we can use these files instead of recooking it.
32 # 20120514: Include just minal libs for Busybox so we can create
33 # bootable Qemu image for ARM.
34 echo "Using cross compiled Glibc"
35 mkdir -p $fs/lib $fs/etc $fs/usr/bin
36 install=/usr/cross/$ARCH
37 for bin in locale localedef
38 do
39 cp $install/bin/$bin $fs/usr/bin
40 done
41 for lib in libcrypt libm libc
42 do
43 cp -a $install/lib/${lib}-*.so $fs/lib
44 cp -a $install/lib/${lib}.so* $fs/lib
45 done
46 cp -a $install/lib/ld-*.so* $fs/lib
47 cp -a $install/lib/libnss_*.so* $fs/lib
48 cp -a $install/lib/libc_nonshared.a $fs/lib
49 cp $install/etc/rpc $fs/etc
50 touch $fs/etc/ld.so.conf
51 # Fix libraries search path
52 sed -i s'|/usr/cross/arm||'g $fs/lib/libc.so ;;
53 *)
54 # Mkdir's.
55 for dir in $(cat $stuff/mkdir.list)
56 do
57 mkdir -p ${fs}$dir
58 done
59 # Copy all files specified in stuff/files.list. We get the files
60 # from glibc package.
61 for file in $(cat $stuff/wanted-files.list)
62 do
63 cp -a ${_pkg}$file ${fs}$file
64 done
65 # i18n
66 for i in $DEFAULT_LOCALE
67 do
68 cp $install/usr/share/i18n/locales/$i \
69 $fs/usr/share/i18n/locales
70 done
71 esac
72 }
74 # Remove an eventual locale-archive since we use directories.
75 pre_install()
76 {
77 rm -f $1/usr/lib/locale/locale-archive
78 }