[oi-dev] Rust packaging error on oi-userland
Stephan Althaus
Stephan.Althaus at Duedinghausen.eu
Tue Feb 2 12:51:06 UTC 2021
On 02/02/21 12:27, Carsten Grzemba via oi-dev wrote:
> I get a strange error message on rustc install target:
>
> running:
> "/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/x86_64-sun-solaris/stage0-tools-bin/fabricate"
> "generate" "--product-name=Rust" "--rel-manifest-dir=rustlib"
> "--success-message=Awesome-Source." "--image-dir"
> "/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1-image"
> "--work-dir"
> "/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist"
> "--output-dir"
> "/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/dist"
> "--package-name=rust-src-1.44.1" "--component-name=rust-src"
> "--legacy-manifest-dirs=rustlib,cargo"
> Error: Custom { kind: Other, error: "provided value is too long when
> setting link name for " }
>
> 0: failure::backtrace::internal::InternalBacktrace::new
> 1: failure::backtrace::Backtrace::new
> 2: installer::tarballer::append_path
> 3: rayon_core::thread_pool::ThreadPool::install::{{closure}}
> 4: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute
> 5: rayon_core::registry::WorkerThread::wait_until_cold
> 6: rayon_core::registry::ThreadBuilder::run
> 7: std::sys_common::backtrace::__rust_begin_short_backtrace
> 8: core::ops::function::FnOnce::call_once{{vtable.shim}}
> 9: std::sys::unix::thread::Thread::new::thread_start
> 10: <unknown>
> 11: <unknown>
>
>
> failed to tar file
> '/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE'
>
> failed to generate installer
>
> the related link:
> '/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE'
> has target
>
> ls -l
> '/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE'
> lrwxrwxrwx 1 builder staff 106 Feb 2 08:20
> /code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE
> ->
> /code/github/openindiana/oi-userland/components/developer/rust/rustc-1.44.1-src/src/stdarch/LICENSE-APACHE
>
> ls -lL
> '/code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE'
> -rw-r--r-- 1 builder staff 10847 Jun 17 2020
> /code/github/openindiana/oi-userland/components/developer/rust/build/amd64/build/tmp/dist/rust-src-1.44.1/rust-src/lib/rustlib/src/rust/src/stdarch/LICENSE-APACHE
>
> I know that replace the symlink whith copy helps, but why should the
> symlink not working? 107 chars for a target name too long?...
>
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
Hello!
use the E flag for tar, as file names are limited to 100 chars.
see
man tar
Greetings,
Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20210202/9cd41f9d/attachment.html>
More information about the oi-dev
mailing list