]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
samba: Clean old ceph bits before getting new 727/head
authorBoris Ranto <branto@redhat.com>
Thu, 18 May 2017 13:56:20 +0000 (15:56 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 18 May 2017 14:19:53 +0000 (16:19 +0200)
Debian/Ubuntu does not tie the package versions the same way the rpm
packagin does so upgrading a single package won't remove any old
packages. Remove the old bits before installing any new.

This should fix a build failure on xenial where there were two libcephfs
libraries present on the system at the time of build which broke the
build.

Signed-off-by: Boris Ranto <branto@redhat.com>
samba/build/build_deb

index 19c88e8e4d038c254bda32619ce3a41828d822b7..2221c7d34fc6b2381be77173f161de215dcb2154 100644 (file)
@@ -34,8 +34,14 @@ fi
 sudo cp $WORKSPACE/shaman.list /etc/apt/sources.list.d/
 
 ## Install any setup-time deps
-# Make sure we use the latest version of libcephfs-dev
-sudo apt-get remove -y libcephfs-dev || true
+# Make sure we use the latest ceph versions, remove any old bits
+xargs sudo apt-get remove -y <<< "
+libcephfs-dev
+libcephfs1
+libcephfs2
+librados2
+librbd1
+"
 
 # We need these for the build
 sudo apt-get update && sudo apt-get install -y build-essential equivs libgnutls-dev libacl1-dev libldap2-dev ruby ruby-dev libcephfs-dev