<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 27, 2016 at 9:06 PM Markus Koschany <<a href="mailto:apo@debian.org">apo@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 27.06.2016 17:01, Chirayu Desai wrote:<br>
><br>
><br>
> On Mon, Jun 27, 2016 at 5:06 PM Hans-Christoph Steiner <<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a><br>
> <mailto:<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>>> wrote:<br>
><br>
><br>
> Checked out the new repo, two things:<br>
><br>
> * when working on a package, you should only modify things in the<br>
> debian/ folder, the upstream sources need to be modified via patches.<br>
> There is a 'copyright' file in the root of the project<br>
><br>
> * .gitignore should be moved to debian/.gitignore and then "debian/"<br>
> stripped from the paths in that file<br>
><br>
> I have had this question for a while, and was also thinking of adding<br>
> gitignores to all our repos.<br>
> Is it not preferable to add it to the root of the repo?<br>
> Some packages leave artifacts there, and there's some generic debian<br>
> build related things too.<br>
> So would it be okay if I added a .gitignore to<br>
> android-platform-frameworks-base, with it's contents being:<br>
> aapt<br>
> aidl<br>
> libaapt.so<br>
><br>
> etc.<br>
><br>
> If not, then what should we do to ignore these files? Move them to<br>
> another directory perhaps?<br>
<br>
You don't usually need a .gitignore file for the Debian packaging. I<br>
suggest to build the "final" package with cowbuilder or sbuild in a<br>
clean chroot. A great tool for building packages and working with Git is<br>
git-buildpackage.<br></blockquote><div>Those look nice, I knew about schroot, but have been slacking on using those even after setting them up.<br>I'll use them from now, thanks! </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If you use debuild for regular package builds, I suggest to create a<br>
macro/shell alias that executes<br>
<br>
git checkout . --<br>
git clean -fd<br>
<br>
after the build. I would also check Debian's clean target whether it<br>
really removes newly created files when you try to build a second time<br>
in a row.<br></blockquote><div>Oh yes, at least one of these was due to me, fixed by:</div><div><a href="http://anonscm.debian.org/cgit/android-tools/android-platform-frameworks-base.git/commit/?id=e9bbe9a9d6fd672cf38bf9e9799c7d5d67c1bc2f">http://anonscm.debian.org/cgit/android-tools/android-platform-frameworks-base.git/commit/?id=e9bbe9a9d6fd672cf38bf9e9799c7d5d67c1bc2f</a><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Android-tools-devel mailing list<br>
<a href="mailto:Android-tools-devel@lists.alioth.debian.org" target="_blank">Android-tools-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/android-tools-devel</a><br>
</blockquote></div></div>