[Pkg-mono-devel] Working around "unrepresentable changes to source"

Weeble clockworksaint at gmail.com
Tue Mar 15 14:07:36 UTC 2011


On Fri, Mar 11, 2011 at 11:46 AM, Jo Shields <directhex at apebox.org> wrote:
> On Fri, 2011-03-11 at 11:39 +0000, Weeble wrote:
>> If I do "apt-get source mono", apply some patches to the source tree
>> and then run dpkg-buildpackage, I can build a new version of the mono
>> package. But if I then try to apply another patch and repeat
>> dpkg-buildpackage, I get the error "dpkg-source: unrepresentable
>> changes to source". I understand this is because the mono build
>> process makes changes to the source tree during the build, is that
>> right? What I'd like to know is if there's any way to work around this
>> and do a fresh build without discarding the entire source tree,
>> running apt-get source mono and then applying the patches I need
>> again?
>
> debian/rules clean *should* do that. if it isn't, it's a bug.

Here's what I get when I try to do a second build after the first:

http://pastebin.com/8KMK3dLn

Excerpt:

# DEB_BUILD_OPTION="nostrip noopt" dpkg-buildpackage
[...]
dpkg-source: error: cannot represent change to mono-2.6.7/missing:
dpkg-source: error:   new version is symlink to /usr/share/automake-1.11/missing
dpkg-source: error:   old version is plain file
dpkg-source: warning: executable mode 0755 of 'doltcompile' will not
be represented in diff
dpkg-source: warning: executable mode 0755 of 'doltlibtool' will not
be represented in diff
dpkg-source: error: cannot represent change to mono-2.6.7/mkinstalldirs:
dpkg-source: error:   new version is symlink to
/usr/share/automake-1.11/mkinstalldirs
dpkg-source: error:   old version is plain file
[...more similar errors...]
dpkg-source: error: cannot represent change to
mono-2.6.7/mcs/class/System.Web.Mvc2/System.Web.Mvc/Resources/MvcResources.resources:
binary file contents changed
dpkg-source: error: cannot represent change to
mono-2.6.7/mcs/tools/csharplib/out/Mono.CSharp.dll: binary file
contents changed
dpkg-source: warning: newly created empty file
'mcs/tools/csharplib/fixup/net_2_0/.stamp' will not be represented in
diff
dpkg-source: warning: ignoring deletion of file config.sub
dpkg-source: warning: ignoring deletion of file ltmain.sh
[...more warnings...]
dpkg-source: info: use the '3.0 (quilt)' format to have separate and
documented changes to upstream files, see dpkg-source(1)
dpkg-source: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b mono-2.6.7 gave error exit status 1
#

The architecture is armel and the device is a Sheevaplug.



More information about the Pkg-mono-devel mailing list