Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47513 - swig-1.3.21 (fix for php)
Summary: swig-1.3.21 (fix for php)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-11 07:43 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2004-06-23 19:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
swig-1.3.21.ebuild (swig-1.3.21.ebuild,2.01 KB, text/plain)
2004-04-11 07:44 UTC, Diego Elio Pettenò (RETIRED)
Details
swig-1.3.21.diff (swig-1.3.21.diff,1.05 KB, patch)
2004-04-11 11:42 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2004-04-11 07:43:41 UTC
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'
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-04-11 07:44:05 UTC
Created attachment 29078 [details]
swig-1.3.21.ebuild
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-11 11:27:57 UTC
can you please post a diff
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-04-11 11:42:22 UTC
Created attachment 29099 [details, diff]
swig-1.3.21.diff

Here is it :)
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-11 17:44:00 UTC
commited, but depend on virtual/php instead of php
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-04-11 18:03:59 UTC
can't commit at the moment, because there is no php version for mips in portage, waiting for the mips team ;)
Comment 6 Dennis Freise 2004-05-17 08:18:04 UTC
Since there has passed some time, and swig fails now for the portage php - what's the status of this bug ?
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-24 05:30:50 UTC
i'm waiting for the mips team to test a php version
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2004-06-14 08:17:23 UTC
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).
Comment 9 Ciaran McCreesh 2004-06-14 08:23:54 UTC
Er, isn't this why we have use masking?
Comment 10 Stephen Becker (RETIRED) gentoo-dev 2004-06-14 08:27:11 UTC
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.
Comment 11 Joshua Kinard gentoo-dev 2004-06-14 14:21:16 UTC
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.
Comment 12 SpanKY gentoo-dev 2004-06-23 19:10:55 UTC
added to portage since mips did their thing