git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [GSoC] My Git Dev Blog
@ 2021-05-22 16:42 Atharva Raykar
  2021-05-22 19:39 ` Philippe Blain
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Atharva Raykar @ 2021-05-22 16:42 UTC (permalink / raw)
  To: git; +Cc: Christian Couder, Shourya Shukla

Hi all,

As is tradition, I have started my weekly GSoC blog :)

Here is week 1: https://atharvaraykar.me/gitnotes/week1

I shall be sharing my progress, thoughts, experiences and any
information that might help future contributors in my blog.

After my GSoC period, I hope to convert it into a blog that
will help pull in and guide new contributors to Git development.

Any kind of feedback will be appreciated!

You can find the listing of all of the posts at
https://atharvaraykar.me/gitnotes/

I will update this thread every week when I make a new post.

--
Atharva Raykar

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-22 16:42 [GSoC] My Git Dev Blog Atharva Raykar
@ 2021-05-22 19:39 ` Philippe Blain
  2021-05-23 11:50   ` Atharva Raykar
  2021-05-23  8:10 ` Bagas Sanjaya
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Philippe Blain @ 2021-05-22 19:39 UTC (permalink / raw)
  To: Atharva Raykar, git; +Cc: Christian Couder, Shourya Shukla

Hi Atharva,

Le 2021-05-22 à 12:42, Atharva Raykar a écrit :
> Hi all,
> 
> As is tradition, I have started my weekly GSoC blog :)
> 
> Here is week 1: https://atharvaraykar.me/gitnotes/week1
>

I enjoyed reading your first post. About gettext, note that
if you do not want to hardcode a specific version of gettext
in your LDFLAGS/CFLAGS, you could use '/usr/local/opt/gettext/{include,lib}',
or rather, the equivalent for M1 Macs, which I guess would be
'/opt/homebrew/opt/gettext' ? Can't test as I'm on Intel...

On a second note, for your information
the 'configure' build approach is not as well maintained as
the Makefile-only approach, so it's good to make it work with the plain Makefile.

Cheers and good luck for your internship,

Philippe.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-22 16:42 [GSoC] My Git Dev Blog Atharva Raykar
  2021-05-22 19:39 ` Philippe Blain
@ 2021-05-23  8:10 ` Bagas Sanjaya
  2021-05-23 11:50   ` Atharva Raykar
  2021-05-30 16:41   ` Felipe Contreras
  2021-05-24 20:18 ` Christian Couder
  2021-05-30  7:07 ` Atharva Raykar
  3 siblings, 2 replies; 13+ messages in thread
From: Bagas Sanjaya @ 2021-05-23  8:10 UTC (permalink / raw)
  To: Atharva Raykar, git; +Cc: Christian Couder, Shourya Shukla

Hi Atharva,

On 22/05/21 23.42, Atharva Raykar wrote:
> Hi all,
> 
> As is tradition, I have started my weekly GSoC blog :)
> 
> Here is week 1: https://atharvaraykar.me/gitnotes/week1
> 
> I shall be sharing my progress, thoughts, experiences and any
> information that might help future contributors in my blog.
> 
> After my GSoC period, I hope to convert it into a blog that
> will help pull in and guide new contributors to Git development.
> 
> Any kind of feedback will be appreciated!
> 

You said on your blog that you switched your development environment
from Linux (what the distro you used previously?) to macOS. Why did
you make the switch?

Next, you mentioned that you set up emacs config for Git developers
(ones that contribute code to git.git). Since I use (r)vim instead
of emacs as my editor, what are similar configs for vim?

And finally, you said that you had to deal with "header not found"
errors. I asked these questions:

   1. You mentioned that in order to link against gettext on non-standard
      path, you did:
> ./configure "LDFLAGS=$LDFLAGS -L/opt/homebrew/Cellar/gettext/0.21/lib" \
>      "CFLAGS=-I/opt/homebrew/Cellar/gettext/0.21/include"
      Why did you use full path to gettext? I suspect that you can instead
      use `LDFLAGS= $LDFLAGS -L/opt/homebrew/lib \
      CFLAGS=-I/opt/homebrew/include`, because when you install a library
      using homebrew, it will symlink the library location from homebrew
      standard hierarchy (/opt/homebrew/{lib,include}) to actual location
      (/opt/homebrew/<User>/<package>/<version>/{lib,include}).
   2. Can these procedure above for linking Git against libraries at
      non-standard locations (such as /opt) be applicable also to Linux
      systems? Try to adapt that procedure on your Linux system (if
      available), with custom-compiled newer version of any of Git
      dependencies (such as gettext).

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-22 19:39 ` Philippe Blain
@ 2021-05-23 11:50   ` Atharva Raykar
  0 siblings, 0 replies; 13+ messages in thread
From: Atharva Raykar @ 2021-05-23 11:50 UTC (permalink / raw)
  To: Philippe Blain; +Cc: git, Christian Couder, Shourya Shukla

On 23-May-2021, at 01:09, Philippe Blain <levraiphilippeblain@gmail.com> wrote:
> 
> Hi Atharva,
> 
> Le 2021-05-22 à 12:42, Atharva Raykar a écrit :
>> Hi all,
>> As is tradition, I have started my weekly GSoC blog :)
>> Here is week 1: https://atharvaraykar.me/gitnotes/week1
>> 
> 
> I enjoyed reading your first post. About gettext, note that
> if you do not want to hardcode a specific version of gettext
> in your LDFLAGS/CFLAGS, you could use '/usr/local/opt/gettext/{include,lib}',
> or rather, the equivalent for M1 Macs, which I guess would be
> '/opt/homebrew/opt/gettext' ? Can't test as I'm on Intel...

Thanks for pointing this out. This worked as well on my M1 Mac.
As Bagas suggested in this thread, using '/opt/homebrew/{include,lib}'
also works, as homebrew symlinks the actual location to that directory.

I'll update my blog entry.

> On a second note, for your information
> the 'configure' build approach is not as well maintained as
> the Makefile-only approach, so it's good to make it work with the plain Makefile.

Noted. I realised the real blooper for me that snowballed into my janky
fix was looking at resources on building Git in all sorts of places
online, while not noticing the fact that there was a pretty clear
INSTALL file in the source all along (:

> Cheers and good luck for your internship,

Thanks!

> Philippe.
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-23  8:10 ` Bagas Sanjaya
@ 2021-05-23 11:50   ` Atharva Raykar
  2021-05-30 16:41   ` Felipe Contreras
  1 sibling, 0 replies; 13+ messages in thread
From: Atharva Raykar @ 2021-05-23 11:50 UTC (permalink / raw)
  To: Bagas Sanjaya; +Cc: git, Christian Couder, Shourya Shukla

On 23-May-2021, at 13:40, Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> 
> Hi Atharva,
> 
> On 22/05/21 23.42, Atharva Raykar wrote:
>> Hi all,
>> As is tradition, I have started my weekly GSoC blog :)
>> Here is week 1: https://atharvaraykar.me/gitnotes/week1
>> I shall be sharing my progress, thoughts, experiences and any
>> information that might help future contributors in my blog.
>> After my GSoC period, I hope to convert it into a blog that
>> will help pull in and guide new contributors to Git development.
>> Any kind of feedback will be appreciated!
> 
> You said on your blog that you switched your development environment
> from Linux (what the distro you used previously?) to macOS. Why did
> you make the switch?

No special reason for this. My old Linux machine was due for
an upgrade, and a new M1 Macbook has since taken its place.

> Next, you mentioned that you set up emacs config for Git developers
> (ones that contribute code to git.git). Since I use (r)vim instead
> of emacs as my editor, what are similar configs for vim?

I don't really use Vim that much and I am not that familiar
with how to configure it. Sorry, I don't think I can be of
much help here. I also don't want to share tips on my blog
that I won't be making use of.

> And finally, you said that you had to deal with "header not found"
> errors. I asked these questions:
> 
>  1. You mentioned that in order to link against gettext on non-standard
>     path, you did:
>> ./configure "LDFLAGS=$LDFLAGS -L/opt/homebrew/Cellar/gettext/0.21/lib" \
>>     "CFLAGS=-I/opt/homebrew/Cellar/gettext/0.21/include"
>     Why did you use full path to gettext? I suspect that you can instead
>     use `LDFLAGS= $LDFLAGS -L/opt/homebrew/lib \
>     CFLAGS=-I/opt/homebrew/include`, because when you install a library
>     using homebrew, it will symlink the library location from homebrew
>     standard hierarchy (/opt/homebrew/{lib,include}) to actual location
>     (/opt/homebrew/<User>/<package>/<version>/{lib,include}).

Thanks a lot! This was helpful and did work out for me. Since
I am new to macOS (and homebrew), I did not know about this
hierarchy. I finally decided I would update my post to use
this along with a Makefile-only approach recommended by Philippe.

>  2. Can these procedure above for linking Git against libraries at
>     non-standard locations (such as /opt) be applicable also to Linux
>     systems? Try to adapt that procedure on your Linux system (if
>     available), with custom-compiled newer version of any of Git
>     dependencies (such as gettext).

I'm not too sure, and unfortunately I don't have my old Linux
system to verify this.

> Thanks.
> 
> -- 
> An old man doll... just what I always wanted! - Clara


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-22 16:42 [GSoC] My Git Dev Blog Atharva Raykar
  2021-05-22 19:39 ` Philippe Blain
  2021-05-23  8:10 ` Bagas Sanjaya
@ 2021-05-24 20:18 ` Christian Couder
  2021-05-30  7:07 ` Atharva Raykar
  3 siblings, 0 replies; 13+ messages in thread
From: Christian Couder @ 2021-05-24 20:18 UTC (permalink / raw)
  To: Atharva Raykar; +Cc: git, Shourya Shukla

Hi Atharva,

On Sat, May 22, 2021 at 6:42 PM Atharva Raykar <raykar.ath@gmail.com> wrote:
>
> Hi all,
>
> As is tradition, I have started my weekly GSoC blog :)
>
> Here is week 1: https://atharvaraykar.me/gitnotes/week1
>
> I shall be sharing my progress, thoughts, experiences and any
> information that might help future contributors in my blog.
>
> After my GSoC period, I hope to convert it into a blog that
> will help pull in and guide new contributors to Git development.
>
> Any kind of feedback will be appreciated!

Great!

I found only a missing "how":

s/as I have not yet fully understood config handling generally
works/as I have not yet fully understood how config handling generally
works/

> You can find the listing of all of the posts at
> https://atharvaraykar.me/gitnotes/
>
> I will update this thread every week when I make a new post.

Thanks,
Christian.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-22 16:42 [GSoC] My Git Dev Blog Atharva Raykar
                   ` (2 preceding siblings ...)
  2021-05-24 20:18 ` Christian Couder
@ 2021-05-30  7:07 ` Atharva Raykar
  2021-05-30 17:30   ` Kaartic Sivaraam
  2021-05-31  6:55   ` Bagas Sanjaya
  3 siblings, 2 replies; 13+ messages in thread
From: Atharva Raykar @ 2021-05-30  7:07 UTC (permalink / raw)
  To: git; +Cc: Christian Couder, Shourya Shukla

Hi,

On 22-May-2021, at 22:12, Atharva Raykar <raykar.ath@gmail.com> wrote:
> 
> [...]
> I will update this thread every week when I make a new post.

A new blog post is out at: http://atharvaraykar.me/gitnotes/week2

Summary of what's in it:

* Deliberate and not-so-deliberate things left behind by developers
  -- and why they are valuable (especially for my first patch)

* My work as putting cherries on top of other people's cakes

* A debugging blooper -- showing my mistakes in the hopes that
  there is something to learn from it

The usual things apply: feedback and discussion is welcome.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-23  8:10 ` Bagas Sanjaya
  2021-05-23 11:50   ` Atharva Raykar
@ 2021-05-30 16:41   ` Felipe Contreras
  1 sibling, 0 replies; 13+ messages in thread
From: Felipe Contreras @ 2021-05-30 16:41 UTC (permalink / raw)
  To: Bagas Sanjaya, Atharva Raykar, git; +Cc: Christian Couder, Shourya Shukla

Bagas Sanjaya wrote:
> Since I use (r)vim instead of emacs as my editor, what are similar
> configs for vim?

I'm not sure if you are suggesting he includes those in his post, or
asking in general, but:

https://lore.kernel.org/git/20201209065537.48802-2-felipe.contreras@gmail.com/

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-30  7:07 ` Atharva Raykar
@ 2021-05-30 17:30   ` Kaartic Sivaraam
  2021-05-31  5:41     ` Atharva Raykar
  2021-05-31  6:55   ` Bagas Sanjaya
  1 sibling, 1 reply; 13+ messages in thread
From: Kaartic Sivaraam @ 2021-05-30 17:30 UTC (permalink / raw)
  To: Atharva Raykar, git; +Cc: Christian Couder, Shourya Shukla

Hi Atharva,

On 30/05/21 12:37 pm, Atharva Raykar wrote:
> Hi,
> 
> On 22-May-2021, at 22:12, Atharva Raykar <raykar.ath@gmail.com> wrote:
>>
>> [...]
>> I will update this thread every week when I make a new post.
> 
> A new blog post is out at: http://atharvaraykar.me/gitnotes/week2
> 

Nice post!

Just one suggestion. While reading, I felt that it would've been
nice if it had a few links. For instance,

> The patch that I ended up sending this week is heavily based on
> the work of two generations of GSoC programmers who struggled
 > over this problem.

The text above could've had a link somewhere to the patch you sent
to the mailing list:

https://public-inbox.org/git/20210528081224.69163-1-raykar.ath@gmail.com/

> I studied Shourya’s stalled patch, parts of which had already
> been reviewed.

... and the above text could've had a link to Shourya's patch
series you mention:

https://public-inbox.org/git/20201214231939.644175-1-periperidip@gmail.com/

> In the spirit of Git being “the stupid content tracker”, I have
> decided to actually live up to that phrase and keep a track of
> my stupid moments in this section of my weekly reports, in the
> hopes that there is something here to learn from.

Good initiative. It indeed might turn out to be very helpful.
I won't surprised if it even turns out to help you, sometime in the
future ;-)

> For whatever reason, I thought of the most convoluted explanations,
> not realising that they actually don’t make any sense. Thoughts like:
> “Is the memory buffer not having tab separated tokens? Are they
> separated by some special whitespace character??”

I could totally feel you here. Things would get better over time.

Hope this helps,
Sivaraam

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-30 17:30   ` Kaartic Sivaraam
@ 2021-05-31  5:41     ` Atharva Raykar
  0 siblings, 0 replies; 13+ messages in thread
From: Atharva Raykar @ 2021-05-31  5:41 UTC (permalink / raw)
  To: Kaartic Sivaraam; +Cc: git

On 30-May-2021, at 23:00, Kaartic Sivaraam <kaartic.sivaraam@gmail.com> wrote:
> 
> Hi Atharva,
> 
> [...]
> 
> Just one suggestion. While reading, I felt that it would've been
> nice if it had a few links. For instance,
> 
>> The patch that I ended up sending this week is heavily based on
>> the work of two generations of GSoC programmers who struggled
> > over this problem.
> 
> The text above could've had a link somewhere to the patch you sent
> to the mailing list:
> 
> https://public-inbox.org/git/20210528081224.69163-1-raykar.ath@gmail.com/
> 
>> I studied Shourya’s stalled patch, parts of which had already
>> been reviewed.
> 
> ... and the above text could've had a link to Shourya's patch
> series you mention:
> 
> https://public-inbox.org/git/20201214231939.644175-1-periperidip@gmail.com/

Sure. Thanks for saving me some of the effort to get the links :D



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-30  7:07 ` Atharva Raykar
  2021-05-30 17:30   ` Kaartic Sivaraam
@ 2021-05-31  6:55   ` Bagas Sanjaya
  2021-05-31  7:43     ` Atharva Raykar
  1 sibling, 1 reply; 13+ messages in thread
From: Bagas Sanjaya @ 2021-05-31  6:55 UTC (permalink / raw)
  To: Atharva Raykar, git; +Cc: Christian Couder, Shourya Shukla

Hi Atharva,

On 30/05/21 14.07, Atharva Raykar wrote:
> Hi,
> 
> On 22-May-2021, at 22:12, Atharva Raykar <raykar.ath@gmail.com> wrote:
>>
>> [...]
>> I will update this thread every week when I make a new post.
> 
> A new blog post is out at: http://atharvaraykar.me/gitnotes/week2
> 
> Summary of what's in it:
> 
> * Deliberate and not-so-deliberate things left behind by developers
>    -- and why they are valuable (especially for my first patch)
> 
> * My work as putting cherries on top of other people's cakes
> 
> * A debugging blooper -- showing my mistakes in the hopes that
>    there is something to learn from it
> 
> The usual things apply: feedback and discussion is welcome.
> 

I think it's better to post link to each blogpost as separate threads, 
because we can discuss each posts at its own merit.

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-31  6:55   ` Bagas Sanjaya
@ 2021-05-31  7:43     ` Atharva Raykar
  2021-05-31  8:32       ` Christian Couder
  0 siblings, 1 reply; 13+ messages in thread
From: Atharva Raykar @ 2021-05-31  7:43 UTC (permalink / raw)
  To: Bagas Sanjaya; +Cc: git, Christian Couder, Shourya Shukla

On 31-May-2021, at 12:25, Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> 
> I think it's better to post link to each blogpost as separate threads, because we can discuss each posts at its own merit.

Sure, I can do that next week onwards.

> -- 
> An old man doll... just what I always wanted! - Clara


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [GSoC] My Git Dev Blog
  2021-05-31  7:43     ` Atharva Raykar
@ 2021-05-31  8:32       ` Christian Couder
  0 siblings, 0 replies; 13+ messages in thread
From: Christian Couder @ 2021-05-31  8:32 UTC (permalink / raw)
  To: Atharva Raykar; +Cc: Bagas Sanjaya, git, Shourya Shukla

On Mon, May 31, 2021 at 9:43 AM Atharva Raykar <raykar.ath@gmail.com> wrote:
>
> On 31-May-2021, at 12:25, Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> >
> > I think it's better to post link to each blogpost as separate threads, because we can discuss each posts at its own merit.
>
> Sure, I can do that next week onwards.

Thanks! I think it could help people get interested in your blog posts too.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-05-31  8:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 16:42 [GSoC] My Git Dev Blog Atharva Raykar
2021-05-22 19:39 ` Philippe Blain
2021-05-23 11:50   ` Atharva Raykar
2021-05-23  8:10 ` Bagas Sanjaya
2021-05-23 11:50   ` Atharva Raykar
2021-05-30 16:41   ` Felipe Contreras
2021-05-24 20:18 ` Christian Couder
2021-05-30  7:07 ` Atharva Raykar
2021-05-30 17:30   ` Kaartic Sivaraam
2021-05-31  5:41     ` Atharva Raykar
2021-05-31  6:55   ` Bagas Sanjaya
2021-05-31  7:43     ` Atharva Raykar
2021-05-31  8:32       ` Christian Couder

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).