Re: create recipe for ADA library
El 01/06/18 a las 16:11, Pirmin Duss escribió: > An other point that doesn't look nice currently is the way used to > obtain the location of the port sources [2]. Is there a way to get rid > of the "../ports/" part? Btw. there are some good examples in the ports/recipes directory like vim [1]. Martin [1] ports/recipes/src/vim/content.mk signature.asc Description: OpenPGP digital signature ___ Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Re: create recipe for ADA library
Hi Pirmin, Sorry for the delayed answer. El 04/06/18 a las 09:00, Pirmin Duss escribió: > Hi Martin > > On 03.06.2018 12:26, Martin Stein wrote: >> Hi Pirmin, >> >> El 01/06/18 a las 16:11, Pirmin Duss escribió: >>> An other point that doesn't look nice currently is the way used to >>> obtain the location of the port sources [2]. Is there a way to get rid >>> of the "../ports/" part? >> There exists the select_from_ports function that is used widely. Examples: >> >> ARORA_PORT_DIR := $(call select_from_ports,arora) >> >> LIBPNG_DIR := $(call select_from_ports,libpng)/src/lib/libpng > > > select_from_ports seems to return an empty string when I use > PORT_DIR := $(call select_from_ports,gcc)/src/noux-pkg/gcc/gcc > > the copy action fails as it tries to read files from > /src/noux-pkg/gcc/gcc and not out of the port dir. > > Is it possible, that call select_from_ports is only available in the run > scripts? > > best regards, Pirmin > The select_from_port shouldn't depend on the Run mechanism in general. There should also be no problem with using it for noux packages. I assume that there is something missing in your port description that makes select_from_ports fail. You can find a pretty comprehensive description of what is needed for select_from_ports to work with a given port next to its implementation in [1] (see also _lookup_port_hash_file in the same file). Did this help you? Martin [1] base/mk/util.inc ___ Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Re: create recipe for ADA library
Hi Pirmin, El 01/06/18 a las 16:11, Pirmin Duss escribió: > An other point that doesn't look nice currently is the way used to > obtain the location of the port sources [2]. Is there a way to get rid > of the "../ports/" part? There exists the select_from_ports function that is used widely. Examples: ARORA_PORT_DIR := $(call select_from_ports,arora) LIBPNG_DIR := $(call select_from_ports,libpng)/src/lib/libpng Martin signature.asc Description: OpenPGP digital signature ___ Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
create recipe for ADA library
Hello all, I'm trying to create a recipe to build the ADA library as a package archive [1]. Building the library fails with the following error message: Library ada COMPILE a-except_c.o COMPILE gnat_except.o COMPILE s-secsta.o fatal error, run-time library not installed correctly cannot locate file system.ads compilation abandoned /home/pirmin/GapFruit/genode/repos/base/mk/generic.mk:83: recipe for target 's-secsta.o' failed make[6]: *** [s-secsta.o] Error 1 var/libdeps:42: recipe for target 'ada.lib' failed make[5]: *** [ada.lib] Error 2 system.ads is copied in to the source directory of the depot. An other point that doesn't look nice currently is the way used to obtain the location of the port sources [2]. Is there a way to get rid of the "../ports/" part? [1] https://github.com/trimpim/genode/tree/adalib_recipe [2] https://github.com/trimpim/genode/blob/0d40aa7303aca743dc6270f33ecd3e2a37364b4a/repos/libports/recipes/src/adalib/content.mk#L21 best regards, Pirmin signature.asc Description: OpenPGP digital signature ___ Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users