[Openstack-devel] Debian GNU/Linux and Ubuntu packages diff for swift

Loic Dachary loic at enovance.com
Sat Jul 7 20:07:13 UTC 2012


Hi,

Here is a detailed analysis of the differences between the Debian GNU/Linux and Ubuntu package for swift, based on the attached file. I'm cc'ing Chuck as he may be willing to comment. The corresponding Ubuntu swift package is 

https://launchpad.net/ubuntu/+archive/primary/+files/swift_1.5.0-0ubuntu1.dsc

but the 1.5.0 differences with 

https://launchpad.net/ubuntu/+archive/primary/+files/swift_1.4.8-0ubuntu2.dsc

are minor.

High level summary:
 - Some difference in file locations. Difference in init files.
 - Difference in dependencies.
 - Ubuntu has /bin/false as shell for the created user.

Detailed summary below:

debian/control
 - Debian has a dependency on lsb-base (>= 3.0-6), swift while ubuntu
   does not. This is not done for package swift. Shouldn't the
   dependency against lsb-base for this as well? Or maybe only for
   that one?
 - Debian have added a dependency to libjs-underscore from
   swift-docs. It is most likely how it should be.
 - Ubuntu build dependency is against python-all-dev instead of
   python-all that the debian variant depends on. The ubuntu
   dependency makes more sense.
 - Ubuntu also build depends on python-paste.
 - Debian has a "X-Python-Version: >= 2.6" which makes sense. We
   should keep that one.
 - Ubuntu version of the binary package python-swift depends on
   python-paste. Debian does not.
 - There are differences in the package descriptions. Ubuntu
   descriptions seems to be more up to date. This can be debated though.
 - All binary packages in ubuntu has a Provides: ${python:Provides}.
   Debian does not.

debian/gbp.conf
 - Debian has this, ubuntu does not.

debian/mans/swift/*
 - Debian has a lot of files, ubuntu has a few.
debian/swift.manpages
   Debian has more files according to above.

debian/patches/*
 - Ubuntu has the following patches. Debian does not.
   fix-doc-no-network.patch
   fix-ubuntu-unittests.patch

debian/python-swift.dirs
 - Debian create var/cache/swift, ubuntu does not.

debian/python-swift.postinst
 - Unbuntu give /bin/false as shell. Debian does not.

debian/rules
 - Ubuntu removes debian/*.upstart at clean time. Debian does not as
   it does not have the corresponding .in files.
 - Debian does not provide /usr/lib/python*/dist-packages/test
   in the python-swift package. Sensible.
 - Ubuntu run unit test on build. Guess the patch for unit tests
   is the reason for that.
 - Ubuntu has a target for "get-orig-source".
 - Ubuntu creates .upstart files from .upstart.in files.

debian/swift-account.init
 - Debian use stop in stop rule, while ubuntu use shutdown.

debian/swift-account.install
 - Ubuntu install usr/bin/swift-account-audit. Debian does not.

debian/swift-account.swift-account-reaper
debian/swift-account.swift-account-auditor
debian/swift-account.swift-account-replicator
and many more similar files.
 - Slight difference in log output.

debian/*.upstart.in
 - Ubuntu has these files, debian does not.

debian/swift-doc.links
 - Debian overwrite /usr/share/javascript/underscore/underscore.min.js

debian/swift.install
 - Ubuntu install a lot more files in usr/bin: 
   swift-recon-cron, swift-oldies, swift-orphans, swift-temp-url and swift-form-signature
 Debian has swift-recon-cron in swift-object.install instead.

debian/swift-object.init
 - Ubuntu use shutdown and reload rule.
 - Debian use stop and (stop & start) for reload.

debian/swift-object.install
 - Ubuntu has swift-object-expirer, debian does not.
 - Debian has swift-recon-cron, ubuntu does not. See swift.install above.

debian/*.docs
 - Some minor differences.


Cheers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: swift-ubuntu-debian-2012-07-05.diff
Type: text/x-diff
Size: 63421 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20120707/395406ad/attachment-0001.diff>


More information about the Openstack-devel mailing list