Some recommendations for slackpkg
These are a couple of suggestions to improve the Slackware package management program, slackpkg.
1. Compiling the kernel produces a .tar.xz archive. But slackpkg refuses to process it for installation without renaming it. It only seems to want .txz archives. I feel this restriction should be removed -- namely it should process .tar.xz archives. 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. Tiny amendments which would make more sense and make a huge improvement to the PMS. |
Quote:
'2' is desirable behaviour as it allows an easy way to revert packages without needing to bump the build number again. I do take issue with some aspects of the package naming conventions on slackware -- and IMO the CRUX approach (i.e. something#1.0-1.pkg.tar.gz) is much nicer for a number of reasons -- but the points you list aren't valid criticisms. Anyway, this will never change, so not much point discussing it. |
Quote:
I think that the .txz or .tgz is the way to go for packages. |
After building a kernel with make tarxz-pkg it produces a .tar.xz not a .txz archive. How do you get around this issue?
Now slackpkg doesn't do any checks as to whether the archive is a package file or not. It's convention that packages ready for installation have the arch in the file name. Shouldn't slackpkg check for the arch regardless of whether the archive is .tar.xz or txz before trying to deploy it? Second, if you want to revert a package then uninstall the current (newer) one and reinstall the one from the repo. The install of the newer package would have been a manual process and it's no surprise that it would be a manual process if you want to revert. The present policy of listing packages from the repo as upgrades to already newer installed packages is baffling. One could blacklist custom packages but then there's no way of knowing when a package might be available for an upgrade. Also you can never know when a new package version is available without going hunting for it. |
If you would have looked at what you are doing when invoking "make tarxz-pkg" you would have realized that this does not create a SLACKWARE PACKAGE.
The actual informational message in the Makefile is: "tarxz-pkg - Build the kernel as a xz compressed tarball". Nothing more than that, a compressed tarball. Not a Slackware package. Your request for slackpkg to accept "tar.xz" files as packages shows that you still need to take a little time to read about Slackware and its package format. See for instance: https://docs.slackware.com/slackware:package_management https://docs.slackware.com/slackbook:package_management The slackpkg utility only works with repositories, it is not meant for individual packages - you would use the pkgtools for that. The Slackware repository that you tell slackpkg to use, should be consistent and only offer packages for a single Slackware release and architecture. Therefore it should not be necessary for slackpkg to inspect every individual package. After all, this is Slackware, and you are the brain of your computer, not slackpkg. Slackware assumes you are smart. If you goof up, your system will face the consequences. That makes for fast learning. |
Quote:
Code:
slackpkg update Code:
slackpkg install-new && slackpkg upgrade-all |
Quote:
|
Quote:
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? 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. |
https://docs.slackware.com/slackwareackage_management
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. |
1 Attachment(s)
Can I just say......
|
I have always wished :
My computer should do what I want it to do NOT What I told it to do j |
Quote:
|
Quote:
|
^^^ You compound your terrible attitude towards the distro.
As one of the posters alluded to, this distro is a dead distro. |
Hmmm, the oldest surviving actively maintained distro is a "dead distro"? Thanks for playing, maybe Linux Mint is better suited for your needs.
|
No, no, no I was thinking more like Mac OS. 'tpid.
|
Quote:
Quote:
|
It's quite an achievement, in a target-rich environment like slackpkg, to come up with two completely bogus 'recommendations'.
|
Well let's take a step back for a second.
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. |
Quote:
|
Target-rich my arse. LOL
|
Quote:
Quote:
|
Quote:
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, |
Quote:
Quote:
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:
Quote:
If you are wanting custom versions, you need to be utilizing slackpkg's blacklist. That is what it is designed for. Quote:
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:
Quote:
|
Quote:
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. |
Quote:
|
Quote:
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. |
Quote:
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. |
Quote:
Geez! and I just thought it was funny. j |
Quote:
Quote:
Quote:
|
Quote:
installpkg already has a rudimentary check to see if the contents of a package matches a valid deployment. Even if you throw any archive into the system it won't just fuck everything up unless you force it to by ay number of other means. Anyway if you read what I wrote at the outset, make kernel produces a .tar.xz but installpkg wants a .txz file. It's otherwise perfectly fine to install a kernel package generated .tar build using installpkg after renaming the file. It obviously won't have the SW branding in the file but who cares. |
Quote:
The argument slackpkg upgrade-all should then be slackpkg sync. This leaves slackpkg upgrade void. You contradict AB. |
Quote:
But do not try to impose on the rest of us, your skewed view of what the Slackware pkgtools should or should not do. You are 24 years too late for that. |
Have you given one thought as to why the kernel ships with a make tarxz-pkg feature?
|
Code:
Kernel packaging: |
I've decied to upgrade my distro from -14.2 to -current. Then I will upgrade again to -14.1.
|
Quote:
Quote:
Quote:
Quote:
You are not forced to use 'slackpkg'. You may appreciate the utility more if you try to maintain a Slackware install without it, as Slackware veterans had to do before slackpkg came along. Quote:
Quote:
Quote:
The sad fact of the matter is that you expect slackpkg to read your mind. When _you_ have upgraded to a later version that _you_ want to keep, then slackpkg should leave it alone. When the distro has changed the version, then slackpkg should deal with it. Sorry, software cannot read minds, but minds can instruct software. |
"..version numbers are meaingless here. You can go forwards or go back and see Slackware born again..."
|
@allend you're just reiterating like a parrot the same issues that the others have pointed out.
|
Have you given one thought why those kernel package targets list 'targz' but not 'tgz'?
There exists no authority that says .tgz is the same as .tar.gz. That's just the voice in your head -- the same voice that invented your 'PMS' terminology. Out here in Slackware land, by convention, a Slackware package must
And furthermore, it's not our bloody fault what the Linux kernel make targets might call themselves, but it is crystal bloody clear that they are NOT Slackware packages, and crystal bloody clear that they do NOT call them .tgz or .txz or .tbz or .tlz. Code:
targz-pkg - Build the kernel as a gzip compressed tarball |
At least I am squawking and not quacking.
|
Duh, .t* is just a shorthand for .tar.*. It's a throwback to legacy FS compatibility.
The fact it's printed .tarxz-pkg could just as well be .txz-pkg. Yes, yes, yes thank you I think we all know what's in a branded SW package and what isn't. |
Quote:
|
Quote:
|
Agreed. We are now at
Quote:
|
LOL. I don't think a complete Slackware fork was necessary just to patch slackpkg. ;)
|
More importantly patches are required for various members of the SW team who no doubt form part of the SW committee.
https://media.giphy.com/media/XUip62o9IYccE/giphy.gif |
@linuxbawks: I just realized that you have already started similar threads:
https://www.linuxquestions.org/quest...es-4175622003/ https://www.linuxquestions.org/quest...ed-4175621561/ Both show that you need to enhance your understanding of the "why" and "how" of the Slackware packages management system before proposing a change of it that have any chances of being heard. Incidentally there isn't such thing as a SW committee as far as I know: there are contributors but Patrick J. Volkerding makes all decisions about what should go in Slackware and what should be changed, including of course the package management system. |
Please close this thread.
|
All times are GMT -5. The time now is 06:25 AM. |