Bug 11699

Summary: [megamanual] dnf using rpm: 5.18.4.3.1. Using RPM section changes required
Product: [Documentation] Development Manual Reporter: David Lopez Barriba <davidx.lopez.barriba>
Component: developmentAssignee: Kristi <kristi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, kristi
Version: 2.4   
Target Milestone: 2.4 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: 22 June 2017: RESOLVED
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Done (doc changes complete)

Description David Lopez Barriba 2017-06-21 19:04:21 UTC
When I try to do the Setup for dnf application following the steps that are in the mega-manual http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html ( 5.18.4.3.1. Using RPM ) the configuration doesn't work, needs changes on the following step:

     [oe-packages]
     baseurl="http://my.server/rpm/i586 http://my.server/rpm/qemux86 http://my.server/rpm/all" 

Sending an error: Repository oe-packages has no mirror or baseurl set.

But removing "" from the line it works ok:
 [oe-packages]
 baseurl=http://my.server/rpm/i586 http://my.server/rpm/qemux86 http://my.server/rpm/all 




Steps to reproduce:

1. Perform the initial setup for dnf on the target machine
2. Start the server on Host

$ cd ~/poky/build/tmp/deploy/rpm
   $ python -m SimpleHTTPServer

3.Create the repositories with createrepo <directory>
 (e.g. $ createrepo /home/user/poky/build/tmp/deploy/rpm/qemux86-64)

4.Create /etc/yum.repos.d/oe-packages.repo file on target machine with the following content:

    [oe-packages]
     baseurl="http://my.server/rpm/i586 http://my.server/rpm/qemux86 http://my.server/rpm/all"
                        
From the target machine, fetch the repository:

     # dnf makecache
 
Actual Outcome:
Repository oe-packages has no mirror or baseurl set.

Expected Outcome:
Packages are updated
Comment 1 Kristi 2017-06-21 21:12:27 UTC
David - Thanks for the change. I've updated the section, see http://www.yoctoproject.org/docs/2.4/dev-manual/dev-manual.html#runtime-package-management-target-rpm 

Check it over, if it's good I'll mark the bug as RESOLVED. 

Kristi
Comment 2 Kristi 2017-06-21 21:13:09 UTC
Changed owner
Comment 3 David Lopez Barriba 2017-06-22 16:48:16 UTC
(In reply to comment #1)
> David - Thanks for the change. I've updated the section, see
> http://www.yoctoproject.org/docs/2.4/dev-manual/dev-manual.html#runtime-
> package-management-target-rpm 
> 
> Check it over, if it's good I'll mark the bug as RESOLVED. 
> 
> Kristi

Yes, it's good.

Thanks
Comment 4 Kristi 2017-06-22 20:18:06 UTC
Thanks - Setting status to RESOLVED and putting the doc flag to "done".
Comment 5 David Lopez Barriba 2017-07-04 18:14:16 UTC
Verified