]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
fixing pbuilder so it looks in universe as well 291/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 12 Jan 2016 13:43:32 +0000 (08:43 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 12 Jan 2016 13:43:32 +0000 (08:43 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build/build/setup_pbuilder

index bdf4b47fe9f3fa0b42921232a4e1156e953f35d0..4aa0387f64864018acf81a2de4a13535dc88a090 100755 (executable)
@@ -52,6 +52,16 @@ if [ $file_size_kb -lt 1 ]; then
     sudo rm -f "$pbuild_tar"
 fi
 
+# Ordinarily pbuilder only pulls packages from "main".  ceph depends on
+# packages like python-virtualenv which are in "universe". We have to configure
+# pbuilder to look in "universe". Otherwise the build would fail with a message similar
+# to:
+#    The following packages have unmet dependencies:
+#      pbuilder-satisfydepends-dummy : Depends: python-virtualenv which is a virtual package.
+#                                      Depends: xmlstarlet which is a virtual package.
+#     Unable to resolve dependencies!  Giving up...
+echo 'COMPONENTS="main universe"' > ~/.pbuilderrc
+
 sudo pbuilder --clean
 
 if [ -e $basedir/$DIST.tgz ]; then