<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Guido,</div><div><br></div><div>Greats! So now I have a better sequence to get it:</div><div>1. gbp import-dsc apt:"$pkg"/sid<br></div><div>2. update debian/watch</div><div>3. git commit debian/watch<br></div><div>4. gbp import-orig --uscan<br></div><div>And then ready to update the other debian/ files.</div><div><br></div><div>Many thanks,</div><div>Patrice<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 10 déc. 2018 à 23:16, Guido Günther <<a href="mailto:agx@sigxcpu.org">agx@sigxcpu.org</a>> a écrit :<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>
On Mon, Dec 10, 2018 at 11:06:45PM +0100, Patrice Duroux wrote:<br>
> Hi,<br>
> Some days ago, I have sent the following message at debian-user mailing<br>
> list:<br>
> [1]<a href="https://lists.debian.org/debian-user/2018/12/msg00132.html" rel="noreferrer" target="_blank">https://lists.debian.org/debian-user/2018/12/msg00132.html</a><br>
> But since I did not progress a lot without any answer or at least some<br>
> pointers to follow (Debian wiki, tutorials, ...) and also because I am not<br>
> very familiar with the git commands, only with CVS or related.<br>
> My main goal would be to migrate the (sleepy or unmaintained) abcm2ps<br>
> package to the nice [2]<a href="http://salsa.debian.org" rel="noreferrer" target="_blank">salsa.debian.org</a> infrastructure.<br>
> For that I would like to use gbp as much as possible to achieve all or<br>
> most of the following steps:<br>
> 1. initialize a local git repository from the current package that does<br>
> not have any Debian VCS,<br>
<br>
Did you look at gbp-import-dscs --debsnap ?<br>
<br>
> 2. upgrade all the source content using a remote git repository and taking<br>
> the greatest version tag, all giving a single commit and avoiding some<br>
> package dependent sub-steps,<br>
> 3. upgrade packaging.<br>
> First let suppose:<br>
> pkg=abcm2ps<br>
> tag=v8.14.1<br>
> origin=[3]<a href="https://github.com/leesavide/abcm2ps.git" rel="noreferrer" target="_blank">https://github.com/leesavide/abcm2ps.git</a><br>
> Step 1 is done using:<br>
> gbp import-dsc apt:"$pkg"/sid<br>
> (really great!)<br>
> cd "$pkg"<br>
> git remote add origin "$origin"<br>
> For Step 2 I arrived to the following but that is not (at all)<br>
> satisfactory:<br>
> rm *<br>
> git pull origin "$tag" -Xtheirs --allow-unrelated-histories<br>
<br>
What about using gbp-import-orig if you don't care about intermediate<br>
commits? If you don't care about interim commits it's simpler to use<br>
gbp-impot-orig since it does exactly that: replace everything besides<br>
debian/ with the new upstream source. If you want to link to the<br>
upstream-git history nevertheless look at the --upstream-vcs-tag option.<br>
<br>
I'm cc'ing the gbp list since there might be others with better ideas or<br>
similar use cases.<br>
<br>
Cheers,<br>
-- Guido<br>
<br>
> But first the clean is not enough according whatever the source content<br>
> is, while the /debian directory has to be kept as it is (note: this is the<br>
> case without options -rf to rm).<br>
> And second the pull does not finally provides the identical source content<br>
> to the origin remote, some files are still missing.<br>
> Then Step 3 would be as usual and it should be ok (update debian/watch,<br>
> debian/rules, ...).<br>
> I hope I am clear about what I would like to have as a revive process (or<br>
> a schema of) so that it may be applied to any other package in a similar<br>
> state (if any!).<br>
> Many thanks,<br>
> Patrice<br>
> <br>
> References<br>
> <br>
> Visible links<br>
> 1. <a href="https://lists.debian.org/debian-user/2018/12/msg00132.html" rel="noreferrer" target="_blank">https://lists.debian.org/debian-user/2018/12/msg00132.html</a><br>
> 2. <a href="http://salsa.debian.org/" rel="noreferrer" target="_blank">http://salsa.debian.org/</a><br>
> 3. <a href="https://github.com/leesavide/abcm2ps.git" rel="noreferrer" target="_blank">https://github.com/leesavide/abcm2ps.git</a><br>
</blockquote></div>