xbps: stop building static bins with glibc; split xbps-static only for musl.

This commit is contained in:
Juan RP 2014-03-20 16:36:28 +01:00
parent 6690a2fb68
commit 323e9cf9f5
3 changed files with 39 additions and 11 deletions

View file

@ -1 +0,0 @@
xbps

View file

@ -0,0 +1,38 @@
# Template file for 'xbps-static'
#
# NOTE: keep this package synchronized with "srcpkgs/xbps".
pkgname=xbps-static
version=0.33
revision=4
bootstrap=yes
short_desc="The XBPS package system utilities - static binaries"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu/xbps"
license="Simplified BSD"
hostmakedepends="which pkg-config"
makedepends="zlib-devel openssl-devel libarchive-devel>=3.1.2"
depends="xbps-triggers"
case "$XBPS_TARGET_MACHINE" in
i686-musl) CFLAGS+=" -fno-stack-protector";;
*-musl) ;;
*) msg_error "${pkgname}-${version}: can only be built on musl targets.\n" ;;
esac
do_fetch() {
git clone -b${version} git://github.com/voidlinux/xbps.git ${pkgname}-${version}
}
do_configure() {
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${wrksrc}/static-install install
vmkdir usr/sbin
mv ${wrksrc}/static-install/usr/sbin/*.static ${DESTDIR}/usr/sbin
}

View file

@ -44,7 +44,7 @@ do_configure() {
if [ "$CHROOT_READY" ]; then
_args="--enable-tests"
fi
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-static --enable-debug ${_args}
HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug ${_args}
}
do_build() {
@ -74,12 +74,3 @@ libxbps-devel_package() {
vmove usr/lib/pkgconfig
}
}
xbps-static_package() {
depends="xbps-triggers"
short_desc+=" - static binaries"
replaces="xbps-static>=0"
pkg_install() {
vmove "usr/sbin/*.static"
}
}