BigJk / end_of_eden

"Slay the Spire"-like roguelite fully in console.
https://bigjk.itch.io/end-of-eden
MIT License
99 stars 4 forks source link

Outdated dependencies #2

Open 0-wiz-0 opened 2 weeks ago

0-wiz-0 commented 2 weeks ago

Hi! I'm trying to package this for pkgsrc. I have two bigger problems:

github.com/hajimehoshi/oto
# github.com/hajimehoshi/oto
../.gopath/pkg/mod/github.com/hajimehoshi/oto@v0.7.1/context.go:69:12: undefined: newDriver

oto 0.7.1 does not support NetBSD. The current version is 3.2.0, versions from 2.0.0 do support NetBSD.

github.com/caarlos0/sshmarshal
# github.com/caarlos0/sshmarshal
../.gopath/pkg/mod/github.com/caarlos0/sshmarshal@v0.1.0/marshal.go:29:6: MarshalPrivateKey already declared through dot-import of package ssh ("golang.org/x/crypto/ssh")
        ../.gopath/pkg/mod/golang.org/x/crypto@v0.14.0/ssh/keys.go:302:6: other declaration of MarshalPrivateKey
../.gopath/pkg/mod/github.com/caarlos0/sshmarshal@v0.1.0/marshal.go:35:6: MarshalPrivateKeyWithPassphrase already declared through dot-import of package ssh ("golang.org/x/crypto/ssh")
        ../.gopath/pkg/mod/golang.org/x/crypto@v0.14.0/ssh/keys.go:308:6: other declaration of MarshalPrivateKeyWithPassphrase
*** Error code 1

This project is dead. Its github page says:

This is now merged into x/crypto!

which explains the error message quite well.

BigJk commented 2 weeks ago

Hey!

If this doesn't solve the problems just let me know and I will dig deeper :)

0-wiz-0 commented 2 weeks ago

Thanks, that helped! Now I see

# github.com/BigJk/end_of_eden/cmd/game_win
/usr/pkg/go121/pkg/tool/netbsd_amd64/link: running gcc failed: exit status 1
ld: cannot find -ldl: No such file or directory

On NetBSD (and macOS and other BSDs), dlopen() and friends are in libc, not libdl. I'm not sure where the -ldl comes from, any suggestions?

(I've worked around it in the package.) Next: which files should be installed? I see

bin/definitions
bin/docs
bin/fuzzy_tester
bin/game
bin/game_ssh
bin/game_win
bin/tester

Thanks!

0-wiz-0 commented 2 weeks ago

I'll just keep on adding stuff here, let me know if you want different tickets:

BigJk commented 2 weeks ago

Feel free to just keep dumping stuff here 😄

0-wiz-0 commented 2 weeks ago

Hm, I tried building ebiten 2.6.3 (the one that's currently used by end_of_eden) and didn't get an error. How can I find out which dependency wants to add -ldl? (ebiten main doesn't work on NetBSD right now because of https://github.com/ebitengine/purego/issues/249 though.) Ah, one more bug report for your code:

As for terminal: I don't remember the detailed settings for my first try. Now I'm using iTerm2 on macOS, ssh to NetBSD, end_of_eden runs there. TERM is tmux-direct. Thanks for the tip with SPACE, that helps. I think I'm missing some text because my terminal default is black on white. I just tried white on black and I now think that the game requires this setting - I could see all text :)

BigJk commented 2 weeks ago