python: revert previous patch and add a filespec
authorAlexandru Ardelean <redacted>
Wed, 11 Mar 2015 09:22:12 +0000 (11:22 +0200)
committerAlexandru Ardelean <redacted>
Wed, 11 Mar 2015 09:27:40 +0000 (11:27 +0200)
Seems removing the PyPackage rule and/or adding dummy install rule
causes some issues inside the build-system, where the libpython2.7.so.1.0
is not seen by packages that depend on python.
Even though that libpython2.7.so.1.0 file is installed properly by `python-base`.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/Makefile

index 006ad64a63d8fc6cf564d4379ca124b9baa4ac1f..e928a58a406181199fd73e9427b63333a6303ef6 100644 (file)
@@ -209,8 +209,8 @@ define PyPackage/python-base/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
 endef
 
-# Dummy rule so that the package gets picked up
-define Package/python/install
+define PyPackage/python/filespec
+-|$(PYTHON_PKG_DIR)
 endef
 
 HOST_CFLAGS+= \
@@ -241,7 +241,7 @@ $(foreach package, $(PYTHON_PACKAGES),  \
 
 $(eval $(call PyPackage,python-base))
 $(eval $(call PyPackage,python-light))
-#$(eval $(call PyPackage,python))
+$(eval $(call PyPackage,python))
 
 $(eval $(call BuildPackage,python-base))
 $(eval $(call BuildPackage,python-light))
git clone https://git.99rst.org/PROJECT