FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 01-06-2011, 08:15 PM
Michał Górny
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

Hello,

For quite a long time, Sunrise overlay users were using
sunrise-commit script to commit their ebuilds to Sunrise. That
script can still be found in app-portage/overlay-utils [1] but it is
pretty old and limited, and not really useful outside Sunrise.

Some time ago I started working on an improved, fresh re-implementation
of sunrise-commit [2]. Although the script originally was still quite
limited, right now it is able to handle committing to various overlays
and the gx86 tree as well, and that's why I'd like to commit the ebuild
into gx86 eventually.

But before doing so (and thus encouraging Sunrise users to replace
their old scripts with the new one), I'd like to ask more devs
for a review. Right now, a working ebuild installing the script
and the manpage can be found in the 'mgorny' overlay [3].

Now, for the long description, the new sunrise-commit is a general
Gentoo repository commit helper. It is a wrapper around echangelog,
repoman and VCS-es. It's main features are:

- support for CVS, svn, git and hg repos (including explicit support
for git-svn),
- ChangeLog auto-reverts -- you can abort the commit, change the commit
message and sunrise-commit will adjust the ChangeLog without trouble,
- bug reference checking -- if s-c finds something looking like a bug
number in your commit message, it will try to grab its summary line,
- (simple) package removal scenario -- mostly for Sunrise or other
custom repos, don't think it's appropriate for CVS.

That's all what I can think of now. I'm open to suggestions and feature
requests, and I'd be happy to improve sunrise-commit to meet Gentoo
developer needs.

[1]
http://overlays.gentoo.org/proj/sunrise/browser/reviewed/app-portage/overlay-utils
[2] https://github.com/mgorny/sunrise-commit/
[3]
http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=tree;f=app-portage/sunrise-commit

--
Best regards,
Michał Górny
 
Old 01-06-2011, 08:28 PM
Mike Frysinger
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> That's all what I can think of now. I'm open to suggestions and feature
> requests, and I'd be happy to improve sunrise-commit to meet Gentoo
> developer needs.

stable bug filing

this is the hack i use:
submit_bug_stable() {
local msg="doit"
if [[ $1 == "-m" ]] ; then
msg=$2
shift 2
fi
if [[ -z $1 ]] || [[ -n $2 ]] ; then
echo "Usage: submit_bug_stable <ebuilds>"
return 1
fi
local maintainer=$(xml sel -t -v pkgmetadata/herd metadata.xml)
if [[ ${maintainer} == "no-herd" ]] ; then
maintainer=$(xml sel -t -v pkgmetadata/maintainer/email metadata.xml)
elif [[ -n ${maintainer} ]] ; then
maintainer="${maintainer}@gentoo.org"
fi
if [[ -z ${maintainer} ]] ; then
echo "No maintainer found in metadata.xml"
return 1
fi
local cat=$(basename $(dirname $(pwd)))
local pkg=${1%.ebuild}
local ebuild=${pkg}.ebuild
local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^
]*|mips)@[^ ]*::g')
if [[ -z ${cc} ]] ; then
echo "Unable to read ebuild '${ebuild}'"
return 1
fi
bugz post
--batch
-u vapier@gentoo.org
-t "Stabilize ${cat}/${pkg}"
-d "${msg}"
-a "${maintainer}"
--cc="${cc}"
-k STABLEREQ
--product='Gentoo Linux'
--component=Ebuilds
--priority=P2
--severity=enhancement
}
-mike
 
Old 01-07-2011, 10:24 AM
Michał Górny
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Thu, 6 Jan 2011 16:28:29 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > That's all what I can think of now. I'm open to suggestions and
> > feature requests, and I'd be happy to improve sunrise-commit to
> > meet Gentoo developer needs.
>
> stable bug filing

Why don't you request that in, say, eix?

--
Best regards,
Michał Górny
 
Old 01-07-2011, 10:43 AM
justin
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

> local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^


Hi Mike,

could you please post the arch_emails function?

thanks justin
 
Old 01-07-2011, 04:57 PM
Mike Frysinger
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > That's all what I can think of now. I'm open to suggestions and
> > > feature requests, and I'd be happy to improve sunrise-commit to
> > > meet Gentoo developer needs.
> >
> > stable bug filing
>
> Why don't you request that in, say, eix?

ive never used eix, so i dont know what it does. you asked for suggestions
and i gave you one.
-mike
 
Old 01-07-2011, 05:13 PM
Mike Frysinger
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Friday, January 07, 2011 06:43:30 justin wrote:
> > local cc=$(arch_emails ${ebuild} | sed -r -e 's[^ ]*-[^
>
> could you please post the arch_emails function?

arch_emails() {
local ret
if [[ $@ == *.ebuild* ]] ; then
local e keys
for e in "$@" ; do
keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e})
for a in ${keys} ; do
[[ ${a} != ~* ]] && continue
ret="${ret} ${a}"
done
done
else
ret="$*"
fi
printf '%s@gentoo.org ' ${ret//~}
echo
}
-mike
 
Old 01-07-2011, 06:28 PM
Michał Górny
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Fri, 7 Jan 2011 12:57:07 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> > On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > > That's all what I can think of now. I'm open to suggestions and
> > > > feature requests, and I'd be happy to improve sunrise-commit to
> > > > meet Gentoo developer needs.
> > >
> > > stable bug filing
> >
> > Why don't you request that in, say, eix?
>
> ive never used eix, so i dont know what it does. you asked for
> suggestions and i gave you one.

I asked for suggestions relevant to the particular topic the utility is
operating in. You gave one which is not related to VCS-es,
committing nor any other topic sunrise-commit operates in.

--
Best regards,
Michał Górny
 
Old 01-07-2011, 08:41 PM
Mike Frysinger
 
Default (New) sunrise-commit -- a commit helper script for Gentoo devs

On Friday, January 07, 2011 14:28:55 Michał Górny wrote:
> On Fri, 7 Jan 2011 12:57:07 -0500 Mike Frysinger wrote:
> > On Friday, January 07, 2011 06:24:33 Michał Górny wrote:
> > > On Thu, 6 Jan 2011 16:28:29 -0500 Mike Frysinger wrote:
> > > > On Thu, Jan 6, 2011 at 4:15 PM, Michał Górny wrote:
> > > > > That's all what I can think of now. I'm open to suggestions and
> > > > > feature requests, and I'd be happy to improve sunrise-commit to
> > > > > meet Gentoo developer needs.
> > > >
> > > > stable bug filing
> > >
> > > Why don't you request that in, say, eix?
> >
> > ive never used eix, so i dont know what it does. you asked for
> > suggestions and i gave you one.
>
> I asked for suggestions relevant to the particular topic the utility is
> operating in. You gave one which is not related to VCS-es,
> committing nor any other topic sunrise-commit operates in.

no, you're talking about a utility that helps people manage ebuilds and you
specifically mentioned making it less bound to sunrise (and overlays). in
fact, you explicitly mentioned making it work with ebuilds in "gx86".
-mike
 

Thread Tools




All times are GMT. The time now is 10:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org