-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
upgrade perforce packages: p4, p4v #110168
Conversation
Download link is no longer available. |
Yeah, looks like they mysteriously recalled 20.2: https://www.perforce.com/support/software-release-index#tab-panel-6208
|
What now? Update to a newer version? Update the URL? Can this PR be closed? |
Once they post a new version, I'll update this PR. |
I switched both of these to archive.org, as suggested in #131292. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
f5425a3
to
6e3af11
Compare
Updated again, and applied your suggestions @SuperSandro2000. |
#include <stddef.h> | ||
int CRYPTO_set_mem_functions( | ||
void *(*m)(size_t, const char *, int), | ||
void *(*r)(void *, size_t, const char *, int), | ||
void (*f)(void *, const char *, int)) { return 1; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel comfortable merging this with this patch. I don't know if it breaks crypto or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could try to build a modified Qt instead. p4v is still a binary blob either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested latest with this hack disabled, and it still fails. The error you get is:
Connect to server failed; check $P4PORT.
Programming error: CRYPTO_set_mem_functions(): Could not set OpenSSL allocation functions.
Trying to test this now, but I don't seem to be able to download the sources from archive.org. |
@nathyong What's the problem exactly? I found archive.org extremely slow, and p4v is like 130m. Any other ideas for mirrors are welcome. |
I wasn't able to get any bytes from archive.org in the past. Seems fine (if a bit slow) now though. |
If the download link is not changing over time and is not gone again we shouldn't use web.archive.org. |
The download link does change, unfortunately. Perforce only provides a link to the minor version, which always points to the latest patch release. Also, I had a good look at using the shipped qt libs in case it allowed the crypto hack to be removed, but things got hacky very quickly and I wasn't able (so far) to fix a crash in qt web engine. It was feeling like it would be a worse outcome. |
@ofborg build p4v |
files that should not be in bin are in bin
|
@Artturin yeah, that's not ideal, but it's unchanged in this upgrade and it's how they're distributed upstream. |
did not test |
Motivation for this change
This still doesn't have a permanent url for the specific minor version, and will break whenever they update. :(
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)