9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Git client
@ 2019-04-21 11:05 Kyohei Kadota
  2019-04-22 12:09 ` Dave MacFarlane
  2020-08-31 18:27 ` Skip Tavakkolian
  0 siblings, 2 replies; 14+ messages in thread
From: Kyohei Kadota @ 2019-04-21 11:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi, 9fans.

I ported official Git client to 9legacy. It's very early version yet,
but it can do basic commands such as fetch, pull, log, add, and commit
-m.

Probably there are many bugs. Some of them might be results from a
issue of 8c that don't initialize rest fields of struct and union with
zero if field names are specified.

x86 binaries are available here:
https://lufia.org/git-386.tgz

Source codes:
- https://github.com/0intro/plan9-contrib/pull/6
- https://github.com/0intro/plan9-contrib/pull/7
- https://github.com/madler/zlib/pull/398
- https://github.com/libressl-portable/portable/pull/510
- https://github.com/libexpat/libexpat/pull/242
- https://github.com/curl/curl/pull/3701
- https://github.com/lufia/git

- kadota



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

* Re: [9fans] Git client
  2019-04-21 11:05 [9fans] Git client Kyohei Kadota
@ 2019-04-22 12:09 ` Dave MacFarlane
  2019-04-22 12:44   ` hiro
  2019-04-22 12:58   ` Kyohei Kadota
  2020-08-31 18:27 ` Skip Tavakkolian
  1 sibling, 2 replies; 14+ messages in thread
From: Dave MacFarlane @ 2019-04-22 12:09 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

Nice work. (Note to self: avoid libexpat)

Can you run the official git tests in the "t" subdirectory of the git repo,
or do they all depend on some of the ancillary git commands that aren't
built? If so, I'm curious how many of the tests are passing.

On Sun, Apr 21, 2019, 07:07 Kyohei Kadota, <lufia@lufia.org> wrote:

> Hi, 9fans.
>
> I ported official Git client to 9legacy. It's very early version yet,
> but it can do basic commands such as fetch, pull, log, add, and commit
> -m.
>
> Probably there are many bugs. Some of them might be results from a
> issue of 8c that don't initialize rest fields of struct and union with
> zero if field names are specified.
>
> x86 binaries are available here:
> https://lufia.org/git-386.tgz
>
> Source codes:
> - https://github.com/0intro/plan9-contrib/pull/6
> - https://github.com/0intro/plan9-contrib/pull/7
> - https://github.com/madler/zlib/pull/398
> - https://github.com/libressl-portable/portable/pull/510
> - https://github.com/libexpat/libexpat/pull/242
> - https://github.com/curl/curl/pull/3701
> - https://github.com/lufia/git
>
> - kadota
>
>

[-- Attachment #2: Type: text/html, Size: 2334 bytes --]

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

* Re: [9fans] Git client
  2019-04-22 12:09 ` Dave MacFarlane
@ 2019-04-22 12:44   ` hiro
  2019-04-22 13:49     ` Kyohei Kadota
  2019-04-22 12:58   ` Kyohei Kadota
  1 sibling, 1 reply; 14+ messages in thread
From: hiro @ 2019-04-22 12:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

respect for how you defended that pull request with libexpat people. i
had to laugh.

did you consider replacing libcurl with a webfs wrapper? you might be
interested in seeing how hg+python is integrated into 9front without
even needing openssl. it's surprising how neat it all fits now (though
it must have been quite some work).



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

* Re: [9fans] Git client
  2019-04-22 12:09 ` Dave MacFarlane
  2019-04-22 12:44   ` hiro
@ 2019-04-22 12:58   ` Kyohei Kadota
  2019-04-22 13:34     ` Dave MacFarlane
  1 sibling, 1 reply; 14+ messages in thread
From: Kyohei Kadota @ 2019-04-22 12:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I don't run tests yet because tests are written in bash with
traditional Unix tools.
Especially my Plan 9 box hasn't installed Perl.

2019年4月22日(月) 21:10 Dave MacFarlane <driusan@gmail.com>:
>
> Nice work. (Note to self: avoid libexpat)
>
> Can you run the official git tests in the "t" subdirectory of the git repo, or do they all depend on some of the ancillary git commands that aren't built? If so, I'm curious how many of the tests are passing.
>
> On Sun, Apr 21, 2019, 07:07 Kyohei Kadota, <lufia@lufia.org> wrote:
>>
>> Hi, 9fans.
>>
>> I ported official Git client to 9legacy. It's very early version yet,
>> but it can do basic commands such as fetch, pull, log, add, and commit
>> -m.
>>
>> Probably there are many bugs. Some of them might be results from a
>> issue of 8c that don't initialize rest fields of struct and union with
>> zero if field names are specified.
>>
>> x86 binaries are available here:
>> https://lufia.org/git-386.tgz
>>
>> Source codes:
>> - https://github.com/0intro/plan9-contrib/pull/6
>> - https://github.com/0intro/plan9-contrib/pull/7
>> - https://github.com/madler/zlib/pull/398
>> - https://github.com/libressl-portable/portable/pull/510
>> - https://github.com/libexpat/libexpat/pull/242
>> - https://github.com/curl/curl/pull/3701
>> - https://github.com/lufia/git
>>
>> - kadota
>>



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

* Re: [9fans] Git client
  2019-04-22 12:58   ` Kyohei Kadota
@ 2019-04-22 13:34     ` Dave MacFarlane
  0 siblings, 0 replies; 14+ messages in thread
From: Dave MacFarlane @ 2019-04-22 13:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

I could be mistaken, but I think they're posix shell, not bash, so you
might be able to just bind ape over /bin and run them.

On Mon, Apr 22, 2019, 08:59 Kyohei Kadota, <lufia@lufia.org> wrote:

> I don't run tests yet because tests are written in bash with
> traditional Unix tools.
> Especially my Plan 9 box hasn't installed Perl.
>
> 2019年4月22日(月) 21:10 Dave MacFarlane <driusan@gmail.com>:
> >
> > Nice work. (Note to self: avoid libexpat)
> >
> > Can you run the official git tests in the "t" subdirectory of the git
> repo, or do they all depend on some of the ancillary git commands that
> aren't built? If so, I'm curious how many of the tests are passing.
> >
> > On Sun, Apr 21, 2019, 07:07 Kyohei Kadota, <lufia@lufia.org> wrote:
> >>
> >> Hi, 9fans.
> >>
> >> I ported official Git client to 9legacy. It's very early version yet,
> >> but it can do basic commands such as fetch, pull, log, add, and commit
> >> -m.
> >>
> >> Probably there are many bugs. Some of them might be results from a
> >> issue of 8c that don't initialize rest fields of struct and union with
> >> zero if field names are specified.
> >>
> >> x86 binaries are available here:
> >> https://lufia.org/git-386.tgz
> >>
> >> Source codes:
> >> - https://github.com/0intro/plan9-contrib/pull/6
> >> - https://github.com/0intro/plan9-contrib/pull/7
> >> - https://github.com/madler/zlib/pull/398
> >> - https://github.com/libressl-portable/portable/pull/510
> >> - https://github.com/libexpat/libexpat/pull/242
> >> - https://github.com/curl/curl/pull/3701
> >> - https://github.com/lufia/git
> >>
> >> - kadota
> >>
>
>

[-- Attachment #2: Type: text/html, Size: 3148 bytes --]

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

* Re: [9fans] Git client
  2019-04-22 12:44   ` hiro
@ 2019-04-22 13:49     ` Kyohei Kadota
  2019-04-22 14:18       ` hiro
  0 siblings, 1 reply; 14+ messages in thread
From: Kyohei Kadota @ 2019-04-22 13:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I have thought it.

However, first of all, I set goal to just run Git on Plan 9 even
though it is clumsy.
I did need Git as soon as possible because almost third party packages
for Go, or
interesting projects for me are hosted on GitHub.
I will think about refactoring later.

2019年4月22日(月) 21:45 hiro <23hiro@gmail.com>:
>
> respect for how you defended that pull request with libexpat people. i
> had to laugh.
>
> did you consider replacing libcurl with a webfs wrapper? you might be
> interested in seeing how hg+python is integrated into 9front without
> even needing openssl. it's surprising how neat it all fits now (though
> it must have been quite some work).
>



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

* Re: [9fans] Git client
  2019-04-22 13:49     ` Kyohei Kadota
@ 2019-04-22 14:18       ` hiro
  0 siblings, 0 replies; 14+ messages in thread
From: hiro @ 2019-04-22 14:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

i'm glad you agree. cool to see somebody with clear goal here and very
straightforward process.



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

* Re: [9fans] Git client
  2019-04-21 11:05 [9fans] Git client Kyohei Kadota
  2019-04-22 12:09 ` Dave MacFarlane
@ 2020-08-31 18:27 ` Skip Tavakkolian
  2020-09-01  4:51   ` ori
  2020-09-01  9:20   ` Kyohei Kadota
  1 sibling, 2 replies; 14+ messages in thread
From: Skip Tavakkolian @ 2020-08-31 18:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

Are there any build instructions?  ape/make can't seem to handle the
Makefile (sources from git repo)

Thanks,
-Skip

On Sun, Apr 21, 2019 at 4:06 AM Kyohei Kadota <lufia@lufia.org> wrote:

> Hi, 9fans.
>
> I ported official Git client to 9legacy. It's very early version yet,
> but it can do basic commands such as fetch, pull, log, add, and commit
> -m.
>
> Probably there are many bugs. Some of them might be results from a
> issue of 8c that don't initialize rest fields of struct and union with
> zero if field names are specified.
>
> x86 binaries are available here:
> https://lufia.org/git-386.tgz
>
> Source codes:
> - https://github.com/0intro/plan9-contrib/pull/6
> - https://github.com/0intro/plan9-contrib/pull/7
> - https://github.com/madler/zlib/pull/398
> - https://github.com/libressl-portable/portable/pull/510
> - https://github.com/libexpat/libexpat/pull/242
> - https://github.com/curl/curl/pull/3701
> - https://github.com/lufia/git
>
> - kadota
>
>

[-- Attachment #2: Type: text/html, Size: 2079 bytes --]

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

* Re: [9fans] Git client
  2020-08-31 18:27 ` Skip Tavakkolian
@ 2020-09-01  4:51   ` ori
  2020-09-01  9:20   ` Kyohei Kadota
  1 sibling, 0 replies; 14+ messages in thread
From: ori @ 2020-09-01  4:51 UTC (permalink / raw)
  To: skip.tavakkolian, 9fans

> Are there any build instructions?  ape/make can't seem to handle the
> Makefile (sources from git repo)


Looking at the changes in git, it seems like
lufia expected it to be built with gmake. I'm
not sure which port lufia used, but there's one
sitting in mveety's ports repo, here:

https://code.9front.org/hg/ports/file/82187053e44b/dev-utils/gmake

(you need both the patches and the tarball; I think that
the ports repo is likely to work on 9legacy, but I don't
know if anyone's tested it.)

When I tried building it, I also realized I needed perl
for the libressl build. That's been updated recently as
well (https://github.com/Perl/perl5/pull/17891), but you
may need some cpp changes that I made to get it to work.

The version of cpp shipped with 9legacy, I think, gets
operator associativity wrong: it computes '1 - 1 + 2'
as '1 - (1 + 2)' instead of '(1 - 1) + 2', which breaks
some '#if' statements, if I recall correctly.


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

* Re: [9fans] Git client
  2020-08-31 18:27 ` Skip Tavakkolian
  2020-09-01  4:51   ` ori
@ 2020-09-01  9:20   ` Kyohei Kadota
  1 sibling, 0 replies; 14+ messages in thread
From: Kyohei Kadota @ 2020-09-01  9:20 UTC (permalink / raw)
  To: 9fans

I'm currently using /n/sources/contrib/andrey/make-3.81.tgz

My latest instructions are:

(download fix-cc branch of github.com/lufia/git)
% cd git
% ./remove-bitfields.sh
% SHELL_PATH=/bin/ape/psh
% gmake 'prefix=' 'gitexecdir=bin/git-core' 'sysconfdir=sys/lib/git'
'template_dir=sys/lib/git/templates' all

The gist, https://gist.github.com/lufia/54f6d8635e55ad642773089e1f4a6483,
is described the instructions overall for LibreSSL, Git, etc but it
contains a few Japanese text.

2020年9月1日(火) 3:29 Skip Tavakkolian <skip.tavakkolian@gmail.com>:
>
> Are there any build instructions?  ape/make can't seem to handle the Makefile (sources from git repo)
>
> Thanks,
> -Skip
>
> On Sun, Apr 21, 2019 at 4:06 AM Kyohei Kadota <lufia@lufia.org> wrote:
>>
>> Hi, 9fans.
>>
>> I ported official Git client to 9legacy. It's very early version yet,
>> but it can do basic commands such as fetch, pull, log, add, and commit
>> -m.
>>
>> Probably there are many bugs. Some of them might be results from a
>> issue of 8c that don't initialize rest fields of struct and union with
>> zero if field names are specified.
>>
>> x86 binaries are available here:
>> https://lufia.org/git-386.tgz
>>
>> Source codes:
>> - https://github.com/0intro/plan9-contrib/pull/6
>> - https://github.com/0intro/plan9-contrib/pull/7
>> - https://github.com/madler/zlib/pull/398
>> - https://github.com/libressl-portable/portable/pull/510
>> - https://github.com/libexpat/libexpat/pull/242
>> - https://github.com/curl/curl/pull/3701
>> - https://github.com/lufia/git
>>
>> - kadota
>>
> 9fans / 9fans / see discussions + participants + delivery options Permalink

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

* Re: [9fans] Git client
  2019-04-22 10:19   ` Lucio De Re
@ 2019-04-22 12:49     ` Jens Staal
  0 siblings, 0 replies; 14+ messages in thread
From: Jens Staal @ 2019-04-22 12:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

Den mån 22 apr. 2019 12:54Lucio De Re <lucio.dere@gmail.com> skrev:

> On 4/22/19, Jens Staal <staal1978@gmail.com> wrote:
> >
> > speaking of backporting ape stuff : has anyone looked into Harvey's
> "apex"
> > [1] for 9{atom,front,legacy}?
> >
> 9^(atom front legacy)
>
> I did not note anything that would put apex above any of those you
> mention, do you have something in mind other than providing a common
> base?
>
> Lucio.
>

I just know that it has been quite actively developed especially in the
beginning of Harvey. I have not kept up though so I can not say for sure
exactly what it could provide in addition to what is available in the 9*
distributions.

>
>

[-- Attachment #2: Type: text/html, Size: 1307 bytes --]

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

* Re: [9fans] Git client
  2019-04-22  4:39 ` Jens Staal
@ 2019-04-22 10:19   ` Lucio De Re
  2019-04-22 12:49     ` Jens Staal
  0 siblings, 1 reply; 14+ messages in thread
From: Lucio De Re @ 2019-04-22 10:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 4/22/19, Jens Staal <staal1978@gmail.com> wrote:
>
> speaking of backporting ape stuff : has anyone looked into Harvey's "apex"
> [1] for 9{atom,front,legacy}?
>
9^(atom front legacy)

I did not note anything that would put apex above any of those you
mention, do you have something in mind other than providing a common
base?

Lucio.



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

* Re: [9fans] Git client
  2019-04-22  2:40 ori
@ 2019-04-22  4:39 ` Jens Staal
  2019-04-22 10:19   ` Lucio De Re
  0 siblings, 1 reply; 14+ messages in thread
From: Jens Staal @ 2019-04-22  4:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

>
> Nice.  It looks like testing it out on 9front will involve a bit of
> backporting of ape stuff, but I may take a look
>

speaking of backporting ape stuff : has anyone looked into Harvey's "apex"
[1] for 9{atom,front,legacy}?


[1] https://github.com/Harvey-OS/apex


>
>

[-- Attachment #2: Type: text/html, Size: 880 bytes --]

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

* Re: [9fans] Git client
@ 2019-04-22  2:40 ori
  2019-04-22  4:39 ` Jens Staal
  0 siblings, 1 reply; 14+ messages in thread
From: ori @ 2019-04-22  2:40 UTC (permalink / raw)
  To: lufia, 9fans

> Hi, 9fans.
>
> I ported official Git client to 9legacy. It's very early version yet,
> but it can do basic commands such as fetch, pull, log, add, and commit
> -m.
>
> Probably there are many bugs. Some of them might be results from a
> issue of 8c that don't initialize rest fields of struct and union with
> zero if field names are specified.
>
> x86 binaries are available here:
> https://lufia.org/git-386.tgz
>
> Source codes:
> - https://github.com/0intro/plan9-contrib/pull/6
> - https://github.com/0intro/plan9-contrib/pull/7
> - https://github.com/madler/zlib/pull/398
> - https://github.com/libressl-portable/portable/pull/510
> - https://github.com/libexpat/libexpat/pull/242
> - https://github.com/curl/curl/pull/3701
> - https://github.com/lufia/git
>
> - kadota

Nice.  It looks like testing it out on 9front will involve a bit of
backporting of ape stuff, but I may take a look.

As a side note, taking a look turned into a good test case for git/fs,
and got me to solve two issues -- git/fs now uses far less memory to
index large repositories, and it will no longer barf when a repository
has submodules.


Good support for submodules will still need a bit of work.




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

end of thread, other threads:[~2020-09-01  9:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-21 11:05 [9fans] Git client Kyohei Kadota
2019-04-22 12:09 ` Dave MacFarlane
2019-04-22 12:44   ` hiro
2019-04-22 13:49     ` Kyohei Kadota
2019-04-22 14:18       ` hiro
2019-04-22 12:58   ` Kyohei Kadota
2019-04-22 13:34     ` Dave MacFarlane
2020-08-31 18:27 ` Skip Tavakkolian
2020-09-01  4:51   ` ori
2020-09-01  9:20   ` Kyohei Kadota
2019-04-22  2:40 ori
2019-04-22  4:39 ` Jens Staal
2019-04-22 10:19   ` Lucio De Re
2019-04-22 12:49     ` Jens Staal

9fans - fans of the OS Plan 9 from Bell Labs

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9fans

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9fans 9fans/ http://inbox.vuxu.org/9fans \
		9fans@9fans.net
	public-inbox-index 9fans

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9fans


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git