summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2017-07-24 17:05:51 +0200
committerMassimiliano Torromeo2017-07-24 17:05:51 +0200
commit0b9c2425b86c2c0d2d72146a5f090c2056d5625c (patch)
tree43d646adcea2bb238c924787b50d0d696d7a673b
parentf1b1ac0210fcd9cf6fc3652c5c72e1aa8cc4f2ee (diff)
downloadaur-0b9c2425b86c2c0d2d72146a5f090c2056d5625c.tar.gz
Workaround for confcheck failures
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
2 files changed, 13 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f9704215f5a..b74c6f1b1fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
# Generated by mksrcinfo v8
-# Tue Jul 11 07:49:43 UTC 2017
+# Mon Jul 24 15:05:24 UTC 2017
pkgbase = vagrant-libvirt
pkgdesc = libvirt provider plugin for Vagrant
pkgver = 0.0.40
- pkgrel = 4
+ pkgrel = 6
url = https://github.com/vagrant-libvirt/vagrant-libvirt
arch = i686
arch = x86_64
license = MIT
makedepends = git
+ makedepends = chrpath
depends = vagrant
depends = libvirt
depends = openssl-1.0
diff --git a/PKGBUILD b/PKGBUILD
index de61617aed8..23634ee321e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=vagrant-libvirt
pkgver=0.0.40
-pkgrel=4
+pkgrel=6
_foglibvirtver=0.3.0
_fogcorever=1.43.0
_fogjsonver=1.0.2
@@ -15,7 +15,7 @@ arch=(i686 x86_64)
url="https://github.com/vagrant-libvirt/vagrant-libvirt"
license=("MIT")
depends=("vagrant" "libvirt" "openssl-1.0")
-makedepends=("git")
+makedepends=("git" "chrpath")
# "https://rubygems.org/downloads/vagrant-libvirt-$pkgver.gem"
source=("https://github.com/vagrant-libvirt/vagrant-libvirt/archive/$pkgver/$pkgname-$pkgver.tar.gz"
"nokogiri-version.patch"
@@ -62,6 +62,8 @@ package() {
local GEM_HOME=/opt/vagrant/embedded/gems
+ export CFLAGS="$CFLAGS -DHAVE_VIRNETWORKGETDHCPLEASES -DHAVE_VIRDOMAINMANAGEDSAVE -DHAVE_VIRDOMAINATTACHDEVICEFLAGS -DHAVE_VIRDOMAINISACTIVE -DHAVE_VIRNETWORKISACTIVE -DHAVE_VIRSTORAGEPOOLISPERSISTENT -DHAVE_VIRSTORAGEPOOLISACTIVE -DHAVE_VIRDOMAINGETVCPUPININFO"
+
for gem in ${noextract[@]}; do
CONFIGURE_ARGS="with-ldflags='-L/opt/vagrant/embedded/lib -l:libruby.so.2.3' with-libvirt-include=/usr/include with-libvirt-lib=/usr/lib" \
GEM_HOME=$GEM_HOME \
@@ -69,4 +71,10 @@ package() {
PATH=/opt/vagrant/embedded/bin:$PATH \
/opt/vagrant/embedded/bin/gem install --ignore-dependencies --no-user-install -N -i "$pkgdir$GEM_HOME" $gem
done
+
+ cd "$pkgdir"/opt/vagrant/embedded/gems
+ chrpath -r /usr/lib:/opt/vagrant/embedded/lib \
+ gems/ruby-libvirt-*/lib/_libvirt.so \
+ gems/ruby-libvirt-*/ext/libvirt/_libvirt.so \
+ extensions/*/*/ruby-libvirt-*/_libvirt.so
}