Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947190 - dev-lang/ruby-3.4.1: fails to build with musl: 901-musl-*.patch: No such file or directory
Summary: dev-lang/ruby-3.4.1: fails to build with musl: 901-musl-*.patch: No such file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-30 05:08 UTC by misile
Modified: 2025-01-05 15:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info's output (emerge-info.txt,6.62 KB, text/plain)
2024-12-30 05:08 UTC, misile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misile 2024-12-30 05:08:27 UTC
Created attachment 915503 [details]
emerge --info's output

```
$ doas cat /var/tmp/portage/dev-lang/ruby-3.4.1/temp/build.log | ansifilter
 * Package:    dev-lang/ruby-3.4.1:3.4
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl jit kernel_linux ssl
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Checking whether Rust 1.83.0 is suitable ...
 *  Checking for dev-lang/rust:1.83.0 ...
 * Using Rust 1.83.0 (source)
>>> Unpacking source...
>>> Unpacking ruby-3.4.1.tar.xz to /var/tmp/portage/dev-lang/ruby-3.4.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ruby-3.4.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1 ...
 * Applying 010-default-gem-location.patch ...
 [ ok ]
 * Applying 902-hppa-pthread-stack-size.patch ...
 [ ok ]
 * Applying 901-musl-*.patch ...
/var/tmp/portage/dev-lang/ruby-3.4.1/temp/environment: line 1062: /var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch: No such file or directory
/var/tmp/portage/dev-lang/ruby-3.4.1/temp/environment: line 1065: /var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch: No such file or directory
 [ !! ]
 * ERROR: dev-lang/ruby-3.4.1::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch
 * 
 * Call stack:
 *               ebuild.sh, line  136:  Called src_prepare
 *             environment, line 2322:  Called eapply '/var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch'
 *             environment, line 1130:  Called _eapply_patch '/var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch'
 *             environment, line 1068:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/dev-lang/ruby-3.4.1/files/3.4/901-musl-*.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/ruby-3.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-3.4.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-3.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-3.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1'
 * S: '/var/tmp/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1'
```
Comment 1 publiccontact2020 2024-12-30 22:34:44 UTC
cmake failed

make[2]: Leaving directory '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1/ext/openssl'
make[1]: Leaving directory '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1'
make: *** [uncommon.mk:415: build-ext] Error 2
 [31;01m*[0m ERROR: dev-lang/ruby-3.4.1::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-30 22:36:30 UTC
(In reply to publiccontact2020 from comment #1)
> cmake failed
> 
> make[2]: Leaving directory
> '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1/ext/openssl'
> make[1]: Leaving directory
> '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1'
> make: *** [uncommon.mk:415: build-ext] Error 2
>  [31;01m*[0m ERROR: dev-lang/ruby-3.4.1::gentoo failed (compile phase):
>  [31;01m*[0m   emake failed

Please file a separate bug for this issue with the full build.log and emerge --info.
Comment 3 Larry the Git Cow gentoo-dev 2025-01-05 15:48:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ca09a993634037c43791785c2e70b395debb28f

commit 1ca09a993634037c43791785c2e70b395debb28f
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2025-01-05 15:47:41 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2025-01-05 15:47:41 +0000

    dev-lang/ruby: add missing conditional musl patch
    
    Closes: https://bugs.gentoo.org/947190
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-lang/ruby/files/3.4/901-musl-stacksize.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)