Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940064 - dev-lang/swig-4.2.1: swig-4.2.1-tests-fpic.patch: No such file or directory
Summary: dev-lang/swig-4.2.1: swig-4.2.1-tests-fpic.patch: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 17:35 UTC by James H
Modified: 2024-09-23 00:36 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James H 2024-09-22 17:35:07 UTC
Upon updating the @world with the default/linux/amd64/23.0/desktop/plasma profile the following error occurs.

 * Package:    dev-lang/swig-4.2.1:0
 * Repository: gentoo
 * Maintainer: scheme@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux pcre
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking swig-4.2.1.tar.gz to /var/tmp/portage/dev-lang/swig-4.2.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/swig-4.2.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/swig-4.2.1/work/swig-4.2.1 ...
 * Applying swig-4.2.1-tests-fpic.patch ...
/var/tmp/portage/dev-lang/swig-4.2.1/temp/environment: line 417: /var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.patch: No such file or directory
/var/tmp/portage/dev-lang/swig-4.2.1/temp/environment: line 420: /var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.patch: No such file or directory
 [ !! ]
 * ERROR: dev-lang/swig-4.2.1::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.patch
 * 
 * Call stack:
 *               ebuild.sh, line  136:  Called src_prepare
 *             environment, line 1167:  Called default
 *      phase-functions.sh, line  873:  Called default_src_prepare
 *      phase-functions.sh, line  949:  Called __eapi8_src_prepare
 *             environment, line  301:  Called eapply '--' '/var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.patch'
 *             environment, line  485:  Called _eapply_patch '/var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.patch'
 *             environment, line  423:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/dev-lang/swig-4.2.1/files/swig-4.2.1-tests-fpic.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/swig-4.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/swig-4.2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/swig-4.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/swig-4.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/swig-4.2.1/work/swig-4.2.1'
 * S: '/var/tmp/portage/dev-lang/swig-4.2.1/work/swig-4.2.1'
Comment 1 Andreas Sturmlechner gentoo-dev 2024-09-22 18:16:07 UTC
Whatever you're doing, this patch is not part of the official ebuild. It does not apply a single patch, and has not been changed since first added to ::gentoo.
Comment 2 Anders Larsson 2024-09-22 18:30:25 UTC
Hi Andreas,

It looks like it was added in this commit and is part of ::gentoo https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-lang/swig/swig-4.2.1.ebuild?id=228410dfe66b2f9b6c738675c1ad5656d9235aed.

Maybe it was a patch initially, but then changed to `sed' command instead but PATCHES is still defined?
Comment 3 James H 2024-09-22 18:34:03 UTC
It seems like it has no relation to KDE or the fact it is during a new install. I apologize for the misinformation as I thought it was in relation to KDE. Somebody else I'm talking too on Discord updated portage and attempted to install dev-lang/swig and got the same errors. I'm still learning Gentoo so sorry for the changes in information etc.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-23 00:35:07 UTC
(In reply to Anders Larsson from comment #2)
> Hi Andreas,
> 
> It looks like it was added in this commit and is part of ::gentoo
> https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-lang/swig/swig-4.2.1.
> ebuild?id=228410dfe66b2f9b6c738675c1ad5656d9235aed.
> 
> Maybe it was a patch initially, but then changed to `sed' command instead
> but PATCHES is still defined?

That's exactly what happened :D
Comment 5 Larry the Git Cow gentoo-dev 2024-09-23 00:36:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70712e467abc2e7e112e973197d04866ba3a9117

commit 70712e467abc2e7e112e973197d04866ba3a9117
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-23 00:35:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-23 00:35:04 +0000

    dev-lang/swig: drop leftover patch
    
    I switched it to a sed in the end because eautoreconf didn't work
    and I didn't want to spend time debugging it. Sorry!
    
    Bug: https://bugs.gentoo.org/935318
    Bug: https://bugs.gentoo.org/900769
    Closes: https://bugs.gentoo.org/940064
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/swig/files/swig-4.2.1-tests-fpic.patch | 115 ------------------------
 dev-lang/swig/swig-4.2.1.ebuild                 |   4 -
 2 files changed, 119 deletions(-)