Skip to content

Several (mostly Solaris-related) cleanups#8171

Merged
yossigo merged 8 commits intoredis:unstablefrom
yossigo:solaris-fixes
Dec 13, 2020
Merged

Several (mostly Solaris-related) cleanups#8171
yossigo merged 8 commits intoredis:unstablefrom
yossigo:solaris-fixes

Conversation

@yossigo
Copy link
Collaborator

@yossigo yossigo commented Dec 10, 2020

No description provided.

Useful for systems where GNU Make is 'gmake'.
Modifying CFLAGS/LDFLAGS directly resulted with make re-building the
entire tree every time.
@yossigo
Copy link
Collaborator Author

yossigo commented Dec 10, 2020

Calling @devnexen, I noticed you've recently provided some Solaris related fixes, would be happy if you can have a look at this!

The starting point was I failed to build on a recent illumos, but now some tests still consistently fail around diskless replication. I don't have the bandwidth to deep dive into it (Solaris is not a priority to be honest) but it seems like it could be an issue with event ports not firing properly for a pipe that's used to communicate with the child process.

@devnexen
Copy link
Contributor

devnexen commented Dec 10, 2020

quick look at your changes, the src/Makefile change makes the build fail as it their mix-ins 32 and 64 bits objects. What not keeping both FINAL_* and previous changes together ? Other than that non solaris changes sounds about right.

@yossigo yossigo requested a review from oranagra December 13, 2020 12:30
src/atomicvar.h Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you tell me something about this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like some leftover from 9588331, resulting in failing to choose any atomicvar strategy with gcc on Solaris.

src/networking.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess this line was added by mistake

Suggested change

src/util.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's trim that line, shouldn't be here.

Suggested change

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Compile flags for linux / osx

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else
else /* Linux and Solaris */

@yossigo yossigo merged commit 86e3395 into redis:unstable Dec 13, 2020
@yossigo yossigo deleted the solaris-fixes branch December 13, 2020 15:09
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Mar 2, 2021
* Allow runtest-moduleapi use a different 'make', for systems where GNU Make is 'gmake'.
* Fix issue with builds on Solaris re-building everything from scratch due to CFLAGS/LDFLAGS not stored.
* Fix compile failure on Solaris due to atomicvar and a bunch of warnings.
* Fix garbled log timestamps on Solaris.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants