Created attachment 355158 [details] turtlearena-0.6.1:20130805-115459.log code/renderer/tr_image_jpg.c:41:6: error: #error Need system libjpeg >= 80 # error Need system libjpeg >= 80
The version check is propably bogus because libjpeg-turbo-1.3.0-r2 has jpeg_mem_src() and jpeg_mem_dest() in libjpeg.so.62 ABI
Created attachment 355172 [details, diff] turtlearena-0.6.1.ebuild.patch Fix bogus version check.
Created attachment 355174 [details] build.log after fixing jpeg version check After fixing the bogus JPEG version check, the package fails to compile w/ freetype2 x86_64-pc-linux-gnu-gcc -fPIC -fvisibility=hidden -march=native -O2 -pipe -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DUSE_ICON -I/usr/include/freetype2 -I/usr/include/minizip -I/usr/include/freetype2 -DDEFAULT_BASEDIR=\"/usr/share/games/turtlearena\" -DPRODUCT_VERSION=\"0.6.1_IOQ3ZTMr113\" -Wformat=2 -Wno-format-zero-length -Wformat-security -Wno-format-nonliteral -Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization -Werror-implicit-function-declaration -DNOTRATEDM -DNOBLOOD -DIOQ3ZTM -DIOQ3ZTM_NO_COMPAT -DIOQ3ZTM_NO_TEAM_MODEL -DTA_HOLDSYS -DTA_ITEMSYS -DTA_WEAPSYS -DTA_PLAYERSYS -DTA_SUPPORTQ3 -DTA_ENTSYS -DTA_NPCSYS -DTA_PATHSYS -DTA_WEAPSYS_EX_COMPAT -DTA_BLOOM -DTA_SPLITVIEW -DTURTLEARENA -DTA_MISC -DTA_SP -DTA_WEAPSYS_EX -DTA_DATA -DNIGHTSMODE -DTA_GAME_MODELS -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/AL -DUSE_OPENAL -DUSE_CURL -DUSE_CODEC_VORBIS -DNDEBUG -o build/release-linux-x86_64/renderer/tr_image_png.o -c code/renderer/tr_image_png.c In file included from code/renderer/tr_font.c:50:0: /usr/include/freetype2/freetype/fterrors.h:151:34: error: expected ‘,’ or ‘}’ before ‘(’ token FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s ) ^ /usr/include/freetype2/freetype/fterrors.h:133:33: note: in definition of macro ‘FT_ERRORDEF’ #define FT_ERRORDEF( e, v, s ) e = v, ^ /usr/include/freetype2/freetype/fterrdef.h:34:3: note: in expansion of macro ‘FT_NOERRORDEF_’ FT_NOERRORDEF_( Ok, 0x00, \ ^
yeah, it was 2 different bugs. backported the freetype patch from ioquake git. + 06 Aug 2013; Samuli Suominen <ssuominen@gentoo.org> turtlearena-0.6.1.ebuild, + +files/turtlearena-0.6.1-freetype.patch: + Fix building with libjpeg-turbo extended libjpeg.so.62 API with + jpeg_mem_src() and jpeg_mem_dest() wrt #479822 by Julian Ospald. Fix + freetype2 related build error wrt #479822#c3.