[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maintaining team packages in Git



Antono Vasiljev escreveu isso aí:
> Aloha!
> 
> On Sun, 2011-03-06 at 18:07 +0100, Lucas Nussbaum wrote:
> 
> > > It seems that using mr[1] is the way to go to maintain our packages in
> > > git instead of SVN, according to a thread on debian-devel@[2].
> > > 
> > > Is something willing to investigate how the Games and OCaml use it, and
> > > adapt the necessary stuff?
> > > 
> > > There's already a git repo on alioth[3] that can be used for that.
> > > 
> > > [1] 'mr' package ;)
> > > [2] http://lists.debian.org/debian-devel/2011/03/msg00327.html
> > > [3] alioth:/git/pkg-ruby-extras/pkg-ruby-extras.git
> > 
> > Done that.

Thanks for looking at that, Lucas. I have played with converting the
mocha package to git, but ended up not figuring out how to do the
"manage several packages" thing.

> Great news! Should I update git-workflow in the wiki?

I guess that what Lucas already wrote on the RubyInWheezy wiki page is a
start for that.

> > git clone git.debian.org:/git/pkg-ruby-extras/pkg-ruby-extras.git
> 
> Password prompt here unless you provide your alioth username. Following
> worked for me:
> 
> git clone
> ant0no-guest@git.debian.org:/git/pkg-ruby-extras/pkg-ruby-extras.git
> 
> > cd pkg-ruby-extras
> > mr -c mrconfig checkout
> 
> Similar problem here. git_checkout function in mrconfig uses git+ssh. I
> cchanged url to git+ssh:
> //ant0no-guest@git.debian.org/git/pkg-ruby-extras/$1.git and it worked
> for me. But we need some config option for username here.

You can solve these issues with proper configuration in ~/.ssh/config.
Mine has the following snippet for alioth-related stuff:

  Host alioth.debian.org
    User terceiro-guest
  
  Host svn.debian.org
    User terceiro-guest
  
  Host git.debian.org
    User terceiro-guest

> > # enjoy, by doing cd ruby-feedparser && git-buildpackage -us -uc
> 
> Works perfect only with gem2deb installed.
> 
> Otherwise following fail:
> 
> antono@beast:~/Projects/pkg-ruby-extras/ruby-mocha> git-buildpackage -us
> -uc
> dh --buildsystem=ruby clean
>    dh_testdir -O--buildsystem=ruby
>    dh_auto_clean -O--buildsystem=ruby
> dh_auto_clean: unable to load build system class 'ruby': Can't locate
> Debian/Debhelper/Buildsystem/ruby.pm in @INC (@INC
> contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl .) at (eval 10) line 2.
> BEGIN failed--compilation aborted at (eval 10) line 2.
> 
> make: *** [clean] Error 2
> debuild: fatal error at line 1317:
> couldn't exec fakeroot debian/rules: 
> gbp:error: debuild -d clean returned 2
> gbp:error: Couldn't run 'debuild -d clean'

Of course, gem2deb is a build dependency of the package. :)

-- 
Antonio Terceiro <terceiro@softwarelivre.org>
http://softwarelivre.org/terceiro


Attachment: signature.asc
Description: Digital signature


Reply to: