xbps-src: do not allow empty PKGDESTDIR unless build_style!=meta.
This commit is contained in:
parent
cacdf5e724
commit
33e3afecf9
2 changed files with 11 additions and 2 deletions
|
@ -32,16 +32,24 @@ hook() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Forbid empty packages unless build_style=meta
|
||||||
|
if [ "$build_style" != "meta" ]; then
|
||||||
|
if [ "$(find $PKGDESTDIR/* -maxdepth 1 -type d 2>/dev/null)" = "" ]; then
|
||||||
|
msg_red "${pkgver}: PKGDESTDIR is empty and build_style != meta\n"
|
||||||
|
error=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $error -gt 0 ]; then
|
if [ $error -gt 0 ]; then
|
||||||
msg_error "${pkgver}: cannot continue with installation!\n"
|
msg_error "${pkgver}: cannot continue with installation!\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for missing shlibs and SONAME bumps.
|
# Check for missing shlibs and SONAME bumps.
|
||||||
if [ ! -f "${PKGDESTDIR}/shlib-provides" ]; then
|
if [ ! -s "${PKGDESTDIR}/shlib-provides" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for filename in `cat ${PKGDESTDIR}/shlib-provides`; do
|
for filename in $(cat ${PKGDESTDIR}/shlib-provides); do
|
||||||
rev=${filename#*.so.}
|
rev=${filename#*.so.}
|
||||||
libname=${filename%.so*}
|
libname=${filename%.so*}
|
||||||
_shlib=$(echo "$libname"|sed -E 's|\+|\\+|g')
|
_shlib=$(echo "$libname"|sed -E 's|\+|\\+|g')
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
pkgname=linux-tools
|
pkgname=linux-tools
|
||||||
version=4.1
|
version=4.1
|
||||||
revision=1
|
revision=1
|
||||||
|
build_style=meta
|
||||||
wrksrc="linux-${version}"
|
wrksrc="linux-${version}"
|
||||||
short_desc="Linux kernel tools meta-pkg"
|
short_desc="Linux kernel tools meta-pkg"
|
||||||
hostmakedepends="flex perl asciidoc xmlto python automake libtool"
|
hostmakedepends="flex perl asciidoc xmlto python automake libtool"
|
||||||
|
|
Loading…
Reference in a new issue