Bug 11703

Summary: pkgconfig 0.29.2 fetch failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Abhishek Dwivedi <abhishekkumardwivedi>
Component: devtools / tool chainAssignee: Abhishek Dwivedi <abhishekkumardwivedi>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: jku, meta.mr.watcher, meta.watcher, ross.burton
Version: unspecified   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
fetch fail log
none
fetch success in earlier version none

Description Abhishek Dwivedi 2017-06-22 11:26:39 UTC
Fetch fails with recent update of pkgconfig:
----------------
ERROR: pkgconfig-0.29.2+gitAUTOINC+edf8e6f0ea-r0 do_fetch: Fetcher failure for URL: 'git://anongit.freedesktop.org/pkg-config'. Unable to fetch URL from any source.
ERROR: pkgconfig-0.29.2+gitAUTOINC+edf8e6f0ea-r0 do_fetch: Function failed: base_do_fetch
----------------

I could do fetch success by reverting to older version (0.29.1) but not 0.29.2.
Comment 1 Jussi Kukkonen 2017-06-22 12:18:50 UTC
This works fine here, both with PREMIRRORS (downloads tarball from yoctoproject.org) and without (clones the git repo).

Can you attach a failing log from $WORKDIR/temp/log.do_fetch?
Comment 2 Ross Burton 2017-06-22 14:34:57 UTC
Change to NEEDINFO as this works for others.
Comment 3 Abhishek Dwivedi 2017-06-27 06:26:52 UTC
Created attachment 3844 [details]
fetch fail log
Comment 4 Abhishek Dwivedi 2017-06-27 06:27:38 UTC
Created attachment 3845 [details]
fetch success in earlier version
Comment 5 Abhishek Dwivedi 2017-06-27 06:30:25 UTC
Have attached log for failure in recent version, 0.29.2. and also, success case in older version 0.29.1.

I am behind proxy wall. 0.29.1 could do thought mirror where as 0.29.2 fails.

~ Thanks
Comment 6 Jussi Kukkonen 2017-06-27 07:33:59 UTC
(In reply to comment #5)
> Have attached log for failure in recent version, 0.29.2. and also, success
> case in older version 0.29.1.
> 
> I am behind proxy wall. 0.29.1 could do thought mirror where as 0.29.2 fails.

The git fetch fails on both cases but there's a tarball backup (http://sources.openembedded.org/git2_anongit.freedesktop.org.pkg-config.tar.gz) which is tried after the failure: it happens to work for the older version. Unfortunately it's probably old enough that it does not contain the commit for 0.29.2.

The issue you should be fixing seems to be "git through proxy". For reasons not clear to me, git does not function with just the normal proxy environment variables. Please see https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy if you're not using oe-git-proxy (or a Chameleon/redsocks based solution) yet.
Comment 7 Abhishek Dwivedi 2017-07-29 07:41:55 UTC
Not found this issue on download without proxy. Please close the issue.