Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509670 - dev-libs/gmp[pgo]: typo in renaming generated header file
Summary: dev-libs/gmp[pgo]: typo in renaming generated header file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 09:21 UTC by Mikael Magnusson
Modified: 2014-05-08 20:01 UTC (History)
0 users

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 Mikael Magnusson 2014-05-06 09:21:07 UTC
TLDR There's a typo on the line that runs tuneup, it should be a - and not a . in the filename gmp-mparam.h.new.

The pgo useflag for gmp causes the tuneup program to be ran, and then the library to be recompiled with new tuned flags. However, the ebuild has this code:

	if use pgo ; then
		emake -j1 -C tune tuneup
		ebegin "Trying to generate tuned data"
		./tune/tuneup | tee gmp.mparam.h.new
		if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then
			mv gmp-mparam.h.new gmp-mparam.h
			emake clean
			emake
		fi
	fi

The tee command writes to a file called gmp.mparam.h.new but the mv command tries to move a file gmp-mparam.h.new that does not exist, causing the whole thing to have no effect.