Hi, The attached ebuild is a fix for swig-1.3.21, which adds a local flag php to remove the auto-detection of php. This because if you have php self-compiled (like I have), swig continue failing php detecion (not sure if can be also with portaged php for recent version, the error is this: gcc -DHAVE_CONFIG_H -I. -I. -I../Source/Include -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -g -O2 -Wall -MT libswigphp4_la-libphp4.lo -MD -MP -MF .deps/libswigphp4_la-libphp4.Tpo -c libphp4.c -fPIC -DPIC -o .libs/libswigphp4_la-libphp4.o libphp4.c: In function `SWIG_ZTS_ConvertResourcePtr': libphp4.c:475: error: too few arguments to function `zend_rsrc_list_get_rsrc_type' libphp4.c: In function `SWIG_ZTS_ConvertPtr': libphp4.c:500: warning: dereferencing type-punned pointer will break strict-aliasing rules libphp4.c:491: warning: unused variable `val' libphp4.c: At top level: libphp4.c:324: warning: `SWIG_landfill' defined but not used make[1]: *** [libswigphp4_la-libphp4.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/swig-1.3.21/work/SWIG-1.3.21/Runtime' make: *** [runtime] Error 2 Diego 'Flameeyes'
Created attachment 29078 [details] swig-1.3.21.ebuild
can you please post a diff
Created attachment 29099 [details, diff] swig-1.3.21.diff Here is it :)
commited, but depend on virtual/php instead of php
can't commit at the moment, because there is no php version for mips in portage, waiting for the mips team ;)
Since there has passed some time, and swig fails now for the portage php - what's the status of this bug ?
i'm waiting for the mips team to test a php version
We're still waiting mips team since 2004-04-11 ? Why don't release a 1.3.21-r1 which doesn't appear in mips, so we can have it fixed for other archs (I think there's a lot more people using one of the other archs than mips).
Er, isn't this why we have use masking?
Hmm...I dont really have the expertise to properly test php, so I've not touched this one. Can someone else jump on this? I'm not sure any of the other devs are using php at all on mips right now though.
There are a few users on the Cobalt side of things who have reportedly been using php, so I'll assume it works okay enough. Marking 4.3.7 stable, and one of the 5.0's unstable.
added to portage since mips did their thing