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

valgrind: fix build on darwin #52014

Merged
merged 1 commit into from Dec 15, 2018
Merged

Conversation

hedning
Copy link
Contributor

@hedning hedning commented Dec 14, 2018

Motivation for this change

We fixed a race condition in #51505 and #51107. This required running
autoreconfHook to pick up the coregrind-makefile-race.patch patch.

Unfortunately this broke darwin's postPatch fixes as autoreconfHook would run
afterwards regenerating the fixed makefiles.

Moving the postPatch fixes to preConfigure should resolve the issue.

I left postPatch = "" in to avoid a rebuild on linux.

cc @srhb (if you could trigger an ofborg build on darwin that would be great waiting on trusted users merge atm).

@markuskowa
Copy link
Member

I can not test or judge anything for darwin but I can trigger the build.
@GrahamcOfBorg build valgrind

@markuskowa
Copy link
Member

Should maybe be based against staging?

@hedning
Copy link
Contributor Author

hedning commented Dec 14, 2018

Thanks, looks like it builds :)

Yeah I can change to staging, I guess I misjudged the amounts of rebuilds based on the newly failed jobs on hydra which indicated more on the order of 300ish.

We fixed a race condition in NixOS#51505 and NixOS#51107. This required running
autoreconfHook to pick up the `coregrind-makefile-race.patch` patch.

Unfortunately this broke darwin's postPatch fixes as autoreconfHook would run
afterwards regenerating the fixed makefiles.

Moving the postPatch fixes to preConfigure should resolve the issue.

I left `postPatch = ""` in to avoid a rebuild on linux.
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

Builds for me

@hedning hedning merged commit ddd0570 into NixOS:staging Dec 15, 2018
@hedning
Copy link
Contributor Author

hedning commented Dec 16, 2018

@LnL7 not sure if it's worth it to cherry pick this to master, it doesn't cause any rebuilds on linux at least. Though it would rebuild a bunch of stuff which would become obsolete as soon as your glu commit hits master. (sorry for breaking darwin btw. will be more careful in the future).

@hedning hedning deleted the fix-darwin-valgrind branch December 16, 2018 09:13
@LnL7
Copy link
Member

LnL7 commented Dec 16, 2018

Yeah this could have gone to master, given that it only rebuilds things that where broken in the first place. I also pushed a change to staging to avoid it as a dependency for a large tree of packages.
staging-next is probably more appropriate tho, then everything might be cached by the time it hits master.

@hedning
Copy link
Contributor Author

hedning commented Dec 16, 2018

Guess I should've stuck to my guts, and also cced you earlier, still getting the hang of being able to commit.

Any problems cherry picking it now that it is staging?

@matthewbauer
Copy link
Member

Yes - cherry pick to master would be good. this is breaking quite a few packages in trunk now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants