Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470622 - media-gfx/ufraw : does not respect AR
Summary: media-gfx/ufraw : does not respect AR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2013-05-19 09:51 UTC by Agostino Sarubbo
Modified: 2013-05-23 05:45 UTC (History)
0 users

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


Attachments
ufraw-0.19.2.patch (ufraw-0.19.2.patch,76 bytes, patch)
2013-05-22 18:28 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-05-19 09:51:33 UTC
You receive this bug because this package does not respect my system's AR (x86_64-pc-linux-gnu-ar) and calls directly /usr/bin/ar
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export AR
3)inherit toolchain-funcs and use emake AR="$(tc-getAR)"


From the build log:

ar cru libufraw.a dcraw.o ufraw_ufraw.o ufraw_routines.o ufraw_developer.o ufraw_conf.o ufraw_writer.o ufraw_embedded.o ufraw_message.o ufobject.o ufraw_settings.o 
ufraw_lensfun.o wb_presets.o dcraw_api.o dcraw_indi.o nikon_curve.o ufraw_exiv2.o iccjpeg.o
Comment 1 Michael Mair-Keimberger (iamnr3) 2013-05-22 18:28:54 UTC
Created attachment 348936 [details, diff]
ufraw-0.19.2.patch

Simple patch which fixes the ar issue. please review.
Comment 2 Tim Harder gentoo-dev 2013-05-23 05:45:03 UTC
(In reply to comment #1)
> Created attachment 348936 [details, diff] [details, diff]
> ufraw-0.19.2.patch
> 
> Simple patch which fixes the ar issue. please review.

Usually generated autotools files shouldn't be modified, especially with sed since doing that isn't upstreamable and generated files change (often breaking patches or sed scripts). The best type of patch to fix this issue would be for upstream to add and use an AC_PROG_AR macro.

Otherwise you can do what's now done in the ebuild by overriding the variable during the compile phase.