Bug 143502 - games-fps/doomsday-1.9.0_beta4 fails to compile due missing dependency from app-arch/zip
Bug#: 143502 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: scen@gentoo.org
Component: Games
URL: 
Summary: games-fps/doomsday-1.9.0_beta4 fails to compile due missing dependency from app-arch/zip
Keywords:  
Status Whiteboard: 
Opened: 2006-08-10 15:03 0000
Description:   Opened: 2006-08-10 15:03 0000
I've found that doomsday fails to compile if app-arch/zip is not installed.

In ./configure process appears this error:

[...]
checking for SDL/SDL_mixer.h... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
./configure: line 21006: zip: command not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Src/Makefile
[...]

and make process ends with this error:

[...]
Unix/lzss.c:1019: warning: the use of `tmpnam' is dangerous, better use
`mkstemp'
rm -f .libs/doomsdayS.o
make[3]: Leaving directory `/root/src/deng-1.9.0-beta4/Src'
make[2]: Leaving directory `/root/src/deng-1.9.0-beta4/Src'
make[2]: Entering directory `/root/src/deng-1.9.0-beta4'
make[2]: *** No rule to make target `Data/Doomsday.pk3', needed by `all-am'. 
Stop.
make[2]: Leaving directory `/root/src/deng-1.9.0-beta4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/deng-1.9.0-beta4'
make: *** [all] Error 2


Instant solution: emerge app-arch/zip
Final solution: add app-arch/zip to DEPEND in ebuild

:)

------- Comment #1 From Paul Bredbury 2006-09-09 09:29:47 0000 -------
Created an attachment (id=96490) [details]
doomsday-1.9.0_beta4-r1.patch

I confirm that this compilation problem still exists (also confirmed at
http://forums.gentoo.org/viewtopic-t-486828.html ). It is fixed in the enclosed
patch. It is caused by this line in the Makefile:

dist-zip: distdir
        -rm -f $(distdir).zip
        zip -rq $(distdir).zip $(distdir)

zip is being used to create /usr/share/games/deng/Data/Doomsday.pk3

------- Comment #2 From Tupone Alfredo 2006-10-08 02:51:26 0000 -------
Fixed in portage. Thanks for report and patch