Bug#482728: libcm: FTBFS when converted to new source format 3.0 (quilt)

Loïc Minier lool at dooz.org
Mon May 26 12:42:06 UTC 2008


On Sat, May 24, 2008, hertzog at debian.org wrote:
> In the case of libcm, the .diff.gz contains changes to
> config.sub/guess because your "clean" target in debian/rules replaces
> those files. With the conversion to the new source format, those
> changes end up as a patch in debian/patches/ and when the package
> tries to apply that patch it will fail because the clean rule has already
> replaced those files.
> 
> To fix this, please make sure that the .diff.gz doesn't contain those
> changes. You can easily do that by copying
> /usr/share/misc/config.{sub,guess} in place just before the ./configure
> call and by removing (rm -f config.sug config.guess) the files
> in the clean target. (I just filed #482716 against autotools-dev so that
> /usr/share/doc/autotools-dev/README.Debian.gz is updated in that regard)

 The logic in libcm's rules is:
 - use quilt for patching
 - backup config.guess and .sub after patching, restore before
   unpatching to avoid failing if a patch touches these files
 - copy over latest versions of config.guess and config.sub after the
   backup (which is after patch) and also after the unpatch (which
   happens during clean)

 I guess I could drop the copy after unpatch in clean which seems
 superfluous.

-- 
Loïc Minier






More information about the pkg-gnome-maintainers mailing list