[gentoo-user] Portage and sets
Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Dale :-) :-)
Re: [gentoo-user] Portage and sets
On Mon, 23 Feb 2009 03:10:47 -0600, Dale wrote: could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. A sets file is just a list of packages, in the same format as /var/lib/portage/world. A quick and dirty way to move your KDE packages into a set mkdir -p /etc/portage/sets grep '^kde-base' /var/lib/portage/world /etc/portage/sets/kde sed -i '/^kde-base/d' /var/lib/portage/world echo '@kde' /var/lib/portage/world_sets -- Neil Bothwick A man wrapped up in himself makes a very small package. signature.asc Description: PGP signature
Re: [gentoo-user] Portage and sets
Hi, Portage documentation: http://dev.gentoo.org/~zmedico/portage/doc/portage.html Built-in sets specification file: /usr/share/portage/config/sets.conf For KDE sets, check the sets directory in the kde-testing overlay: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=tree User sets are specified in the /etc/portage/sets.conf file (doesn't exist by default). AllenJB Dale wrote: Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Dale :-) :-)
Re: [gentoo-user] Portage and sets
Hi again, One more note. I recommend you use a prefix for your own sets, to avoid conflicts with official or overlay sets. ie. I call my kde-3.5 set: ajb-kde-3.5 While portage almost certainly has a system for handling conflicting sets (at a guess, probably user overlay official tree, the same way everything else goes), this removes any ambiguity. AllenJB Dale wrote: Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Dale :-) :-)
Re: [gentoo-user] Portage and sets
On Montag 23 Februar 2009, Dale wrote: Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Dale :-) :-) put sets file in /etc/portage/sets example: cat /etc/portage/sets/qt-copy =x11-libs/qt-assistant-4.4. =x11-libs/qt-core-4.4. =x11-libs/qt-dbus-4.4. =x11-libs/qt-gui-4.4. =x11-libs/qt-opengl-4.4. =x11-libs/qt-qt3support-4.4. =x11-libs/qt-script-4.4. =x11-libs/qt-sql-4.4. =x11-libs/qt-svg-4.4. =x11-libs/qt-test-4.4. =x11-libs/qt-webkit-4.4. =x11-libs/qt-xmlpatterns-4.4. you are done. Really, there is no magic about sets. You put all the packet- atoms you want into a file, put the file into /etc/portage/sets and emerge @setname. That's it. Or look at this: cat /usr/local/portage/layman/kde-testing/sets/kde-4.2 # We don't include kdesdk on the global set kde-base/kdelibs:4.2 kde-base/kdepimlibs:4.2 kde-base/kate:4.2 kde-base/kdeplasma-addons:4.2 kde-base/kde-l10n:4.2 @kdeaccessibility-4.2 @kdeadmin-4.2 @kdeartwork-4.2 @kdebase-4.2 @kdeedu-4.2 @kdegames-4.2 @kdegraphics-4.2 @kdemultimedia-4.2 @kdenetwork-4.2 @kdepim-4.2 @kdetoys-4.2 @kdeutils-4.2 #for developers #...@kdebindings-4.2 #...@kdesdk-4.2 #...@kdewebdev-4.2 so as you can see - a set can be create out of other sets.
Re: [gentoo-user] Portage and sets
On Monday 23 February 2009 11:10:47 Dale wrote: Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Sets are easy :-) For kde, you get a ton of set files if you add the kde- testing overlay. For instance, the kde-4.2 set looks like this: $ cat /var/portage/local/layman/kde-testing/sets/kde-4.2 # We don't include kdesdk on the global set kde-base/kdelibs:4.2 kde-base/kdepimlibs:4.2 kde-base/kate:4.2 kde-base/kdeplasma-addons:4.2 kde-base/kde-l10n:4.2 @kdeaccessibility-4.2 @kdeadmin-4.2 @kdeartwork-4.2 @kdebase-4.2 @kdeedu-4.2 @kdegames-4.2 @kdegraphics-4.2 @kdemultimedia-4.2 @kdenetwork-4.2 @kdepim-4.2 @kdetoys-4.2 @kdeutils-4.2 #for developers #...@kdebindings-4.2 #...@kdesdk-4.2 #...@kdewebdev-4.2 So it's nothing more than a bunch of conventional portage atoms, one per line. I made some of my own for enlightenment-17. The main set is e17 and looks like so: $ cat /etc/portage/sets/e17 @e17-libs @e17-apps @e17-modules @e17-odds A set can include other sets, that's what the leading '@' does. From the above I also have a set called 'e17-libs' which looks like so: $ cat /etc/portage/sets/e17-libs dev-db/edb media-libs/imlib2 dev-libs/eina dev-libs/eet x11-libs/evas x11-libs/e_dbus x11-libs/ecore dev-libs/efreet dev-libs/embryo media-libs/edje media-libs/epsilon x11-libs/esmart media-libs/emotion x11-libs/etk x11-libs/ewl dev-libs/exml dev-util/enhance Obviously, those ebuilds must all exist. I get to maintain them by myself and make sure they work, but that has nothing to do with sets :-) If you make your own sets, dump the files into /etc/portage/sets/ and emerge them like so: emerge -av @e17 Portage will record that you installed a set and remembers it, but the package names do not go into your world file. Think of them as being dependencies of the set, so an update picks up and changes and emerges things as normal. If you find that you need to remove the KDE set, just run 'emerge -C @kde-4.2' and portage will unmerge the whole lot. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Portage and sets
AllenJB wrote: Hi again, One more note. I recommend you use a prefix for your own sets, to avoid conflicts with official or overlay sets. ie. I call my kde-3.5 set: ajb-kde-3.5 While portage almost certainly has a system for handling conflicting sets (at a guess, probably user overlay official tree, the same way everything else goes), this removes any ambiguity. AllenJB That prefix sounds like a GOOD idea. That could get confusing without it for sure. Thanks Dale :-) :-)
Re: [gentoo-user] Portage and sets
Volker Armin Hemmann wrote: On Montag 23 Februar 2009, Dale wrote: Hi I'm wanting to experiment a little with the new sets feature of portage. I have searched around the forums, even looked at gentoo wiki and read a few man pages. I can not find a good link to a how to for sets. I would like to have a couple things if someone has them. 1) a link to a good how to. 2) could someone send me a copy of a sets file for something like KDE or something. Just something I can use for a template if you would. Thanks much. Oh, yea, I may be about to break something. I got my backups up to date tho. o_O Dale :-) :-) put sets file in /etc/portage/sets example: cat /etc/portage/sets/qt-copy =x11-libs/qt-assistant-4.4. =x11-libs/qt-core-4.4. =x11-libs/qt-dbus-4.4. =x11-libs/qt-gui-4.4. =x11-libs/qt-opengl-4.4. =x11-libs/qt-qt3support-4.4. =x11-libs/qt-script-4.4. =x11-libs/qt-sql-4.4. =x11-libs/qt-svg-4.4. =x11-libs/qt-test-4.4. =x11-libs/qt-webkit-4.4. =x11-libs/qt-xmlpatterns-4.4. you are done. Really, there is no magic about sets. You put all the packet- atoms you want into a file, put the file into /etc/portage/sets and emerge @setname. That's it. Or look at this: cat /usr/local/portage/layman/kde-testing/sets/kde-4.2 # We don't include kdesdk on the global set kde-base/kdelibs:4.2 kde-base/kdepimlibs:4.2 kde-base/kate:4.2 kde-base/kdeplasma-addons:4.2 kde-base/kde-l10n:4.2 @kdeaccessibility-4.2 @kdeadmin-4.2 @kdeartwork-4.2 @kdebase-4.2 @kdeedu-4.2 @kdegames-4.2 @kdegraphics-4.2 @kdemultimedia-4.2 @kdenetwork-4.2 @kdepim-4.2 @kdetoys-4.2 @kdeutils-4.2 #for developers #...@kdebindings-4.2 #...@kdesdk-4.2 #...@kdewebdev-4.2 so as you can see - a set can be create out of other sets. Ahhh, so a specific version can be placed in there just like in the world file. Neato !!! Lets say I have a set named dk-kde, with the prefix Allen suggested, and I put kde-meta in that file. Would that emerge all the KDE or just that one package? I emerged kde-meta to install KDE so that is all there is in my world file right now. I notice you have several kde packages in your list. I'm going to do some reading on the links already posted in a bit. Getting ready to cook a roast. Got to peal taters, wash carrots and slice up a onion. Thanks Dale :-) :-)
Re: [gentoo-user] Portage and sets
On Mon, 23 Feb 2009 04:03:10 -0600, Dale wrote: Lets say I have a set named dk-kde, with the prefix Allen suggested, and I put kde-meta in that file. Would that emerge all the KDE or just that one package? I emerged kde-meta to install KDE so that is all there is in my world file right now. I notice you have several kde packages in your list. Sets are a replacement for meta-packages, so your set would contain the packages you need. If it did contain kde-meta, then it would install all of KDE, because that is a dependency of kde-meta. -- Neil Bothwick One size fits all: Doesn't fit anyone. signature.asc Description: PGP signature
Re: [gentoo-user] Portage and sets
Neil Bothwick wrote: On Mon, 23 Feb 2009 04:03:10 -0600, Dale wrote: Lets say I have a set named dk-kde, with the prefix Allen suggested, and I put kde-meta in that file. Would that emerge all the KDE or just that one package? I emerged kde-meta to install KDE so that is all there is in my world file right now. I notice you have several kde packages in your list. Sets are a replacement for meta-packages, so your set would contain the packages you need. If it did contain kde-meta, then it would install all of KDE, because that is a dependency of kde-meta. I tested this and noticed this. If KDE is already installed, it only emerges what is in the file. Of course it would emerge everything if it was a new install. This is pretty cool tho. I see a lot of possibilities here. I guess now I'm going to have to learn some of those other commands so that I can get a list of dependencies and such but remove the stuff that portage doesn't want in the file. Dale :-) :-)