-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-no-upgrade broken #6118
Comments
Use The default build.go action with no parameters is to build all binaries, which includes the upgrades server, which cannot build without upgrade code. |
It seems that after doing:
There is only Basically, I'd like to install everything that doesn't require upgrade support. Thanks |
Maybe I'm going about this wrongly. I don't mind building the binaries to do with upgrade servers etc, we just can't have syncthing try to auto-update itself, as that would upset our package tools. |
The idea is that -no-upgrade acts as a directive that excludes some files, those files are required to build upgrade server, so you either build everything with upgrades, or build just syncthing with no-upgrade (as that is where it has the effect) |
I see. So perhaps what I need to do is build everything without Out of interest how many of the extra binaries are actually useful to users? We currently package:
|
To elaborate on that last query, I wonder if it'd be OK to only install the things that have an explicit target in
Perhaps those are the only bits end users are realistically interested in? |
I think so, upgrade server is quite niche (so is relaypoolsrv), so I don't expect people to run them themselves. |
OK, thanks. I'll try only building syncthing, stdiscosrv, strelaysrv and stcli via explicit targets |
Hrm. It seems like the build is non-deterministically failing with a seg fault. Sometimes the build passes and I get binaries, others not. Here's a couple of examples of different crashes: The invocation I'm using in my port makefile looks like this:
I can try master and see if I get the same... (these crashes are for 1.3.0). |
Yes, here's a crash on master: This isn't even your code, so I wonder if go is busted on my system... |
Yeah crashes in the compiler are outside of our jurisdiction. |
Yeah sorry about the noise. I didn't realise it was the compiler crashing until too late. I'm in discussions with our go packager now. I'll close this, since I think we've solved the Thanks for the help! |
Today's master on OpenBSD:
If I remove
-no-upgrade
build works fine.If we could get a patch, I can update the OpenBSD port.
Cheers!
The text was updated successfully, but these errors were encountered: