-
Notifications
You must be signed in to change notification settings - Fork 888
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
[scripts] Add PKG_SOURCE_NAME for non-standard package tarballs #4537
Conversation
This generally looks ok to me, however, I wonder if it would be better to just force all packages to use the I would like @sraue to comment any ideas he has in order to solve this issue. |
Is there a case (besides makemkv) where it is necessary to name the |
I did think about automatically setting In addition, any package that specifies multiple urls in If we were to set Something like...
and Advantage: Any package that needs to set a custom Disadvantage: Assumes there is a solution for those packages specifying multiple urls in Ultimately I think the approach used by this PR is likely to cause fewer problems than any automatic solution.
It shouldn't break anything unless Existing packages will continue to work as they do now when |
Updated with my preferred solution - tested with clean builds on RPi/RPi2 and Generic. Not tested for imx6 or Wetek. Updated
|
Although it adds complexity, I like it and it's what we need. I'll give it a test soonish. 👍 |
dont merge until i have looked in this, i think i dont like this, but not looked in this |
@sraue: thoughts? |
wait with this i need to check this |
How's the checking? |
The vast majority of packages create source tarballs along the lines of
$PKG_NAME-$PKG_VERSION.tar.xz
(or.gz
etc.).However some packages do not, eg. OpenELEC/unofficial-addons#96, which creates a package tarball with the file name
v4.0.8.tar.gz
, and requires anunpack()
function to work around this situation.With this PR,
PKG_SOURCE_NAME=$PKG_NAME-$PKG_VERSION.tar.xz
(or.gz
etc.) can be added topackage.mk
to simplify the handling of these non-standard package filenames.In the case of tvheadend, the entire
unpack()
function can be removed following the addition ofPKG_SOURCE_NAME=$PKG_NAME-$PKG_VERSION.tar.gz
. In addition, the tvheadend source tarball hosted on the OE mirror server can be given the "standard" file nametvheadend-4.0.8.tar.gz
instead of the ambiguousv4.0.8.tar.gz
that would otherwise have to be used.With this change, existing
package.mk
files should work as before, including those with customunpack()
functions, or with multiplePKG_URL
s (ie. makemkv).Packages with a single
PKG_URL
could be switched to usingPKG_SOURCE_NAME
, if considered appropriate.I would suggest switching
tvheadend/pacakge.mk
if this is ever merged.