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

nixos/postgresql: add upgradeFrom option #117

Open
wants to merge 2,124 commits into
base: main
Choose a base branch
from

Conversation

jsoo1
Copy link
Collaborator

@jsoo1 jsoo1 commented Jun 16, 2023

With accompanying nixos vm test.

jsoo1 and others added 29 commits June 16, 2023 13:20
It fails to apply
Co-authored-by: Robert Scott <code@humanleg.org.uk>
USE_OPTIMIZE_FOR_ARCHITECTURE was removed without commit in a prior
commit. This is because it was removed upstream:

arangodb/arangodb@cc860c3

This is unfortunate - now /proc/cpuinfo is read unconditionally for
feature detection.

Some other means of feature detection will have to be found.
It seems that gcc11 - though reportedly supported - introduced some
constraint that arangodb fails to compile with.
Avoid non-deterministic builds of ArangoDB proper. Note that this
provides 0 guarantees about the vendored libraries doing anything
similar.
If -DTARGET_ARCHITECTURE is supplied arango's cmake configuration will
not use /proc/cpuinfo for feature detection. However, `generic` and
`none` options both fail when building the vendored v8.

This workaround provides some defaults, but warns if no override is
provided.
As far as I can tell, this can cause compile failures when building
the vendored abseil_cpp if choosing a target arch that does not
support sse. This might be possible to determine programmatically, but
it is more flexible to let the user decide.
For which no reliable default target architecture is provided upstream.
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@jsoo1 jsoo1 force-pushed the jsoo1/main/upgradable-postgres branch 2 times, most recently from 5002bde to fed6c1f Compare July 6, 2023 17:27
@jsoo1
Copy link
Collaborator Author

jsoo1 commented Jul 7, 2023

@tm-drtina @tomaskala i'm thinking we should merge this since the upstream patch is probably about as finished as its going to be for a while. I think whatever changes get made upstream we can adapt to in the future.

WDYT?

@jsoo1 jsoo1 force-pushed the jsoo1/main/upgradable-postgres branch 5 times, most recently from 6b18874 to 1490c15 Compare July 14, 2023 23:50
With accompanying nixos vm test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet