{"id":24,"date":"2025-10-06T18:01:05","date_gmt":"2025-10-06T12:31:05","guid":{"rendered":"https:\/\/wordpress.debian.social\/spaciouscoder78\/?p=24"},"modified":"2025-10-06T18:01:06","modified_gmt":"2025-10-06T12:31:06","slug":"a-simple-but-probably-inefficient-way-to-use-git-build-package-to-make-pristine-tar-branches","status":"publish","type":"post","link":"https:\/\/wordpress.debian.social\/spaciouscoder78\/2025\/10\/06\/a-simple-but-probably-inefficient-way-to-use-git-build-package-to-make-pristine-tar-branches\/","title":{"rendered":"A Simple but Probably Inefficient way to use Git Build Package to make Pristine-Tar branches"},"content":{"rendered":"\n<p>Git Build Package was something that I always struggled with during my initial days with Debian and with some teams mandating the use of pristine-tars and Git Build Package&#8217;s documentation being all over the place, I had to learn a few things by doing it myself and finally learned how to use gbp and generate pristine-tar.<\/p>\n\n\n\n<p>This guide assumes that you are a complete noob to gbp and are struggling with getting pristine-tar set up. <\/p>\n\n\n\n<p>Firstly, create the debian packaging for your package and ensure that you aren&#8217;t getting any more lintian errors or warnings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a Blank repository on Salsa<\/li>\n\n\n\n<li>Create a gbp.conf in your debian folder and add the following config into it<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;DEFAULT]\ndebian-branch = debian\/master\nupstream-branch = upstream\npristine-tar = True\nsign-tags = True<\/code><\/pre>\n\n\n\n<p>3.  Create the branch<code>es<\/code><\/p>\n\n\n\n<p>debian\/master and upstream using <code>git branch<\/code><\/p>\n\n\n\n<p>4. Run the following command and replace the version with the version of your package<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ gbp import-orig --pristine-tar ..\/python-uhi_1.0.0.orig.tar.gz --upstream-branch=upstream --debian-branch=debian\/master\n<\/code><\/pre>\n\n\n\n<p>5. Create a tag for debian release using<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbp tag debian\/1.0.0-1<\/code><\/pre>\n\n\n\n<p>6. Push the branches to Salsa using<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbp push<\/code><\/pre>\n\n\n\n<p>and this will create pristine-tars and a tagged debian and upstream branches<\/p>\n\n\n\n<p>I made this guide only for myself to follow in the future but if its of some help to you, feel free to follow it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git Build Package was something that I always struggled with during my initial days with Debian and with some teams mandating the use of pristine-tars and Git Build Package&#8217;s documentation being all over the place, I had to learn a few things by doing it myself and finally learned how to use gbp and generate &hellip; <a href=\"https:\/\/wordpress.debian.social\/spaciouscoder78\/2025\/10\/06\/a-simple-but-probably-inefficient-way-to-use-git-build-package-to-make-pristine-tar-branches\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Simple but Probably Inefficient way to use Git Build Package to make Pristine-Tar branches<\/span><\/a><\/p>\n","protected":false},"author":41,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[1],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":25,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/posts\/24\/revisions\/25"}],"wp:attachment":[{"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.debian.social\/spaciouscoder78\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}