Re: [riot-devel] RIOT Package

2017-05-18 Thread Baptiste Clenet
Cool! Let's do a PR? Or is there any other problem?

Le 17 mai 2017 21:10, "Kaspar Schleiser"  a écrit :

> Hey,
>
> On 05/17/2017 07:25 PM, Baptiste Clenet wrote:
> > I see.
> > Is there another way to initialize it inside RIOT repo instead of home
> > directory?
>
> Sure, just set the "GIT_CACHE_DIR" environment variable to the desired
> directory, then run "dist/tools/git/git-cache init".
>
> Kaspar
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Baptiste Clenet
2017-05-17 11:20 GMT+02:00 Cenk Gündoğan :
> Hi Baptiste, Oleg,
>
> On 17-05-17 11:07:25, Oleg Hahm wrote:
>> Hi!
>>
>> On Wed, May 17, 2017 at 10:21:45AM +0200, Baptiste Clenet wrote:
>> > I see! Very interesting feature and I really think it should be
>> > enabled by default! What's your opinion?
>>
>> Not sure what you mean. The feature is enabled by default, the only thing you
>> need to do is to add git-cache to your $PATH.
>
> That's not necessary. RIOT's build system looks explicitly in
> `dist/tools/git` for `git-cache`. However, it is necessary to initialize
> `git-cache` once with `$RIOT/dist/tools/git/git-cache init`. This will
> create an empty bare git reposiroty in $HOME that is used to cache
> the necessary git objects.

Yes it is what I mean, `git-cache` should be initialized automatically
at the first compilation. I do think it is possible and will avoid
people to forget to initialize it.

>
> Cheers,
> Cenk
>
>>
>> Cheers,
>> Oleg
>> --
>> /* Fuck me gently with a chainsaw... */
>> linux-2.0.38/arch/sparc/kernel/ptrace.c
>> ___
>> devel mailing list
>> devel@riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>



-- 
Baptiste
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Cenk Gündoğan
Hi Baptiste, Oleg,

On 17-05-17 11:07:25, Oleg Hahm wrote:
> Hi!
> 
> On Wed, May 17, 2017 at 10:21:45AM +0200, Baptiste Clenet wrote:
> > I see! Very interesting feature and I really think it should be
> > enabled by default! What's your opinion?
> 
> Not sure what you mean. The feature is enabled by default, the only thing you
> need to do is to add git-cache to your $PATH.

That's not necessary. RIOT's build system looks explicitly in
`dist/tools/git` for `git-cache`. However, it is necessary to initialize
`git-cache` once with `$RIOT/dist/tools/git/git-cache init`. This will
create an empty bare git reposiroty in $HOME that is used to cache
the necessary git objects.

Cheers,
Cenk

> 
> Cheers,
> Oleg
> -- 
> /* Fuck me gently with a chainsaw... */
> linux-2.0.38/arch/sparc/kernel/ptrace.c
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel


signature.asc
Description: PGP signature
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Oleg Hahm
Hi!

On Wed, May 17, 2017 at 10:21:45AM +0200, Baptiste Clenet wrote:
> I see! Very interesting feature and I really think it should be
> enabled by default! What's your opinion?

Not sure what you mean. The feature is enabled by default, the only thing you
need to do is to add git-cache to your $PATH.

Cheers,
Oleg
-- 
/* Fuck me gently with a chainsaw... */
linux-2.0.38/arch/sparc/kernel/ptrace.c
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Baptiste Clenet
Thank you for your answers.

I see! Very interesting feature and I really think it should be
enabled by default! What's your opinion?

2017-05-17 10:12 GMT+02:00 Oleg Hahm :
> Hi Baptiste!
>
> On Wed, May 17, 2017 at 10:08:50AM +0200, Baptiste Clenet wrote:
>> So you mean that git-cache is already used and allow to download an
>> archive of a .git repo?
>
> Yes, but you have to "install" git-cache first (see dist/tools/git/README.md).
>
>> Could you give me an example of a package that is download as an
>> archive and store so you don't need to git clone again?
>
> Every git-based package uses git-cache, e.g. nanocoap or ccn-lite.
>
> Cheers,
> Oleg
> --
> Yo mamma is so fat that she sat on a binary tree and made it a linked list in
> constant time.
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel



-- 
Baptiste
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Oleg Hahm
Hi Baptiste!

On Wed, May 17, 2017 at 10:08:50AM +0200, Baptiste Clenet wrote:
> So you mean that git-cache is already used and allow to download an
> archive of a .git repo?

Yes, but you have to "install" git-cache first (see dist/tools/git/README.md).

> Could you give me an example of a package that is download as an
> archive and store so you don't need to git clone again?

Every git-based package uses git-cache, e.g. nanocoap or ccn-lite.

Cheers,
Oleg
-- 
Yo mamma is so fat that she sat on a binary tree and made it a linked list in
constant time.
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Baptiste Clenet
So you mean that git-cache is already used and allow to download an
archive of a .git repo?
Could you give me an example of a package that is download as an
archive and store so you don't need to git clone again?

2017-05-17 9:28 GMT+02:00 Oleg Hahm :
> Hi Baptiste,
>
> On Wed, May 17, 2017 at 08:24:50AM +0200, Baptiste Clenet wrote:
>> Concerning external package, I suggest that RIOT download and store
>> the archive in pkg folder then extract here in the right location to
>> be compiled. This is helpful when you work on a package so you don't
>> need to download it again every time after a `make clean` or when you
>> compile another example, you need to download it again.
>> What do you think?
>
> for Git-based packages you can use git-cache for exactly this purpose [1].
>
> Cheers,
> Oleg
>
> [1] https://github.com/kaspar030/git-cache
> --
> RAID joke are always redundant
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel



-- 
Baptiste
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] RIOT Package

2017-05-17 Thread Oleg Hahm
Hi Baptiste,

On Wed, May 17, 2017 at 08:24:50AM +0200, Baptiste Clenet wrote:
> Concerning external package, I suggest that RIOT download and store
> the archive in pkg folder then extract here in the right location to
> be compiled. This is helpful when you work on a package so you don't
> need to download it again every time after a `make clean` or when you
> compile another example, you need to download it again.
> What do you think?

for Git-based packages you can use git-cache for exactly this purpose [1].

Cheers,
Oleg

[1] https://github.com/kaspar030/git-cache 
-- 
RAID joke are always redundant
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel