PatchingNetworkManagerPackage

In order to submit patches for the ubuntu network-manager patches follow the following instructions.

  1. branch the package from bzr and cd into it

    bzr branch https://code.launchpad.net/~ubuntu-core-dev/network-manager/ubuntu.0.6.x network-manager.debian
    cd network-manager.debian
  2. apply all currently existing patches:

    ln -s debian/patches
    quilt push -a
  3. create a new patch:

    quilt new XX_your_new_patch_name.patch
  4. register the files you want to modify before actually modifying them, e.g.

    quilt add src/NetworkManagerUtils.h
    quilt add src/NetworkManagerUtils.c
    quilt add src/nm-ap-security.c
  5. then edit the files and refresh the patch after you have applied your changes

    quilt refresh --diffstat -U8 --no-timestamps
  6. you can then build the package and if you find your modifications could be improved, just edit the files or register new ones (using quilt add like above); after your modifications are finished, refresh your patch again

    quilt refresh --diffstat -U8 --no-timestamps

After you finished the patch just open a launchpad bug to track the inclusion of this bug.

You can either attach the debian/patches/XX_your_new_patch_name.patch patch or create a bzr branch in launchpad where you push your ready-to-be-merged package (with the new patch) to. Remember to post your bzr branch url to the bug when submitting your fix through bzr.

PatchingNetworkManagerPackage (last edited 2008-08-06 16:33:02 by localhost)