LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2016, 07:44 PM   #181
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by Skaendo View Post
Well, ok. I am not trying to tell you what to do with it, it was only a request. But here is an example;

Slackbuilds, orc is currently is at 0.4.23
https://slackbuilds.org/repository/1...velopment/orc/

Slackware-current officially provides orc-0.4.24
This is because slackbuilds does not provide support for -current. In their branch that is working towards a -current release, they likely have removed orc (or will by the time 14.2 is released).

When you run -current, you're likely to run into issues with things not being supported properly, especially when most packages and sites target the latest stable release. Keep in mind, this is no different than how Slackware's package manager operates... it doesn't care whether a package version is newer or older than the currently installed version. upgradepkg will "upgrade" it no matter the version (unless it is an identical version to the one installed).
 
Old 02-18-2016, 11:28 AM   #182
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Keep in mind, this is no different than how Slackware's package manager operates... it doesn't care whether a package version is newer or older than the currently installed version. upgradepkg will "upgrade" it no matter the version (unless it is an identical version to the one installed).
How often does this actually happen, and for what reasons? My guess would be compatibility or security. Still I bet it is only special cases, and doesn't happen very often.

Anyways, even just an option to not downgrade packages would be nice. I really like slpkg, and would like to use it to its full potential but downgrading packages is not ideal for I'm guessing 99% of cases.

Last edited by Skaendo; 02-18-2016 at 11:31 AM.
 
Old 02-18-2016, 11:44 AM   #183
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Skaendo View Post
How often does this actually happen, and for what reasons? My guess would be compatibility or security. Still I bet it is only special cases, and doesn't happen very often.
Slackware's package manager doesn't care what the new version is, as long as it is different from the old version (if it is the same version, but was compiled differently, you can still force it to "upgrade" the package with the --reinstall option). I doubt there's many official package releases that have this happen on stable (I do know there was a kernel update in the patch/ directory that accidentally had a lower build number than the original kernel package), but in -current, it could be quite frequent, as packages are frequently tested... some are found to be too unstable, so they're reverted to older, lower versions.

I have no idea frequently this would happen with non-official Slackware packages, since I don't use any except for a select few from Eric (I don't want to take the time to compile openjdk, LibreOffice, and a few other large packages).
 
Old 02-18-2016, 12:10 PM   #184
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
Anyways, even just an option to not downgrade packages would be nice.
If only the package manager could know which package is "better" or at least "newer"... This has been discussed many times, there is no 100% safe algorithm to determine that. So upgradepkg really does nothing more that replace one package by another one when told to, regardless of their respective versions, as bassmadigal pointed out. Maybe the name is misleading, it is really a "replacepkg". Only you know which is better, so just use upgradepkg in case of doubt, do not let slpkg (or any of its colleagues) guess that. That's simply not their job. That's yours.

Last edited by Didier Spaier; 02-18-2016 at 12:12 PM.
 
Old 02-18-2016, 12:14 PM   #185
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
but in -current, it could be quite frequent, as packages are frequently tested... some are found to be too unstable, so they're reverted to older, lower versions.
I have been browsing the -current changelog, and I haven't found any packages that have been downgraded. There are a lot of upgraded and rebuilt, some added and removed, but no downgrades (that I have found). I highly doubt that downgrading anything is recommended practice (except for special cases).
 
Old 02-18-2016, 12:45 PM   #186
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
do not let slpkg (or any of its colleagues) guess that. That's simply not their job. That's yours.
Well then what is the point of using slpkg if I still have to do dependency resolution? I was under the impression that that is what slpkg was made for? And what guessing? If I have package v2 installed, obviously that is newer than v1.

I'm sorry but I think that slpkg is a great idea, and a great package, but it's flawed IMO. I have never seen where downgrading packages is recommended practice, again except for very few special cases.
 
Old 02-18-2016, 12:52 PM   #187
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Skaendo View Post
I have been browsing the -current changelog, and I haven't found any packages that have been downgraded. There are a lot of upgraded and rebuilt, some added and removed, but no downgrades (that I have found). I highly doubt that downgrading anything is recommended practice (except for special cases).
Reverted is the word you're looking for. It seems that in this -current cycle there was only one downgrade, but they can still occur and there may be valid reasons for you to downgrade a package to a previous version, especially when you're getting pre-compiled 3rd-party packages that may have mismatched dependencies than what are installed on your system. For that one downgrade in the current development cycle, ghostscript was downgraded from 9.18 (which was released in Beta 1) to 9.07 (on 8 FEB) to fix an issue with opening up .ps files (this is probably why it is so fresh on my mind). (There were also several patches that were reverted, but without changing the version number.) Of course, downgrading isn't the usual practice, but special cases do warrant it (usually regressions in the software) with official Slackware packages. You can see further downgrades in the 14.1 changelog while it was -current.

lftp 4.4.10 -> 4.4.9
efibootmgr 0.6.0 -> 0.5.4
tumbler 0.1.27 -> 0.1.25
file 5.14 -> 5.11
 
Old 02-18-2016, 01:01 PM   #188
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
If I have package v2 installed, obviously that is newer than v1.
Let me quote the mail that all "root" users of Slackware version 14.1 receive from Patrick Volkerding. Speaking about tools that manage packages:
Code:
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; 02-18-2016 at 01:02 PM.
 
Old 02-18-2016, 01:03 PM   #189
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Reverted is the word you're looking for. It seems that in this -current cycle there was only one downgrade, but they can still occur and there may be valid reasons for you to downgrade a package to a previous version, especially when you're getting pre-compiled 3rd-party packages that may have mismatched dependencies than what are installed on your system. For that one downgrade in the current development cycle, ghostscript was downgraded from 9.18 (which was released in Beta 1) to 9.07 (on 8 FEB) to fix an issue with opening up .ps files (this is probably why it is so fresh on my mind). (There were also several patches that were reverted, but without changing the version number.) Of course, downgrading isn't the usual practice, but special cases do warrant it (usually regressions in the software) with official Slackware packages. You can see further downgrades in the 14.1 changelog while it was -current.

lftp 4.4.10 -> 4.4.9
efibootmgr 0.6.0 -> 0.5.4
tumbler 0.1.27 -> 0.1.25
file 5.14 -> 5.11
So in ~4 years there have been ~5 "reverted" packages? My point exactly, special cases. And if you read the changelog like you should be when updating then you will know about them. But whatever, I'm not afraid of doing dependency resolution myself, nothing new.

Quote:
Originally Posted by Didier Spaier View Post
Let me quote the mail that all "root" users of Slackware version 14.1 receive from Patrick Volkerding. Speaking about tools that manage packages
You are trying to twist words, I never said anything about "packages with a larger build number is better", I only ever said that they are newer.

So from what I gather is that if you were going to build a package from SlackBuilds and one of the dependencies was orc (just an example) and SlackBuilds is still hosting orc-0.4.23, but you have orc-0.4.24 installed already, you would remove orc-0.4.24 and downgrade to orc-0.4.23?
I very much doubt it.

Last edited by Skaendo; 02-18-2016 at 01:20 PM.
 
Old 02-18-2016, 01:45 PM   #190
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Skaendo View Post
So in ~4 years there have been ~5 "reverted" packages? My point exactly, special cases. And if you read the changelog like you should be when updating then you will know about them. But whatever, I'm not afraid of doing dependency resolution myself, nothing new.
Yes, it isn't common, but it still does occur. As Didier pointed out, this is exactly why Pat mentions upgradepkg's behavior in the opening mail to root.

Quote:
Originally Posted by Skaendo View Post
You are trying to twist words, I never said anything about "packages with a larger build number is better", I only ever said that they are newer.

So from what I gather is that if you were going to build a package from SlackBuilds and one of the dependencies was orc (just an example) and SlackBuilds is still hosting orc-0.4.23, but you have orc-0.4.24 installed already, you would remove orc-0.4.24 and downgrade to orc-0.4.23?
I very much doubt it.
This all depends on the situation, and it is exactly why Slackware/Patrick has put you in charge of dependency resolution. It is up to you to determine if downgrading is required. Some programs may not work with newer versions of libraries (there were many programs that didn't work with the kernel when it switched to a 3.x and 4.x naming scheme).

Take for example harfbuzz and libreoffice. With Slackware updating to harfbuzz-1.1.3, the precompiled libreoffice will no longer function, because it relies on harfbuzz-1.1.2. Luckily, in this case, libreoffice can be recompiled to use the system harfbuzz and remove the issue, but as Patrick says, a larger version number does not mean that the package is better, just like a more recently compiled package that has a lower version number does not mean it is better than an older package that has a higher number.

These situations are left to you, the administrator, to manage for your system. You need to decide what is best for your system. Many of the 3rd-party packages I have built ended up needing to be reverted due to bugs I wasn't aware of. Luckily, the package maintainers of these sites tend to do all that work in the background, so you have (hopefully) mostly bug free packages that you can install.

But this thread is not there to discuss pkgtool and it's companion scripts, but to discuss slpkg. I was only providing insight on why Dimitris might have coded his program the way he did... trying to base it on Slackware's vision that the version number doesn't always have to increase. There are many examples where one packager might have different versions of packages than another packager. This is why, if you decide to install 3rd-party pre-compiled binaries, to always get them from the same packager, to ensure you won't run into issues with library mismatches. This is exactly why I'll only grab a few things from Eric and then compile everything else myself. I want to make sure that the dependencies those programs expect are the ones that are on my computer. It puts me in charge of my programs and ensures that things work as they should.

If you want to install multiple programs/libraries from multiple repos, you can very easily run into dependency issues, which might require upgrading or downgrading a library to match what the program expects (or recompile the program to ensure it uses the library that is installed on your computer).
 
Old 02-18-2016, 01:51 PM   #191
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaendo View Post
So from what I gather is that if you were going to build a package from SlackBuilds and one of the dependencies was orc (just an example) and SlackBuilds is still hosting orc-0.4.23, but you have orc-0.4.24 installed already, you would remove orc-0.4.24 and downgrade to orc-0.4.23?
What I would do depends on of which other packages orc is a dependency.

Some binaries need a specific version of a library, other V<=Vn or V>=Vn or Vi<=V<=Vj. So:
  • If the package I am installing can work with orc-0.4.24 that is already installed, I would do nothing about orc; just keeping the version I have installed.
  • If the package I am installing can't work with orc-0.4.24 (maybe because of a change in the ABI), I would check if the other packages that need orc can work with orc-0.4.23: then I will downgrade orc.
  • Else I will have to make a choice: either install the new package and renounce to use another one, or reverse.

Last edited by Didier Spaier; 02-18-2016 at 03:49 PM.
 
Old 02-18-2016, 02:08 PM   #192
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
What I would do depends on of which other packages orc is a dependency.

Some binaries need a specific version of a libraries, other V<=Vn or V>=Vn or Vi<=V<=Vj. So:
  • If the package I am installing can work with orc-0.4.24 that is already installed, I would do nothing about orc; just keeping the version I have installed.
  • If the package I am installing can't work with orc-0.4.24 (maybe because of a change in the ABI), I would check if the other packages that need orc can work with orc-0.4.23: then I will downgrade orc.
  • Else I will have to make a choice: either install the new package and renounce to use another one, or reverse.
So any "package manager" is basically useless because you still have to do dependency resolution. The only benefit is that they can gather the list of dependencies and present them to you.

Last edited by Skaendo; 02-18-2016 at 02:10 PM.
 
Old 02-18-2016, 02:14 PM   #193
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by Skaendo View Post
So any "package manager" is basically useless because you still have to do dependency resolution. The only benefit is that they can gather the list of dependencies and present them to you.
Package manager doesn't imply dependency resolution...

Package manager imply "install/upgrade/remove" packages that's it, and stock Slackware's one does just that.

You can have dependency resolution attempt with an external tool, but as pointed earlier (IIRC, haven't refresh my memory re-reading the thread), usually the 3rd party tools AND repo, are for complete versions, if you want to play with SBO and other repos while using -current, you WILL have package version collisions.

G.
 
Old 02-18-2016, 02:17 PM   #194
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by NoStressHQ View Post
Package manager doesn't imply dependency resolution...

Package manager imply "install/upgrade/remove" packages that's it, and stock Slackware's one does just that.

You can have dependency resolution attempt with an external tool, but as pointed earlier (IIRC, haven't refresh my memory re-reading the thread), usually the 3rd party tools AND repo, are for complete versions, if you want to play with SBO and other repos while using -current, you WILL have package version collisions.

G.
Quote:
About

Slpkg is a powerful software package manager that installs, updates, and removes packages on Slackware based systems. It automatically computes dependencies and figures out what things should occur to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update.
Quote:
Features

Dependency resolution
https://github.com/dslackw/slpkg

Anyways, everyone is getting away from what I was asking for and why, simply not to downgrade packages that I have already compiled and installed on my system.

Last edited by Skaendo; 02-18-2016 at 02:23 PM.
 
Old 02-18-2016, 02:28 PM   #195
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Well we are speaking about a case where a to be installed package needs a library of which a version is already installed, but that do not comply to its spec _and_ is also a dependency of already installed stuff. This is not uncommon, but this is not always the case either.

I would at least expect that the tool detects such possible conflicts and do not make a change "blindly", but ideally inform the user of a possible conflict and let her decide what to do. I do realize that this is easier to write than to implement though

In any case, I wouldn't say that a tool that just computes dependencies is useless. For instance I often use "sbopkg -p <package name>". It's no better than what the package maintainers have written in the .info files, but it saves a lot of time. That's god enough for me: I can deal with the few remaining issues.

Last edited by Didier Spaier; 02-18-2016 at 02:33 PM. Reason: missing words added.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Advanced Packaging Tool on a linux from scratch machine ledzepp4eva Linux - Newbie 7 12-16-2011 09:13 AM
Upgrading Slackware (packaging questions) jrdioko Slackware 5 08-17-2005 07:23 PM
Slackware packaging wombat53 Slackware - Installation 16 07-08-2005 11:44 AM
Packaging manager for Slackware 9.1 ??? Fernando534 Linux - Newbie 4 05-07-2004 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration