[MacPorts] #34962: ghostscript cannot be built for archs that cannot be run
#34962: ghostscript cannot be built for archs that cannot be run ---------------------------------------+------------------------------------ Reporter: frederic.devernay@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: ghostscript ---------------------------------------+------------------------------------ ghostscript's configure tries to check if the architecture is big endian using the old way, i.e. trying to run a program. Autoconf has a more clever way of doing this, implemented in the AC_C_BIGENDIAN macro. Just adding the attached patch to the patchfiles fixes this. -- Ticket URL: <https://trac.macports.org/ticket/34962> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ---------------------------------------+------------------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: ghostscript ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => takanori@… Comment: Is this fix already known to the developers of ghostscript? If not you should report it to them. -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ---------------------------------------+------------------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: haspatch | Port: ghostscript ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * keywords: => haspatch -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ----------------------------------+------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: haspatch Port: ghostscript | ----------------------------------+------------------------ Comment (by frederic.devernay@…): This problem still exists with GS 9.06 and the 9.05 patches still apply. There are actually other issues with cross-compiling ghostscript (the ghostscript manual states that configuration files have to be manually edited), and these issues are usually fixed by cross-toolchains, see for example http://repository.timesys.com/buildsources/g/ghostscript/ghostscript-9.05/ http://git.yoctoproject.org/cgit.cgi/poky-contrib/tree/meta/recipes- extended/ghostscript or the patches for embedded linux distributions such as Wind River linux. I guess the GS developpers don't care much about cross-compiling To properly cross-compile gs (version 9.05 or 9.06), one may apply the ghostscript-9.05-cross.patch and ghostscript-9.05-cross-so.patch that can be found at that http://repository.timesys.com/buildsources/g/ghostscript/ghostscript-9.05/ . I didn't try with the pokylinux files from http://git.yoctoproject.org/cgit.cgi/poky-contrib/tree/meta/recipes- extended/ghostscript but they are probably similar. With these patches, I was able to build +universal (i386 and x86_64) on a Core Duo (running Snow Leopard), and +universal (i386 and ppc) on a PPC iMac G5 running Leopard. I'm also attaching the modified Portfile for gs 9.06 (I didn't increment the revision). -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ----------------------------------+------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: haspatch Port: ghostscript | ----------------------------------+------------------------ Comment (by takanori@…): Have you reported this problem to the GS developers? -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ----------------------------------+------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: haspatch Port: ghostscript | ----------------------------------+------------------------ Comment (by frederic.devernay@…): I just did it. Let's hope they'll be wanting to include it in a next release. http://bugs.ghostscript.com/show_bug.cgi?id=693356 -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34962: ghostscript cannot be built for archs that cannot be run ----------------------------------+------------------------ Reporter: frederic.devernay@… | Owner: takanori@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: | Keywords: haspatch Port: ghostscript | ----------------------------------+------------------------ Comment (by takanori@…): Ghostscript 9.10 supports new config options to define memory ordering. ('--enable-big-endian' and '--enable-little-endian') By using these args, your patch can be rewritten like the following, I guess. {{{ … if {[variant_isset universal]} { lappend merger_configure_args(i386) --enable-little-endian lappend merger_configure_args(x86_64) --enable-little-endian lappend merger_configure_args(ppc) --enable-big-endian lappend merger_configure_args(ppc64) --enable-big-endian } … }}} -- Ticket URL: <https://trac.macports.org/ticket/34962#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts