[Debichem-devel] using undocumented lrelease options breaks building avogadro

Michael Banck mbanck at debian.org
Sat Jul 26 07:45:09 UTC 2008


Hi,

avogadro has now hit Debian unstable, and there's a slim chance it might
still get included in the next stable release due in fall.

However, we experienced one problem on one of the autobuilders:

[  1%] Generating avogadro_en_GB.qm
cd /build/buildd/avogadro-0.8.1/obj-mipsel-linux-gnu/libavogadro/src &&
/usr/bin/lrelease -compress -nounfinished -silent
/build/buildd/avogadro-0.8.1/i18n/avogadro_en_GB.ts -qm
/build/buildd/avogadro-0.8.1/obj-mipsel-linux-gnu/libavogadro/src/avogadro_en_GB.qm
Usage:
    lrelease [options] project-file
    lrelease [options] ts-files [-qm qm-file]
Options:
    -help  Display this information and exit
    -nocompress
           Do not compress the .qm files
    -verbose
           Explain what is being done
    -version
           Display the version of lrelease and exit
make[3]: *** [libavogadro/src/avogadro_en_GB.qm] Error 1
make[3]: Leaving directory
`/build/buildd/avogadro-0.8.1/obj-mipsel-linux-gnu'

Quite weird that it only happens on mispel (the others built avogadro
fine), but the lrelease manpage doesn't say anything about -compress,
-nounfinished or -silent, so are those undocumented options you rely on?
This looks like the relevant code in cmake/modules/FindLinguist.cmake
about this:

    SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfile}.qm)
    ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
                       COMMAND ${QT_LRELEASE_EXECUTABLE}
                       ARGS -compress -nounfinished -silent ${it} -qm ${outfile}
                       DEPENDS ${it}
    )

As `compress' looks like being implicitely standard now, maybe the call
needs updating?


thanks,

Michael




More information about the Debichem-devel mailing list