[OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

Yousong Zhou yszhou4tech at gmail.com
Mon Jul 13 10:35:38 EDT 2015


On Jul 13, 2015 6:53 PM, "Pratik Prajapati" <pratik.prajapati12 at gmail.com>
wrote:
>
> Hi,
>
> I want to build radvd-2.11 package in OpenWrt but i am unable to download
it using Makefile rules.
>
> Makefile:
>
> include $(TOPDIR)/rules.mk
>
> PKG_NAME:=radvd
> PKG_VERSION:=2.11
> PKG_SOURCE_PROTO:=git
>
> PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip

try changing the suffix to .tar.gz

> PKG_SOURCE_URL:=https://github.com/reubenhwk/radvd.git
> PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
> PKG_SOURCE_VERSION:=e3e2b38a0433f680a75dadb394692edec3ea66e3
> PKG_CAT:=unzip

and remove this line

> PKG_FIXUP:=autoreconf
>
> include $(INCLUDE_DIR)/package.mk
> .
> .
> .
>
> Cmd: make ./package/radvd-2.11/compile V=s
>
> Cloning into 'radvd-2.11'...
> remote: Counting objects: 3603, done.
> remote: Total 3603 (delta 0), reused 0 (delta 0), pack-reused 3603
> Receiving objects: 100% (3603/3603), 1.64 MiB | 712.00 KiB/s, done.
> Resolving deltas: 100% (2324/2324), done.
> Checking connectivity... done.
> Note: checking out 'e3e2b38a0433f680a75dadb394692edec3ea66e3'.
>
> You are in 'detached HEAD' state. You can look around, make experimental
> changes and commit them, and you can discard any commits you make in this
> state without impacting any branches by performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b new_branch_name
>
> HEAD is now at e3e2b38... Makefile.am: add --with-check to packages target
> Packing checkout...
> ERROR: Unknown pack format for file
/home/pratik.prajapati/work/openwrt-radvd/openwrt-tip/openwrt/tmp/dl/radvd-2.11.zip
>

looks like git archive cannot do zip packing.

cheers

                yousong

>
> I am not able to download radvd-2.11 using my makefile. What part I am
missing in Makefile ?
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150713/392c860c/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list