The attached patch adds a debian/ subdirectory, allowing would-be Debian and Ubuntu users to build their own packages, and/or for us to distribute binary packages.
Some things to note:
* You'll notice there is a fair amount of duplication between oz.spec %install section and debian/rules. Ideally you should move the code which creates directories and installs the config file into setup.py, if that is possible.
* I tested this, and it didn't actually finish building the package because it timed out. This is because I'm running this inside a VM so the nested qemu is very slow. However it did basically appear to be working. I will test it further -- with longer timeouts -- later.
* I tested building the package on Debian/stable and Ubuntu 11.04.
* If someone steps up and packages Oz in Debian/Ubuntu for real, then we would likely want to remove the debian directory, since it will interfere with packaging.
* One lintian warning. Doesn't look very serious. W: oz: maintainer-script-ignores-errors postinst
* The package version-release field comes from the debian/changelog file. In libguestfs I usually generate this file using autoconf, although that's not really the right thing to do.
* gvnccapture is not packaged in commonly available versions of Debian or Ubuntu. It is currently sitting in Debian/unstable.
* The package runtime depends on python-libguestfs.
Rich.
The only changes are:
- rebased
- change the dependency to:
python-guestfs|python-libguestfs
so that this package can be installed with either version of libguestfs.
Rich.
On 09/23/11 - 01:39:11PM, Richard W.M. Jones wrote:
From 4059d0f0becc209450105d822593e4383828efb3 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones rjones@redhat.com Date: Thu, 22 Sep 2011 17:03:33 +0100 Subject: [PATCH] Add debian support.
Users can build a package by doing:
debuild -i -uc -us -b
The package will be created in the directory above.
Adding a debian/ subdirectory is a temporary measure to allow Debian and Ubuntu users to use Oz. When we have found a Debian maintainer, we can drop this directory to make the maintainer's job easier.
This has been on the TODO list a long time. I tested it out here on Debian Squeeze, and it properly created the package for me. I also tried to install it, but I got an unresolved dependency:
The following packages have unmet dependencies: oz : Depends: python-guestfs but it is not installable or python-libguestfs but it is not installable E: Broken packages
Is libguestfs not in Debian yet?
In any case, I've now pushed this to the git repository, as the above error is most likely a local configuration issue.
Thanks!
On Fri, Sep 23, 2011 at 09:48:56AM -0400, Chris Lalancette wrote:
On 09/23/11 - 01:39:11PM, Richard W.M. Jones wrote:
From 4059d0f0becc209450105d822593e4383828efb3 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones rjones@redhat.com Date: Thu, 22 Sep 2011 17:03:33 +0100 Subject: [PATCH] Add debian support.
Users can build a package by doing:
debuild -i -uc -us -b
The package will be created in the directory above.
Adding a debian/ subdirectory is a temporary measure to allow Debian and Ubuntu users to use Oz. When we have found a Debian maintainer, we can drop this directory to make the maintainer's job easier.
This has been on the TODO list a long time. I tested it out here on Debian Squeeze, and it properly created the package for me. I also tried to install it, but I got an unresolved dependency:
The following packages have unmet dependencies: oz : Depends: python-guestfs but it is not installable or python-libguestfs but it is not installable E: Broken packages
Is libguestfs not in Debian yet?
Yes, if you have the right version. With the version you have, squeeze (ie. Debian 6), you're best to use my packages here:
http://libguestfs.org/download/binaries/debian-packages/ ** note: read the README file! **
For the official libguestfs packages you will have to update quite a lot of stuff (most of the way to wheezy - future Debian 7):
http://packages.debian.org/search?keywords=libguestfs
BTW is libguestfs a hard dependency of Oz? If not, we should make it optional -- using Recommends or Suggests as described here:
http://www.debian.org/doc/debian-policy/ch-relationships.html
Rich.
On 09/23/11 - 03:31:01PM, Richard W.M. Jones wrote:
On Fri, Sep 23, 2011 at 09:48:56AM -0400, Chris Lalancette wrote:
On 09/23/11 - 01:39:11PM, Richard W.M. Jones wrote:
From 4059d0f0becc209450105d822593e4383828efb3 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones rjones@redhat.com Date: Thu, 22 Sep 2011 17:03:33 +0100 Subject: [PATCH] Add debian support.
Users can build a package by doing:
debuild -i -uc -us -b
The package will be created in the directory above.
Adding a debian/ subdirectory is a temporary measure to allow Debian and Ubuntu users to use Oz. When we have found a Debian maintainer, we can drop this directory to make the maintainer's job easier.
This has been on the TODO list a long time. I tested it out here on Debian Squeeze, and it properly created the package for me. I also tried to install it, but I got an unresolved dependency:
The following packages have unmet dependencies: oz : Depends: python-guestfs but it is not installable or python-libguestfs but it is not installable E: Broken packages
Is libguestfs not in Debian yet?
Yes, if you have the right version. With the version you have, squeeze (ie. Debian 6), you're best to use my packages here:
http://libguestfs.org/download/binaries/debian-packages/ ** note: read the README file! **
OK, thanks, I'll try that.
For the official libguestfs packages you will have to update quite a lot of stuff (most of the way to wheezy - future Debian 7):
http://packages.debian.org/search?keywords=libguestfs
BTW is libguestfs a hard dependency of Oz? If not, we should make it optional -- using Recommends or Suggests as described here:
There are a few situations where Oz can get away with not using libguestfs, but they are on an individual OS basis. For example, with Fedora tree-based (URL) installs, we can do a cpio overlay, which is really fast and doesn't require libguestfs at all. However, if you use a Fedora ISO based install, we need libguestfs to extract the ISO.
It basically is a hard dependency.
aeolus-devel@lists.fedorahosted.org