[kgb-maintainers] Bug#612922: Check in debian/rules breaks rebuilds with version suffix

Moritz Muehlenhoff muehlenhoff at univention.de
Fri Feb 11 15:29:27 UTC 2011


Package: kgb-bot
Version: 1.05-1
Severity: normal

Hi KGB maintainers,
I've tried to rebuild kgb-bot for Univention Corporate Server, a Debian
derived distribution based on Debian stable (currently Lenny, our next
release will be based on Squeeze).

The guidelines for derived distributions recommend to add a distribution
specific version suffix to distinguish the rebuilt package with the original
Debian package: http://wiki.debian.org/Derivatives/Guidelines

Your check in debian/rules:

[ "$(PKG_VER)" = "$(MOD_VER)" ] \
   || ( echo "Package version ($(PKG_VER)) doesn't match module version ($(MOD_VER))"; exit 1 )

breaks such builds. The same applies to security updates, which would
be labeled 1.05-1+squeeze1 by the Security Team:

All tests successful.
Files=9, Tests=160,  8 wallclock secs ( 0.03 usr  0.06 sys +  2.41 cusr  1.23 csys =  3.73 CPU)
Result: PASS
[ "Version: 1.05-1+squeeze1" = "1.05" ] \
            || ( echo "Package version (Version: 1.05-1+squeeze1) doesn't match module version (1.05)"; exit 1 )
Package version (Version: 1.05-1+squeeze1) doesn't match module version (1.05)
make[1]: *** [override_dh_auto_test] Fehler 1
make[1]: Leaving directory `/home/jmm/kgb/kgb-bot-1.05'
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2

It's not obvious to me, why the check is needed, since all KGB packages
come from the same source package, but if it's required maybe it could
be modified to test, whether only the base version is identical?

Cheers,
        Moritz





More information about the kgb-maintainers mailing list