Skip to content

build: a grab bag of minor fixes + retry WinCNG tests - #1017

Closed
vszakats wants to merge 100 commits into
libssh2:masterfrom
vszakats:build-tweaks
Closed

vszakats wants to merge 100 commits into
libssh2:masterfrom
vszakats:build-tweaks

Conversation

@vszakats

@vszakats vszakats commented Apr 29, 2023 •

Copy link
Copy Markdown
Member

Merged/merging via individual commits and PRs.

@vszakats vszakats added the build label Apr 29, 2023
@vszakats
vszakats force-pushed the build-tweaks branch 2 times, most recently from 8b3d408 to 4ff35f4 Compare April 29, 2023 00:50
@vszakats vszakats changed the title build: warning fixes and other tweaks [WIP] build: grab bag of minor fixes and retry WinCNG tests Apr 29, 2023
@vszakats vszakats changed the title build: grab bag of minor fixes and retry WinCNG tests build: a grab bag of minor fixes + retry WinCNG tests Apr 29, 2023
@vszakats
vszakats force-pushed the build-tweaks branch 24 times, most recently from db32612 to 81fd5ba Compare May 1, 2023 10:30
vszakats added a commit that referenced this pull request May 3, 2023
Also add a shebang and exec flag to ease testing/handling on *nix.
PowerShell accepts both LF and CRLF.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
- update `AC_HELP_STRING' to 'AS_HELP_STRING`:
  ```
  configure.ac:[...]: warning: The macro `AC_HELP_STRING' is obsolete.
  ```
  "AC_HELP_STRING is deprecated in 2.70+ and I believe AS_HELP_STRING works
  already since 2.59 so bump the minimum required version to that."

  Ref: curl/curl@a59f046

- simplify to avoid:
  ```
  src/Makefile.inc:48: warning: variable 'EXTRA_DIST_SOURCES' is defined but no program or
  src/Makefile.inc:48: library has 'DIST' as canonical name (possible typo)
  ```
  Regression from 2c18b6f

- `AC_TRY_LINK`/`AC_TRY_COMPILE`:
  ```
  configure.ac:335: warning: The macro `AC_TRY_COMPILE' is obsolete.
  configure.ac:335: warning: The macro `AC_TRY_LINK' is obsolete.
  ```

- `libtool`-related ones:
  ```
  configure.ac:70: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
  configure.ac:70: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you
  configure.ac:70: put the 'win32-dll' option into LT_INIT's first parameter.
  configure.ac:71: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
  ```
  Using code copied from curl:
  https://github.com/curl/curl/blob/9ce7eee07042605045dcfd02a6f5b38ad5c8a05d/m4/xc-lt-iface.m4#L157-L163

- delete commented and obsolete `AC_HEADER_STDC`.

- formatting.

Most cherry-picked from `autoupdate` updates.

Cherry-picked from #1017
Closes #1021
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Also:
- fix indent
- lowercase variables names
- fix formatting in `src/global.c`

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Necessary to pick the correct local username when run on Windows.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Also merge `before_test` section into `test_script`.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Follow-up to 3c953c0 #797

There is pending issue with wolfSSL, where encryption/decryption is not
working (both with and without this patch). Ref: #1020

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
There were no new issues detected.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
Make sure these files get LF newlines on checkout. Before this patch
a checked out libssh2 Git repository may have used CRLF newlines in text
files, include test keys. Private keys with CRLF newlines could confuse
sshd on Windows:

```
# sshd version: 'OpenSSH_9.2, OpenSSL 1.1.1t  7 Feb 2023'
Unable to load host key "/d/a/libssh2/libssh2/tests/openssh_server/ssh_host_ed25519_key": invalid format
Unable to load host key: /d/a/libssh2/libssh2/tests/openssh_server/ssh_host_ed25519_key
```
Ref: https://github.com/libssh2/libssh2/actions/runs/4846188677/jobs/8635575847#step:6:39

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
Also fix casing in backend names.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
Also silence a shellcheck warning.

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
Follow-up to 8017592

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
Silences these warnings on non-Windows:
```
ranlib: file: libssh2.a(agent_win.c.o) has no symbols
```

Cherry-picked from #1017
vszakats added a commit that referenced this pull request May 3, 2023
vszakats added a commit that referenced this pull request May 3, 2023
@vszakats

vszakats commented May 3, 2023

Copy link
Copy Markdown
Member Author

PR #1024 concludes the cherry-picks from this PR. Rest of the changes were merged in commits between 8aa1ca8 and 738cbf5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant