4. Modifying the check parameter CHECKREQS_MEMORY="4G" byCHECKREQS_MEMORY="3G" into rust-1.31.1.ebuild.
5. Digesting the ebuild:
# ebuild /var/git/overlay/myoverlay/dev-lang/rust/rust-1.31.1.ebuild digest
>>> Creating Manifest for /var/git/overlay/myoverlay/dev-lang/rust
After that all versions of rust were downloaded. by the ebuild command.
6. Emerging the package:
# emerge rust
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for dev-lang/rust-1.31.1
* Checking for at least 3 GiB RAM ... [ ok ]
* Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ]
>>> Emerging (1 of 1) dev-lang/rust-1.31.1::myoverlay
* rustc-1.31.1-src.tar.xz SHA512 size ;-) ... [ ok ]
* rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz SHA512 size ;-) ... [ ok ]
* Checking for at least 3 GiB RAM ... [ ok ]
* Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ]
>>> Unpacking source...
>>> Unpacking rustc-1.31.1-src.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work
>>> Unpacking rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/rust-1.31.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src ...
install: creating uninstall script at /var/tmp/portage/dev-lang/rust-1.31.1/work/rust-stage0/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rls-preview'
install: installing component 'clippy-preview'
install: installing component 'rustfmt-preview'
install: installing component 'llvm-tools-preview'
install: installing component 'rust-analysis-x86_64-unknown-linux-gnu'
install: installing component 'rust-std-x86_64-unknown-linux-gnu'
install: installing component 'rust-docs'
Rust is ready to roll.
* Applying 1.30.1-clippy-sysroot.patch ...
/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment: line 1172: /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch : No such file or directory [ !! ]
* ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase):
* patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
*
* Call stack:
* ebuild.sh, line 92: Called src_prepare
* environment, line 4389: Called default
* phase-functions.sh, line 868: Called default_src_prepare
* phase-functions.sh, line 933: Called __eapi6_src_prepare
* environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* isolated-functions.sh, line 121: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src'
* S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src'
>>> Failed to emerge dev-lang/rust-1.31.1, Log file:
>>> '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'
* Messages for package dev-lang/rust-1.31.1:
* ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase):
* patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
*
* Call stack:
* ebuild.sh, line 92: Called src_prepare
* environment, line 4389: Called default
* phase-functions.sh, line 868: Called default_src_prepare
* phase-functions.sh, line 933: Called __eapi6_src_prepare
* environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch '
* isolated-functions.sh, line 121: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src'
* S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src'
The error is:
*Applying1.30.1-clippy-sysroot.patch .../var/tmp/portage/dev-lang/rust-1.31.1/temp/environment: line 1172:/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch :No such file or directory [!!]* ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase):* patch -p1 failed with/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
But the file /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch exists! ?
# ls -lash /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
4.0K -rw-r--r-- 1 root root 2.9K Jan 11 15:45 /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
Question
euduca
Hi.
I'm trying to install the rust-1.31.1 package.
During compilation an error occurs because the machine has less than 4GB of memory.
So I created an overlay and changed the limit from 4GB to 3GB.
# free -m total used free shared buff/cache available Mem: 3416 686 298 1 2432 2449 Swap: 8191 0 8191
I followed this guide: Local Overlay
My steps:
1. Creating the local reposiotry
mkdir /var/git/overlay cd /var/git/overlay git clone https://github.com/funtoo/skeleton-overlay.git myoverlay echo "myoverlay" > /var/git/overlay/myoverlay/profiles/repo_name
2. Editing the /etc/portage/repos.conf/myoverlay.conf file:
# nano /etc/portage/repos.conf/myoverlay.conf
3. Creating the ebuild's path:
# install -d /var/git/overlay/myoverlay/dev-lang/rust # cd /var/git/overlay/myoverlay/dev-lang/rust # cp -r /var/git/meta-repo/kits/net-kit/dev-lang/rust/* .
4. Modifying the check parameter CHECKREQS_MEMORY="4G" by CHECKREQS_MEMORY="3G" into rust-1.31.1.ebuild.
5. Digesting the ebuild:
# ebuild /var/git/overlay/myoverlay/dev-lang/rust/rust-1.31.1.ebuild digest >>> Creating Manifest for /var/git/overlay/myoverlay/dev-lang/rust
After that all versions of rust were downloaded. by the ebuild command.
6. Emerging the package:
# emerge rust Calculating dependencies... done! >>> Verifying ebuild manifests >>> Running pre-merge checks for dev-lang/rust-1.31.1 * Checking for at least 3 GiB RAM ... [ ok ] * Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ] >>> Emerging (1 of 1) dev-lang/rust-1.31.1::myoverlay * rustc-1.31.1-src.tar.xz SHA512 size ;-) ... [ ok ] * rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz SHA512 size ;-) ... [ ok ] * Checking for at least 3 GiB RAM ... [ ok ] * Checking for at least 7 GiB disk space at "/var/tmp/portage/dev-lang/rust-1.31.1/temp" ... [ ok ] >>> Unpacking source... >>> Unpacking rustc-1.31.1-src.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Unpacking rust-1.30.1-x86_64-unknown-linux-gnu.tar.xz to /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Source unpacked in /var/tmp/portage/dev-lang/rust-1.31.1/work >>> Preparing source in /var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src ... install: creating uninstall script at /var/tmp/portage/dev-lang/rust-1.31.1/work/rust-stage0/lib/rustlib/uninstall.sh install: installing component 'rustc' install: installing component 'cargo' install: installing component 'rls-preview' install: installing component 'clippy-preview' install: installing component 'rustfmt-preview' install: installing component 'llvm-tools-preview' install: installing component 'rust-analysis-x86_64-unknown-linux-gnu' install: installing component 'rust-std-x86_64-unknown-linux-gnu' install: installing component 'rust-docs' Rust is ready to roll. * Applying 1.30.1-clippy-sysroot.patch ... /var/tmp/portage/dev-lang/rust-1.31.1/temp/environment: line 1172: /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch : No such file or directory [ !! ] * ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch * * Call stack: * ebuild.sh, line 92: Called src_prepare * environment, line 4389: Called default * phase-functions.sh, line 868: Called default_src_prepare * phase-functions.sh, line 933: Called __eapi6_src_prepare * environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' * S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' >>> Failed to emerge dev-lang/rust-1.31.1, Log file: >>> '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log' * Messages for package dev-lang/rust-1.31.1: * ERROR: dev-lang/rust-1.31.1::myoverlay failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch * * Call stack: * ebuild.sh, line 92: Called src_prepare * environment, line 4389: Called default * phase-functions.sh, line 868: Called default_src_prepare * phase-functions.sh, line 933: Called __eapi6_src_prepare * environment, line 270: Called eapply '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1237: Called _eapply_patch '/var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * environment, line 1175: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch ' * isolated-functions.sh, line 121: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-lang/rust-1.31.1::myoverlay'`, * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.31.1::myoverlay'`. * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.31.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src' * S: '/var/tmp/portage/dev-lang/rust-1.31.1/work/rustc-1.31.1-src'
The error is:
But the file /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch exists! ?
# ls -lash /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch 4.0K -rw-r--r-- 1 root root 2.9K Jan 11 15:45 /var/tmp/portage/dev-lang/rust-1.31.1/files/1.30.1-clippy-sysroot.patch
What can I do ?
My best regards.
Duca.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts