wok-next rev 20613

glusterfs: fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 20 04:44:03 2018 +0300 (2018-04-20)
parents b96375904f8e
children 133539d3f6d9
files glusterfs/receipt
line diff
     1.1 --- a/glusterfs/receipt	Thu Apr 19 23:07:29 2018 +0300
     1.2 +++ b/glusterfs/receipt	Fri Apr 20 04:44:03 2018 +0300
     1.3 @@ -12,19 +12,33 @@
     1.4  WGET_URL="https://download.gluster.org/pub/gluster/glusterfs/${VERSION%.*}/$VERSION/$TARBALL"
     1.5  
     1.6  BUILD_DEPENDS="flex python-dev readline-dev mpc-library elfutils openssl-dev \
     1.7 -acl-dev sqlite-dev liburcu-dev libxml2-dev"
     1.8 +acl-dev sqlite3-dev liburcu-dev libxml2-dev rpcsvc-proto libtirpc-dev"
     1.9 +SPLIT="glusterfs-dev"
    1.10  
    1.11  compile_rules() {
    1.12  	sed -i "/^cat/,/^EOM/d;s/exit/echo '$HOST_SYSTEM'\n&/" config.sub
    1.13 +	export CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc/"
    1.14 +	export LDFLAGS="$LDFLAGS -ltirpc"
    1.15  
    1.16  	./configure \
    1.17  		--libexecdir=/usr/share \
    1.18  		$CONFIGURE_ARGS &&
    1.19 +	sed -i 's| -lfl | |' $src/libglusterfs/src/Makefile &&
    1.20 +	fix libtool &&
    1.21  	make &&
    1.22 -	make  install
    1.23 +	make install
    1.24  }
    1.25  
    1.26  genpkg_rules() {
    1.27 -	copy @std
    1.28 -	DEPENDS="python readline mpc-library elfutils openssl"
    1.29 +	case $PACKAGE in
    1.30 +		glusterfs)
    1.31 +			copy @std
    1.32 +			DEPENDS="acl libsqlite3 libtirpc liburcu libxml2 openssl python \
    1.33 +			readline zlib"
    1.34 +			;;
    1.35 +		*-dev)
    1.36 +			copy @dev
    1.37 +			DEPENDS="glusterfs acl-dev sqlite3-dev"
    1.38 +			;;
    1.39 +	esac
    1.40  }