glibc: relax dep versions; move nsswitch.conf to base-files.

This commit is contained in:
Juan RP 2012-10-24 07:20:40 +02:00
parent 9b804c0f8d
commit 09b286be63
3 changed files with 12 additions and 27 deletions

View File

@ -1,15 +0,0 @@
# /etc/nsswitch.conf
#
# See nsswitch.conf(5) for information.
#
passwd: files
group: files
shadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: files
services: files
ethers: files
rpc: files

View File

@ -1,6 +1,6 @@
# Template file for 'glibc-devel'.
#
depends="kernel-libc-headers>=3.4<3.5 glibc>=$version"
depends="kernel-libc-headers glibc>=${version}"
short_desc="${short_desc} (development files)"
long_desc="${long_desc}

View File

@ -2,22 +2,15 @@
pkgname=glibc
_majorver=2.16
version=${_majorver}.0
revision=9
revision=10
short_desc="The GNU C library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/libc"
license="GPL-2, LGPL-2.1, BSD"
nostrip_files="
ld-${_majorver}.so
libc-${_majorver}.so
libpthread-${_majorver}.so
libthread_db-1.0.so"
conf_files="/etc/rpc /etc/ld.so.conf /etc/nsswitch.conf"
conf_files="/etc/rpc /etc/ld.so.conf"
subpackages="glibc-devel glibc-locales nscd"
depends="base-files glibc-locales"
makedepends="bison perl kernel-libc-headers>=3.4<3.5"
replaces="glibc>=0"
softreplace=yes
makedepends="bison perl kernel-libc-headers>=3.6<3.7"
distfiles="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.xz"
checksum=1edc36aa2a6cb7127971fce8e02eecffe9c7956297ad3ef10dd4c09f486d5924
long_desc="
@ -27,6 +20,14 @@ long_desc="
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system."
nostrip_files="
ld-${_majorver}.so
libc-${_majorver}.so
libpthread-${_majorver}.so
libthread_db-1.0.so"
softreplace=yes
do_configure() {
mkdir build && cd build
@ -81,7 +82,6 @@ do_install() {
sed -i "s|^RTLDLIST.*$|RTLDLIST=\"$rtldlist\"|" \
${DESTDIR}/usr/bin/ldd
fi
install -m644 ${FILESDIR}/nsswitch.conf ${DESTDIR}/etc
install -d ${DESTDIR}/etc/ld.so.conf.d
echo "/usr/local/lib" > ${DESTDIR}/etc/ld.so.conf.d/usr_local.conf
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/usr_local.conf