All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Christopher Wyse <CWyse@accu-time.com>
Cc: "bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Subject: Re: AUTOREV with different branches
Date: Thu, 17 Apr 2014 06:15:20 +0100	[thread overview]
Message-ID: <1397711720.15843.184.camel@ted> (raw)
In-Reply-To: <4749E398ABC0754A82239442E1B13E2A6144EFD7@ATSSBS2K11.Accu-Time.com>

On Tue, 2014-04-15 at 14:48 +0000, Christopher Wyse wrote:
> I'd like to auto-increment my package revision.  I have 'SRCREV =
> "${AUTOREV}" ', and 'PR_append = "+gitr${SRCPV}" ' set.  This is
> working fine as long as I stay on a single branch.  However, my
> SRC_URI has the branch parameter set to branch=${BRANCH}, and BRANCH
> is set in the environment prior to calling bitbake.  This has resulted
> in the following issue.
> 
> On the develop branch, my package name is:
> 
> setup-utility_0.90-r24+gitr9
> +537d03f5ed3a78caa8148448c8c92053be99010d_armv7a-vfp-neon.ipk
> 
> and on the release branch:
> 
> setup-utility_0.90-r24+gitr1
> +db553099700f4b6a5e2db0475957700afe6cbcab_armv7a-vfp-neon.ipk
> 
> The release branch had been built most recently.  I want opkg to use
> the latest package regardless of which branch it was built on, but in
> this case opkg will use the develop build.
> 
> I'm not sure how to correct this.  I see references to LOCALCOUNT and
> AUTOINC, and it seems like other people have had similar issues, but
> after reviewing them I'm still not sure of the best solution.
> 
> Here's a the relevant snippets from my recipe:
> 
>    SRC_URI =
> "git://gitolite@....com/universal/SetupUtility.git;protocol=ssh;branch=${BRANCH}"
>    PV = "0.90"
> 
>    SRCREV = "${AUTOREV}"
> 
>    # Package Revision, Update this whenever you change the recipe. 
>    PR = "r24"
>    PR_append = "+gitr${SRCPV}"
> 
> If anyone could provide any help/suggestions, I would really
> appreciate it.

I suspect the problem here is we're keying the data either in the PR
server or in the fetcher incorrectly. It should be keyed off the PN
value. In reality I suspect branchname and some other info gets used to
key the data and causes this problem. I don't have the time to dig into
this right now but please do file a bug report about this and if you
don't figure it out, we will try and do so in due course.

Cheers,

Richard




      reply	other threads:[~2014-04-17  5:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 14:48 AUTOREV with different branches Christopher Wyse
2014-04-17  5:15 ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1397711720.15843.184.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=CWyse@accu-time.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.