Package: src:ogamesim
Version: 20130107-2
Severity: serious
Tags: patch
Dear maintainer:
I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh_testdir
make -C csim for_linux
make[1]: Entering directory '/<<PKGBUILDDIR>>/csim'
gcc -c -MMD -g -O2 -fomit-frame-pointer parse_input.c -o obj/parse_input.o
gcc -c -MMD -g -O2 -fomit-frame-pointer unit.c -o obj/unit.o
gcc -c -MMD -g -O2 -fomit-frame-pointer units_info.c -o obj/units_info.o
gcc -c -MMD -g -O2 -fomit-frame-pointer report.c -o obj/report.o
gcc -c -MMD -g -O2 -fomit-frame-pointer sim.c -o obj/sim.o
gcc -c -MMD -g -O2 -fomit-frame-pointer main.c -o obj/main.o
umask 022 && gcc obj/parse_input.o obj/unit.o obj/units_info.o obj/report.o
obj/sim.o obj/main.o -o csim
size csim
[... snipped ...]
's#^my\s+\$units_conf.*#my \$units_conf = "units.conf";#; \
s#^my\s+\$lang.*#my \$lang = "en";#; \
s#my\s+\$counter_file.*#my \$counter_file = "";#; \
s#^my\s+\$simulator.*#my \$simulator = "/usr/games/ogamesim";#' \
index.cgi
mkdir -p template
for tmpl in `ls www/template/|grep 'sim\...\.html$'`; do \
cat www/template/$tmpl \
|sed
's~href="sim\.tar\.bz2"~href="'http://www.o-o-d.com/tool/sim/sim.tar.bz2'"~' \
> template/$tmpl; \
done
install -m 0644 csim/csim.6 ogamesim.6
perl -pi -e 's/csim/ogamesim/g' ogamesim.6
touch build-stamp
fakeroot debian/rules binary-indep
dh_testdir
dh_testroot
dh_clean -k
dh_clean: Compatibility levels before 9 are deprecated (level 5 in use)
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_installdirs
dh_installdirs: Compatibility levels before 9 are deprecated (level 5 in use)
dh_install
dh_install: Compatibility levels before 9 are deprecated (level 5 in use)
dh_installdocs -A
dh_installchangelogs
dh_installchangelogs: Compatibility levels before 9 are deprecated (level 5 in
use)
dh_installexamples
dh_installexamples: Compatibility levels before 9 are deprecated (level 5 in
use)
dh_installman
dh_installman: Compatibility levels before 9 are deprecated (level 5 in use)
dh_shlibdeps -pogamesim
dh_gencontrol -pogamesim -- -v1.18-2
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dh_gencontrol -pogamesim-www -- -v0.34-2
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is
not NFS-safe
dh_link
dh_strip
dh_strip: Compatibility levels before 9 are deprecated (level 5 in use)
dh_compress -A
dh_fixperms
dh_installdeb
dh_installdeb: Compatibility levels before 9 are deprecated (level 5 in use)
dh_md5sums
touch install-stamp
dh_testdir
dh_testroot
dh_builddeb -pogamesim-www
dpkg-deb: building package 'ogamesim-www' in '../ogamesim-www_0.34-2_all.deb'.
dpkg-genbuildinfo --build=all
dpkg-genbuildinfo: error: cannot fstat file ../ogamesim_1.18-2_amd64.deb: No
such file or directory
dpkg-buildpackage: error: dpkg-genbuildinfo --build=all gave error exit status 2
--------------------------------------------------------------------------------
To reproduce please try to build the package with "dpkg-buildpackage -A".
This may be fixed by moving (and duplicating) the final part of install-stamp
into binary-indep and binary-arch, as in the patch below.
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -80,8 +80,12 @@ install-stamp:
dh_installchangelogs
dh_installexamples
dh_installman
- dh_shlibdeps -p$(SIMULATOR)
- dh_gencontrol -p$(SIMULATOR) -- -v$(SIMVERSION)
+ touch $@
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
dh_gencontrol -p$(WEBGUI) -- -v$(GUIVERSION)
dh_link
dh_strip
@@ -89,18 +93,20 @@ install-stamp:
dh_fixperms
dh_installdeb
dh_md5sums
- touch $@
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir
- dh_testroot
dh_builddeb -p$(WEBGUI)
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
+ dh_shlibdeps -p$(SIMULATOR)
+ dh_gencontrol -p$(SIMULATOR) -- -v$(SIMVERSION)
+ dh_link
+ dh_strip
+ dh_compress -A
+ dh_fixperms
+ dh_installdeb
+ dh_md5sums
dh_builddeb -p$(SIMULATOR)
binary: binary-indep binary-arch