Depot How-To Guide?

John J. Karcher devuser at alternateapproach.com
Wed Jul 3 01:36:02 CEST 2019


On 6/13/19 2:28 AM, Martin Stein wrote:
> Hi John,
> 
> El 12/6/19 a las 22:27, John J. Karcher escribió:
>> Hello,
>>
>> Does anyone have a simple step-by-step guide for the initial set-up of a
>> new depot, and publishing a first package to it?
> 
> Did you have a look at this:
> 
> https://genode.org/documentation/developer-resources/package_management
> 
> Apart from this and the Foundations Book, I don't know further resources
> but a step-by-step Genodians tutorial might be indeed a good idea.
> 
>> I took a first try at this, mainly following "Genode Foundations" (and
>> trying to document my steps, in the hope of writing a beginner's guide
>> for Genodians.org).  But I seem to be missing something, because the
>> "publish" tool is giving me an error.
> 
> It may be helpful if you could post your command line and the output it
> produces.

Well, my command line doesn't give any output at all, so it looks like 
I'm going to have to start at the beginning.  ;^)

I'm sure that I'm missing something obvious.  In fact, the entire 
premise of my experiment may be wrong.


1. I started with a completely fresh copy of the Genode tree from GitHub.

2. Did "create_builddir x86_64".  (which might be useless)

3. Created a "jjkarcher" directory under "genode/depot".

4. Created "pubkey" and "download" files in "jjkarcher", as described in 
"Genode Foundations".

So far, things seem pretty simple.  Now, in order to create an 
absolutely minimal test, I decided to create a recipe for a "RAW" 
archive, containing just a text file.  Looking through the existing RAW 
recipes, I decided to steal the basic idea from "sticks_blue_backdrop" 
and "genode_bg".

5. Created "genode/repos/gems/recipes/raw/dummy_text" directory.

6. Created "content.mk" file:

~~~
content: dummy.txt

dummy.txt:
	cp $(REP_DIR)/recipes/raw/dummy_text/$@ $@
~~~

7. Created "hash" file:

~~~
2019-06-04 000000
~~~

8. Created "dummy.txt" file:

~~~
This is a dummy text file
~~~

At this point, I attempted several variations of "./tool/depot/build", 
but nothing seems to happen, including no command line output.  I also 
played around with the recipe a little bit ("sticks_blue_backdrop" and 
"genode_bg" are structured slightly differently), but with the same 
(lack of) results.


Again, sorry for the elementary questions.  But hopefully the 
answers/guidance will be useful to someone reading this in the future.

  Thanks!

   John J. Karcher
   devuser at alternateapproach.com



More information about the users mailing list