<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Seamus de Mora</b> <span dir="auto"><<a href="mailto:seamusdemora@gmail.com">seamusdemora@gmail.com</a>></span><br>Date: Mon, May 2, 2022 at 5:10 AM<br>Subject: Re: [git-buildpackage] A basic question to begin<br>To: Guido Günther <<a href="mailto:agx@sigxcpu.org">agx@sigxcpu.org</a>><br></div><br><br><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 2, 2022 at 2:22 AM Guido Günther <<a href="mailto:agx@sigxcpu.org" target="_blank">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></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As Raspian is based on Debian did you try to contribute your patch to<br>
Debian? According to<br>
<br>
   <a href="https://packages.qa.debian.org/d/dhcpcd5.html" rel="noreferrer" target="_blank">https://packages.qa.debian.org/d/dhcpcd5.html</a><br>
<br>
The current git repo for that packaging is at<br>
<br>
   <a href="https://salsa.debian.org/smlx-guest/dhcpcd5" rel="noreferrer" target="_blank">https://salsa.debian.org/smlx-guest/dhcpcd5</a><br>
<br></blockquote><div> </div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large">I <a href="https://salsa.debian.org/seamusdemora/dhcpcd5/-/commit/a992b9daf156c40b3d2e8e4e314b8a028aa03778" target="_blank">submitted it here</a>, but it's not been acted upon</span><span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large">. I should also say that I may have screwed this up! I wanted the 'commit request' to be applied against the 'dhcpcd version 8.1.2', but instead it went against 'sid'. It gets very confusing here (to me at least) because as I learned, ver 8.1.2 is not actually in the Debian repo. Someone in the RPi organization told me that they had decided to use a different version, but provided no explanation. Perhaps because the repo in 'salsa' is not being maintained by anyone? I don't know - that's a guess. But what I do know is that RPi has been using 8.1.2 since 25 Oct 2019 according to the 'changelog'. However, that date doesn't quite track with the <a href="https://roy.marples.name/archives/dhcpcd-discuss/0002678.html" target="_blank">release date for 8.1.2 posted on the upstream repo</a>. Don't know if that's relevant or not, but mention it just in case. <br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large"><br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large">Further confusing (again - to me) when the '.dsc' file is reviewed as it references the 'salsa' repo which does not contain the 8.1.2 version. I've attached it here FYI.<br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large"> </span> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Can you post how you invoke the command and the full error message?<span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large">  </span></blockquote><div><br></div><div><div style="font-family:trebuchet ms,sans-serif;font-size:large">I may have covered my tracks when I began thrashing about trying to address the error messages. I'll 'rm' the directory that was created, and start over - so you won't "miss anything". lol :) <br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large">First - here are the files & folders created after I installed the RPi source package via '<b><span style="font-family:monospace">apt-get source dhcpcd5</span></b>' :</div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large;margin-left:40px"><font size="2"><b><span style="font-family:monospace">drwxr-xr-x 9 pi   pi     4096 Apr 27 06:40 dhcpcd5-8.1.2<br>-rw-r--r-- 1 pi   pi    12216 Jan 17 08:29 dhcpcd5_8.1.2-1+rpt5.debian.tar.xz<br>-rw-r--r-- 1 pi   pi     1075 Jan 17 08:29 dhcpcd5_8.1.2-1+rpt5.dsc<br>-rw-r--r-- 1 pi   pi   228736 Nov 18  2019 dhcpcd5_8.1.2.orig.tar.xz </span></b></font><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large">Starting "from scratch" after '<b><span style="font-family:monospace">rm -rf dhcpcd5</span></b>':  <br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="margin-left:40px"><font size="2"><b><span style="font-family:monospace"><font size="2"><span style="font-family:monospace"><b>pi@raspberrypi3b:~</b></span></font> $ gbp import-dsc dhcpcd5_8.1.2-1+rpt5.dsc<br>gbp:info: No git repository found, creating one.<br>gbp:error: Git command failed: Error running git branch: fatal: A branch named 'master' already exists.</span></b></font></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large">Eventually concluded this error was a red herring (?), and tried this: <br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="margin-left:40px"><font size="2"><span style="font-family:monospace"><b><font size="2"><span style="font-family:monospace"><b>pi@raspberrypi3b:~ </b></span></font>$ cd dhcpcd5<br>pi@raspberrypi3b:~/dhcpcd5 $ gbp import-dsc ../dhcpcd5_8.1.2-1+rpt5.dsc<br>gbp:error:<br>Repository does not have branch 'upstream' for upstream sources. If there is none see<br>file:///usr/share/doc/git-buildpackage/manual-html/gbp.import.html#GBP.IMPORT.CONVERT<br>on howto create it otherwise use --upstream-branch to specify it.<br><br>Also check the --create-missing-branches option.</b></span></font></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large">This is where I wondered if the .dsc file was creating an issue. Seems to me the correct upstream sources are only available from <a href="https://roy.marples.name/downloads/dhcpcd/dhcpcd-8.1.2.tar.xz" target="_blank">this tarball</a>. There is a <a href="https://github.com/NetworkConfiguration/dhcpcd/tree/dhcpcd-8" target="_blank">ver 8 branch</a> in Roy's repo, but '8.1.2' is only a tag. In any case, I felt I was spinning my wheels, as it was not clear to me that I'd done anything correctly so far, and had no clear ideas on resolving the missing upstream error. This is the point I reached out for help.  <br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
yes, I hope we can help,<br>
 -- Guido<span class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large"> </span></blockquote><div> </div><div><div style="font-family:trebuchet ms,sans-serif;font-size:large">I hope so, too!  <br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large"><br></div><div style="font-family:trebuchet ms,sans-serif;font-size:large">~S</div><br></div></div></div>
</div></div>