mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
chroot-glibc: disable nscd completely.
This commit is contained in:
parent
7d1c92d307
commit
4c757ef63e
1 changed files with 13 additions and 9 deletions
|
@ -3,7 +3,7 @@ pkgname=chroot-glibc
|
||||||
_majorver=2.17
|
_majorver=2.17
|
||||||
version=${_majorver}
|
version=${_majorver}
|
||||||
wrksrc="glibc-${version}"
|
wrksrc="glibc-${version}"
|
||||||
revision=4
|
revision=5
|
||||||
short_desc="The GNU C library -- for xbps-src use"
|
short_desc="The GNU C library -- for xbps-src use"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.gnu.org/software/libc"
|
homepage="http://www.gnu.org/software/libc"
|
||||||
|
@ -28,8 +28,8 @@ nostrip_files="
|
||||||
POSIX_V7_LP64_OFF64
|
POSIX_V7_LP64_OFF64
|
||||||
XBS5_LP64_OFF64"
|
XBS5_LP64_OFF64"
|
||||||
|
|
||||||
if [ -n "$IN_CHROOT" ]; then
|
if [ "$IN_CHROOT" ]; then
|
||||||
makedepends="bison perl"
|
hostmakedepends="bison perl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
@ -42,14 +42,14 @@ do_configure() {
|
||||||
|
|
||||||
# Build with -mno-tls-direct-seg-refs to avoid performance problems
|
# Build with -mno-tls-direct-seg-refs to avoid performance problems
|
||||||
# with Xen on x86 32bit.
|
# with Xen on x86 32bit.
|
||||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
if [ "${XBPS_TARGET_MACHINE}" = "i686" ]; then
|
||||||
export CFLAGS="$CFLAGS -mno-tls-direct-seg-refs"
|
export CFLAGS="$CFLAGS -mno-tls-direct-seg-refs"
|
||||||
elif [ "$XBPS_MACHINE" = "armv6l" ]; then
|
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||||
# Force hard float ABI.
|
# Force hard float ABI.
|
||||||
# To build for soft float: --with-float=soft --without-fp.
|
# To build for soft float: --with-float=soft --without-fp.
|
||||||
_floatabi="--with-float=hard"
|
_floatabi="--with-float=hard"
|
||||||
fi
|
fi
|
||||||
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
||||||
_headers="--with-headers=/usr/$XBPS_CROSS_TRIPLET/include"
|
_headers="--with-headers=/usr/$XBPS_CROSS_TRIPLET/include"
|
||||||
else
|
else
|
||||||
_headers="--with-headers=/usr/include"
|
_headers="--with-headers=/usr/include"
|
||||||
|
@ -61,7 +61,8 @@ do_configure() {
|
||||||
--enable-bind-now --enable-kernel=2.6.27 \
|
--enable-bind-now --enable-kernel=2.6.27 \
|
||||||
--enable-stack-guard-randomization --disable-profile \
|
--enable-stack-guard-randomization --disable-profile \
|
||||||
--without-cvs --without-gd --libexecdir=/usr/lib \
|
--without-cvs --without-gd --libexecdir=/usr/lib \
|
||||||
--libdir=/usr/lib ${_floatabi} ${_headers}
|
--libdir=/usr/lib --disable-build-nscd --disable-nscd \
|
||||||
|
${_floatabi} ${_headers}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
@ -81,7 +82,7 @@ do_install() {
|
||||||
replace_interpreter bash ${DESTDIR}/usr/bin/ldd
|
replace_interpreter bash ${DESTDIR}/usr/bin/ldd
|
||||||
|
|
||||||
# On x86_64, add dynamic linker's 32bit version to ldd.
|
# On x86_64, add dynamic linker's 32bit version to ldd.
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
rtldlist="/lib/ld-linux.so.2 /lib/ld-linux-x86-64.so.2"
|
rtldlist="/lib/ld-linux.so.2 /lib/ld-linux-x86-64.so.2"
|
||||||
sed -i "s|^RTLDLIST.*$|RTLDLIST=\"$rtldlist\"|" \
|
sed -i "s|^RTLDLIST.*$|RTLDLIST=\"$rtldlist\"|" \
|
||||||
${DESTDIR}/usr/bin/ldd
|
${DESTDIR}/usr/bin/ldd
|
||||||
|
@ -99,8 +100,11 @@ do_install() {
|
||||||
vmove "sbin/*" usr/sbin
|
vmove "sbin/*" usr/sbin
|
||||||
|
|
||||||
# Create ld-linux.so.3 symlink for ARM.
|
# Create ld-linux.so.3 symlink for ARM.
|
||||||
if [ "$XBPS_MACHINE" = "armv6l" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||||
ln -sfr ${DESTDIR}/usr/lib/ld-linux-armhf.so.3 \
|
ln -sfr ${DESTDIR}/usr/lib/ld-linux-armhf.so.3 \
|
||||||
${DESTDIR}/usr/lib/ld-linux.so.3
|
${DESTDIR}/usr/lib/ld-linux.so.3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove unused stuff.
|
||||||
|
rm -rf ${DESTDIR}/var
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue