zlib: update SRC_URI to fix fetching
PATCH 1/1 zlib: update SRC_URI to fix fetching
Upstream have removed the file from zlib.net as a new version has been released, switch to fetching from the official sourceforge mirror.
[YOCTO #10879]
--- meta/recipes-core/zlib/zlib_1.2.8.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/zlib/zlib_1.2.8.bb +1 -1
@@ -6,7 +6,7 @@ SECTION = "libs" LICENSE = "Zlib" LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=fde612df1e5933c428b73844a0c494fd" -SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.xz \ +SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/${BPN}/${PV}/${BPN}-${PV}.tar.xz \ file://remove.ldconfig.call.patch \ file://Makefile-runtests.patch \ file://ldflags-tests.patch \
Signature · 1 line
2.9.3
Quoted 5 lines · Joshua Lock
Upstream have removed the file from zlib.net as a new version has been released, switch to fetching from the official sourceforge mirror.
[YOCTO #10879]
If a new version has been released, you should also update to that version. Also, does upstream version check (-c checkpkg) still work with the new SRC_URI?
Alex
Quoted 10 lines · Alexander Kanavin
Quoted 5 lines · Joshua Lock
Upstream have removed the file from zlib.net as a new version has been released, switch to fetching from the official sourceforge mirror.
[YOCTO #10879]
If a new version has been released, you should also update to that version. Also, does upstream version check (-c checkpkg) still work with the new
SRC_URI?
Actually it doesn't, accordingly we have no way of knowing if zlib has a new version upstream. Please do check these things when you update SRC_URI.
Alex
Quoted 14 lines · Alexander Kanavin
Quoted 11 lines · Alexander Kanavin
Quoted 5 lines · Joshua Lock
Upstream have removed the file from zlib.net as a new version has been released, switch to fetching from the official sourceforge mirror.
[YOCTO #10879]
If a new version has been released, you should also update to that version. Also, does upstream version check (-c checkpkg) still work with
the newSRC_URI?
Quoted 4 lines
Actually it doesn't, accordingly we have no way of knowing if zlib has a
new version upstream. Please do check these things when you updateSRC_URI.
Noted, thanks. Do we maintain a list of things we'd like people to check, and how to do it, when making updates to recipes?
checkpkg isn't available by default (had to add distrodata to INHERITS) and it took me a while to realise the results are written to a file I have to check. If we expect people to run these checks before submitting updates we'd best make it as easy as possible to know what the checks are and how to run them.
The only reference I can find to checkpkg on the OE and YP wikis is here:
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_ensure_that_I_a
m_using_the_latest_upstream_version_of_the_package.3F
Joshua
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Joshua G
Noted, thanks. Do we maintain a list of things we'd like people to check, and how to do it, when making updates to recipes?
I don't think there's such a list, perhaps we should make one and place it in patch guidelines wiki.
Quoted 5 lines
checkpkg isn't available by default (had to add distrodata to INHERITS) and it took me a while to realise the results are written to a file I have to check. If we expect people to run these checks before submitting updates we'd best make it as easy as possible to know what the checks are and how to run them.
I think this particular check should be automated and run in package_qa, if it's okay to access the network in that step. Is it?
Alternatively, if checkuri is regularly run somewhere, then checkpkg should be as well.
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 2 lines · Joshua G
Noted, thanks. Do we maintain a list of things we'd like people to check, and how to do it, when making updates to recipes?
I don't think there's such a list, perhaps we should make one and place
it in patch guidelines wiki.
I think we should, yes please.
Quoted 9 lines
Quoted 8 lines
checkpkg isn't available by default (had to add distrodata to INHERITS)
and it took me a while to realise the results are written to a file I
have to check. If we expect people to run these checks before submitting updates we'd best make it as easy as possible to know what
the checks are and how to run them.
Quoted 3 lines
I think this particular check should be automated and run in
package_qa,
if it's okay to access the network in that step. Is it?
I don't think we should be accessing the network during package_qa.
Quoted 2 lines
Alternatively, if checkuri is regularly run somewhere, then checkpkg should be as well.
We run checkuri on the autobuilders and checkpkg is used by the recipe report tool, though that's run less frequently.
Running checkpkg on the autobuilders won't really help as the autobuilders rely on the bitbake invocation returning a non-zero exit code to determine whether to mark the build step as failed, and that's not the case when checkpkg doesn't find an update version.
If we regularly run checkpkg on the autobuilders how should we detect that a SRC_URI change has caused the upstream version check to fail?
Joshua
Quoted 7 lines · Joshua Lock
Running checkpkg on the autobuilders won't really help as the autobuilders rely on the bitbake invocation returning a non-zero exit code to determine whether to mark the build step as failed, and that's not the case when checkpkg doesn't find an update version.
If we regularly run checkpkg on the autobuilders how should we detect that a
SRC_URIchange has caused the upstream version check to fail?
- run bitbake -c checkpkg world
- inspect tmp/log/checkpkg.csv for lines with 'UNKNOWN' upstream status, make a list of recipes that have it
- compare that list against a stored list of exceptions (currently it would have about 32 entries), if the lists don't match exactly, the upstream version check has failed.
All of this can be wrapped in poky/scripts/upstream-check-all perhaps.
Alex
Quoted 23 lines · Alexander Kanavin
Quoted 11 lines · Joshua Lock
Running checkpkg on the autobuilders won't really help as the autobuilders rely on the bitbake invocation returning a non-zero exit
code to determine whether to mark the build step as failed, and that's
not the case when checkpkg doesn't find an update version.If we regularly run checkpkg on the autobuilders how should we detect
that aSRC_URIchange has caused the upstream version check to fail?- run bitbake -c checkpkg world
- inspect tmp/log/checkpkg.csv for lines with 'UNKNOWN' upstream status,
make a list of recipes that have it
- compare that list against a stored list of exceptions (currently it
would have about 32 entries), if the lists don't match exactly, the upstream version check has failed.
Quoted 2 lines
All of this can be wrapped in poky/scripts/upstream-check-all perhaps.
Thanks, I've filed a bug to track implementing this feature:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11031
Joshua