Closed xfbs closed 1 year ago
Hey @xfbs 👋
First, getting it to build on bullseye with golang failed, and go get does not produce very pretty error messages. Eventually I figured out that I had to install golang from backports.
Yeah, the version in Debian stable will almost always be too old. We generally develop debiman with the currently released Go version, and accept fixes that make it work with the previous version (currently Go 1.19 and Go 1.18, but in about a month that’ll be Go 1.20 and Go 1.19). I’ll add a note to the README.
Also, I had to run go install, which was not very obvious (to someone who is not familiar with Go).
Yeah, the switch from go get
to go install
is somewhat recent, and we didn’t update the README since then. I’ll fix that.
But it keeps crashing, and the error messages are not exactly helpful either. Here's some output:
I don’t see a crash in your output. The output of debiman will always contain errors, as the packages in Debian often contain quality issues — for example, in Trying to interpret path "man1/man1/worklog.1.gz"
, the maintainer should fix the package to not install into an extra man1
subdirectory (precisely one is enough).
Can you say more about the symptoms, and can you attach the full stdout+stderr log please? Does debiman hang for you? Or does it return but not produce output?
Hey, I was able to figure it out! Small error on my part, although I think that the output could perhaps be improved.
The issue was me setting
-serving_dir ./man
This is a relative path, but it should have been an absolute one. I found somewhere in the code that it is prefixed with a leading slash. The output does not really indicate it, but it crashes then because of that. Setting it to
-serving_dir $(pwd)/man
Fixes the issue.
Cheers, @xfbs
Thanks, I could reproduce the issue with that hint! Because debiman changes into -serving_dir, a relative location was referring to a different path after the chdir call. This is now fixed with commit 3b686fd792abc4ba0ce8ae9b86ec84d268fa9100
Hey guys!
Really awesome software. I was trying to get it work for me because I wanted to play with a large repository of man pages. Unfortunately, I had some issues. First, getting it to build on bullseye with golang failed, and go get does not produce very pretty error messages. Eventually I figured out that I had to install golang from backports. Also, I had to run go install, which was not very obvious (to someone who is not familiar with Go). I think there is some headroom for improvement around the tooling.
But anyways, once I did get it compiled, I wanted to get going. I tried something like this:
I tried several remote mirrors, including https://deb.debian.org/ and some others. Also different combinations of commands, codenames, and just no other options. But it keeps crashing, and the error messages are not exactly helpful either. Here's some output:
Any idea what is going on? I understand that this is a Debian internal tool, but I figured that if I open an issue here and we figure it out, might help others out too.
Cheers, @xfbs