Use relative path for lib64 symlink (#4268)

## Summary

Closes https://github.com/astral-sh/uv/issues/4265.

## Test Plan

```
❯ ls -l .venv
total 16
-rw-r--r--   1 crmarsh  staff   43 Jun 12 09:23 CACHEDIR.TAG
drwxr-xr-x  14 crmarsh  staff  448 Jun 12 09:23 bin
drwxr-xr-x   3 crmarsh  staff   96 Jun 12 09:23 lib
lrwxr-xr-x   1 crmarsh  staff    3 Jun 12 09:23 lib64 -> lib
-rw-r--r--   1 crmarsh  staff  174 Jun 12 09:23 pyvenv.cfg
```

```
❯ ls .venv/lib64/
python3.12
```
This commit is contained in:
Charlie Marsh 2024-06-12 06:36:27 -07:00 committed by GitHub
parent 034b4790ea
commit 5e7b98d3e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,9 +274,7 @@ pub fn create_bare_venv(
&& interpreter.markers().os_name() == "posix"
&& interpreter.markers().sys_platform() != "darwin"
{
let lib64 = location.join("lib64");
let lib = location.join("lib");
match std::os::unix::fs::symlink(lib, lib64) {
match std::os::unix::fs::symlink("lib", location.join("lib64")) {
Ok(()) => {}
Err(err) if err.kind() == io::ErrorKind::AlreadyExists => {}
Err(err) => {