Do not use prebuilt cargo packages when building rust #2

Closed
opened 2022-07-29 14:41:51 +01:00 by andrius · 1 comment
Owner

Unfortunately rustc (indirectly) bundles some precompiled stuff in vendor/vte directory.

Something like should work around it.

rm "${S}/vendor/vte/vim10m_"{match,table}
python3 <<EOF
import json, pathlib
for path in pathlib.Path('.').rglob('.cargo-checksum.json'):
       with open(path, 'r+') as f:
               j = json.load(f)
               j['files'] = {}
               f.seek(0)
               f.truncate()
               json.dump(j, f)
EOF
Unfortunately rustc (indirectly) bundles some precompiled stuff in `vendor/vte` directory. Something like should work around it. ```bash rm "${S}/vendor/vte/vim10m_"{match,table} python3 <<EOF import json, pathlib for path in pathlib.Path('.').rglob('.cargo-checksum.json'): with open(path, 'r+') as f: j = json.load(f) j['files'] = {} f.seek(0) f.truncate() json.dump(j, f) EOF ```
Author
Owner

Will be fixed upstream in new rust versions https://github.com/rust-lang/rust/pull/107710

This is now merged and is fixed upstream in rust 1.69.

Will be fixed upstream in new rust versions https://github.com/rust-lang/rust/pull/107710 This is now merged and is fixed upstream in rust 1.69.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: andrius/gentoo-bootstrap#2
No description provided.