Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 570  / 2 Years ago, sun, november 6, 2022, 9:45:38

I'm looking for the best way to maintain a patched version of an upstream ubuntu package. Here's the situation:



We have our own server running reprepro, which would host the modified package. Our other packages are managed using git and the git packaging tools (git-dch, git-buildpackage).



I have the .diff file that contains the patch to the upstream source, which I've applied before by doing apt-get source pkgname, applying it and running debuild. I'd like to track it properly this time using git.



What's the best process for managing this?


More From » packaging

 Answers
3

I'd suggest something a little different than Flimzy. Take a look at git-import-dsc and possibly git-debimport. They will auto-magically create separate upstream, debian, and prinstine-tar branches from at Debian source package. You could then create your own branch for your patch set. Each time a new upload to Ubuntu is made, you can just run git-import-dsc on the new package and merge with your branch.



Even simpler would be to use bzr if you are not wed to git. Each Ubuntu package can also be found in a bzr branch. bzr branch ubuntu:$PACKAGE_NAME will grab the source branch for you. Make your changes and commit. Then when ever a new Ubuntu upload is made, you can simply run bzr merge-package ubuntu:$PACKAGE_NAME


[#44625] Tuesday, November 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ticrew

Total Points: 190
Total Questions: 111
Total Answers: 99

Location: Fiji
Member since Wed, Jul 14, 2021
3 Years ago
;