mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 08:04:32 +04:00
python3: avoid unnecessary rebuilds
Move the order in which BuildPackage is called, so that the libpython
package is built ahead of the module packages, to avoid forcing a
clean-build of the package when 'make package/python3/compile' is called
a second time without changes.
The library must be built first, so that when the buildsystem checks for
ABI version changes using libpython3.version, its timestamp should be
older than the dependent package's STAMP_PREPARED file.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit c230d7bd7f)
This commit is contained in:
committed by
Josef Schlehofer
parent
52ec0079e9
commit
fea0f7a9e8
@@ -390,12 +390,6 @@ endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
$(foreach package, $(PYTHON3_PACKAGES), \
|
||||
$(eval $(call Py3Package,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package)-src)) \
|
||||
)
|
||||
|
||||
$(eval $(call BuildPackage,libpython3))
|
||||
|
||||
$(eval $(call Py3Package,python3-base))
|
||||
@@ -408,3 +402,9 @@ $(eval $(call BuildPackage,python3))
|
||||
|
||||
$(eval $(call BuildPackage,python3-base-src))
|
||||
$(eval $(call BuildPackage,python3-light-src))
|
||||
|
||||
$(foreach package, $(PYTHON3_PACKAGES), \
|
||||
$(eval $(call Py3Package,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package))) \
|
||||
$(eval $(call BuildPackage,$(package)-src)) \
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user