[MacPorts] #14795: BUG: php4 fails if sablotron was build with javascript variant
#14795: BUG: php4 fails if sablotron was build with javascript variant ----------------------------------------+----------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | ----------------------------------------+----------------------------------- Attached is a proposed patch to allow php4 to recognize if[[BR]] sablotron was build with the javascript variant. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14795> MacPorts </projects/macports> Ports system for Mac OS
#14795: BUG: php4 fails if sablotron was build with javascript variant -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: jwa@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Changes (by jmr@macports.org): * cc: jwa@macports.org (removed) * owner: macports-tickets@lists.macosforge.org => jwa@macports.org -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14795#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14795: BUG: php4 fails if sablotron was built with javascript variant -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: jwa@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Changes (by ryandesign@macports.org): * summary: BUG: php4 fails if sablotron was build with javascript variant => BUG: php4 fails if sablotron was built with javascript variant Comment: Ugly fix. There must be a way to do this using MacPorts APIs without resorting to shelling out to a new "port" process. In what way does the php4 build fail if sablotron is built with the javascript variant? What error message? In case anyone was wondering, this shouldn't affect php5 or php5-devel since they don't depend on sablotron. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14795#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14795: BUG: php4 fails if sablotron was built with javascript variant -----------------------------------------+---------------------------------- Reporter: marcuscalhounlopez@mac.com | Owner: jwa@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: -----------------------------------------+---------------------------------- Comment (by marcuscalhounlopez@mac.com): Basically, php4 needs to know about the javascript library spidermonkey.[[BR]] The specific error is below. I agree that the fix is ugly, but I do not know of a better fix within the MacPorts API.[[BR]] To my knowledge, there is no "variant_isset" command for previously installed ports.[[BR]] The only solutions I have thought of are to: * Use the ugly fix. * Cease making javascript a variant in sablotron and simply have it be part of the port (thus ensuring "--with-sablot-js=${prefix}" is always correct). * Have php4 +xlst depend on spidermonkey and always use "--with-sablot- js=${prefix}." * Have php4 test if the file ${prefix}/lib/libjs.dylib exists and use "--with-sablot-js=${prefix}" if it does. If "--with-sablot-js=${prefix}" is used and spidermonkey is not installed, the error is: {{{ checking for JS_GetRuntime in -ljs... no configure: error: libjs not found. Please check config.log for more information. }}} If "--with-sablot-js=${prefix}" is not used, and sablotron links against it, the error is: {{{ DEBUG: Executing org.macports.destroot (php4) DEBUG: Environment: DEBUG: Assembled command: 'cd "/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/php-4.4.8" && make install-cli install-pear install-build install-headers install- programs INSTALL_ROOT=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot PHP_PEAR_INSTALL_DIR=/Users/mcalhoun/opt/local/lib/php DESTDIR=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot' Installing PHP CLI binary: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/bin/ Installing PHP CLI man page: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/share/man/man1/ Installing PEAR environment: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/lib/php4/ dyld: Symbol not found: _JS_ConvertStub Referenced from: /Users/mcalhoun/opt/local/lib/libsablot.0.dylib Expected in: flat namespace make[1]: *** [install-pear-packages] Trace/BPT trap make: *** [install-pear] Error 2 Error: Target org.macports.destroot returned: shell command " cd "/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/php-4.4.8" && make install-cli install-pear install-build install-headers install- programs INSTALL_ROOT=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot PHP_PEAR_INSTALL_DIR=/Users/mcalhoun/opt/local/lib/php DESTDIR=/Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot " returned error 2 Command output: Installing PHP CLI binary: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/bin/ Installing PHP CLI man page: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/share/man/man1/ Installing PEAR environment: /Users/mcalhoun/opt/local/var/macports/build/_Users_mcalhoun_Desktop_Test_MacPorts_mports_www_php4/work/destroot/Users/mcalhoun/opt/local/lib/php4/ dyld: Symbol not found: _JS_ConvertStub Referenced from: /Users/mcalhoun/opt/local/lib/libsablot.0.dylib Expected in: flat namespace make[1]: *** [install-pear-packages] Trace/BPT trap make: *** [install-pear] Error 2 Warning: the following items did not execute (for php4): org.macports.activate org.macports.destroot org.macports.install Error: Status 1 encountered during processing. }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14795#comment:3> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts