Skip to content
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

[linux] Move all fcgi dependent stdio functions to the separate 'boinc_stdio.h' header only file #5096

Merged

Conversation

AenBleidd
Copy link
Member

Signed-off-by: Vitalii Koshura lestat.de.lionkur@gmail.com

@codecov
Copy link

codecov bot commented Feb 12, 2023

Codecov Report

Merging #5096 (11739f2) into master (bc5c27e) will increase coverage by 7.05%.
The diff coverage is 3.65%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5096      +/-   ##
============================================
+ Coverage      3.79%   10.85%   +7.05%     
- Complexity        0     1064    +1064     
============================================
  Files           174      279     +105     
  Lines         28196    35989    +7793     
  Branches       6797     8257    +1460     
============================================
+ Hits           1071     3907    +2836     
- Misses        27084    31690    +4606     
- Partials         41      392     +351     
Impacted Files Coverage Δ
db/boinc_db.cpp 0.13% <0.00%> (+<0.01%) ⬆️
db/boinc_db_types.h 0.00% <ø> (ø)
db/db_base.cpp 0.77% <0.00%> (ø)
lib/base64.cpp 79.03% <ø> (+1.44%) ⬆️
lib/cert_sig.cpp 0.00% <0.00%> (ø)
lib/coproc.cpp 0.00% <0.00%> (ø)
lib/coproc.h 0.00% <ø> (ø)
lib/crypt.cpp 0.00% <0.00%> (ø)
lib/diagnostics.cpp 0.00% <0.00%> (ø)
lib/filesys.cpp 0.00% <0.00%> (ø)
... and 168 more

@AenBleidd
Copy link
Member Author

@davidpanderson, could you please review this?
This fix is needed to fix build of libboinc and server tools when using FastFCGI with the new gcc 11 that has a breaking change of malloc prototype making it incompatible with FastCGI methods overloads.

@lfield, since this is quite a big fix that could probably touched smth that was not intended to be touched, could you please test this on the test server with FastCGI enabled?

Thank you both in advance.

@AenBleidd AenBleidd marked this pull request as ready for review February 12, 2023 18:29
@AenBleidd AenBleidd linked an issue Feb 12, 2023 that may be closed by this pull request
3 tasks
@AenBleidd AenBleidd moved this from Backlog to In Review in BOINC Client/Manager Feb 12, 2023
@AenBleidd AenBleidd moved this from Backlog to Testing in Server Feb 12, 2023
…c_stdio.h' header only file

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@AenBleidd AenBleidd force-pushed the vko_fix_linux_build_with_fcgi_enabled branch from 3a8424e to 92a9b34 Compare February 12, 2023 18:50
…ld_with_fcgi_enabled

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@AenBleidd AenBleidd force-pushed the vko_fix_linux_build_with_fcgi_enabled branch from 03f1260 to 11739f2 Compare February 12, 2023 20:29
@AenBleidd
Copy link
Member Author

@davidpanderson, could you please review this PR? Thank you in advance

@davidpanderson davidpanderson merged commit 1e51e98 into BOINC:master Feb 21, 2023
Server automation moved this from Testing to Done Feb 21, 2023
BOINC Client/Manager automation moved this from In Review to Merged Feb 21, 2023
@davidpanderson
Copy link
Contributor

I didn't look at this in detail but it seems like the right approach.

BTW, for large changes like this it's better to not include unrelated edits like trailing spaces;
that makes the diff harder to read.

@AenBleidd
Copy link
Member Author

BTW, for large changes like this it's better to not include unrelated edits like trailing spaces;
that makes the diff harder to read.

That's done automatically by my code editor. Pardon, will clean it up next time.

Thank you for the review

@AenBleidd AenBleidd deleted the vko_fix_linux_build_with_fcgi_enabled branch February 21, 2023 22:34
@CharlieFenton
Copy link
Contributor

Unnecessary changes such as deleting trailing spaces also interferes with using GIT's blame function when trying to determine when and why a line of code had functional changes, and who made the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[CI] Fix build on Ubuntu 22.04 (ubuntu-latest) of linux, Android and mingw flows
4 participants