[Uim-bugs] [Bug 47204] New: [git] ftbfs with newer versions of librsvg that don't ship an /usr/bin/rsvg wrapper

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 11 00:01:06 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47204

             Bug #: 47204
           Summary: [git] ftbfs with newer versions of librsvg that don't
                    ship an /usr/bin/rsvg wrapper
    Classification: Unclassified
           Product: UIM
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: libuim
        AssignedTo: uim-bugs at freedesktop.org
        ReportedBy: zorael at gmail.com


Created attachment 58285
  --> https://bugs.freedesktop.org/attachment.cgi?id=58285
patch changing use of the rsvg wrapper script to instead use the real
rsvg-convert binary

Kubuntu 12.04b1 precise amd64, UIM fresh from git as of Mar 11 (a1cfaef3).
librsvg is from precise main repos and version 2.35.2.

UIM from git fails to build from source in precise with maintainer mode
enabled. Recent versions of librsvg seem to deprecate the /usr/bin/rsvg script
that acted as a frontend to the real binary, /usr/bin/rsvg-convert. As such
configure fails to find it and maintainer mode builds can't convert the svg
files to png.

Excerpt from the top of said rsvg script in librsvg 2.34.1, fetched from the
repos of the previous *buntu release (11.10 oneiric);
># This python script subsumes the old 'rsvg' C-based command-line program.
># It should be considered deprecated in favor of 'rsvg-convert'.

rsvg-convert also has a different argument syntax than rsvg had, so even if you
replace all mentions of rsvg with rsvg-convert, the test in
pixmaps/Makefile.am:155 fails and the make process exits with errors.

It works for me after I changed AC_PATH_PROG(RSVG) in configure.ac to look for
rsvg-convert instead, and changed the test in pixmaps/Makefile.am to use the
new syntax. I tried AC_PATH_PROG(RSVG, rsvg rsvg-convert) -- as I gather from
Googling should make it fall back to rsvg-convert if it can't find rsvg -- but
I'm new to this and couldn't get it to work. The RSVG variable always ended up
empty.

Please see the attached patch. I'm not sure if this is the correct approach,
but it builds for me again after applying the patch to a fresh clone of master.
It *theoretically* shouldn't break builds with older versions of librsvg, as
rsvg-convert is present there too and rsvg is just reformatting its arguments
(legacy purposes?).

I haven't done the research, but likely rsvg was the real binary some librsvg
releases back until functionality was broken out into the current binaries;
rsvg-convert and rsvg-view. If so, a change like this would break such builds.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the uim-bugs mailing list