Fedora Linux Support Community & Resources Center
  #1  
Old 21st August 2017, 03:40 PM
nobody Offline
Banned
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 863
linuxfedorafirefox
Talking [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto 2.3

And here we go, Folks!

I re-build YOCTO 2.2.2, as I already posted on YOCTO topic, trying to set smart (rpm manager for YOCTO). And I did thid successfully. It worked.

It did NOT work on Pyro, which is YOCTO release 2.3 and 2.3.1. But Luck strikes people like me. Lurking for the solutions, I finally run into freedesktop YOCTO IRC, asking on yocto channel help with smart.

And, suddenly, the lot of luck strikes:
smurray nobody: smartpm was replaced with dnf in 2.3.

Full transcript of the queries are here:
https://www.yoctoproject.org/irc/%23...08-18.log.html

WOW! DNF is IN, in YOCTO?!

Now, since I did recompile YOCTO 2.3.1 as:

Quote:
user@localhost build]$ bitbake core-image-minimal
WARNING: Host distribution "fedora-26" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |################################################# ################################################## ########| Time: 0:00:00
Loaded 1299 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "2.3.1"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "pyro:4a39979c8d1e560fa54240e99734a651dfbaa63a "

Initialising tasks: 100% |################################################# ################################################## ###| Time: 0:00:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3139 tasks of which 2212 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
[user@localhost build]$
And, YES, it does work for me: on the target, I can see 127 packages installed with the command: dnf list installed | wc -l

With the command: rpm -qa | wc -l I can see that there is 124 packages there. copy/paste does not work for me from the the target to F26 server/my machine.

Now, I also see the repos on my bare metal Fedora 26, which plays server (I activated on it Apache Server), and the repos are here:

Quote:
[user@localhost rpm]$ uname -a
Linux localhost.localdomain 4.12.5-300.fc26.x86_64 #1 SMP Mon Aug 7 15:27:25 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[user@localhost rpm]$ pwd
/home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm
[user@localhost rpm]$ ls -al
total 376
drwxr-xr-x. 6 user user 4096 Aug 21 13:11 .
drwxr-xr-x. 5 user user 4096 Aug 21 13:10 ..
drwxr-xr-x. 2 user user 294912 Aug 21 13:11 core2_64
drwxr-xr-x. 2 user user 4096 Aug 21 13:10 noarch
drwxr-xr-x. 2 user user 69632 Aug 21 13:10 qemux86_64
drwxr-xr-x. 2 user user 4096 Aug 21 11:15 x86_64_nativesdk

[user@localhost rpm]$
The question is: where the Hell (in which /etc files on target) I should put these???

Links to the repos should be something like these:
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/core2_64
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/noarch
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/x86_64_nativesdk

Any suggestions/verbal help is appreciated!

Thank you.
_nobody_
Reply With Quote
  #2  
Old 21st August 2017, 07:23 PM
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 72
Posts: 23,251
linuxfedorafirefox
Re: [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto

moved to Linux Chat
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 22nd August 2017, 07:13 AM
nobody Offline
Banned
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 863
windows_98_nt_2000chrome
Arrow Re: [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto

Quote:
Originally Posted by nobody
Links to the repos should be something like these:
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/core2_64
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/noarch
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/
127.0.0.1//home/user/projects/poky-pyro_2.3.1/build/tmp/deploy/rpm/x86_64_nativesdk
Hmmmmm.... I made a mistake, I admit!

This is how these links should look like!
http://127.0.0.1:8000/core2_64
http://127.0.0.1:8000/noarch
http://127.0.0.1:8000/qemux86_64
http://127.0.0.1:8000/x86_64_nativesdk



@off topic: YOCTO should itself maintain the latest PYRO prebuilt .rpm packages, and these should be publicly available! YOCTO is somehow very different than Fedora. I can add the package in Fedora I do not have. This is why I will advertise YOCTO servers similar as Fedoras ones.

_nobody_
Reply With Quote
  #4  
Old 22nd August 2017, 03:11 PM
nobody Offline
Banned
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 863
linuxfedorafirefox
Question Re: [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto

So, in order to solve this mystery/misery, I have tried to create my own pointers on the target qemux86_64?!

And what I did there, is to follow what Fedora documentation says. And this is what it (Fedora 26) says:
https://docs.fedoraproject.org/en-US...ositories.html

and:
https://docs.fedoraproject.org/en-US...y_Options.html

And created directory: /etc/yum.conf.d and in it file yocto.repo on the target.

Since I have running Apache exactly here (on y server, which is one bare metal F26 x86_64 machine):
Quote:
[user@localhost rpm]$ pwd
/home/user/projects/poky/build/tmp/deploy/rpm
[user@localhost rpm]$ ls -al
total 564
drwxr-xr-x. 5 user user 4096 Aug 22 13:33 .
drwxr-xr-x. 5 user user 4096 Aug 22 13:28 ..
drwxr-xr-x. 2 user user 462848 Aug 22 13:32 core2_64
drwxr-xr-x. 2 user user 16384 Aug 22 13:32 noarch
drwxr-xr-x. 2 user user 81920 Aug 22 13:32 qemux86_64
[user@localhost rpm]$ python -m SimpleHTTPServer&
[1] 936
[user@localhost rpm]$ Serving HTTP on 0.0.0.0 port 8000 ...

[user@localhost rpm]$
I have checked: all of these are full of .rpm packages.

Then, this is how my /etc/yum.conf.d/yocto.repo on target looks like:
Quote:
Originally Posted by etc/yum.conf.d/yocto.repo on target
[core2_64]
name=core2
baseurl=http://127.0.0.1:8000/core2_64
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=0
skip_if_unavailable=false

[noarch]
name=noarch
baseurl=http://127.0.0.1:8000/noarch
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=0
skip_if_unavailable=false

[qemux86_64]
name=qemu
baseurl=http://127.0.0.1:8000/qemux86_64
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=0
skip_if_unavailable=false
After I issued: dnf distro-sync(on target)...

The following appears:
Quote:
Failed to synchronize cache for repo 'noarch', disabling.
Failed to synchronize cache for repo 'core2_64', disabling.
Failed to synchronize cache for repo 'qemux86_64', disabling.
Dependencies resolved.
Nothing to do.
Complete.
The same happens after: dnf upgrade or update. Strange!



_nobody_
Reply With Quote
  #5  
Old 24th August 2017, 07:42 AM
nobody Offline
Banned
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 863
linuxfedorafirefox
Arrow Re: [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto

Well... I made DNF work with YOCTO (PYRO, YOCTO release 2.3.1 and going forward). I did it with the local packages. On the server.

The key action/command there was to build missing repomd,xml . I have noticed this, since I was able to somehow configure correctly /etc/yum.repos.d/yocto.repo .

Suddenly, server started giving me the messages that it does NOT see .../repodata/repomd.xml. I needed few minutes to figure it, what really goes on there!

After that, there were two paths what to do: one was to create two new posts on the Fedora Forum (trying to equal/unify the tasks for both Fedora and YOCTO, which hapilly failed):
https://www.forums.fedoraforum.org/s...d.php?t=315272
https://www.forums.fedoraforum.org/s...d.php?t=315273

With the correct remark: if the mountain won't come to Muhammad then Muhammad must go to the mountain".

The mysterious command to create repomd.xml in YOCTO is the following: bitbake package-index .

So, now on the server side I have:

Quote:
[user@localhost rpm]$ pwd
/home/user/projects/poky/build/tmp/deploy/rpm
[user@localhost rpm]$ ls -al
total 568
drwxr-xr-x. 6 user user 4096 Aug 24 08:06 .
drwxr-xr-x. 5 user user 4096 Aug 22 13:28 ..
drwxr-xr-x. 2 user user 462848 Aug 22 13:32 core2_64
drwxr-xr-x. 2 user user 16384 Aug 22 13:32 noarch
drwxr-xr-x. 2 user user 81920 Aug 22 13:32 qemux86_64
drwxrwxr-x. 2 user user 4096 Aug 24 08:06 repodata
[user@localhost rpm]$ cd repodata/
[user@localhost repodata]$ ls -al
total 6292
drwxrwxr-x. 2 user user 4096 Aug 24 08:06 .
drwxr-xr-x. 6 user user 4096 Aug 24 08:06 ..
-rw-rw-r--. 1 user user 1597919 Aug 24 08:06 0c7e1112eed4ebc27a7a0cac1526c7a625e1208f36d99c9870 43b187e66c2c2c-primary.sqlite.bz2
-rw-rw-r--. 1 user user 1264601 Aug 24 08:06 2fa455eae05f1a8999c6e4aaeb9feb989ce539c7720f926912 588c236bd1cd1b-filelists.xml.gz
-rw-rw-r--. 1 user user 504528 Aug 24 08:06 57aca2d05f8692c97544db91c2622811e336411aa6a8157f76 e5735edb36d172-other.sqlite.bz2
-rw-rw-r--. 1 user user 1926919 Aug 24 08:06 6897d7b6d58a3eaa129aeca841d8096a8ffdad589b22984874 0ef0d67ab2b1bb-filelists.sqlite.bz2
-rw-rw-r--. 1 user user 793488 Aug 24 08:06 6a1325118f5e4a2f8de05d8d54d700f7512dd6085715987c15 a860d778aa3669-primary.xml.gz
-rw-rw-r--. 1 user user 329232 Aug 24 08:06 9fac8cc8789b46304adcaf43a52d32233c046d9249c20f01eb 24926f54a01fc9-other.xml.gz
-rw-rw-r--. 1 user user 3107 Aug 24 08:06 repomd.xml
[user@localhost repodata]$
Much better, isn't it???

My /etc/yum.repos.d/oe-package.repo looks like following on the clien/qemux86-64 side:
Quote:
root@qemux86-64:~# cat /etc/yum.repos.d/oe-packages.repo
[oe-packages]
baseurl=http://10.0.2.2:8000/
Since my client/qemux86-64 lives as IP address 10.0.2.15 !

There are some other small things to iron, but these are technicalities. That's all, Folks!

One very significant task is to keep DNF in YOCTO indefinitely/forever, and also to pursue YOCTO maintainers to make external YOCTO master repos, as Fedora does. Task for me for The Future.

_nobody_
Reply With Quote
Reply

Tags
beneficial, dnf, hand or any, replaced, smart, smurray, yocto

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to spawn terminal auto when bitbake -c menuconfig linux-yocto shuojiun Using Fedora 0 23rd November 2014 09:23 AM
F20 hardinfo replaced by... serendip82 Using Fedora 13 20th March 2014 06:05 PM
Video game playing found beneficial for the brain mmix Wibble 11 9th November 2013 09:57 PM
PAE Kernel replaced whitecloud1 Using Fedora 4 11th September 2010 06:17 PM
Left hand and the right hand? Zotter Fedora Focus 5 24th October 2006 08:44 PM


Current GMT-time: 12:31 (Thursday, 21-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat