summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-29 13:47:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-29 13:47:56 +0000
commitf8813c1565465d895fca60f64fb9c245ef5a8cd4 (patch)
tree09b92991558936bd6ba1875afca9f80329f21687 /abuild.in
parent178affc406a41b8edef0178125ecdc866b57d7dc (diff)
downloadabuild-f8813c1565465d895fca60f64fb9c245ef5a8cd4.tar.gz
abuild-f8813c1565465d895fca60f64fb9c245ef5a8cd4.tar.bz2
abuild-f8813c1565465d895fca60f64fb9c245ef5a8cd4.tar.xz
abuild-f8813c1565465d895fca60f64fb9c245ef5a8cd4.zip
abuild: do not move *.la files to dev package and exit with error if found
To be allowed to keep the .la files you need to add 'libtool' to $options
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/abuild.in b/abuild.in
index fdc9527..25ae4e5 100755
--- a/abuild.in
+++ b/abuild.in
@@ -469,6 +469,13 @@ prepare_subpackages() {
subpkgdir="$pkgbasedir/${i%:*}" subpkgname="${i%:*}" \
$0 $func prepare_package || return 1
done
+ # post check
+ i=$(find "$pkgdir" -name '*.la')
+ if [ -n "$i" ] && ! options_has "libtool"; then
+ error "Libtool archives (*.la) files found and \$options has no 'libtool' flag:"
+ echo "$i" | sed 's/^/ /'
+ return 1
+ fi
}
lang_subpkg() {
@@ -919,8 +926,7 @@ default_dev() {
usr/share/gettext usr/bin/*-config \
usr/share/vala/vapi usr/share/gir-[0-9]*\
$(find -name include -type d) \
- $(find usr/ -name '*.[acho]' -o -name '*.la' \
- 2>/dev/null); do
+ $(find usr/ -name '*.[acho]' 2>/dev/null); do
if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
d="$subpkgdir/${i%/*}" # dirname $i
mkdir -p "$d"