Commit Graph

107 Commits

Author SHA1 Message Date
Martchus 98852bacc5 Avoid unconditional use of platform-specific header `unistd.h`
* Also avoid use of platform-specific tempdir
* Use functions from the C++ standard library instead
* Improve error handling of related function calls
2023-02-11 15:55:45 +01:00
Martchus 60b70a3ce0 Cherry-pick change for being able to build Syncthing itself with Go 1.20 2023-02-07 20:52:41 +01:00
Martchus b01f636a33 Update libsyncthing to v1.23.1 2023-02-07 13:30:40 +01:00
Martchus 55514f5f91 Update libsyncthing to v1.23.0 2023-01-02 18:35:06 +01:00
Martchus fd39c0d8a3 Update libsyncthing to v1.22.2 2022-12-06 11:41:27 +01:00
Martchus 1288a2fc47 Update libsyncthing to 1.22.1 2022-11-02 10:26:49 +01:00
Martchus 87cb9914a6 Update libsyncthing to 1.22.0 2022-10-04 10:52:28 +02:00
Martchus 4e1d4501c0 Update libsyncthing to v1.21.0 2022-09-06 10:46:23 +02:00
Martchus 6f0c5af8fc Allow compilation of libsyncthing against Go 1.19
Cherry-pick 209e68c1badf4398ef3aefd3c7bee7ffe3f20ab3 from upstream
and other patches to avoid conflict resolution.
2022-08-04 18:13:03 +02:00
Martchus ff2f435e4a Update libsyncthing to v1.20.4 2022-08-02 18:18:35 +02:00
Martchus 08a88e60bb Make libsyncthing CLI test independent of running Syncthing instance 2022-07-05 12:26:17 +02:00
Martchus 0b49ae2f87 Update libsyncthing to v1.20.3 2022-07-05 12:25:17 +02:00
Martchus a0923f8c1a Allow running Syncthing's CLI via Syncthing Tray when bundling libsyncthing 2022-06-26 02:25:23 +02:00
Martchus 7ce0508c6b Update libsyncthing to v1.20.2 2022-06-07 13:55:30 +02:00
Martchus 3d791197ac Update libsyncthing to 1.20.1 2022-05-04 18:43:17 +02:00
Martchus 2f861fed5a Update libsyncthing to v1.20.0 2022-05-03 23:28:58 +02:00
Martchus a78eb507d7 Update libsyncthing to v1.19.2 2022-04-05 19:53:07 +02:00
Martchus fd83bb35fd Update libsyncthing to v1.19.1 2022-03-01 12:15:22 +01:00
Martchus e1b9f557f7 Apply clang-format 2022-02-07 17:26:46 +01:00
Martchus c5c34bd83c Update libsyncthing to v1.19.0 2022-02-01 13:21:01 +01:00
Martchus e6609bd2a5 Update libsyncthing to v1.18.6 2022-01-11 11:23:45 +01:00
Martchus 6a2fa35619 Update libsyncthing to v1.18.5 2021-12-07 13:29:07 +01:00
Martchus ba418d9bfb Update libsyncthing to v1.18.4 2021-11-02 17:52:20 +01:00
Martchus d3c878359a Fix typo in libsyncthing tests 2021-10-13 00:14:49 +02:00
Martchus 3b50d78f1e Use resource lock to avoid concurrent execution of tests requiring Syncthing test instance
This is likely the cleaner approach compared to just enforcing a serial run
for the CLI test.
2021-10-13 00:14:35 +02:00
Martchus fe4e9899d7 Update libsyncthing to v1.18.3 2021-10-05 18:13:05 +02:00
Martchus 567e176d48 Link libsyncthing to pthread library via `-pthread`
That's preferred over just specifying the library path because it invokes
additional behavior like adding `-D_REENTRANT` which might be required.
2021-10-04 19:21:18 +02:00
Hannah Rittich 2968898195 Allow finding of packages in namespaces 2021-10-03 02:07:18 +02:00
Martchus ac6ee45017 Update libsyncthing to v1.18.2 2021-09-07 14:46:16 +02:00
Martchus f55814d6e5 Update libsyncthing to v1.18.1 2021-08-03 14:02:18 +02:00
Martchus e9a278a248 Update libsyncthing to v1.18.0 2021-07-06 15:32:18 +02:00
Martchus 0ef3b80447 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:29:49 +02:00
Martchus 303cea3658 Avoid exporting symbols for internal functions declared within libsyncthinginternal.h 2021-06-16 22:52:38 +02:00
Martchus 3e28db37e8 Update libsyncthing to v1.17.0 2021-06-01 20:53:27 +02:00
Martchus 803fa7f2e0 Update libsyncthing to v1.16.0 2021-05-04 12:05:28 +02:00
Martchus 1bf579e1d1 Apply cmake-format 2021-04-07 20:00:27 +02:00
Martchus 9dc5ad7ceb Add target to build syncthing executable (like the syncthing library) 2021-04-07 15:11:40 +02:00
Martchus a825f5b613 Update libsyncthing to v1.15.1 2021-04-06 17:44:00 +02:00
Martchus 56c488ea6c Update libsyncthing to v1.14.0 2021-03-02 18:03:08 +01:00
Martchus 606a9f053d Update libsyncthing to v1.13.1
It seems that the tags v1.13.0 and v1.13.1 are identical, though. Both tags
point to commit f6fac3e949c882771b4b02ce3f586dd09b7555da.
2021-02-03 18:21:33 +01:00
Martchus 8f3653b7ca Update libsyncthing to v1.13.0 2021-02-03 00:01:57 +01:00
Martchus ea442ed569 Update libsyncthing to v1.12.1 2021-01-06 17:29:35 +01:00
Martchus 1bf58bf38d Apply cmake-format and clang-format 2020-12-17 17:52:02 +01:00
Martchus 41372ccf0a Update libsyncthing to v1.12.0 2020-12-01 15:18:24 +01:00
Martchus 3fe2fb9761 Update libsyncthing to v1.11.1 2020-11-03 18:28:50 +01:00
Martchus 7cea7509ba Use C/C++/linker flags for Go compilation from environment consistently
* Use flags from CMake's variables (initialized from environment variables)
  including build type specific variables
* Consider LDFLAGS as well; there's actually linking going on¹

¹Otherwise Go's build system wouldn't run into this error

```
# github.com/DataDog/zstd
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: $WORK/b259/_x008.o:entropy_common.c:(.text+0xaa): undefined reference to `__memcpy_chk'
/usr/lib/gcc/i686-w64-mingw32/10.2.0/../../../../i686-w64-mingw32/bin/ld: $WORK/b259/_x033.o:zstd_v01.c:(.text+0x1b84): undefined reference to `__memcpy_chk'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
```

which is caused by LDFLAGS being inconsistent with CFLAGS.
2020-11-02 23:17:37 +01:00
Martchus 0348c78e98 Improve passing flags to Go build system
* Pass C/C++ flags from CMake to CGo
* Allow overriding flags passed via "-ldflags"
* Add default GOFLAGS and add CMake variable to override GOFLAGS
    * `-trimpath`: Prevent embedding full paths
    * `-modcacherw`: Ensure that go modules creates a write-able path
    * `-mod=readonly`: Ensure the module files are not updated in any go actions
2020-10-31 21:50:24 +01:00
Martchus 4ec3b1ef4b Update libsyncthing to v1.10.0 2020-10-06 13:46:22 +02:00
Martchus b4ea431b7a Update libsyncthing to 1.9.0 2020-09-08 12:45:07 +02:00
Martchus 1d0888a621 Reformat CMakeLists.txt with cmake-format 0.6.11 2020-08-11 23:15:41 +02:00