chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Egg: TOML wrapper


From: Daniel Ziltener
Subject: Re: New Egg: TOML wrapper
Date: Mon, 5 Sep 2022 21:53:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

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 <dziltener@lyrion.ch> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]