From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH] Add extremetuxracer (Note: needs help!) Date: Mon, 27 Apr 2015 22:43:28 +0800 Message-ID: <874mo11vjj.fsf@gmail.com> References: <87sibmi38e.fsf@earlgrey.lan> <878udexhxz.fsf@gmail.com> <87pp6pitxb.fsf@earlgrey.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmkFR-0003xL-F3 for guix-devel@gnu.org; Mon, 27 Apr 2015 10:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmkFM-0004wP-DQ for guix-devel@gnu.org; Mon, 27 Apr 2015 10:43:01 -0400 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:35711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmkFM-0004wE-1w for guix-devel@gnu.org; Mon, 27 Apr 2015 10:42:56 -0400 Received: by pdbqd1 with SMTP id qd1so130717304pdb.2 for ; Mon, 27 Apr 2015 07:42:55 -0700 (PDT) In-Reply-To: <87pp6pitxb.fsf@earlgrey.lan> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: guix-devel Christopher Allan Webber writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > >> Christopher Allan Webber writes: >> >>> Hello all! >>> >>> Can we really and truly claim ourselves to be a GNU/Linux distribution >>> without the token inclusion of our beloved TuxRacer? Egads! >>> >>> Well, I attempted to package it, but I'm running into trouble. Perhaps >>> someone here can help? >>> >>> Here is the problem I run into: >>>=20=20=20 >>> checking for sdl-config... /gnu/store/pvcr6n01ylrj3g9ggwp98bmrzyd0h29= q-sdl-1.2.15/bin/sdl-config >>> checking for SDL - version >=3D 1.0.0... yes >>> checking for pkg-config... no >>> checking for SDLIMAGE... no >>> configure: error: SDL_image not found >>> phase `configure' failed after 7 seconds >>> >>> But sdl-image is in the inputs! What am I doing wrong? >> You need 'pkg-config', so add it to 'native-inputs'. >> >> Look at the 'configure.ac', it contains: >> >> PKG_CHECK_MODULES([SDLIMAGE], [SDL_image], ...) >> >> That's all I see :-) > > Thank you, and you're right! Shows how little I know about building > traditional packages. Ah well, Guix is helping me there! > > But now I am having a new problem: > > g++ -DHAVE_CONFIG_H -I. -DETR_DATA_DIR=3D\"/gnu/store/bhfr0gh4nlna1k7= wcy2qm1w4d0gsmwh5-extremetuxracer-0.6.0/share\" -g -O2 -I/gnu/store/s3myrs= qza4nnh4lrhmh51r9vzc4392pm-freetype-2.5.5/include/freetype2 -std=3Dc++11 -M= T course.o -MD -MP -MF .deps/course.Tpo -c -o course.o course.cpp > In file included from bh.h:62:0, > from common.h:21, > from common.cpp:22: > /gnu/store/g5xq9m0l5qclk0f47mf6vybrnqav0vmg-sdl-image-1.2.12/include/SD= L/SDL_image.h:27:17: fatal error: SDL.h: No such file or directory > #include "SDL.h" > ^ > compilation terminated. > Makefile:612: recipe for target 'common.o' failed > make[2]: *** [common.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > In file included from bh.h:62:0, > from course.cpp:22: > /gnu/store/g5xq9m0l5qclk0f47mf6vybrnqav0vmg-sdl-image-1.2.12/include/SD= L/SDL_image.h:27:17: fatal error: SDL.h: No such file or directory > #include "SDL.h" > ^ > compilation terminated. > Makefile:612: recipe for target 'course.o' failed > make[2]: *** [course.o] Error 1 > In file included from bh.h:62:0, > from audio.h:20, > from audio.cpp:21: > /gnu/store/g5xq9m0l5qclk0f47mf6vybrnqav0vmg-sdl-image-1.2.12/include/SD= L/SDL_image.h:27:17: fatal error: SDL.h: No such file or directory > #include "SDL.h" > ^ > compilation terminated. > Makefile:612: recipe for target 'audio.o' failed > make[2]: *** [audio.o] Error 1 > In file included from bh.h:62:0, > from config_screen.h:20, > from config_screen.cpp:42: > /gnu/store/g5xq9m0l5qclk0f47mf6vybrnqav0vmg-sdl-image-1.2.12/include/SD= L/SDL_image.h:27:17: fatal error: SDL.h: No such file or directory > #include "SDL.h" > ^ > compilation terminated. > Makefile:612: recipe for target 'config_screen.o' failed > make[2]: *** [config_screen.o] Error 1 > make[2]: Leaving directory '/tmp/nix-build-extremetuxracer-0.6.0.drv-0/= etr-0.6.0' > Makefile:632: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory '/tmp/nix-build-extremetuxracer-0.6.0.drv-0/= etr-0.6.0' > Makefile:457: recipe for target 'all' failed > make: *** [all] Error 2 > > sdl is an input, so I don't know what's going on... > > Sorry! I thought this one was going to be an easy package that I > wouldn't need much help on! oops, I take a deep look. It turn out that this package set the flags (for SDL, etc.) as 'CFLAGS', but it only use 'CXXFLAGS' (only have freetype) when compile cpp files. I think we can patch the Makefile after 'configure' phase, by: (substitute* "Makefile" (("CXXFLAGS =3D") "CXXFLAGS =3D ${CFLAGS)")) And better, ask upstream for a real fix :-)