Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884635 - net-analyzer/ttcp-1.12-r3 fails to compile: mv: cannot move ttcp-1.12.c to ttcp.c: Permission denied
Summary: net-analyzer/ttcp-1.12-r3 fails to compile: mv: cannot move ttcp-1.12.c to tt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-07 07:39 UTC by Agostino Sarubbo
Modified: 2022-12-09 17:17 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,42.67 KB, text/plain)
2022-12-07 07:39 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-07 07:39:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-analyzer/ttcp-1.12-r3 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-07 07:39:29 UTC
Created attachment 840587 [details]
build.log

build log and emerge --info
Comment 2 Gary E. Miller 2022-12-08 18:50:18 UTC
Same here.
Comment 3 Konrad Karczewski 2022-12-09 08:09:35 UTC
The problem is the 'mv' in src_prepare():

src_prepare() {
        mv "${DISTDIR}"/${P}.c ${PN}.c || die
        default
}

replacing it with 'cp' allows the package to build just fine. We simply are not allowed to remove anything from distfiles.
Comment 4 Larry the Git Cow gentoo-dev 2022-12-09 16:51:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ce3882b9e54417f5ac0cf4f0d57d9367b4bc77c

commit 0ce3882b9e54417f5ac0cf4f0d57d9367b4bc77c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-09 16:51:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-09 16:51:27 +0000

    net-analyzer/ttcp: fix src_prepare
    
    Closes: https://bugs.gentoo.org/884635
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/ttcp/ttcp-1.12-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)