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.
^^^ You compound your terrible attitude towards the distro.
As one of the posters alluded to, this distro is a dead distro.
If you don't like the functionality of slackpkg, then you should create a patch that implements what you think is missing or dysfunctional. Sure, a 'gentler' approach with the newbies from time to time might benefit Slackware. BUT, you are coming here asking for change and are unwilling to put in any work. Then when you are dismissed you get mad.
1. I've pointed out flaws in the PMS. A number of users have come here trying to defend what really are blatant weaknesses in the PMS. It's an extremely flawed and stupid attitude.
2. It is also a question of distro policy.
3. Modding the program would be best left to the author. But this is the least of the issue.
To be honest I have seen no logic in the policies proposed in a few (all) answers posted here.
If you disagree with what I have written here then let's go back and address the points again from top to bottom.
It's quite an achievement, in a target-rich environment like slackpkg, to come up with two completely bogus 'recommendations'.
Let's face it, the attitude I sense from here and a general consensus of experience with SW is such that the PMS in this distro is nothing more than an aberration to keep users happy. If indeed that's the case best to rip it all out and be done with it.
2. If we consider following the package filenaming convention of <package name>-<version>-<arch>-<modifier>.tar.gz. It would be nice if slackpkg can be just a little bit smart and compare the <version> and <modifier> part of the filename with the package in the repo. Because at the moment it lists older packages from the repo as potential upgrades to newer installed packages.
Type "mail" in a console or terminal as root and you will be able to read an explanation by Patrick Volkerding that I quote below:
Quote:
Some also think that any package with a larger
build number is "better", when there have been many instances that a
new upstream release wasn't working properly and we had to roll back to
an earlier one, and an automated upgrade tool didn't want to
"downgrade" the package. This is something upgradepkg will gladly do,
as it doesn't (as it should not) take the package's version number to
mean much of anything.
Last edited by Didier Spaier; 03-12-2018 at 06:30 AM.
Some also think that any package with a larger
build number is "better", when there have been many instances that a
new upstream release wasn't working properly and we had to roll back to
an earlier one, and an automated upgrade tool didn't want to
"downgrade" the package. This is something upgradepkg will gladly do,
as it doesn't (as it should not) take the package's version number to
mean much of anything.
Higher version number does mean not better. Granted.
The word up in upgrade means to wind something up. Not in this case.
Really I feel the correct way would be to remove the offending package and then reinstall the older package. The PMS makes this an easy task. However it escapes me that they want to be illogical by calling a downgrade an upgrade or an upgrade a downgrade. This example whilst true is only part of my initial proposition.
The reason why this works so easily is because there is no dependency resolution. It's an advantage in terms of the simplicity of the PMS is concerned. Now before the muppets get exicted and think I'm calling for dependency resolution, I'm not, this is just an example of reason why it works I'm giving,
Last edited by linuxbawks; 03-11-2018 at 07:26 PM.
Yah!! the archive produced is a tarball. But the layout of the files in the archive is all the same and sufficient to install the kernel correctly. That's all that matters and indeed this is the point put across by this distro's philosophy of having a vanilla PMS -- namely plain and simple tarballs. A Slackware package is really not much more different than the archive produced. The PMS isn't doing any fancy by checking the validity of an archive. So why stop at distinguishing between a .tar.xz and a .txz. Don't put such a distinction. Having said this, it would quite reasonable to instead have the PMS only deploy packages whose filenames have the binary arch string in it.
Quote:
Originally Posted by linuxbawks
Well then if you are going to draw a distinction between a tarball and SW archive, don't use the same .tgz or .txz file extensions and then expect people to guess or call them uninformed. Principal flaw from the very outset.
The issue here is what you are creating with make tarxz-pkg is not a Slackware package. Just because it shares a similar directory structure does not make it a Slackware package. Slackware packages also contain an install/ directory that contains the package description and, optionally, a post-install script. As another poster mentioned, if it starts accepting tar.xz, it opens up the ability to confuse users who think they should be able to install a source archive, "because it is a tar.xz". In the earlier days of Slackware (well, maybe middle days, in the early 2000s), you'd occasionally see tgz source archives and there would be a lot of confusion why they couldn't install them. Luckily, most archives have moved away from that naming scheme, so it is much easier to distinguish Slackware packages from source archives. Let's not muddy that water again.
Plus, as Alien Bob pointed out, slackpkg isn't designed to work on single packages. It is designed to work with a repo. You set up a repo with the required metafiles and then you would point slackpkg to that.
Quote:
Originally Posted by linuxbawks
On my second point, do you mean to say that when a package is customised (built from source) or is newer and customised, it should not be coming up in the slackpkg upgrade-all results? Well in my case, having learnt SW over these past couple of months and followed the wikis this is what's happening. There are better things to do (even for admins) to remember which packages have been customised and which haven't when this can and should really be integrated as a feature of the PMS. slackpkg is indeed inspecting every package installed. And why not?
slackpkg is designed to allow the user to keep their packages in sync with their chosen Slackware mirror. Slackware package updates aren't always newer versions... sometimes they're older. Hiding potential "updates" just because they're a lower version could break installs. As I said earlier, slackpkg is really only designed to sync your install to the chosen Slackware mirror. That can be done by upgrading to higher or lower version numbers than what's installed now.
Quote:
Originally Posted by linuxbawks
For me personally, the only thing going with this distro is the conduciveness to build custom packages. And that's it. There are more closed and rigid distros out there but the PMS shouldn't ruin it for everyone for what are some very straightforward and common sense features. Having read all the replies in this thread the two questions haven't really had any convincing resolution. I still feel these are flaws in the PMS.
Slackware's package management system consists of more than just slackpkg. In fact, slackpkg is a relatively recent addition (officially added in 12.2 back in 2008). The whole package management system is pkgtool, installpkg, upgradepkg, removepkg, explodepkg, makepkg, and finally, slackpkg. slackpkg's only job is to sync with a mirror, download the packages, "upgrade" it if it doesn't match what's on the system.
If you are wanting custom versions, you need to be utilizing slackpkg's blacklist. That is what it is designed for.
Quote:
Originally Posted by linuxbawks
1. I've pointed out flaws in the PMS. A number of users have come here trying to defend what really are blatant weaknesses in the PMS. It's an extremely flawed and stupid attitude.
2. It is also a question of distro policy.
3. Modding the program would be best left to the author. But this is the least of the issue.
1. The "flaws" you've pointed out are not flaws and you only believe that they are due to not fully understanding what slackpkg's role is within Slackware's package management system.
3. This is sorely incorrect. Linux is based on combining work from multiple authors. In fact, slackpkg has been developed by many people. The Linux ecosystem works great because people are willing to make changes and submit those changes to the original authors. Why do you think patches are so prevalent with open source?
Quote:
Originally Posted by linuxbawks
Really I feel the correct way would be to remove the offending package and then reinstall the older package. The PMS makes this an easy task. However it escapes me that they want to be illogical by calling a downgrade an upgrade or an upgrade a downgrade. This example whilst true is only part of my initial proposition.
We've had this discussion elsewhere on the forum. Yes, it is true that "upgrade" may not be the best choice in words, but it was decided a long time ago, and I doubt any requests will get it to change. Simply put, you're upgrading the version installed with the version you want installed, regardless of what the version numbers are.
Quote:
Originally Posted by linuxbawks
These are a couple of suggestions to improve the Slackware package management program, slackpkg.
Again, you have an incomplete understanding of Slackware's package management system, since slackpkg is only a small portion of it and is only used to sync your computer with what's on the mirror. It doesn't care about version numbers.
Let's face it, the attitude I sense from here and a general consensus of experience with SW is such that the PMS in this distro is nothing more than an aberration to keep users happy. If indeed that's the case best to rip it all out and be done with it.
Will you please just read the Slackware information that's abundantly available, and get a proper understanding of how this distro works. You are going off on a tangent and you are making no sense at all. There are strict rules to Slackware package management, and you will have to accept them as leading if you want to keep using Slackware.
If Slackware is not for you then please move on as fast as you can. I am done with this stupid non-discussion that borders on trolling.
^^^ You compound your terrible attitude towards the distro.
As one of the posters alluded to, this distro is a dead distro.
So you can not even read then... please check that picture again and this time, actually read and interpret the text . You'll see that the "dead" was not referring to Slackware but to you.
You're pointing the same thing and over and over again showing little credit to the problems in the PMS. What you're pointing out are really questions of policy.
So you want to draw a distinction between a SW package and a tar archive. Fine. Then don't call it a tar archive in the first place.
slackpkg syncs with the repo. Fine. But it is clearly having unintended consequences.
The moral here is fix these damn issues instead of coming back to me and trying to defend yourselves by discreditting me instead.
The moral here is fix these damn issues instead of coming back to me and trying to defend yourselves by discrediting me instead.
The moral here is rather that you are making us loosing our time ranting about the PMS that you just don't know well enough to use wisely.
But I could be wrong. Then, to have a chance that the fixes you deem necessary be applied, I suggest that you submit patches to the scripts in concern to correct them.
I feel like I've read this story before. Someone makes a thread giving well-meaning but misguided suggestions, then gets upset and starts throwing insults at Slackware when people tell him the suggestions are no good.
Anyway, I don't get why the PMS should happily try to install any archive you throw at it. That's a good way for people to screw up their systems. I suggest you look at the makepkg command if you want to turn a properly assembled directory into a Slackware package. That is its whole purpose.
Last edited by montagdude; 03-12-2018 at 06:34 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.