Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260743 - media-libs/devil-1.7.7: fix building when manually installed nvidia-texture-tools is present
Summary: media-libs/devil-1.7.7: fix building when manually installed nvidia-texture-t...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-01 16:22 UTC by Frank Richter
Modified: 2009-03-05 23:03 UTC (History)
0 users

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


Attachments
Patch to DevIL sources to remove an unused include file in the nvtt support. (devil-remove-unused-nvtt-include.patch,291 bytes, patch)
2009-03-01 16:23 UTC, Frank Richter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Richter 2009-03-01 16:22:13 UTC
DevIL can optionally use the nvidia-texture-tools for DXT compression. While gentoo doesn't have an ebuild for nvidia-texture-tools the DevIL configuration may pick up manually installed nvidia-texture-tools.

The source file for the nvidia-texture-tools (il_nvidia.cpp) references an include file which is not installed by nvidia-texture-tools. Judging from the source code the source file in question isn't used either. Thus the attached patch to disable this include file.

Reproducible: Always

Steps to Reproduce:
1. Manually install nvidia-texture-tools (system-wide).
2. Emerge media-libs/devil-1.7.7
3.

Actual Results:  
DevIL compilation fails: ./../src-IL/src/il_nvidia.cpp:22:27: error: nvcore/Memory.h: No such file or directory

Expected Results:  
Compilation succeeds.
Comment 1 Frank Richter 2009-03-01 16:23:28 UTC
Created attachment 183570 [details, diff]
Patch to DevIL sources to remove an unused include file in the nvtt support.

The attached patch needs to be applied to the DevIL source before building to make it work when nvidia-texture-tools are detected.
Comment 2 Rafał Mużyło 2009-03-02 15:48:51 UTC
That would not be a correct way to do it -
it would create automagical dependency.
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-05 23:03:32 UTC
No can do. Make an ebuild for nvidia-texture-tools, then there can be talked about patching devil to accomodate it.