Bug 10040

Summary: Some recipes use DEBIAN_MIRROR for SRC_URI
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Maxin B. John <maxin.john>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw, tim.orling
Version: 2.1   
Target Milestone: 2.2 M3   
Hardware: All   
OS: Multiple   
Whiteboard: Backport to Krogoth
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2016-07-27 19:33:20 UTC
Recipes that use DEBIAN_MIRROR in SRC_URI are setting themselves up for failure as the Debian mirror network only stores active releases, so once a version we use isn't in oldstable/stable/testing/unstable then it will be removed.

The solution here is to use the snapshot.debian.org service for the SRC_URI, and set UPSTREAM_CHECK_URI to the relevant pool directory on DEBIAN_MIRRORS. This way we get a stable SRC_URI but still have new upstream release checking.  As an example of this, see the recent dpkg patch I submitted.

The following recipes in oe-core still use DEBIAN_MIRROR in their SRC_URI:

- ossp-uuid
- serf
- netbase

These should be switched to use snapshot.debian.org.
Comment 1 Ross Burton 2016-07-27 19:35:07 UTC
Missed some:

- apm
- docbook-xml-dtd4
- linuxdoc-tools
- at
- blktool
- libaio
- mailx
Comment 2 Tim Orling 2016-07-27 20:21:59 UTC
Related to [YOCTO #10005].

Partial fix (for krogoth) in:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/krogoth-checkuri-10005

Based on Ross's dpkg fix on master-next.
Comment 3 Maxin B. John 2016-07-28 14:13:03 UTC
(In reply to comment #2)
> Related to [YOCTO #10005].
> 
> Partial fix (for krogoth) in:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/krogoth-
> checkuri-10005
> 
> Based on Ross's dpkg fix on master-next.

Sent the patches along with these fixes, Thanks!

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124448.html
Comment 4 Maxin B. John 2016-08-01 11:19:34 UTC
Fix available in master branch now:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f5a7cd40f0075ef8e3dabc29850b4c3a22f837e2