-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
media-libs/x264 fails to build during prepare phase #602
Comments
I swear, this is the most problematic package right now. I'm just going to fork the ebuild. |
You have any idea what is causing this or how to resolve the issue? |
You can add Edit: This works too instead of compiling the entire package with
|
Great thank you, I will try this solution tomorrow evening when I have some time. I should leave this issue open if the solution works right? |
Thank the patch worked like a charm! any chance this will be merged upstream? |
I'm not sure who should take "responsibility" for this. |
The issue with this patch is that it's generated after the I wonder, can the lto patch be applied after the gentoo patch? |
Does changing "prepare" to "configure" work? |
Yeah, that works to apply the patch, at least, but idk if it works with other packages, and the build still fails at |
I don't think there are any packages which depend on lto patches before gentoo patches, so it should probably be changed to configure @InBetweenNames |
I haven't tested extensively, but this workaround seems to break |
qtcore or qtgui? I don't think it should be doing anything for a package without patches in this repo |
My bad, it was qtcore. |
I think I know what's going on with this one. The qtcore ebuild now has:
When using "configure" the patch fails due to The lto patch for qtcore here should be removed. I think this shows "configure" should still be used in |
After this issue is closed, I still cannot emerge the media-libs/x264-0.0.20190214. It says:
and the
After looking at |
Whoops, looks like this is still needed: #635 @InBetweenNames please commit below as updated patch
|
media-libs/x264 fails to build on my system while performing an @world update.
Failed attempts I took to fix the issue:
The lto patch fails in every package version, except for the 9999 one where it gives me a little endian check error.
Error log of normal package no ~amd64:
media-libs/x264: 21 seconds average for 2 merges
2020-08-30T20:50:42 >>> media-libs/x264: 21 seconds
2020-08-31T23:14:47 >>> media-libs/x264: 21 seconds
patching file configure
Hunk Create CODE_OF_CONDUCT.md #1 FAILED at 1017.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej [ !! ]
emerge --info '=media-libs/x264-0.0.20190214::gentoo'
,emerge -pqv '=media-libs/x264-0.0.20190214::gentoo'
.Messages for package media-libs/x264-0.0.20190214:
ERROR: media-libs/x264-0.0.20190214::gentoo failed (prepare phase):
patch -p1 failed with /var/lib/layman/lto-overlay/sys-config/ltoize/files/patches/media-libs/x264/lto.patch
Call stack:
isolated-functions.sh, line 112: Called die
The specific snippet of code:
If you need support, post the output of
emerge --info '=media-libs/x264-0.0.20190214::gentoo'
,the complete build log and the output of
emerge -pqv '=media-libs/x264-0.0.20190214::gentoo'
.The complete build log is located at '/var/tmp/portage/media-libs/x264-0.0.20190214/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/media-libs/x264-0.0.20190214/temp/environment'.
Working directory: '/var/tmp/portage/media-libs/x264-0.0.20190214/work/x264-snapshot-20190214-2245'
S: '/var/tmp/portage/media-libs/x264-0.0.20190214/work/x264-snapshot-20190214-2245'
Error for 9999 package:
nitialized empty Git repository in /var/cache/distfiles/git3-src/videolan_x264.git/
git fetch https://code.videolan.org/videolan/x264.git +HEAD:refs/git-r3/HEAD
remote: Enumerating objects: 22410, done.
remote: Counting objects: 100% (22410/22410), done.
remote: Compressing objects: 100% (3875/3875), done.
remote: Total 22410 (delta 18590), reused 22295 (delta 18492), pack-reused 0
Receiving objects: 100% (22410/22410), 5.21 MiB | 12.67 MiB/s, done.
Resolving deltas: 100% (18590/18590), done.
From https://code.videolan.org/videolan/x264
git symbolic-ref refs/git-r3/media-libs/x264/0/main refs/git-r3/HEAD
git checkout --quiet refs/git-r3/HEAD
GIT NEW branch -->
repository: https://code.videolan.org/videolan/x264.git
at the commit: db0d417728460c647ed4a847222a535b00d3dbcb
endian test failed
emerge --info '=media-libs/x264-9999::gentoo'
,emerge -pqv '=media-libs/x264-9999::gentoo'
.Messages for package media-libs/x264-9999:
lto-overlay: LTO patches applied.
ERROR: media-libs/x264-9999::gentoo failed (configure phase):
(no error message)
Call stack:
environment, line 3830: Called multilib-minimal_src_configure
environment, line 3116: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
environment, line 3369: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
environment, line 3046: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
environment, line 3044: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
environment, line 1848: Called multilib-minimal_abi_src_configure
environment, line 3110: Called multilib_src_configure
environment, line 3609: Called die
The specific snippet of code:
If you need support, post the output of
emerge --info '=media-libs/x264-9999::gentoo'
,the complete build log and the output of
emerge -pqv '=media-libs/x264-9999::gentoo'
.The complete build log is located at '/var/tmp/portage/media-libs/x264-9999/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/media-libs/x264-9999/temp/environment'.
Working directory: '/var/tmp/portage/media-libs/x264-9999/work/x264-9999-abi_x86_64.amd64'
S: '/var/tmp/portage/media-libs/x264-9999/work/x264-9999'
The text was updated successfully, but these errors were encountered: