Re: New Egg: TOML wrapper
On Tue, 6 Sep 2022 13:50:28 +0200 Daniel Ziltener wrote: > Git Subtree did the trick. The archive contains everything necessary > now :) Thanks! I didn't know about Git Subtree. Thanks, Daniel. Your egg has been added to the coop. All the best. Mario -- http://parenteses.org/mario
Re: New Egg: TOML wrapper
Git Subtree did the trick. The archive contains everything necessary now :) Thanks! I didn't know about Git Subtree. On 06.09.22 11:32, Peter Bex wrote: On Mon, Sep 05, 2022 at 09:53:11PM +0200, Daniel Ziltener wrote: Hmm, right... I have never sent in an egg with a submodule. Seems like Gitea cannot pack submodules so far. So what I did for now is to add a "generated source" to the egg file that triggers a "git clone" of a hardcoded commit of tomlc99. I ran "test-new-egg" on it which succeeded. I hope this is an acceptable approach? Not really - that way "chicken-install -retrieve" would be unable to retrieve the entire sources. The idea is that chicken-install's build process should be possible to run entirely offline. Instead, you could generate the tarballs yourself and host them somewhere. Or you could use git's subtree feature instead of submodule, perhaps Gitea *can* pack those. Cheers, Peter
Re: New Egg: TOML wrapper
On Mon, Sep 05, 2022 at 09:53:11PM +0200, Daniel Ziltener wrote: > Hmm, right... I have never sent in an egg with a submodule. Seems like Gitea > cannot pack submodules so far. So what I did for now is to add a "generated > source" to the egg file that triggers a "git clone" of a hardcoded commit of > tomlc99. I ran "test-new-egg" on it which succeeded. I hope this is an > acceptable approach? Not really - that way "chicken-install -retrieve" would be unable to retrieve the entire sources. The idea is that chicken-install's build process should be possible to run entirely offline. Instead, you could generate the tarballs yourself and host them somewhere. Or you could use git's subtree feature instead of submodule, perhaps Gitea *can* pack those. Cheers, Peter signature.asc Description: PGP signature
Re: New Egg: TOML wrapper
Hmm, right... I have never sent in an egg with a submodule. Seems like Gitea cannot pack submodules so far. So what I did for now is to add a "generated source" to the egg file that triggers a "git clone" of a hardcoded commit of tomlc99. I ran "test-new-egg" on it which succeeded. I hope this is an acceptable approach? I'm not running "make install" since it is not necessary; it is enough to just include the .h and compile the .c file. On 05.09.22 20:46, Mario Domenech Goulart wrote: On Mon, 5 Sep 2022 20:03:44 +0200 Daniel Ziltener wrote: oops, I created the repo private. Adjusted the visibility now. I hope all else about it is fine. I get the following error when I run "test-new-egg toml 'https://gitea.lyrion.ch/zilti/toml/raw/branch/master/toml.release-info'": executing: "sh /tmp/tempa40d.2133470/toml/0.5/toml.build.sh" csc -host -setup-mode -I /tmp/tempa40d.2133470/toml/0.5 -s -c -C -I/tmp/tempa40d.2133470/toml/0.5 -O2 -d1 /tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.c -o /tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.o csc: file `/tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.c' does not exist It looks like the egg file assumes the submodule of tomlc99 is checked out, which is not the case in the source tarball fetched by henrietta-cache. Also the installer of tomlc99 is broken at the revision pointed by the git submodules configuration in the egg sources repository: $ make install install -d /usr/local/include /usr/local/lib install toml.h /usr/local/include install libtoml.a /usr/local/lib install libtoml.so.1.0 /usr/local/lib install libtoml.pc /usr/local/lib/pkgconfig install: cannot stat 'libtoml.pc': No such file or directory make: *** [Makefile:39: install] Error 1 I could work around that by renaming libtoml.pc.sample to libtoml.pc, undoing the renaming done in 64e280e20b3d. All the best. Mario
Re: New Egg: TOML wrapper
On Mon, 5 Sep 2022 20:03:44 +0200 Daniel Ziltener wrote: > oops, I created the repo private. Adjusted the visibility now. I hope > all else about it is fine. I get the following error when I run "test-new-egg toml 'https://gitea.lyrion.ch/zilti/toml/raw/branch/master/toml.release-info'": executing: "sh /tmp/tempa40d.2133470/toml/0.5/toml.build.sh" csc -host -setup-mode -I /tmp/tempa40d.2133470/toml/0.5 -s -c -C -I/tmp/tempa40d.2133470/toml/0.5 -O2 -d1 /tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.c -o /tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.o csc: file `/tmp/tempa40d.2133470/toml/0.5/tomlc99/toml.c' does not exist It looks like the egg file assumes the submodule of tomlc99 is checked out, which is not the case in the source tarball fetched by henrietta-cache. Also the installer of tomlc99 is broken at the revision pointed by the git submodules configuration in the egg sources repository: $ make install install -d /usr/local/include /usr/local/lib install toml.h /usr/local/include install libtoml.a /usr/local/lib install libtoml.so.1.0 /usr/local/lib install libtoml.pc /usr/local/lib/pkgconfig install: cannot stat 'libtoml.pc': No such file or directory make: *** [Makefile:39: install] Error 1 I could work around that by renaming libtoml.pc.sample to libtoml.pc, undoing the renaming done in 64e280e20b3d. All the best. Mario -- http://parenteses.org/mario
Re: New Egg: TOML wrapper
Hi Mario, oops, I created the repo private. Adjusted the visibility now. I hope all else about it is fine. Thanks, Daniel On 03.09.22 09:06, Mario Domenech Goulart wrote: Hi Daniel, On Fri, 2 Sep 2022 12:25:33 +0200 Daniel Ziltener wrote: I just finished a first version of a wrapper for the TOML configuration format. For this I took the tomlc99 implementation https://github.com/cktan/tomlc99 and made a thin layer for it to use it conveniently from Chicken. The repository is at https://gitea.lyrion.ch/zilti/toml.git, and the documentation can be found at http://wiki.call-cc.org/eggref/5/toml. I hope it can be added to the repository and that it may be of use for some of you. Thanks. Unfortunately I cannot access the repository: $ git clone https://gitea.lyrion.ch/zilti/toml.git Cloning into 'toml'... Username for 'https://gitea.lyrion.ch': Password for 'https://gitea.lyrion.ch': remote: Unauthorized fatal: Authentication failed for 'https://gitea.lyrion.ch/zilti/toml.git/' henrietta-cache won't be able to fetch from it. All the best. Mario
Re: New Egg: TOML wrapper
Hi Daniel, On Fri, 2 Sep 2022 12:25:33 +0200 Daniel Ziltener wrote: > I just finished a first version of a wrapper for the TOML > configuration format. For this I took the tomlc99 implementation > https://github.com/cktan/tomlc99 and made a thin layer for it to use > it conveniently from Chicken. > > The repository is at https://gitea.lyrion.ch/zilti/toml.git, and the > documentation can be found at http://wiki.call-cc.org/eggref/5/toml. > > I hope it can be added to the repository and that it may be of use for > some of you. Thanks. Unfortunately I cannot access the repository: $ git clone https://gitea.lyrion.ch/zilti/toml.git Cloning into 'toml'... Username for 'https://gitea.lyrion.ch': Password for 'https://gitea.lyrion.ch': remote: Unauthorized fatal: Authentication failed for 'https://gitea.lyrion.ch/zilti/toml.git/' henrietta-cache won't be able to fetch from it. All the best. Mario -- http://parenteses.org/mario
New Egg: TOML wrapper
Hello Chicken community! I just finished a first version of a wrapper for the TOML configuration format. For this I took the tomlc99 implementation https://github.com/cktan/tomlc99 and made a thin layer for it to use it conveniently from Chicken. The repository is at https://gitea.lyrion.ch/zilti/toml.git, and the documentation can be found at http://wiki.call-cc.org/eggref/5/toml. I hope it can be added to the repository and that it may be of use for some of you. Thanks, Daniel