diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-08-13 02:10:01 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-08-13 15:33:33 +0200 |
commit | 2f952d710594faa81531f8a7823bffe9a19f7457 (patch) | |
tree | aa7952fac877e58f822e2df9d8a0c6e8c51b724d /Makefile | |
parent | 968b3693a0032e92aee06d1f0a11acc1e5e3d617 (diff) | |
download | freeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.tar.gz freeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.tar.xz freeipa.git-2f952d710594faa81531f8a7823bffe9a19f7457.zip |
Prevent *.pyo and *.pyc multilib problems
Differences in the python byte code fails in a build validation
(rpmdiff) done on difference architecture of the same package.
This patch:
1) Ensures that timestamps of generated *.pyo and *.pyc files match
2) Python integer literals greater or equal 2^32 and lower than 2^64
are converted to long right away to prevent different type of
the integer on architectures with different size of int
https://fedorahosted.org/freeipa/ticket/3858
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -122,6 +122,7 @@ version-update: release-update > ipatests/setup.py perl -pi -e "s:__NUM_VERSION__:$(IPA_NUM_VERSION):" ipapython/version.py perl -pi -e "s:__API_VERSION__:$(IPA_API_VERSION_MAJOR).$(IPA_API_VERSION_MINOR):" ipapython/version.py + touch -r ipapython/version.py.in ipapython/version.py sed -e s/__VERSION__/$(IPA_VERSION)/ daemons/ipa-version.h.in \ > daemons/ipa-version.h perl -pi -e "s:__NUM_VERSION__:$(IPA_NUM_VERSION):" daemons/ipa-version.h @@ -135,6 +136,7 @@ version-update: release-update if [ "$(SUPPORTED_PLATFORM)" != "" ]; then \ sed -e s/SUPPORTED_PLATFORM/$(SUPPORTED_PLATFORM)/ ipapython/services.py.in \ > ipapython/services.py; \ + touch -r ipapython/services.py.in ipapython/services.py; \ fi if [ "$(SKIP_API_VERSION_CHECK)" != "yes" ]; then \ |