-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if use github tag for PKG_SOURCE_URL, filename conflict, all project will be "x.y.z.tar.gz" #1051
Comments
Please do not confuse the tag archives (tarballs) provided by Github and the release archive tarballs from the individual projects. The first ones are a simple export/copy of the sources, the later are created by autotools stuff (run "make dist" within the source directory) and include some more "magic" for the well-known "configure", "make", "make install" trilogy. If you want to refer to a dedicated version, then use the (autotools created) release tarballs and the url for these ones. If you want to refer to a not-yet-released tag, then use PKG_SOURCE_PROTO:=git and adopt the Makefiles variables accordingly (see package knxd for good example). OpenWrt's makefile will handle the rest and there will be not conflict with other packages. Then you have to add a "PKG_FIXUP:=autoreconf" line into the makefile. In other words, I think the current implementation is enough to support various scenarios and I see no need to change it. However, just my 2cts 😄 |
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
Signed-off-by: Nicolas Thill <[email protected]>
luaposix is afftected too, but I can't use the same fix. Fetching the source using git aborts with a cryptic error message : "No submodule mapping found in .gitmodules" |
Thanks for reviewing so many packages, @psycho-nico |
think we can close this for now |
look at https://github.com/wifidog/wifidog-gateway/releases
github tag download link is https://github.com/wifidog/wifidog-gateway/archive/1.2.0.tar.gz
so openwrt package code
Makefile
should like this:when make this package, file will be downloaded as
dl/1.2.0.tar.gz
, all project use the same filename, will conflict.I have read the code of
openwrt/scripts/download.pl
, it use PKG_SOURCE as filename, and we can't change it.suggestion: auto rename downloaded file as$(PKG_NAME)-$ (PKG_VERSION), or allow us to rename file, e.g. :
Now we have no alternative but to download a tag, rename, then upload to github release. like:
https://github.com/shadowsocks/openwrt-shadowsocks/releases
The text was updated successfully, but these errors were encountered: