Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 320085

Summary: media-libs/jpeg-8a: please install jpegint.h
Product: Gentoo Linux Reporter: Michael Weber (RETIRED) <xmw>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Weber (RETIRED) gentoo-dev 2010-05-17 02:18:05 UTC
A game i try to install uses internal functions of the jpeg library.
I've removed the bundled version and tried to replace it by the system version.

code in the game:
#define JPEG_INTERNALS
#include <jpeglib.h>

code in /usr/include/jpeglib.h
#ifdef JPEG_INTERNALS
#include "jpegint.h"            /* fetch private declarations */
#include "jerror.h"             /* fetch error codes too */
#endif

jerror.h is installed, jpegint.h is not.
I see the comment in above file "... Applications using the library should not include jpegint.h ...", but would it be possible to add that anyhow? 

Technically you have to add jpegint.h to INSTINCLUDES on line 303 of the Makefile.am/in
Comment 1 Azamat H. Hackimov 2010-05-17 12:07:35 UTC
This is wrong way. Try first delete 
#define JPEG_INTERNALS 
line from game sources. This #define not should exist in external projects.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-05-17 18:33:42 UTC
(In reply to comment #1)
> This is wrong way. Try first delete 
> #define JPEG_INTERNALS 
> line from game sources. This #define not should exist in external projects.

Thanks, i can read the comment inside the jpeg source by myself.
This 'just delete' works for urbanterror (bug 203296) and resulted in no obvious problems with the game/graphics. I have to check the server before closing this.


Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 13:34:32 UTC
I'll close it for you, then. Please reopen the bug report only when you've established there is a real bug and it's Gentoo's to fix (like a supported ebuild or related Gentoo software).