Summary: | media-gfx/graphicsmagick-1.3.17 - ./magick/studio.h:54:36: error: missing binary operator before token ".0" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | hppa, sam |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | HPPA | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | files/graphicsmagick-1.3.17-ppc.patch |
Description
Jeroen Roovers (RETIRED)
![]() ${var/replace} is a bash extension, so that won't cut it looking at the code that actually uses MAGICK_TARGET_CPU, i see it is crap. it is expanded in exactly one place (which you quoted): magick/studio.h:#if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc) replace it with a simple: #ifdef __powerpc__ Created attachment 326716 [details, diff] files/graphicsmagick-1.3.17-ppc.patch (In reply to comment #1) > ${var/replace} is a bash extension, so that won't cut it It isn't the only use of a bash extension in configure{,.ac}, I think. > replace it with a simple: > #ifdef __powerpc__ Comment on attachment 326716 [details, diff] files/graphicsmagick-1.3.17-ppc.patch >-MAGICK_TARGET_CPU=$host_cpu >-AC_SUBST(MAGICK_TARGET_CPU) you'll need to keep these two lines. the makefile uses them when invoking rpm related code. not relevant to us, but upstream might get upset if you broke it :). I have applied the (shortened) patch to 1.3.18 for bug #477606. Would anyone like to push this upstream? The ppc patch in tree was pushed upstream here: http://hg.code.sf.net/p/graphicsmagick/code/rev/20f96db7e5a1 |