<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large"><font size="4">Hello,</font><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 11, 2022 at 2:23 AM Guido Günther <<a href="mailto:agx@sigxcpu.org">agx@sigxcpu.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br><span class="gmail_default" style="font-family:monospace;font-size:large">...</span><br>
> Q: In my gbp-created 'dhcpcd5' git repo - as it stands now - must I carry<br>
> forward a "patching system", OR may I simply apply the current patches to<br>
> the sources, and carry on without a "patching system". In other words, is<br>
> it possible to have a Debian package in which all changes are handled via<br>
> the mechanisms of 'git' rather than the mechanisms of a "patching<br>
> system"?<br>
<br>
In 3.0 (quilt) packages all patches must be inside `debian/patches`.<br>
Maintaining this folder is what `gbp-pq` aims to simplify. See<br>
<br>
  <a href="https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.patches.html#gbp.patches.workflow" rel="noreferrer" target="_blank">https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.patches.html#gbp.patches.workflow</a><br>
<br>
how this works.<br>
<br>
The 1.0 source format allows you to patch the main branch of your repo<br>
directly but since the 3.0 (quilt) format is what Raspian uses I'd stick<br>
to that system but you can change to 1.0 format for your personal use by<br>
changing `debian/source/format`.<br>
<br>
You can also hack around things like<br>
<br>
   <a href="https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.special.sloppytarball.html" rel="noreferrer" target="_blank">https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.special.sloppytarball.html</a><br>
<br>
which allows you to patch things directly.<br>
<br>
> If this is not an answer you feel you can give, I understand. However, your<br>
> opinion on the question would still be very useful to me. I will pick some<br>
> of these things up as I go along, but I must keep going to learn.<br>
<br>
It's not a matter of opinion, it's how Debian packaging works (and hence<br>
what gbp can use to build the Debian packages from git on top of<br>
that). Gbp is not meant as a tool to give you a Debian package no matter<br>
what (there's tools like fpm for that) but rather a tool that allows you<br>
to use git for packaging for Distributions like Debian/Ubuntu/Raspian<br>
archive hence adhering to Debian's source format conventions. I know<br>
it's not easy to get all those things together as git is just another<br>
layer on top of "regular" Debian packaging (which is complex on it's<br>
own).<br>
<br>
So it really depends on what your aim is: if you want to adhere to<br>
packaging policies (so others can reuse your work safely (which is what<br>
I understood you want to do)) you're on the right track, if you just<br>
want to create a one off package then you might want to take short<br>
cuts as linked to above (or just patching the unpacked source).<span class="gmail_default" style="font-family:monospace;font-size:large"> </span></blockquote><div><br></div><div style="font-family:monospace;font-size:large" class="gmail_default">That is a clear answer to my question - thank you. I suspected it was the case, but I was already stumped as to the next step & decided I'd be foolish to spend additional time on unnecessary tasks. And yes - I do wish to adhere to package policy. I don't understand the policy, but I'll postpone any debate until I've got a much better understanding. At this rate, that will be some time off :)  <br></div><div style="font-family:monospace;font-size:large" class="gmail_default"><br></div><div style="font-family:monospace;font-size:large" class="gmail_default">All of that said, I want to make an initial commit and push to remote that will yield exactly (functionally?) the same .deb package as is produced by the current source package in the raspbian repo: <br><pre><a href="https://archive.raspberrypi.org/debian/pool/main/d/dhcpcd5/dhcpcd5_8.1.2-1+rpt5.dsc">https://archive.raspberrypi.org/debian/pool/main/d/dhcpcd5/dhcpcd5_8.1.2-1+rpt5.dsc</a></pre></div><div><div style="font-family:monospace;font-size:large" class="gmail_default">My second commit will be the "fix" to 'dhcpcd' - the same fix I submitted to the upstream source, and raspbian about a month ago. <br></div><div style="font-family:monospace;font-size:large" class="gmail_default"><br></div><div class="gmail_default"><font size="4"><span style="font-family:monospace">I think that means I should now begin reading `gbp-pq` in earnest, and follow up when questions arise. <br></span></font></div><font size="4"><span style="font-family:monospace"><br></span></font></div><div><font size="4"><span style="font-family:monospace"><span class="gmail_default">Thank you,</span></span></font></div><div><font size="4"><span style="font-family:monospace"><span class="gmail_default">~S</span><br></span></font></div><div><font size="4"><span style="font-family:monospace"> </span></font></div></div></div>