Hi! :) 2012/6/1 Martin Pitt <[email protected]>: >> Why does the Apt backend need plugins? What are plugins for? > > One is for adding particular WhatProvides() types; I wrote a blurb > about that in [1]. The other kind of plugin is what language-selector > does to the apt.Cache() object after selecting new packages to install > (i. e. add the corresponding language support packages), and what > software-center does (I'm not quite sure what that does). Okay, so we can support not the plugin API but the functions these plugins provide by default.
>> PK provides an extremely powerful plugin-api itself nowadays, >> developed with stuff like the Listaller 3rd-party appinstaller in >> mind, so you can do pretty much anything with it, in a >> distro-agnostic way. > > Indeed. I haven't looked into native PK plugins yet; I guess we'd need > to rewrite the plugins in C then? Yes, but you'd have to adjust them anyway :P I could add a Python API probably, but I don't think Richard would like that (we'd have to spawn Python on every transaction for every plugin, which would slow down PK very much) > When I wrote the plugins, I made some effort for implementing the > corresponding functionality in PK's apt backend as well (e. g. > MODALIAS lookup), but I considered it too much effort to also look at > aptcc: For some reason I had the impression that aptcc was going to be > phased out and replaced with the apt backend. You seem to suggest that > this isn't the case, so I don't really know where I picked that up > from. The fun part about that: That's true, but in the other way :D The apt backend was unmaintained and utterly broken for a long time, and aptcc replaced it completely, killing all remaining bug reports agains PK. The apt backend was then removed and one release later reintroduced by Sebastian, but this time with a nice testing suite and some improvements. Git shows us that it was only touched by you then ^^ I'm a Aptcc person, but I'm not against having two different backend implementations (the apt backend is packaged and you can try it out if you want) > >> It's weird that these are the reasons for using aptd, I expected >> some other points ^^ > > It's mostly because over the years aptd has become the standard way of > installing stuff in Ubuntu, so we have become quite used to this. > Sebastian already pointed out the reasons which existed back then. It > allows us to implement the PK API in a very extensible and pluggable > way (using Python), while at the desktop side it still just looks like > PK. > >> So, if there's anything special which you need at Ubuntu, there's a >> perfect time now to ask for it :-) > > I wrote what's missing for driver lookup/installtion. I'm afraid I > don't have a good overview of what else we are using aptd for, > Sebastian and Michael know much better about this. The one big reason for me to still use aptd is that it can - because it's Apt only - operate on the cache way faster than PackageKit can do. - I'm currently working around that issue, but it's still not optimal. (But Michael likes the solution) Personally I don't like that Ubuntu is the only distribution which does not use PackageKit, as distribution interoperability has a very high value for me. I can help in making PackageKit as Ubuntu-compliant as possible - this will help other distributions too. Regarding compat-layer problems: PackageKit also creates some files and databases which frontends will access, as well as setting hints (e.g. for debconf support) and other stuff which needs to be supported. Not allowing the compat-layer is a Debian-decision, you can change it as you like. (and changed it already ^^) > Thank you, and enjoy the weekend! > > Martin > > [1] http://www.piware.de/2012/02/packagekitaptdaemon-what-provides- > plugin-support/ Thanks! Yep, this one looks good, and I even commented on it some time ago! :D Now I understand better what you mean. As soon as backends in PK 0.8.x are fixed, we can implement that, I think. Have a nice weekend too! Matthias > > -- > Martin Pitt | http://www.piware.de > Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) > > -- > You received this bug notification because you are a member of > PackageKit-Team, which is subscribed to packagekit in Ubuntu. > https://bugs.launchpad.net/bugs/1007249 > > Title: > Trying to install packagekit on quantal uninstalls ubuntu-desktop > > Status in “packagekit” package in Ubuntu: > Triaged > > Bug description: > $ sudo apt-get install packagekit > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following extra packages will be installed: > packagekit-backend-aptcc packagekit-tools > Suggested packages: > packagekit-backend-smart gdebi-core > The following packages will be REMOVED: > python-aptdaemon.pkcompat ubuntu-desktop ubuntu-drivers-common > The following NEW packages will be installed: > packagekit packagekit-backend-aptcc packagekit-tools > 0 upgraded, 3 newly installed, 3 to remove and 2 not upgraded. > Need to get 464 kB of archives. > After this operation, 1,129 kB of additional disk space will be used. > Do you want to continue [Y/n]? n > Abort. > > What should happen: > It should be possible to install packagekit without uninstalling > ubuntu-desktop. Also ubuntu-drivers-common sounds like it would be useful for > "Additional Drivers." > > ProblemType: Bug > DistroRelease: Ubuntu 12.10 > Package: packagekit (not installed) > ProcVersionSignature: Ubuntu 3.4.0-3.7-generic 3.4.0 > Uname: Linux 3.4.0-3-generic x86_64 > ApportVersion: 2.1.1-0ubuntu1 > Architecture: amd64 > CheckboxSubmission: 201084ed41ea7548f8becd47fa4d1e6c > CheckboxSystem: c541d13ea4f205f2fd751f76ed21105b > Date: Thu May 31 23:36:30 2012 > InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 > (20120425) > SourcePackage: packagekit > UpgradeStatus: No upgrade log present (probably fresh install) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1007249/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007249 Title: Trying to install packagekit on quantal uninstalls ubuntu-desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1007249/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
