[Openstack-devel] Packaging Swift Using git-buildpackage

ghe. rivero ghe.rivero at gmail.com
Tue Jul 17 16:48:17 UTC 2012


That error is cause there is no debian folder with the necessary data
(and you skip the inclusion of other data with --git-ignore-new)

Follow those steps:

git clone http://anonscm.debian.org/git/openstack/swift.git
cd swift/
git remote add upstream http://github.com/openstack/swift.git
git fetch upstream
git merge 1.5.0
git checkout 1.5.0 swift/__init__.py
dch -v 1.5.0-1 New upstream release
dch -r unstable
git commit -a -m"1.5.0"
git-buildpackage --git-upstream-tag="%(version)s"

Et voilà!


On Tue, Jul 17, 2012 at 6:35 PM, Scott Lavender <slavender at internap.com> wrote:
> 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
>
> INTERNAP ®
> connectivity | colocation | managed hosting | cloud
>
> One Ravinia Drive • Suite 1300 • Atlanta • GA • 30346
>
>



-- 
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



More information about the Openstack-devel mailing list