update backportpackage and requestbackport scripts to behave according to new backport process

Bug #1959115 reported by Dan Streetman
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
High
Ubuntu Backporters

Bug Description

The 'requestbackport' script needs to be updated to the new workflow.
The Backporters team doesn't take on *requests* to do backports anymore, so most likely this script should be turned into a simpler pointer to the wiki page, rather than actually do anything.

The 'backportpackage' script needs to be checked if the latest update covered all the differences from the previous workflow.

https://wiki.ubuntu.com/UbuntuBackports

This bug is to track that work.

Dan Streetman (ddstreet)
Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Ubuntu Backporters (ubuntu-backporters)
importance: Undecided → High
Mattia Rizzolo (mapreri)
summary: - update backportpackage script to behave according to new backport
- process
+ update backportpackage and requestbackport scripts to behave according
+ to new backport process
description: updated
Revision history for this message
Ross Gammon (rosco2) wrote :

Regarding the requestbackport package, it is really only the template for the bug report that needs to change from memory. I don't think it had any other workflow related information. Once that is fixed, it just needs a reference from the backports process wiki again (like it used to have).

Regarding the backportpackage script, I just tried it, and it is fine for testing in a ppa. I think we could already recommend using this on the wiki with a ppa specified in the -u option. Perhaps a warning not to upload to the archive with it yet would be required though. I had hoped I could specify the new "bpo" version string with the suffix option, but according to the manpage, the "~ubuntu" bit is hardwired:
-S SUFFIX, --suffix=SUFFIX
              Add the specified suffix to the version number when backporting.
              backportpackage will always append ~ubuntuDESTINATION.1 to the
              original version number, and if SUFFIX is specified, it is ap‐
              pended to that, to get version numbers of the form ORIGINAL_VER‐
              SION~ubuntuDESTINATION.1SUFFIX. If the backported package is be‐
              ing uploaded to a PPA, then SUFFIX defaults to ~ppa1, otherwise
              the default is blank.

Now that a bug is always required, I suppose the script should prompt for that, and the "-c/--close" options be taken away.

Revision history for this message
Mattia Rizzolo (mapreri) wrote : Re: [Bug 1959115] Re: update backportpackage and requestbackport scripts to behave according to new backport process

Which version have you tested? backportpackge in u-d-t 0.187+ should
already be using the ~bp suffix.
Notably, note that 0.187 is available in focal-bpo.

On Sun, 13 Feb 2022, 8:35 pm Ross Gammon, <email address hidden>
wrote:

> Regarding the requestbackport package, it is really only the template
> for the bug report that needs to change from memory. I don't think it
> had any other workflow related information. Once that is fixed, it just
> needs a reference from the backports process wiki again (like it used to
> have).
>
> Regarding the backportpackage script, I just tried it, and it is fine for
> testing in a ppa. I think we could already recommend using this on the wiki
> with a ppa specified in the -u option. Perhaps a warning not to upload to
> the archive with it yet would be required though. I had hoped I could
> specify the new "bpo" version string with the suffix option, but according
> to the manpage, the "~ubuntu" bit is hardwired:
> -S SUFFIX, --suffix=SUFFIX
> Add the specified suffix to the version number when
> backporting.
> backportpackage will always append ~ubuntuDESTINATION.1 to
> the
> original version number, and if SUFFIX is specified, it is
> ap‐
> pended to that, to get version numbers of the form
> ORIGINAL_VER‐
> SION~ubuntuDESTINATION.1SUFFIX. If the backported package is
> be‐
> ing uploaded to a PPA, then SUFFIX defaults to ~ppa1,
> otherwise
> the default is blank.
>
> Now that a bug is always required, I suppose the script should prompt
> for that, and the "-c/--close" options be taken away.
>
> --
> You received this bug notification because you are a member of Ubuntu
> Backporters, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/1959115
>
> Title:
> update backportpackage and requestbackport scripts to behave according
> to new backport process
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1959115/+subscriptions
>
>
> --
> ubuntu-backports mailing list
> <email address hidden>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-backports
>

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

I just committed 0f3d2fed2a4ed67b90b5d49aab25ca2bda5d9d37 updating requestbackport.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.192

---------------
ubuntu-dev-tools (0.192) unstable; urgency=medium

  [ Benjamin Drung ]
  * sponsor-patch:
    + Ignore exit code 1 of debdiff call.
    + Use --skip-patches instead of --no-preparation with dpkg-source -x.
  * Demote bzr/brz from Recommends to Suggests, as nowadays git is the way.
    Closes: #940531
  * Use PEP440 compliant version in setup.py (LP: #1991606)
  * Fix issues found by flake8 on the Python scripts
  * Check Python scripts with flake8 again
  * Format Python code with black and run black during package build
  * Sort Python imports with isort and run isort during package build
  * Replace deprecated optparse with argparse
  * requestbackport: Remove useless loop from locate_package
  * reverse-depends: Restore field titles format
  * test: Fix deprecated return value for test case
  * Fix all errors and warnings found by pylint and implement most refactorings
    and conventions. Run pylint during package build again.
  * Bump Standards-Version to 4.6.2
  * Drop unneeded X-Python3-Version from d/control

  [ Masahiro Yamada ]
  * mk-sbuild:
    + Handle the new location of the Debian bullseye security archive.
      Closes: #1001832; LP: #1955116

  [ Mattia Rizzolo ]
  * requestbackport:
    + Apply patch from Krytarik Raido and Unit 193 to update the template and
      workflow after the new Ubuntu Backport process has been established.
      LP: #1959115

 -- Benjamin Drung <email address hidden> Wed, 01 Feb 2023 12:45:15 +0100

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.