I'm trying to install gnustep-apps/cynthiune-0.9.4. First, there is an unlisted dependency of media-libs/audiofile, Cynthiune doesn't compile without it. Second, the USE-flags doesn't work as they should. For example, I don't have media-sound/esound installed on the machine I'm working on, so the corresponding USE-flag is set to "-esd". However, the compilation stops with the following error: Making all in Bundles/Esound... make[1]: esd-config: Command not found make[1]: Entering directory `/var/tmp/portage/cynthiune-0.9.4/work/Cynthiune-0.9.4/Bundles/Esound' make[1]: esd-config: Command not found make[1]: Entering directory `/var/tmp/portage/cynthiune-0.9.4/work/Cynthiune-0.9.4/Bundles/Esound' make[1]: Entering directory `/var/tmp/portage/cynthiune-0.9.4/work/Cynthiune-0.9.4/Bundles/Esound' Making all for bundle Esound... make[2]: esd-config: Command not found make[2]: esd-config: Command not found Creating Esound.output/.... Compiling file Esound.m ... cc1: warning: command line option "-fgnu-runtime" is valid for ObjC/ObjC++ but not for C cc1: warning: command line option "-fconstant-string-class=NSConstantString" is valid for ObjC/ObjC++ but not for C Esound.m:29:16: warning: esd.h: Tiedostoa tai hakemistoa ei ole Esound.m: In function `-[Esound _openSocket]': Esound.m:93: warning: implicit declaration of function `esd_play_stream' Esound.m:93: error: `ESD_BITS16' undeclared (first use in this function) Esound.m:93: error: (Each undeclared identifier is reported only once Esound.m:93: error: for each function it appears in.) Esound.m:94: error: `ESD_STREAM' undeclared (first use in this function) Esound.m:94: error: `ESD_PLAY' undeclared (first use in this function) Esound.m:99: warning: implicit declaration of function `esd_play_stream_fallback' Esound.m: In function `-[Esound prepareDeviceWithChannels:andRate:]': Esound.m:145: error: `ESD_MONO' undeclared (first use in this function) Esound.m:148: error: `ESD_STEREO' undeclared (first use in this function) distcc[6225] ERROR: compile Esound.m on 192.168.1.10 failed make[2]: *** [shared_obj/Esound.o] Error 1 make[1]: *** [Esound.all.bundle.variables] Error 2 make[1]: Leaving directory `/var/tmp/portage/cynthiune-0.9.4/work/Cynthiune-0.9.4/Bundles/Esound' make: *** [internal-all] Error 2 !!! ERROR: gnustep-apps/cynthiune-0.9.4 failed. !!! Function egnustep_make, Line 172, Exitcode 2 !!! package make failed !!! If you need support, post the topmost build error, NOT this status message. I.e. the script looks for esd-config, although it shouldn't, because USE="-esd" is set. If Cynthiune really needs all the dependencies to compile, they should NOT be marked as optional (via the USE-flags). Please, make a proper ebuild
Well, I fixed the ebuild myself ;) Here's a patch and a complete ebuild. I haven't got much experience on making these ebuilds, hopefully this one is correct. At least it worked...
Created attachment 78406 [details, diff] gnustep-apps/cynthiune-0.9.4-r1 patch
Created attachment 78407 [details] gnustep-apps/cynthiune-0.9.4-r1 ebuild
Jouni, Thanks, I took over your changes. Indeed the USE-flags looked somewhat daft since they weren't handled in any way.