Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 6.13 KB | None | 0 0
  1. #Starting the install
  2. .
  3. .
  4. .
  5. linux-uclibc-size CROSS="i486-openwrt-linux-uclibc-" ARCH="i386" DESTDIR="/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install"  install;
  6. make[3]: Entering directory `/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7'
  7. make -C out BUILDTYPE=Release V=s
  8. make[4]: Entering directory `/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/out'
  9. make[4]: Nothing to be done for `all'.
  10. make[4]: Leaving directory `/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/out'
  11. ln -fs out/Release/node node
  12.  
  13.  
  14. /home/openwrt/openwrt/staging_dir/host/bin/python tools/install.py install '/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install' '/home/openwrt/openwrt/staging_dir/host'
  15.  
  16.  
  17. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/bin/node
  18. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/share/systemtap/tapset/node.stp
  19. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/share/man/man1/node.1
  20. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/lib/node_modules/npm/AUTHORS
  21. .
  22. .
  23. .
  24.  
  25.  
  26.  
  27.  
  28. #Error
  29.  
  30. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/include/node/libplatform/libplatform.h
  31. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/include/node/zconf.h
  32. installing /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/home/openwrt/openwrt/staging_dir/host/include/node/zlib.h
  33.  
  34. make[3]: Leaving directory `/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7'
  35. touch /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/.built
  36. mkdir -p /home/openwrt/openwrt/bin/x86/packages /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-x86/nodejs/CONTROL /home/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo
  37. install -d -m0755 /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-x86/nodejs/usr/bin
  38.  
  39.  
  40. cp -fpR /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/usr/bin/node /home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-x86/nodejs/usr/bin/node
  41. cp: cannot stat '/home/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/node-v0.12.7/ipkg-install/usr/bin/node': No such file or directory
  42.  
  43.  
  44. make[2]: *** [/home/openwrt/openwrt/bin/x86/packages/base/nodejs_0.12.7-0_x86.ipk] Error 1
  45. make[2]: Leaving directory `/home/openwrt/openwrt/package/network/nodejs/node'
  46. make[1]: *** [package/network/nodejs/node/install] Error 2
  47. make[1]: Leaving directory `/home/openwrt/openwrt'
  48. make: *** [package/network/nodejs/node/install] Error 2
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. #
  65. # Copyright (C) 2007-2011 OpenWrt.org
  66. #
  67. # This is free software, licensed under the GNU General Public License v2.
  68. # See /LICENSE for more information.
  69. #
  70.  
  71. include $(TOPDIR)/rules.mk
  72.  
  73. PKG_NAME:=nodejs
  74. PKG_VERSION:=0.12.7
  75. PKG_RELEASE:=0
  76.  
  77. PKG_SOURCE:=node-v$(PKG_VERSION).tar.gz
  78. PKG_SOURCE_URL:=https://nodejs.org/dist/v$(PKG_VERSION)/
  79. PKG_MD5SUM:=5523ec4347d7fe6b0f6dda1d1c7799d5
  80.  
  81. PKG_BUILD_DEPENDS:=nodejs/host
  82.  
  83. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/node-v$(PKG_VERSION)
  84. PKG_BUILD_DIR:=$(BUILD_DIR)/node-v$(PKG_VERSION)
  85. PKG_INSTALL:=1
  86. PKG_BUILD_PARALLEL:=1
  87.  
  88. include $(INCLUDE_DIR)/host-build.mk
  89. include $(INCLUDE_DIR)/package.mk
  90.  
  91. define Package/nodejs
  92.  SUBMENU:=Node.js
  93.  SECTION:=net
  94.  CATEGORY:=Network
  95.  TITLE:=Node.js Evented I/O for V8 JavaScript
  96.  URL:=http://nodejs.org
  97.  MAINTAINER:=Xin Ouyang <xinpascal@gmail.com>
  98.  DEPENDS:=@armeb||@arm||@i386 +libstdcpp +libpthread +librt +libopenssl +uclibcxx
  99. endef
  100.  
  101. define Package/nodejs/description
  102. Node.js is a platform built on Chrome's JavaScript runtime for easily
  103.  building fast, scalable network applications. Node.js uses an event-driven,
  104.  non-blocking I/O model that makes it lightweight and efficient, perfect
  105.  for data-intensive real-time applications that run across distributed
  106.  devices.
  107. endef
  108.  
  109. define Package/nodejs-npm
  110.   SUBMENU:=Node.js
  111.   SECTION:=net
  112.   CATEGORY:=Network
  113.   TITLE:=Node Package Manager
  114.   URL:=https://npmjs.org
  115.   MAINTAINER:=Xin Ouyang <xinpascal@gmail.com>
  116.   DEPENDS:=@armeb||@arm||@i386 +libstdcpp +libpthread +librt +libopenssl +uclibcxx
  117. endef
  118.  
  119. define Package/nodejs-npm/description
  120.   npm is the package manager for the Node JavaScript platform. It puts
  121.   modules in place so that node can find them, and manages dependency
  122.   conflicts intelligently.
  123. endef
  124.  
  125. CONFIGURE_ARGS:=
  126. HOST_CONFIGURE_ARGS:=
  127. HOST_CONFIGURE_CMD:=$(HOST_CONFIGURE_VARS) ./configure --prefix=$(STAGING_DIR_HOST) --without-snapshot ;
  128. CONFIGURE_ARGS:= --prefix=$(STAGING_DIR_HOST) --without-snapshot
  129. #HOST_CONFIGURE_ARGS:=
  130. HOST_MAKE_FLAGS +=
  131.     BUILDTYPE=Release i18nsupport=off
  132.  
  133. #define Build/Prepare
  134. #echo -e "\e[1;34m \nBuild/Prepare $(PKG_NAME)\n $<\e[0m"
  135. #endef
  136.  
  137. #define Build/nodejs/Compile
  138. #echo -e "\e[1;34m \n  Build/Compile $(PKG_NAME)    \n $<\e[0m"
  139. #endef
  140.  
  141.  
  142. define Package/nodejs/install
  143.     $(INSTALL_DIR) $(1)/usr/bin
  144.     $(CP) $(PKG_INSTALL_DIR)/usr/bin/node $(1)/usr/bin/node
  145. endef
  146.  
  147. define Package/nodejs-npm/install
  148.     $(INSTALL_DIR) $(1)/usr/bin
  149.     $(CP) $(PKG_INSTALL_DIR)/usr/bin/npm $(1)/usr/bin/npm
  150.     $(INSTALL_DIR) $(1)/usr/lib/node_modules
  151.     $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/ \
  152.         $(1)/usr/lib/node_modules
  153. endef
  154.  
  155. define Build/InstallDev
  156.     $(INSTALL_DIR) $(1)/usr/share/nodejs-src
  157.     $(CP) $(PKG_BUILD_DIR)/* $(1)/usr/share/nodejs-src
  158. endef
  159.  
  160. $(eval $(call HostBuild))
  161. $(eval $(call BuildPackage,nodejs))
  162. $(eval $(call BuildPackage,nodejs-npm))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement