A way of extending the PKGTOOLS for handling Groups
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you look at past releases of my 'ktown' repository containing the Plasma5 desktop you will notice that I have been providing backwards-compatible KDE4 support for all those tarballs in the KDE Applications that had not yet bene ported to KDE Frameworks 5. When Slackware moves on to Plasma 5 and leaves KDE4 behind, you can use the source code in my repository to create packages for these packages you mention. I already have there:
kdelibs
kdepimlibs4
... and it will be trivial to add the rest. It could even be an option to keep those packages in my repoitory after Slackware adopts Plasma 5 and removes KDE 4.
Thanks you for insight! I would really love to manage to bring up this program in the standard Slackware, when time will come, then I will try my best to solve this way.
While I do not ask you to keep those packages after Slackware adopts Plasma5, I would love if you will announce that in some way before doing it, as myself to know and backup your trees.
To be sure, a backup of your trees I make right now.
Last edited by Darth Vader; 12-05-2017 at 06:21 AM.
I said multiple times that those "package groups" has no abilities to handle the dependency resolution, just like the today packages sets based on folders.
There are two parts to handling dependencies
Working out the dependencies
Resolving dependencies
Sure the groups themselves do not resolve dependencies (neither do .dep files on SalixOS) but to make the groups you need to know, understand and accurately record the dependencies and that is more than half the battle. It is also, the very thing you want the team to do.
I think nothing should be baked into a package, info like dependencies, or categories, should be outside of a package. tools can pick up this external infos, extend them, change them, do what they want. this is more flexible and future save.
Sure the groups themselves do not resolve dependencies (neither do .dep files on SalixOS) but to make the groups you need to know, understand and accurately record the dependencies and that is more than half the battle.
I have no intention the package groups/categories/whatever to resolve the dependencies. I trust for dependency resolution the best tool I have at disposition: my own brain.
The groups/categories/whatever role is purely informative, as (me and others) to remember easily a package purpose.
For example, I intend to label my own custom packages like "KDE4 Compat", "For Job", "Web Development", etc...
Quote:
Originally Posted by ruario
It is also, the very thing you want the team to do.
Honestly, I only hoped, them to show me the purpose of (some) particular packages, in a human readable but machine compatible way.
Last edited by Darth Vader; 12-05-2017 at 06:53 AM.
I think nothing should be baked into a package, info like dependencies, or categories, should be outside of a package. tools can pick up this external infos, extend them, change them, do what they want. this is more flexible and future save.
Right now, I am focused in a way to to preserve labels attached to a particular package in the package database. BUT, meaningful ideas!
Still to note that at least personally, I would like to know precisely a package purpose, even for custom ones, made by myself, and their purpose to not be prone to unexpected/questionable changes.
Last edited by Darth Vader; 12-05-2017 at 06:57 AM.
I said multiple times that those "package groups" has no abilities to handle the dependency resolution, just like the today packages sets based on folders.
Ugh, how can you still be missing this? I *know* that "package groups" don't have the ability to handle dependencies. I *know* dependencies won't be handled when you use those package groups. I've repeated this information back to you in my replies.
But you have to know the dependencies to *create* the package groups. Once they're created, they can be used by the masses without a thought to what the dependencies are.
Quote:
Originally Posted by Darth Vader
I have no intention the package groups/categories/whatever to resolve the dependencies. I trust for dependency resolution the best tool I have at disposition: my own brain.
We both know this and we've said that back to you in our replies. But you mention right there that you'll do dependency management manually using your brain when you *create* the package group. *That's* the dependency management we're talking about. Whether you use your brain or someone else's work (see links on my previous post), you have to have an idea of how a certain package links to the rest of the system to *add* it to a package group. We're not talking about someone trying to *use* a package group, but for the "maintainer" (for lack of a better word) to *create* it.
If you still cannot grasp this simple concept, then I am done trying to explain it.
We both know this and we've said that back to you in our replies. But you mention right there that you'll do dependency management manually using your brain when you *create* the package group. *That's* the dependency management we're talking about. Whether you use your brain or someone else's work (see links on my previous post), you have to have an idea of how a certain package links to the rest of the system to *add* it to a package group. We're not talking about someone trying to *use* a package group, but for the "maintainer" (for lack of a better word) to *create* it.
If you still cannot grasp this simple concept, then I am done trying to explain it.
I understand well your POV.
BUT, to understand also you my POV, lets make a thought experiment:
Imagine that you want to reorganize your packages dedicated the servers, i.e. LAMP, Mailers, FTP, etc.
And you want doing that today, with what Slackware gives you. WHAT you do?
-------------------------------------
I for one, I would create a folder named "srv" and move there some packages from N series. Which one? I would need to think about which one.
Introduce this new "srv" packages set a new dependency resolution support? I do not think so.
Someone should use his brain for. In this case, me.
The single result is that after installing those particular packages, one like me can inspect the record, and see that they are have in the entry "PACKAGE LOCATION" some particular folder name: "srv".
-------------------------------------
Now imagine that Santa Claus exists and he convince Patrick Volkerding to adopt that small installpkg patch (or something like) to Slackware, then P.V. wants to organize the servers from N set, in a new group.
He add to some particular packages a new label, i.e. "Servers", while they remain in the N packages set. Which ones? He would decide.
The single result is that after installing those particular packages, one like me can inspect the record, and see that they are labeled for "PACKAGE GROUPS: Network,Servers".
Would introduce this new packages group a supplementary dependencies resolution support? I do not think so.
-------------------------------------
In either way, someone (me or him) would have to make decisions, using already existent information, experience, or even tools.
-------------------------------------
We can continue another examples: with Didier organizing his multi-lingual support from SLINT, the Salix guys doing some nice categorization to their packages and so on.
-------------------------------------
I think that insisting on worrying about dependencies resolution from a particular "set", whatever it is hard-coded in a folder, or soft-coded in a file, is not fair for package sets of any nature, specially when important members of this community blame my concept as introducing the dependency resolution. Thing which it does not do.
The package sets, in any of their incarnation, are agnostic about dependency resolution.
IF a particular developer wants to create a particular package set, which is self-contained or not as dependency resolution, this is another tale.
That particular packages set itself has no clue that it is self contained or not, and no related information is stored.
For example, today the A set knows somehow and it can inform you that its self-contained, and XAP that is not self-contained as dependency resolution? I do not think so.
Last edited by Darth Vader; 12-05-2017 at 07:53 AM.
No, you really don't. You've missed just about everything I said in my post.
Quote:
Originally Posted by Darth Vader
Introduce this new "srv" packages set a new dependency resolution support? I do not think so.
I already know this. It was in the first half of my reply. Package groups/sets/etc won't support dependency resolution. I *never* said the package groups would need to have dependencies. Once you let that finally sink in, if you go back and read through my posts again, you will hopefully understand I only talk about dependencies during the creation of that package set, *not* in the usage of it by the masses. Without even realizing it, you even stated you're doing exactly what I'm talking about with dependencies, yet you continue to disagree with me.
But, I just can't do this anymore. It has gone on too long with me just talking to a wall. Maybe it's a language barrier, I don't know. But I won't continue to repeat what I've said only to have you not understand it (heh, even though I did it again in this post -- I'm too stubborn for my own good and sanity).
Darth, why are you wasting your time posting in this thread? Make a proof of concept, confirm that it works, then start adding the "slack-groups" information to all the packages in the distribution. If your idea is worthwhile, it will catch on eventually.
No, you really don't. You've missed just about everything I said in my post.
I already know this. It was in the first half of my reply. Package groups/sets/etc won't support dependency resolution. I *never* said the package groups would need to have dependencies. Once you let that finally sink in, if you go back and read through my posts again, you will hopefully understand I only talk about dependencies during the creation of that package set, *not* in the usage of it by the masses. Without even realizing it, you even stated you're doing exactly what I'm talking about with dependencies, yet you continue to disagree with me.
But, I just can't do this anymore. It has gone on too long with me just talking to a wall. Maybe it's a language barrier, I don't know. But I won't continue to repeat what I've said only to have you not understand it (heh, even though I did it again in this post -- I'm too stubborn for my own good and sanity).
Until the next thread Darth
BUT, I talked literally about organization of the packages sets in the creation of a particular packages set. Given as example for developers: me, P.V., Didier and the Salix guys.
Darth, why are you wasting your time posting in this thread? Make a proof of concept, confirm that it works, then start adding the "slack-groups" information to all the packages in the distribution. If your idea is worthwhile, it will catch on eventually.
I showed the proof of concept: that little patch. This is all it is needed, at least in my opinion.
Adding "slack-groups" to all the packages in the distribution?
Well, this is a bit a delicate tale, as I have no clue about the existence of a GIT or SVN repository which host the Slackware sources, for me to do pull requests against it. Thing which I will love to do.
Last edited by Darth Vader; 12-05-2017 at 08:05 AM.
I showed the proof of concept: that little patch. This is all it is needed, at least in my opinion.
Adding "slack-groups" to all the packages in the distribution?
Well, this is a bit a delicate tale, as I have no clue about a GIT or SVN repository which host the Slackware sources, to do pull requests against. Thing which I will love to do.
You added four lines of code which currently do nothing. That's not a proof of concept. You want others to do the hard work for you. If you actually think it is worthwhile, you need to stop asking for handouts and start doing the work yourself.
Adding "slack-groups" to all the packages in the distribution?
Well, this is a bit a delicate tale, as I have no clue about the existence of a GIT or SVN repository which host the Slackware sources, for me to do pull requests against it. Thing which I will love to do.
Why I feel also that Patrick Volkerding will love to reject them, too?
You added four lines of code which currently do nothing. That's not a proof of concept. You want others to do the hard work for you. If you actually think it is worthwhile, you need to stop asking for handouts and start doing the work yourself.
I think he's right, he not promised more as code or features, from beginning. Look at the title of the thread.
Excuse me, but the title says "where could be", not "where must be". Being not native, forget my lacks of ability on handling English if I do a mistake.
Last edited by LuckyCyborg; 12-05-2017 at 08:17 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.