[PKG-Openstack-devel] [MoM] Packaging manila

Andreas Tille andreas at an3as.eu
Fri Apr 24 19:41:23 UTC 2015


Hi Malihe,

are you able to reproduce the following

On Thu, Apr 23, 2015 at 12:24:12PM +0430, Malihe Asemani wrote:
> > > git clone git://github.com/openstack/manila.git

$ git clone git://github.com/openstack/manila.git
Klone nach 'manila'...
remote: Counting objects: 13960, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 13960 (delta 15), reused 0 (delta 0), pack-reused 13919
Empfange Objekte: 100% (13960/13960), 4.76 MiB | 235.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (10141/10141), Fertig.
Prüfe Konnektivität... Fertig.

(sorry for German locale - if you repoduce you should see something
similar ... and learn German :-) )

> > > cd manila
$ cd manila
(master) $ git tag
2014.2
2014.2.b3
2014.2.rc1
2014.2.rc2
2015.1.0b1
2015.1.0b2
2015.1.0b3
2015.1.0rc1
2015.1.0rc2

> > > git tag 2015.1_b3 2015.1.0b3

$ git tag 2015.1.0_rc2 2015.1.0rc2

(I think the proper version number for the package would be
 2015.1.0~rc2 -> see my other mail for an explanation)

> > > git reset --hard 2015.1_b3

(master) $ git reset --hard  2015.1.0_rc2
HEAD ist jetzt bei ec56e0b Merge "NetApp cDOT driver clones NFS export policy" into stable/kilo

> > > git checkout -b debian/kilo

(master) $ git checkout -b debian/kilo
Zu neuem Branch 'debian/kilo' gewechselt

(debian/kilo) $ git branch
* debian/kilo
  master

> > > git branch -d master

(debian/kilo) $ LANG=C git branch -d master
warning: not deleting branch 'master' that is not yet merged to
         'refs/remotes/origin/master', even though it is merged to HEAD.
error: The branch 'master' is not fully merged.
If you are sure you want to delete it, run 'git branch -D master'.

... OK, lets try this ...

(debian/kilo) $ LANG=C git branch -D master
Deleted branch master (was ec56e0b).

> > > # <add here your debian folder for the packaging>

(debian/kilo) $ cp -a <my_path_to_debcheckout_ubuntu>/manila-2015.1~b2/debian .

> > > git add debian

(debian/kilo) $ git add debian

> > > git commit -a -m "Initial debian folder"

(debian/kilo) $ git commit -a -m "Initial debian folder"
[debian/kilo f4b6844] Initial debian folder
 22 files changed, 502 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/docs
 create mode 100644 debian/install
 create mode 100644 debian/logging.conf
 create mode 100644 debian/manila-api.init.in
 create mode 100644 debian/manila-api.install
 create mode 100644 debian/manila-common.dirs
 create mode 100644 debian/manila-common.install
 create mode 100644 debian/manila-common.logrotate
 create mode 100644 debian/manila-common.postinst
 create mode 100644 debian/manila-scheduler.init.in
 create mode 100644 debian/manila-scheduler.install
 create mode 100644 debian/manila_sudoers
 create mode 100644 debian/manila_tgt.conf
 create mode 100644 debian/patches/pep-0476.patch
 create mode 100644 debian/patches/series
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/watch

(Just noticed that this contains my changed debian/watch file which
 should have been a separate commit - I'll leave it as is for simplicity)

> > > Make sure that, when you add your Debian folder, you get something
> > > like this in debian/gbp.conf:
> > >
> > > [DEFAULT]
> > > debian-branch = debian/kilo
> > > upstream-tag = %(version)s
> > > compression = xz
> > >
> > > [git-buildpackage]
> > > export-dir = ../build-area/

(debian/kilo) $ cat > debian/gbp.conf <<EOT
> [DEFAULT]
> debian-branch = debian/kilo
> upstream-tag = %(version)s
> compression = xz
> 
> [git-buildpackage]
> export-dir = ../build-area/
> EOT
(debian/kilo) $ git add debian/gbp.conf
(debian/kilo) $ git commit -a -m "Add gbp.conf"
[debian/kilo 73cc358] Add gbp.conf
 1 file changed, 7 insertions(+)
 create mode 100644 debian/gbp.conf


> > > Then doing "pkgos-bop" should rebuild the package correctly.

(debian/kilo) $ sudo apt-get -t experimental install openstack-pkg-tools

(Attention: You need to install openstack-pkg-tools from experimental!)

(debian/kilo) $ /usr/bin/pkgos-bop
===> Cleaning-up old builds
debian/rules:12: warning: overriding recipe for target 'get-orig-source'
/usr/share/openstack-pkg-tools/pkgos.make:69: warning: ignoring old recipe for target 'get-orig-source'
git tag -v 2015.1_b2 || true
error: Tag '2015.1_b2' nicht gefunden.
if [ ! -f ../manila_2015.1~b2.orig.tar.xz ] ; then \
        git archive --prefix=manila-2015.1~b2/ 2015.1_b2 | xz >../manila_2015.1~b2.orig.tar.xz ; \
fi
fatal: Not a valid object name
[ ! -e ../build-area ] && mkdir ../build-area || true
[ ! -e ../build-area/manila_2015.1~b2.orig.tar.xz ] && cp ../manila_2015.1~b2.orig.tar.xz ../build-area
===> Building using git-buildpackage
dch warning: new version (2015.1~b2-0ubuntu1~bpo80+1) is less than
the current version number (2015.1~b2-0ubuntu1).
[debian/kilo eeb65ca] Rebuilt by bop.
 1 file changed, 6 insertions(+)
gbp:info: Orig tarball 'manila_2015.1~b2.orig.tar.xz' not found at '../tarballs/'
gbp:info: Exporting 'WC' to '/home/andreas/debian-maintain/alioth/openstack/build-area/manila-tmp'
gbp:info: Moving '/home/andreas/debian-maintain/alioth/openstack/build-area/manila-tmp' to '/home/andreas/debian-maintain/alioth/openstack/build-area/manila-2015.1~b2'
I: using cowbuilder as pbuilder
dpkg-checkbuilddeps: Unmet build dependencies: dh-systemd
W: Unmet build-dependency in source
dpkg-buildpackage: source package manila
dpkg-buildpackage: source version 2015.1~b2-0ubuntu1~bpo80+1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Andreas Tille <tille at debian.org>
 dpkg-source -i.git -I.git --before-build manila-2015.1~b2
dpkg-checkbuilddeps: Unmet build dependencies: dh-systemd
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
dpkg-buildpackage: warning: this is currently a non-fatal warning with -S, but will probably become fatal in the future
 fakeroot debian/rules clean
debian/rules:12: warning: overriding recipe for target 'get-orig-source'
/usr/share/openstack-pkg-tools/pkgos.make:69: warning: ignoring old recipe for target 'get-orig-source'
dh clean --with python2,systemd
dh: unable to load addon systemd: Can't locate Debian/Debhelper/Sequence/systemd.pm in @INC (you may need to install the Debian::Debhelper::Sequence::systemd module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at (eval 12) line 2.
BEGIN failed--compilation aborted at (eval 12) line 2.

debian/rules:9: recipe for target 'clean' failed
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
gbp:error: '~/bin/git-pbuilder' failed: it exited with 2
HEAD ist jetzt bei 73cc358 Add gbp.conf
There was an error when bop called git-buildpackage: exiting.


Well, that's something we can work out later once you confirm that you
reached this point.


(debian/kilo) $ pkgos-alioth-new-git openstack
===> Cloning manila as bare: manila.git
Klone in Bare-Repository 'manila.git'...
Fertig.
===> Building tarball: manila.git.tar.gz
===> Uploading manila.git.tar.gz to git.debian.org
manila.git.tar.gz                                                                                                                                      100% 5117KB  67.3KB/s   01:16    
===> Uncompressing manila.git.tar.gz in /git/openstack
(tar is mumbling something about timestamp in future ... I'll strip this)
tar: ===> Activating update-server-info hook
===> Deleting tarball on alioth
manila.git/objects: Zeitstempel 2015-04-24 19:26:28 liegt 49.416265975 Sekunden in der Zukunft.
===> Fxing g+w unix permissions
===> Cleaning local bare copy and tarball


Finally this created a bare git repository on git.debian.org.

I admit I need help now as well since I now have no idea what
is our remote Git repository.  If I do on alioth

tille at moszumanska:~$ cat /srv/git.debian.org/git/openstack/manila.git/config 
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
        sharedRepository = group
[remote "origin"]
        url = /home/andreas/debian-maintain/alioth/openstack/manila

A local dir is a pretty stupid remote origin.  I guess we might need
help now myself since I have no idea how to push our next changes.  I
would have assumed that in my local git repository the remote origin
would have been set to git.debian.org.

Thomas (or somebody else from openstack team), could you explain what to
do next?

Malihe, this is the kind of report I'd recommend you to do.  Could you
please confirm that you can reproduce all this (except the last step
of pkgos-alioth-new-git since this will definitely fail due to the now
existing manila.git)  In case you might fail on one step I guess you
could do

   gbp-clone ssh://git.debian.org/git/openstack/manila.git

This should bring you my work - however, most probably with different
remote origin.

Please send a mail where you confirm these steps.

Hope this helps

      Andreas.

-- 
http://fam-tille.de



More information about the Openstack-devel mailing list