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'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.
You asked for an in-depth answer, which I provided. But due to your ignorance of slackpkg, you say we're all wrong. Maybe it's time to learn how it is supposed to actually work.
Quote:
Originally Posted by linuxbawks
[B]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.
Why should we not call a Slackware package a tar archive? That's exactly what it is. A Slackware package is just a tar archive with a little extra metadata in it. Nothing more. You don't need specialty tools to extract it... you can simply use tar x to extract it, which does make it a tar archive. Slackware doesn't want to create a new format, they just add some metadata to the archive in the form of a folder and file(s) and make it become a package.
Quote:
Originally Posted by linuxbawks
slackpkg syncs with the repo. Fine. But it is clearly having unintended consequences.
What you are totally misunderstanding is the results you are seeing are not unintended. That is the way slackpkg is designed to work. If you don't want it to present packages for you to update, add them to /etc/slackpkg/blacklist. That is how slackpkg is intended to be used. Just because you want it another way doesn't mean that it is doing exactly what it was designed to do.
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.
Careful now, look closely at who all started throwing the very first insults. Fair enough, perhaps that's the ethos dished about here.
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.
You asked for an in-depth answer, which I provided. But due to your ignorance of slackpkg, you say we're all wrong. Maybe it's time to learn how it is supposed to actually work.
Why should we not call a Slackware package a tar archive? That's exactly what it is. A Slackware package is just a tar archive with a little extra metadata in it. Nothing more. You don't need specialty tools to extract it... you can simply use tar x to extract it, which does make it a tar archive. Slackware doesn't want to create a new format, they just add some metadata to the archive in the form of a folder and file(s) and make it become a package.
What you are totally misunderstanding is the results you are seeing are not unintended. That is the way slackpkg is designed to work. If you don't want it to present packages for you to update, add them to /etc/slackpkg/blacklist. That is how slackpkg is intended to be used. Just because you want it another way doesn't mean that it is doing exactly what it was designed to do.
Wrong! Don't call a sync an upgrade then.
The argument slackpkg upgrade-all should then be slackpkg sync. This leaves slackpkg upgrade void.
It obviously won't have the SW branding in the file but who cares.
This is why you can also install a kernel from source without using the Slackware package management tools. Because all the rest of us do care about package quality. And Slackware is completely cool with anyone who wants to bypass the pkgtools and install binaries manually. I always found that a strength.
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.
Kernel packaging:
rpm-pkg - Build both source and binary RPM kernel packages
binrpm-pkg - Build only the binary kernel RPM package
deb-pkg - Build both source and binary deb kernel packages
bindeb-pkg - Build only the binary kernel deb package
tar-pkg - Build the kernel as an uncompressed tarball
targz-pkg - Build the kernel as a gzip compressed tarball
tarbz2-pkg - Build the kernel as a bzip2 compressed tarball
tarxz-pkg - Build the kernel as a xz compressed tarball
perf-tar-src-pkg - Build perf-4.14.26.tar source tarball
perf-targz-src-pkg - Build perf-4.14.26.tar.gz source tarball
perf-tarbz2-src-pkg - Build perf-4.14.26.tar.bz2 source tarball
perf-tarxz-src-pkg - Build perf-4.14.26.tar.xz source tarball
Tiny amendments which would make more sense and make a huge improvement to the PMS.
I would spin that back to the OP as "Tiny amendments to your knowledge would make more sense and make a huge improvement to your experience."
Quote:
Distribution: Quackware
Cute.
Quote:
A Slackware package is really not much more different than the archive produced.
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.
First, you need to get head around the idea that a .tar.gz file archive is not the same as a .t[gx]z Slackware package. e.g. The latter often includes a doinst.sh script for additional processing.
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:
The present policy of listing packages from the repo as upgrades to already newer installed packages is baffling.
The reasoning behind not implementing such behaviour is to allow for reversion of packages when an upgrade is found to cause problems. This _has_ happened.
Quote:
One could blacklist custom packages but then there's no way of knowing when a package might be available for an upgrade.
Yes, this is a trap when using slackpkg. I have been there and done that.
Quote:
The word up in upgrade means to wind something up. Not in this case.
There have been suggestions that 'upgradepkg' might be better named as 'replacepkg', as the latter name better reflects the actual functionality. But a rose by any other name is still a rose.
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.
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
Be compatible with tar-1.13; the pathnames must not begin with './'
Have a name of the form packagename-version-arch-build
Contain a top-level directory 'install' with a file named 'slack-desc' in a specific format
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
tarbz2-pkg - Build the kernel as a bzip2 compressed tarball
tarxz-pkg - Build the kernel as a xz compressed tarball
All Slackware packages are compressed tar archives. Not all compressed tar archives are Slackware packages. Is that too difficult a concept for you to grasp? cos everybody else here gets it.
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.
Are you trying to say that SW has hijacked .t* in lieu of .tar.* when they are in fact the same thing?
Are you trying to say that SW has hijacked .t* in lieu of .tar.* when they are in fact the same thing?
I think we should all stop answering here. Clear example of trolling which should not be rewarded by allowing the troll forum points for writing ridiculous replies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.