[Openstack-devel] Packaging Swift Using git-buildpackage

Scott Lavender slavender at internap.com
Tue Jul 17 16:35:06 UTC 2012


I was able to get past the missing source package, by creating one from my
own Swift repo(python setup.py sdist). Using the instructions found here:
http://grumbel.blogspot.com/2010/05/how-to-build-ubuntu-package.html, I was
able to get to this point:

toor at clbuild2:~/ubuntu/swift$ git-buildpackage --git-ignore-new
dh clean --with python2
   dh_testdir
   dh_auto_clean
running clean
'build/lib.linux-x86_64-2.6' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.6' does not exist -- can't clean it
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
   debian/rules override_dh_clean
make[1]: Entering directory `/home/toor/ubuntu/swift'
dh_clean
rm -rf swift.egg-info
rm -rf doc/build/*
make[1]: Leaving directory `/home/toor/ubuntu/swift'
gbp:info: Exporting 'HEAD' to '/home/toor/ubuntu/build-area/swift-tmp'
Traceback (most recent call last):
  File "/usr/bin/git-buildpackage", line 573, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/git-buildpackage", line 509, in main
    cp = du.parse_changelog(filename=os.path.join(tmp_dir, 'debian',
'changelog'))
  File "/usr/lib/python2.7/dist-packages/gbp/deb.py", line 369, in
parse_changelog
    raise NoChangelogError, "Changelog %s not found" % (filename, )
gbp.deb.NoChangelogError: Changelog
/home/toor/ubuntu/build-area/swift-tmp/debian/changelog not found


On Tue, Jul 17, 2012 at 11:46 AM, ghe. rivero <ghe.rivero at gmail.com> wrote:

> On Tue, Jul 17, 2012 at 5:39 PM, ghe. rivero <ghe.rivero at gmail.com> wrote:
> > You can get the same result with the command git-buildpackage
> > ----git-upstream-tag=%(version)s
>
> Tested and working with a minimal change:
> git-buildpackage --git-upstream-tag="%(version)s"
>
> >
> > On Tue, Jul 17, 2012 at 3:07 PM, Scott Lavender <slavender at internap.com>
> wrote:
> >> Hi All,
> >>
> >> I have been using dpkg-buildpackage so far to package our OpenStack
> Swift. I
> >> just upgraded toi Swift 1.5.0 and wanted to try switching to use
> >> git-buildpackage. So, to get started, I cloned
> >> http://anonscm.debian.org/git/openstack/swift.git, and ran
> git-buildpackage(
> >> on Ubuntu 11.10):
> >>
> >> dh clean --with python2
> >>    dh_testdir
> >>    dh_auto_clean
> >> running clean
> >> 'build/lib.linux-x86_64-2.6' does not exist -- can't clean it
> >> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> >> 'build/scripts-2.6' does not exist -- can't clean it
> >> running clean
> >> 'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
> >> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> >> 'build/scripts-2.7' does not exist -- can't clean it
> >>    debian/rules override_dh_clean
> >> make[1]: Entering directory `/home/toor/debian.swift'
> >> dh_clean
> >> rm -rf swift.egg-info
> >> rm -rf doc/build/*
> >> make[1]: Leaving directory `/home/toor/debian.swift'
> >> gbp:info: swift_1.4.8.orig.tar.gz does not exist, creating from
> >> 'upstream/1.4.8'
> >> fatal: Not a valid object name upstream/1.4.8
> >>
> >> What is the proper setup to be able to run this?
> >>
> >> Thanks.....
> >> --
> >>
> >> Scott Lavender | Cloud Release Engineer
> >> _____________________________________ _______
> >>
> >> Google Voice 678.744.8194
> >> slavender at internap.com • www.internap.com
> >>
> >> INTERNAP ®
> >> connectivity | colocation | managed hosting | cloud
> >>
> >> One Ravinia Drive • Suite 1300 • Atlanta • GA • 30346
> >>
> >>
> >>
> >> _______________________________________________
> >> Openstack-devel mailing list
> >> Openstack-devel at lists.alioth.debian.org
> >> http://lists.alioth.debian.org/mailman/listinfo/openstack-devel
> >>
> >
> >
> >
> > --
> > Pinky: "Gee, Brain, what do you want to do tonight?"
> > The Brain: "The same thing we do every night, Pinky—try to take over the
> world!"
> >
> >  .''`.  Pienso, Luego Incordio
> > : :' :
> > `. `'
> >   `-    www.debian.org    www.openstack.com
> >
> > GPG Key: 26F020F7
> > GPG fingerprint: 4986 39DA D152 050B 4699  9A71 66DB 5A36 26F0 20F7
>
>
>
> --
> Pinky: "Gee, Brain, what do you want to do tonight?"
> The Brain: "The same thing we do every night, Pinky—try to take over the
> world!"
>
>  .''`.  Pienso, Luego Incordio
> : :' :
> `. `'
>   `-    www.debian.org    www.openstack.com
>
> GPG Key: 26F020F7
> GPG fingerprint: 4986 39DA D152 050B 4699  9A71 66DB 5A36 26F0 20F7
>



-- 

*Scott Lavender | Cloud Release Engineer
_____________________________________ _______

Google Voice 678.744.8194
slavender at internap.com • www.internap.com
<http://www.internap.com/>
INTERNAP ®
connectivity | colocation | managed hosting | cloud

One Ravinia Drive • Suite 1300 • Atlanta • GA • 30346*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20120717/8e70024d/attachment-0001.html>


More information about the Openstack-devel mailing list