Bug 7106 - # pkcon repo-list doesn't work because integration between packagekit and urpmi wasn't done
Summary: # pkcon repo-list doesn't work because integration between packagekit and urp...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
: 6909 (view as bug list)
Depends on:
Blocks: 6909
  Show dependency treegraph
 
Reported: 2012-08-19 13:34 CEST by Anderson Carvalho
Modified: 2018-08-13 10:04 CEST (History)
7 users (show)

See Also:
Source RPM: packagekit, urpmi
CVE:
Status comment:


Attachments
fix repo-list (542 bytes, patch)
2012-11-13 16:50 CET, Thierry Vignaud
Details | Diff
fix repo-list (better) (886 bytes, patch)
2012-11-13 17:50 CET, Thierry Vignaud
Details | Diff
fix inverted status (952 bytes, patch)
2012-11-13 17:52 CET, Thierry Vignaud
Details | Diff

Description Anderson Carvalho 2012-08-19 13:34:13 CEST
Description of problem:
Integration between packagekit and urpmi which was never done.
Mageia presents a serious bug because [# pkcon repo-list] it is empty and we couldn't configure the default repositories with {# pkcon repo-enable [repo_id]
# pkcon repo-disable [repo_id]}.

This bug affects Apper: https://bugs.mageia.org/show_bug.cgi?id=6909

Version-Release number of selected component (if applicable):
packagekit 0.6.21-3.mga2

How reproducible:
# pkcon repo-list

Steps to Reproduce:
1.Run in a terminal: # pkcon repo-list
Comment 1 Anderson Carvalho 2012-08-19 13:49:21 CEST
pkcon repo-list does not list the repositories in Mageia 2
https://bugs.freedesktop.org/show_bug.cgi?id=53189
Comment 2 Anderson Carvalho 2012-08-19 15:05:44 CEST
Suggestion: Switch Packagekit to use Smart as a backend

Edit the SPEC of packagekit-0.6.21-3.mga2.src.rpm in the line:

178 	--enable-smart --enable-urpmi --enable-introspection \

Add in the line:

230     %{_libdir}/packagekit-backend/libpk_backend_smart.so

To test the change:

$ rpmbuild -ba packagekit.spec

Generated all packets correctly:
Gravou: /home/chimarrao/rpm/SRPMS/packagekit-0.6.21-3mgabr2.src.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/lib64packagekit-glib14-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/lib64packagekitglib-gir1.0-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/lib64packagekit-qt14-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/lib64packagekit-qt2_2-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/lib64packagekit-devel-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-cron-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-gstreamer-plugin-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-browser-plugin-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-command-not-found-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-gtk-module-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-gtk3-module-0.6.21-3mgabr2.x86_64.rpm
Gravou: /home/chimarrao/rpm/RPMS/x86_64/packagekit-debug-0.6.21-3mgabr2.x86_64.rpm

I reinstalled by new packages generated.
I Edit the /etc/PackageKit/PackageKit.conf and change the line:

DefaultBackend=urpmi
to
DefaultBackend=smart

Now ran the command again:
# pkcon repo-list
Obtendo repositórios         [=========================]         
Iniciando                     [=========================]         
 Desabilitado urpmisync-Tainted Backports Testing Debug (distrib30) Tainted Backports Testing Debug (distrib30)
 Desabilitado urpmisync-Core 32bit Updates Testing Debug (distrib36) Core 32bit Updates Testing Debug (distrib36)
 Desabilitado urpmisync-Nonfree Updates Debug (distrib14) Nonfree Updates Debug (distrib14)
 Desabilitado urpmisync-Core Release Debug (distrib2) Core Release Debug (distrib2)
 Habilitado urpmisync-Beranger        Beranger
 Habilitado urpmisync-BDK-NonFree-x86_64 BDK-NonFree-x86_64
 Desabilitado urpmisync-Nonfree Backports Testing Debug (distrib20) Nonfree Backports Testing Debug (distrib20)
 Desabilitado urpmisync-Nonfree Backports (distrib17) Nonfree Backports (distrib17)
 Desabilitado urpmisync-Core Backports Debug (distrib8) Core Backports Debug (distrib8)
 Desabilitado urpmisync-Core Updates Testing (distrib5) Core Updates Testing (distrib5)
 Desabilitado urpmisync-Core 32bit Backports (distrib37) Core 32bit Backports (distrib37)
 Habilitado urpmisync-Core 32bit Updates (distrib33) Core 32bit Updates (distrib33)
 Desabilitado urpmisync-Core 32bit Updates Testing (distrib35) Core 32bit Updates Testing (distrib35)
 Habilitado urpmisync-Nonfree Updates (distrib13) Nonfree Updates (distrib13)
 Desabilitado urpmisync-Core 32bit Backports Testing (distrib39) Core 32bit Backports Testing (distrib39)
 Habilitado urpmisync-Nonfree Release (distrib11) Nonfree Release (distrib11)
 Desabilitado urpmisync-Core Updates Debug (distrib4) Core Updates Debug (distrib4)
 Habilitado urpmisync-MRC-x86_64 (MGA-RU-x86_641) MRC-x86_64 (MGA-RU-x86_641)
 Habilitado urpmisync-BDK-Free-noarch BDK-Free-noarch
 Desabilitado urpmisync-Nonfree Updates Testing (distrib15) Nonfree Updates Testing (distrib15)
 Habilitado urpmisync-petos-x86_64    petos-x86_64
 Desabilitado urpmisync-Core Backports Testing (distrib9) Core Backports Testing (distrib9)
 Habilitado urpmisync-Core Updates (distrib3) Core Updates (distrib3)
 Habilitado urpmisync-Tainted Updates (distrib23) Tainted Updates (distrib23)
 Desabilitado urpmisync-Tainted Backports (distrib27) Tainted Backports (distrib27)
 Desabilitado urpmisync-Tainted Release Debug (distrib22) Tainted Release Debug (distrib22)
 Desabilitado urpmisync-Tainted Updates Debug (distrib24) Tainted Updates Debug (distrib24)
 Habilitado urpmisync-Samba-x86_64    Samba-x86_64
 Habilitado urpmisync-petos-games-64  petos-games-64
 Habilitado urpmisync-google-talkplugin google-talkplugin
 Desabilitado urpmisync-BDK-Src         BDK-Src
 Habilitado urpmisync-MGR-noarch      MGR-noarch
 Desabilitado urpmisync-PLF Non-free backports PLF Non-free backports
 Desabilitado urpmisync-PLF Free backports PLF Free backports
 Habilitado rpm-sys                   RPM System
 Desabilitado urpmisync-Core 32bit Backports Debug (distrib38) Core 32bit Backports Debug (distrib38)
 Desabilitado urpmisync-PLF Free debug  PLF Free debug
 Desabilitado urpmisync-PLF Free backports debug PLF Free backports debug
 Habilitado urpmisync-BDK-Free-x86_64 BDK-Free-x86_64
 Habilitado urpmisync-MGA-PL-x86_64   MGA-PL-x86_64
 Habilitado urpmisync-MGR-x86_64      MGR-x86_64
 Habilitado urpmisync-google-music    google-music
 Desabilitado urpmisync-PLF Free        PLF Free
 Habilitado urpmisync-Core 32bit Release (distrib31) Core 32bit Release (distrib31)
 Desabilitado urpmisync-Tainted Updates Testing Debug (distrib26) Tainted Updates Testing Debug (distrib26)
 Habilitado urpmisync-google-earth    google-earth
 Desabilitado urpmisync-Nonfree Backports Testing (distrib19) Nonfree Backports Testing (distrib19)
 Desabilitado urpmisync-Tainted Backports Testing (distrib29) Tainted Backports Testing (distrib29)
 Habilitado urpmisync-Frevo-noarch    Frevo-noarch
 Habilitado urpmisync-Samba-noarch    Samba-noarch
 Habilitado urpmisync-Tainted Release (distrib21) Tainted Release (distrib21)
 Desabilitado urpmisync-Core 32bit Release Debug (distrib32) Core 32bit Release Debug (distrib32)
 Desabilitado urpmisync-Nonfree Release Debug (distrib12) Nonfree Release Debug (distrib12)
 Habilitado urpmisync-MRC-Src (MGA-RU-x86_643) MRC-Src (MGA-RU-x86_643)
 Habilitado urpmisync-Bossa-x86_64    Bossa-x86_64
 Desabilitado urpmisync-Nonfree Updates Testing Debug (distrib16) Nonfree Updates Testing Debug (distrib16)
 Habilitado urpmisync-Frevo-x86_64    Frevo-x86_64
 Desabilitado urpmisync-Core Updates Testing Debug (distrib6) Core Updates Testing Debug (distrib6)
 Desabilitado urpmisync-Core Backports Testing Debug (distrib10) Core Backports Testing Debug (distrib10)
 Desabilitado urpmisync-PLF Non-free    PLF Non-free
 Habilitado urpmisync-Core Release (distrib1) Core Release (distrib1)
 Desabilitado urpmisync-Core Backports (distrib7) Core Backports (distrib7)
 Desabilitado urpmisync-Core 32bit Updates Debug (distrib34) Core 32bit Updates Debug (distrib34)
 Habilitado urpmisync-Bossa-noarch    Bossa-noarch
 Habilitado urpmisync-MRC-noarch (MGA-RU-x86_642) MRC-noarch (MGA-RU-x86_642)
 Desabilitado urpmisync-Nonfree Backports Debug (distrib18) Nonfree Backports Debug (distrib18)
 Desabilitado urpmisync-PLF Non-free debug PLF Non-free debug
 Habilitado urpmisync-google-chrome   google-chrome
 Desabilitado urpmisync-Tainted Backports Debug (distrib28) Tainted Backports Debug (distrib28)
 Desabilitado urpmisync-Core 32bit Backports Testing Debug (distrib40) Core 32bit Backports Testing Debug (distrib40)
 Desabilitado urpmisync-PLF Non-free backports debug PLF Non-free backports debug
 Desabilitado urpmisync-Tainted Updates Testing (distrib25) Tainted Updates Testing (distrib25)
 Habilitado urpmisync-petos-flightgear petos-flightgear

Now by Apper I can configure the repositories that I will use.
I installed Smart 1.4.1 generated by modifications suggested in the bug:
https://bugs.mageia.org/show_bug.cgi?id=1426#c14
Manuel Hiebel 2012-08-19 15:44:44 CEST

Version: 2 => Cauldron
Source RPM: (none) => packagekit, urpmi
Severity: normal => enhancement

Manuel Hiebel 2012-08-19 15:45:13 CEST

Blocks: (none) => 6909

Comment 3 Anderson Carvalho 2012-08-19 15:59:38 CEST
Manuel Hiebel,

To request the inclusion in PackageKit of support Smart as a backend is necessary to report new bug? Maybe as a separate package: PackageKit-smart???
Comment 4 Manuel Hiebel 2012-08-19 16:46:07 CEST
well, smart is not in our repo...
Comment 5 Anderson Carvalho 2012-08-19 16:54:07 CEST
Then I open new bug for PackageKit support Smart as a backend dependent resolution of bug 1426 !
Comment 6 Thierry Vignaud 2012-11-13 16:25:31 CET
There's a bug in packagekit:

23:20        PackageKit          failed to parse: repo-detail        Core 32bit Release      Core 32bit Release      : invalid qualifier ''
16:23:20        PackageKit          ignoring message (turn on DeveloperMode): Failed to parse output: invalid qualifier '1'

CC: (none) => fundawang, thierry.vignaud

Comment 7 Thierry Vignaud 2012-11-13 16:50:17 CET
Created attachment 3088 [details]
fix repo-list
Thierry Vignaud 2012-11-13 17:00:15 CET

Keywords: (none) => PATCH

Comment 8 Thierry Vignaud 2012-11-13 17:50:27 CET
Created attachment 3090 [details]
fix repo-list (better)

Attachment 3088 is obsolete: 0 => 1

Comment 9 Thierry Vignaud 2012-11-13 17:52:16 CET
Created attachment 3091 [details]
fix inverted status

This change is also needed. Output is inverted for years...
Comment 10 Thierry Vignaud 2012-11-14 10:44:49 CET
Fixed pushed upstream https://gitorious.org/packagekit/packagekit/commits/master/
I'll backport them into the 0.7.x branch too.

Status: NEW => ASSIGNED
Assignee: bugsquad => thierry.vignaud

Comment 11 Mustafa Muhammad 2012-11-25 08:30:59 CET
Is there any rpm we can test?
Also there are multiple features missing from the back-end:
http://www.packagekit.org/pk-matrix.html
Is there any fix for this?

CC: (none) => mustafaa.alhamdaani

Comment 12 Thierry Vignaud 2012-11-28 15:26:46 CET
This matrix is totally obsolete regarding urpmi...
Comment 13 Mustafa Muhammad 2012-12-03 13:22:04 CET
(In reply to comment #12)
> This matrix is totally obsolete regarding urpmi...

Thanks for the update, but today (3-12-2012) I tried Apper and nothing works.
Comment 14 Nicolas Lécureuil 2014-01-31 11:49:08 CET
Nothing ? can you be more specific please ?

CC: (none) => mageia

Comment 15 Mustafa Muhammad 2014-02-01 09:52:42 CET
I opened Apper, click on updates, and no list gets loaded (keeps loading), the same happens when I enter any category.
Comment 16 Nicolas Lécureuil 2014-02-01 23:37:37 CET
seems you are facing this bug https://bugs.mageia.org/show_bug.cgi?id=12481
Comment 17 Mustafa Muhammad 2014-02-04 10:23:30 CET
(In reply to Nicolas Lécureuil from comment #16)
> seems you are facing this bug https://bugs.mageia.org/show_bug.cgi?id=12481

Yes, probably it is.
Comment 18 Marja Van Waes 2017-12-02 12:56:46 CET
CC'ing Yuri Myasoedov, who seems to be working on this, too, see his comment on dev ml https://ml.mageia.org/l/arc/dev/2017-12/msg00016.html :

> BTW, I've started improving urpmi backend in PackageKit several
> months ago. I'd push my git repo on git.mageia.org. The work is not
> finished yet, but something I've already done.
> 

Yuri, do you mind joining the Mageia tools maintainer group (and maybe the RPM stack maintainer group, too), and joining the matching mailing list(s)?

CC: (none) => mageiatools, marja11, ymyasoedov

Comment 19 Marja Van Waes 2017-12-02 12:57:37 CET
(In reply to Marja van Waes from comment #18)
 
> 
> Yuri, do you mind joining the Mageia tools maintainer group (and maybe the
> RPM stack maintainer group, too), and joining the matching mailing list(s)?

See https://wiki.mageia.org/en/Maintainer_groups#List_of_groups
Comment 20 Yuri Myasoedov 2017-12-02 17:03:59 CET
(In reply to Marja van Waes from comment #18)
> Yuri, do you mind joining the Mageia tools maintainer group (and maybe the
> RPM stack maintainer group, too), and joining the matching mailing list(s)?

Joined.
Comment 21 Marja Van Waes 2018-06-12 10:10:07 CEST
(In reply to Yuri Myasoedov from comment #20)
> (In reply to Marja van Waes from comment #18)
> > Yuri, do you mind joining the Mageia tools maintainer group (and maybe the
> > RPM stack maintainer group, too), and joining the matching mailing list(s)?
> 
> Joined.

Thanks. I had hoped things would magically start moving, but apparently I was wrong :-(

Upstream little happened for the urpmi backend since 2015
https://github.com/hughsie/PackageKit/commits/master/backends/urpmi
because soig ("our" tv) now lacks time.

However, the *original* issue of this bug report has since long been fixed by him both upstream https://github.com/hughsie/PackageKit/commit/ee321848c1fefc1f9b9550cc3cb65bed8bb63420#diff-e84d6cf21b82508ba4c2789cfa354585 and in Mageia since at least Mageia 3

He has also done a magnificent job upstream, adding a lot of urpmi support:
https://github.com/hughsie/PackageKit/commits?author=soig

I'll close this report as fixed, even if more needs to be done, because the _original_ issue has been fixed and even much more.

@ Yuri @ neoclust @ tv @mageiatools maintainers

What would be the best way for Yuri to share his work on the packagkit urpmi backend that he talked about here: https://ml.mageia.org/l/arc/dev/2017-12/msg00016.html

Do we need new bug reports for still needed urpmi backend features? 
And/Or is it fine to let yuri_myasoedov push his git repo on git.mageia.org? 
And/Or should we ask upstream to allow him to push his branch there?

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED
Summary: Integration between packagekit and urpmi which was never done => # pkcon repo-list doesn't work because integration between packagekit and urpmi wasn't done

Comment 22 Yuri Myasoedov 2018-06-12 10:31:18 CEST
Marja, thanks for your comment. I've took a pause in developing urpmi backend for PackageKit, as I don't have a clear vision of urpmi future in Mageia. If developers make a decision to replace urpmi with DNF, my work won't make sense.
Comment 23 Marja Van Waes 2018-06-12 10:39:56 CEST
*** Bug 6909 has been marked as a duplicate of this bug. ***
Comment 24 Marja Van Waes 2018-06-12 10:50:27 CEST
(In reply to Yuri Myasoedov from comment #22)
> Marja, thanks for your comment. I've took a pause in developing urpmi
> backend for PackageKit, as I don't have a clear vision of urpmi future in
> Mageia. If developers make a decision to replace urpmi with DNF, my work
> won't make sense.

That decision was _not_ taken. The DNF maintainer would like to see that happen, but there are important contributors around who love URPMI. 

If anything was decided, it was that parallel development is allowed and that, if the DNF maintainers manage to integrate DNF into installer, the isos with DNF integration will be tested after the normal "URPMI" isos are tested and pushed.

The people motivated to work on DNF aren't the same as those motivated to keep URPMI, I don't see why we can't have both.

Of course, if whoever can help with URPMI stops working on it, then we'll end up with only DNF and with DNF by default, even in installer.

I really fear that could lead to us losing our tradional installer.

Even if you do not want to continue developing PackageKit's urpmi backend, please do at least tell where we can have read access to your git repo.
Comment 25 Marja Van Waes 2018-06-12 10:58:20 CEST
@ Yuri

I asked in #PackageKit on Freenode:

2018:06:12:10:14 < marja> Hi there, yuri_myasoedov was/is working on the urpmi backend.... I was wondering here https://bugs.mageia.org/show_bug.cgi?id=7106#c21 what would be the best way to share his work, but you may have the best ideas for that :-)
2018:06:12:10:33 < hughsie> marja, i guess filing an issue on github is the best place to discuss
2018:06:12:10:33 < hughsie> or the mailing list if that's easier


https://github.com/hughsie/PackageKit/issues
https://lists.freedesktop.org/mailman/listinfo/packagekit

It would be a shame if your work would get lost, even if it's still WIP!
Comment 26 Thierry Vignaud 2018-06-12 11:05:53 CEST
yeah please share your work
Comment 27 Nicolas Lécureuil 2018-06-12 11:34:13 CEST
(In reply to Yuri Myasoedov from comment #22)
> Marja, thanks for your comment. I've took a pause in developing urpmi
> backend for PackageKit, as I don't have a clear vision of urpmi future in
> Mageia. If developers make a decision to replace urpmi with DNF, my work
> won't make sense.

this is not yet planned and i would like to see new features of rpm implemented in urpmi.

Can you share your work on urpmi backend for packagekit ? we can set up a git repository on our serveur for you.
Comment 28 Yuri Myasoedov 2018-06-12 19:13:38 CEST
I'll make it public in several days in GitHub. If you think that work is not pointless, I'll continue working on it with pleasure.
Comment 29 Marja Van Waes 2018-06-12 19:42:11 CEST
(In reply to Yuri Myasoedov from comment #28)
> I'll make it public in several days in GitHub. If you think that work is not
> pointless, I'll continue working on it with pleasure.

Thanks and great :-)

It certainly isn't pointless!
Comment 30 Marja Van Waes 2018-08-13 10:04:57 CEST
Hi Yuri :-)

Some weeks after you wrote that you'd publish your work, I had found your repository. It only contained the initial import, so I assumed you hadn't found enough time. But now I can no longer find it :-[

Do you mind giving the link?

Cheers,
Marja

Note You need to log in before you can comment on or make changes to this bug.