]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
rust 1.65 won't build if 'Cargo.toml.orig' is present in one of the crate files
authorMatthias Fischer <matthias.fischer@ipfire.org>
Thu, 1 Dec 2022 15:44:28 +0000 (16:44 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 26 Jan 2023 23:03:34 +0000 (23:03 +0000)
commitbd6846fc9744f6c70a37d69af748443732858dff
tree41cf7a60d8d07b185c93cf93f1d384550203898e
parent68e2844141516e417736fd7045955df9b9dce872
rust 1.65 won't build if 'Cargo.toml.orig' is present in one of the crate files

Please see the discussions about this patch series here:

https://lists.ipfire.org/pipermail/development/2022-November/014714.html

and here:

https://lists.ipfire.org/pipermail/development/2022-November/014887.html

During building 'rust 1.65', I always got:

...
error: invalid inclusion of reserved file name Cargo.toml.orig in
package source
...
[Build stops]

After a rather frustrating while, I decided to delete this file during building the particular crate file.

Fun! Building completed without errors.

For now, I added an appropriate if-statement in each crate file which contains 'Cargo.toml.orig'.
If 'Cargo-toml.orig' is present: delete it. Just throw it away.

It might be that there is a more elegant way to do this - if 'someone' has a better solution, please
submit an easier patch.

I searched a few days, but didn't find ANY clue what is going on here.

All I can say: building runs. No more errors or breaks. Nothing.

Please test and confirm.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
73 files changed:
lfs/rust-asn1
lfs/rust-asn1_derive
lfs/rust-autocfg
lfs/rust-base64
lfs/rust-block-buffer
lfs/rust-chrono
lfs/rust-cipher
lfs/rust-crossbeam-channel
lfs/rust-crossbeam-deque
lfs/rust-crossbeam-epoch
lfs/rust-crossbeam-utils
lfs/rust-crypto-common
lfs/rust-ctor
lfs/rust-digest
lfs/rust-dirs
lfs/rust-either
lfs/rust-ghost
lfs/rust-iana-time-zone
lfs/rust-indoc
lfs/rust-indoc-0.3.6
lfs/rust-indoc-impl
lfs/rust-instant
lfs/rust-inventory
lfs/rust-inventory-impl
lfs/rust-itoa
lfs/rust-lock_api
lfs/rust-log
lfs/rust-memoffset
lfs/rust-num-integer
lfs/rust-num-traits
lfs/rust-num_cpus
lfs/rust-once_cell
lfs/rust-ouroboros
lfs/rust-ouroboros_macro
lfs/rust-parking_lot
lfs/rust-parking_lot_core
lfs/rust-paste
lfs/rust-paste-0.1.18
lfs/rust-paste-impl
lfs/rust-pem
lfs/rust-pest
lfs/rust-ppv-lite86
lfs/rust-proc-macro-error
lfs/rust-proc-macro-error-attr
lfs/rust-proc-macro-hack
lfs/rust-pyo3
lfs/rust-pyo3-build-config
lfs/rust-pyo3-macros
lfs/rust-pyo3-macros-backend
lfs/rust-rand_chacha
lfs/rust-rand_core
lfs/rust-rand_core-0.3.1
lfs/rust-rand_core-0.4.2
lfs/rust-rand_hc
lfs/rust-rayon
lfs/rust-rayon-core
lfs/rust-rdrand
lfs/rust-regex
lfs/rust-regex-syntax
lfs/rust-ryu
lfs/rust-same-file
lfs/rust-scopeguard
lfs/rust-semver
lfs/rust-serde_json
lfs/rust-smallvec
lfs/rust-stable_deref_trait
lfs/rust-termcolor
lfs/rust-time
lfs/rust-toml
lfs/rust-toolchain_find
lfs/rust-ucd-trie
lfs/rust-unindent
lfs/rust-walkdir