The Configure script apparently detects memrchr now, but uses -std=c99 by
default, so it isn't actually available (it is guarded with _DEFAULT_SOURCE).
Use -std=gnu99 explicitly instead.
Also, set the site and vendor man directories.
Otherwise, packages which install man pages will install them into $prefix/man.
(Although perl packages using ExtUtils::MakeMaker still don't install man pages, it seems.)
Put the man pages of perl itself into a doc subpackage.
Some notes:
- Enabled '--with-lto' for some extra bits of speed.
- Building the GIL-free version fails, so only the "traditional" available.
- Experimental JIT compiler also failed to build. Might try again on next releases.
This version removes, among other things, lib2to3, so we might face some compatibility issues
with older packages.
That directory isn't needed any more after removing the sitecustomize.pl script.
cpan creates it on demand automatically when installing a package if it doesn't exist.
Fixes#10834.
Build fails with:
```
error[E0463]: can't find crate for `core`
error[E0463]: can't find crate for `std`
For more information about this error, try `rustc --explain E0463`.
```
The relevant bit of the "explain":
```
Common causes for missing std or core
* You are cross-compiling for a target which doesn't have std prepackaged. Consider one of the
following:
+ Adding a pre-compiled version of std with rustup target add
+ Building std from source with cargo build -Z build-std
+ Using #![no_std] at the crate root, so you won't need std in the first place.
* You are developing the compiler itself and haven't built libstd from source. You can usually build it with x.py build library/std. More
information about x.py is available in the rustc-dev-guide.
```
Since I know nothing about Rust, my efforts stop here for today.
According to the git log, this seems to be the same state we were in the
1.73 recipe.
Reworked the .patchset, to match what has been done for other versions already.
According to "PEP 664 – Python 3.11 Release Schedule" this is 3.11's
"final regular bugfix release".