Compilation problem

if i try to compile a python submodule i get...
make[2]: Nothing to be done for 'compile'.

i'm trying to add a new package
here the makefile, this should be compiled using python

include $(TOPDIR)/rules.mk

PKG_NAME:=uwsgi
PKG_VERSION:=2.0.15
PKG_RELEASE:=1

PKG_SOURCE:=uwsgi-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/bb/0a/45e5aa80dc135889594bb371c082d20fb7ee7303b174874c996888cc8511/
PKG_HASH:=572ef9696b97595b4f44f6198fe8c06e6f4e6351d930d22e5330b071391272ff
#PKG_MIRROR_HASH:=

include $(INCLUDE_DIR)/package.mk
include ../../feeds/packages/lang/python/python-package.mk

#EXTRA_CFLAGS += UWSGI_REMOVE_INCLUDES

define Package/uwsgi
	SECTION:=language-python
	CATEGORY:=Languages
	SUBMENU:=Python
	TITLE:=The uWSGI server
	URL:=http://unbit.com/
	DEPENDS:=+python +libopenssl +libpcre
endef

define Package/uwsgi/description
	The uWSGI project
endef

define Build/Compile
	$(call Build/Compile/PyMod,,install --prefix="/usr" --root=$(PKG_INSTALL_DIR))
endef

define Package/uwsgi/install
	$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
	$(INSTALL_DIR) $(1)/usr/bin
	$(CP) \
		$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
		$(1)$(PYTHON_PKG_DIR)/
	$(CP) \
		$(PKG_INSTALL_DIR)/usr/bin/* \
		$(1)/usr/bin/
endef

$(eval $(call BuildPackage,uwsgi))

Shouldn't that be compile --prefix="/usr"

make[2]: Leaving directory '/home/Ansuel/source/feeds/packages/lang/python/python'
make[2]: Entering directory '/home/Ansuel/source/package/python-uwsgi'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/Ansuel/source/package/python-uwsgi'
make[1]: Leaving directory '/home/Ansuel/source'

same result....
i have this problem also with other python module can you try to build one?

can someone help me?

nobody? with this we can push luci to nginx

@Ansuel, did you tried PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)?

same problem
make[2]: Leaving directory '/home/Ansuel/source/feeds/packages/lang/python/python'
make[2]: Entering directory '/home/Ansuel/source/package/python-uwsgi'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/Ansuel/source/package/python-uwsgi'
make[1]: Leaving directory '/home/Ansuel/source'

include $(TOPDIR)/feeds/packages/lang/python/python-package.mk

define Build/Compile
	$(call PyBuild/Compile)
endef

That worked for me. To be sure you've started from scratch:

make package/uwsgi/clean V=99
make package/uwsgi/install V=99

V=99 was deprecated in 2012 (although it is still supported for compatibility reasons).
V=s has been the equivalent since then
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=34ffb526a27dc3f1bf16cd6cdebbfa08c40a6d7a

@Ansuel
you might need help from @commodo for the actual Python related problem

can you share the makefile? install gives me error and compile gives me nothing to be done...

make[2]: Nothing to be done for ‘compile’.

isn't that usually what you get when the package is not selected via menuconfig or in the build .config

2 Likes

On a python package related note, this package could use some rework/update [to use some python package build rules], but it should still run a build the way it is now.

didn't know that i need to select to package to actually compile it.... it's stupid IMHO

1 Like

compiled without problem... NICE so with this we should be able to have plain cgi support for nginx (nginx on luci)

1 Like
include $(TOPDIR)/rules.mk

PKG_NAME:=uwsgi
PKG_VERSION:=2.0.17
PKG_RELEASE:=1
PKG_LICENSE:=GPL2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=3dc2e9b48db92b67bfec1badec0d3fdcc0771316486c5efa3217569da3528bf2
PKG_SOURCE_URL:=https://pypi.python.org/packages/98/b2/19b34b20662d111f7d2f926cdf10e13381761dd7dbd10666b9076cbdcd22/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/python/python-package.mk

define Package/uwsgi
        SECTION:=language-python
        CATEGORY:=Languages
        SUBMENU:=Python
        TITLE:=The uWSGI server
        URL:=http://unbit.com/
        DEPENDS:=+python +libopenssl +libpcre +jansson +libcap +libuuid
endef

define Package/uwsgi/description
        The uWSGI project
endef

define Build/Compile
        $(call PyBuild/Compile)
endef

define Package/uwsgi/install
        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) \
                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
                $(1)$(PYTHON_PKG_DIR)/
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/bin/* \
                $(1)/usr/bin/
endef

$(eval $(call BuildPackage,uwsgi))
1 Like