FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    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:

    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:

    [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_

  2. #2
    bob's Avatar
    bob is online now Administrator (yeah, back again)
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    72
    Posts
    23,336

    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.

  3. #3
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    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_

  4. #4
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    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):
    [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:
    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_

  5. #5
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    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:

    [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:
    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_

  6. #6
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    Talking Re: [hand/any help would be beneficial] smurray: smart was replaced with dnf in Yocto

    This "gorgeous" cookie YOCTO Project is tough one beast... Wherever I bite it as mad cat, I break my teeth...

    But I am not from Yesterday (I am from Stone Age, Dinosaurs and these/similar stuff), so I am progressing there.

    To change kernel beneath YOCTO (for generic QEMU simulator) Project, there are at least dosen dependencies which MUST be changed/synchronized... Way to go!

    I just did it, and threw-in beneath Pyro release Rocko's kernel... Wow! This experience is worse than riding mad bull (this crazy stuff. Fedora 2x, behaves much better, I admit)!

    _nobody_

Similar Threads

  1. Replies: 0
    Last Post: 23rd November 2014, 09:23 AM
  2. F20 hardinfo replaced by...
    By serendip82 in forum Using Fedora
    Replies: 13
    Last Post: 20th March 2014, 06:05 PM
  3. Replies: 11
    Last Post: 9th November 2013, 09:57 PM
  4. PAE Kernel replaced
    By whitecloud1 in forum Using Fedora
    Replies: 4
    Last Post: 11th September 2010, 06:17 PM
  5. Left hand and the right hand?
    By Zotter in forum Fedora Focus
    Replies: 5
    Last Post: 24th October 2006, 08:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •