Bug #19275, was updated on 2014-Feb-03 23:12
Here is a current snapshot of the bug.

Project: LinCityNG
Category: new
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: apoleon
Assigned to : none
Summary: lincity-ng 2.9.beta cannot be built twice in a row

Details: while I was packaging version 2.9.beta for Debian GNU/Linux, I 
discovered that it is not possible to build the game twice in a row. The reason 
for this is that some object and static libraries are not cleaned by jam.

It would be great, if those files could be removed by jam.

Here is some output that shows which files are affected.

dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/PhysfsStream/libphysfsstream.a: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/PhysfsStream/libphysfsstream.a in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/gui/liblincity_gui.a: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/gui/liblincity_gui.a in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ButtonInterface.o: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ButtonInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ButtonPanel.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ButtonPanel.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/CheckButton.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/CheckButton.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Config.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Config.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Debug.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Debug.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Dialog.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Dialog.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/EconomyGraph.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/EconomyGraph.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ErrorInterface.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ErrorInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Game.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Game.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/GameView.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/GameView.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/HelpWindow.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/HelpWindow.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MainLincity.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MainLincity.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MainMenu.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MainMenu.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MapEdit.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MapEdit.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MiniMap.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MiniMap.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Mps.o: binary file contents 
changed
dpkg-source: error: add build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Mps.o 
in debian/source/include-binaries if you want to store the modified binary in 
the debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MpsInterface.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/MpsInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/PBar.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/PBar.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/PbarInterface.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/PbarInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Permutator.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Permutator.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ReadPngInterface.o: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ReadPngInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ScreenInterface.o: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/ScreenInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Sound.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Sound.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/TimerInterface.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/TimerInterface.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Util.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/Util.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/binreloc.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/binreloc.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/main.o: binary file contents 
changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/main.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/readdir.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity-ng/readdir.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/lincity/liblincity_lib.a: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/lincity/liblincity_lib.a in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/tinygettext/libtinygettext.a: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/tinygettext/libtinygettext.a in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/tools/xmlgettext/XmlReader.o: binary 
file contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/tools/xmlgettext/XmlReader.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: error: cannot represent change to 
build/x86_64-pc-linux-gnu/optimize/src/tools/xmlgettext/main.o: binary file 
contents changed
dpkg-source: error: add 
build/x86_64-pc-linux-gnu/optimize/src/tools/xmlgettext/main.o in 
debian/source/include-binaries if you want to store the modified binary in the 
debian tarball
dpkg-source: warning: executable mode 0755 of 'config.status' will not be 
represented in diff
dpkg-source: error: cannot represent change to lincity-ng: binary file contents 
changed
dpkg-source: error: add lincity-ng in debian/source/include-binaries if you 
want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to xmlgettext: binary file contents 
changed
dpkg-source: error: add xmlgettext in debian/source/include-binaries if you 
want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source

Follow-Ups:

Date: 2014-Feb-04 22:47
By: wolfgangb

Comment:
Is "jam distclean" more like what you want?
-------------------------------------------------------

Date: 2014-Feb-04 21:24
By: apoleon

Comment:
Hello,

the difference is that dpkg detects those uncleaned files and aborts with an 
error but it doesn't change anything.

If you run ./configure and jam -q -dax in the clean root directory of the 
source tree and after that jam clean, you will notice that a couple of files 
are left over.

These files and directories are:

build
lincity-ng
config.h
config.log
config.status
xmlgettext
Jamconfig
data/locale/gui/messages.pot
data/locale/messages.pot

A "jam clean" should remove these files as well. If I do this manually with rm 
commands, the game can be built twice in a row.

-------------------------------------------------------

Date: 2014-Feb-04 19:57
By: wolfgangb

Comment:
Are you sure these tools don't change do anything else?  
"./configure ; jam -q -dax ; jam -q -dax" 
as well as 
"./configure ; jam -q -dax ; ./configure ; jam -q -dax " 
works for me. 
-------------------------------------------------------

Date: 2014-Feb-04 12:00
By: apoleon

Comment:
This issue is also present in 2.0. There is nothing Debian specific about it 
because the helper tools simply call

jam -q -dax

during the build step. That means you should be able to reproduce it by running 
the configure and build steps twice in a row. Ideally all created files are 
cleaned after the game was built and the build process starts with a clean 
source tree again.  Otherwise Debian's dpkg will detect those additional files 
and abort.
-------------------------------------------------------

Date: 2014-Feb-04 08:53
By: wolfgangb

Comment:
Is that a new problem or is the issue also in 2.0? No idea what exactly happens 
when you use Debian specific scrips to build Lincity, do you also get the 
problem when calling jam twice without 3rd party wrappers?
-------------------------------------------------------

For detailed info, follow this link:
http://developer.berlios.de/bugs/?func=detailbug&bug_id=19275&group_id=2929
_______________________________________________
Lincity-ng-devel mailing list
Lincity-ng-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/lincity-ng-devel

Reply via email to