Override/suppress bzr options in recipe?

Asked by Jeff Harp on 2019-03-16

I am new to building on Launchpad and new to bzr.

Trying to build an existing project I want to eventually make modifications to.

The first line of my recipe looks like this:
# bzr-builder format 0.3 deb-version {debversion}~jh{revno}

The version info from the change log is:
      1:60.5.1+build2-0ubuntu0.18.04.1
      upstream - 60.5.1build2

I was expecting to get something like this:
      1:60.5.1+build2-0ubuntu0.18.04.1~jh1

But instead get this:
      1:60.5.1+build2-0ubuntu0.18.04.1~jh1~ubuntu18.04.1

Looking at the build log, I notice that when bzr is run, an option is being passed to it:
      ... '--append-version', '~ubuntu18.04.1' ...

I don't want this. Is there a way to override or suppress this from the recipe (or elsewhere)?

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2019-03-16
Last reply:
2019-03-16
Colin Watson (cjwatson) said : #1

I'm afraid not. You'll either need to adapt your recipe so that the appended part is tolerable (i.e. arranging not to duplicate most of it, I suppose), or just upload source packages directly. Recipes are opinionated in some ways and we don't expect that they will cover everyone's use cases.

Colin Watson (cjwatson) said : #2

Incidentally, it's unusual that you would have stuff like "+build2-0ubuntu0.18.04.1" in a branch that you're using as one of the inputs to a recipe. Perhaps the best approach would be to use a branch that doesn't already have a lot of what amounts to per-Ubuntu-series metadata in its tip version?

Can you help with this problem?

Provide an answer of your own, or ask Jeff Harp for more information if necessary.

To post a message you must log in.