Created attachment 674749 [details] emerge --info I cannot emerge the package as it fails very early: * Applying duktape-2.6.0-respect-tc-env.patch ... patching file Makefile Hunk #3 FAILED at 85. 1 out of 3 hunks FAILED -- saving rejects to file Makefile.rej [ !! ] * ERROR: dev-lang/duktape-2.6.0::gentoo failed (prepare phase): * patch -p1 failed with /var/tmp/portage/dev-lang/duktape-2.6.0/files/duktape-2.6.0-respect-tc-env.patch * * Call stack: * ebuild.sh, line 125: Called src_prepare * environment, line 1077: Called default * phase-functions.sh, line 855: Called default_src_prepare * phase-functions.sh, line 920: Called __eapi6_src_prepare * environment, line 151: Called eapply '/var/tmp/portage/dev-lang/duktape-2.6.0/files/duktape-2.6.0-respect-tc-env.patch' * environment, line 411: Called _eapply_patch '/var/tmp/portage/dev-lang/duktape-2.6.0/files/duktape-2.6.0-respect-tc-env.patch' * environment, line 349: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/dev-lang/duktape-2.6.0/files/duktape-2.6.0-respect-tc-env.patch' * isolated-functions.sh, line 112: Called die
Created attachment 674752 [details] build.log
ebuild has: # Set lib folder sed -i "s#(INSTALL_PREFIX)/lib#(INSTALL_PREFIX)/$(get_libdir)#" \ Makefile.sharedlibrary || die For current profile that will be "(INSTALL_PREFIX)/lib" but patch has harcoded: - [...] -L$(INSTALL_PREFIX)/lib64 [...]
(In reply to Ionen Wolkens from comment #2) > ebuild has: > > # Set lib folder > sed -i "s#(INSTALL_PREFIX)/lib#(INSTALL_PREFIX)/$(get_libdir)#" \ > Makefile.sharedlibrary || die > > For current profile that will be "(INSTALL_PREFIX)/lib" but patch has > harcoded: > > - [...] -L$(INSTALL_PREFIX)/lib64 [...] I have a feeling I meant to commit the apply order to be the other way around or something. I'll look at this later.
Created attachment 674758 [details, diff] 0001-dev-lang-duktape-fix-respect-tc-env-patch.patch I was fixing it up myself just now, so here's a patch if wanted
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4a48240576cba047811227db08e26bdf680b8b commit fe4a48240576cba047811227db08e26bdf680b8b Author: Ionen Wolkens <sudinave@gmail.com> AuthorDate: 2020-11-24 21:27:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-11-24 21:39:51 +0000 dev-lang/duktape: fix respect-tc-env patch Closes: https://bugs.gentoo.org/756367 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-lang/duktape/duktape-2.6.0.ebuild | 4 ++-- dev-lang/duktape/files/duktape-2.6.0-respect-tc-env.patch | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-)