LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-09-2016, 11:47 AM   #16
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 Didier Spaier View Post
Well, not sure about that. If by "same repo" you mean "checked by the same person who commits all changes", you are probably right as this person hopefully bears in mind the conflicts (that can be harmless or not).

Well known examples in Slackware are the packages that install libraries already shipped in aaa_elflibs (but Patrick takes care of making sure this doesn't hurt), and until the packaging changed, glibc that shippped files already shipped in other glibx-* packages for instance. The same is probably true for Salix and the checks made by George.

By the way these examples are not so similar: the files shipped in the new vs already installed packages are (or at least were) not the same in the case of aaa_elflibs but were the same in case of glibc-*. Whether they are identical or not can checked by the tools comparing the checksums, for instance.

But what if the repo ships thousands of packages built from SlackBuilds provided many people who are not aware of the other packages? Maybe slackrepo can do or help to do these checks then, I don't know. David, could you shed some light here?
I think he just meant it would inform users of packages that are listed as dependencies that are already installed. So, for example, if you already have python3 installed and try to install python3-PyQt5, which eventually has python3 as a dependency (through python3-sip, which is a dependency of python3-PyQt5), it wouldn't prompt you to recompile/reinstall python3.
 
Old 06-09-2016, 12:10 PM   #17
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
But what if the repo ships thousands of packages built from SlackBuilds provided many people who are not aware of the other packages? Maybe slackrepo can do or help to do these checks then, I don't know. David, could you shed some light here?
It's a lot of work, so nobody does that, but it might be interesting to script something and run it once before SBo-14.2 is released, so we can make sure the README files are accurate. And also, that will help me to finish the support for "CONFLICTS", which (as you saw earlier, Didier) is almost completely missing and I had forgotten about. So thanks for the interesting and useful question

(Hardcoding the wxEverything conflicts would fix 99.8% of the problem )

To go back to your question Hosein, yes, you are right, as you say it is harmless as long as packages are gathered from same repository. The repository owner needs to worry about optional dependencies, and upgrades, and rebuilds, and conflicts, but not you.

But there are lots of people who don't know that, and arrive here on LQ with problems, so it's an interesting and very useful idea from Dimitris to put that warning in slpkg.
 
Old 06-09-2016, 12:23 PM   #18
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by 55020 View Post
Hardcoding the wxEverything conflicts would fix 99.8% of the problem
IMHO we should hardcode everything possible to wxPython-3.x

Last edited by ponce; 06-09-2016 at 12:33 PM.
 
1 members found this post helpful.
Old 06-09-2016, 02:57 PM   #19
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
imho we should hardcode everything possible to wxpython-3.x
YES
Awesome

Last edited by 55020; 06-09-2016 at 02:58 PM. Reason: Apparently LQ has an anti-caps-lock filter. I wanted to say AWESOME :-(
 
Old 06-09-2016, 03:12 PM   #20
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
Well, I'm the voice of newbies here.
At the moment I don't have slpkg on my system. As far as I remember, during dealing with binary repositories slpkg displays already installed dependencies with green color and automatically doesn't re-download and reinstall them again (Dimitris added this feature with my suggestion, thanks). I think this conservative approach help newbies to not destroy their system. But, even without this feature, users shouldn't have any problem if they don't install packages from various repositories as already installed third party dependencies replaced with packages from same repository. Hence, as a newbie, I have 2 recommendation for other newbies:
1- Don't try to install packages from various repositories
2- Be careful about packages which tend to overwrite official packages with their upgraded/downgraded/rebuilt dependencies. Don't install them without consultation with slackers.
 
2 members found this post helpful.
Old 06-09-2016, 05:28 PM   #21
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Challenge Accepted, Didier

Here's a list of the 315 tuples of conflicting packages in Slackware-current (32 bit, not including extra/) and all the packages (32 bit) built by SBo, with a count of the number of files that collide:

http://pastebin.com/cgcYbwxk

And here's the complete list of all the file collisions in Slackware and SBo -- it's nearly 2 Mb and forty thousand lines long, so don't download it unless you are basically crazy:

https://idlemoor.tk/files/collisions

It was generated by this unholy collection of commands:

https://gist.github.com/idlemoor/45f...e0b3d97d42d30a
 
5 members found this post helpful.
Old 06-09-2016, 05:36 PM   #22
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
dealing with binary repositories slpkg displays already installed dependencies with green color and automatically doesn't re-download and reinstall them again
I had issues with slpkg. But I had compiled packages from source, prepackaged ones from Eric's repo and from SBo. slpkg was trying to "upgrade" packages to previous releases that I had compiled myself. (Supposedly he added a option to not "upgrade" packages with a newer release already installed, but I could never get it to work.) This probably wouldn't be an issue for newbs using 14.1 and pulling from the SBo 14.1 repo, but slpkg can be configured to pull from many repos which could potentially lead to problems.

Honestly, I think that the safest and best thing to do is to not use any automated "package managers", slackpkg aside. Not only does this ensure that you are not "reinstalling" some packages, but you also learn from the experience.
 
Old 06-09-2016, 05:59 PM   #23
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by 55020 View Post
Challenge Accepted, Didier
I knew that you couldn't resist.

Great work and quickly done, congrats!

Quote:
Here's a list of the 315 tuples of conflicting packages in Slackware-current (32 bit, not including extra/) and all the packages (32 bit) built by SBo, with a count of the number of files that collide:

http://pastebin.com/cgcYbwxk
Downloaded.

Quote:
And here's the complete list of all the file collisions in Slackware and SBo -- it's nearly 2 Mb and forty thousand lines long, so don't download it unless you are basically crazy:

https://idlemoor.tk/files/collisions
This confirms that I am crazy.

Quote:
It was generated by this unholy collection of commands:

https://gist.github.com/idlemoor/45f...e0b3d97d42d30a
Got it too. I will study it tomorrow.

Huge thanks.

Last edited by Didier Spaier; 06-09-2016 at 06:05 PM.
 
Old 06-10-2016, 02:20 AM   #24
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Skaendo View Post
I had issues with slpkg. But I had compiled packages from source, prepackaged ones from Eric's repo and from SBo. slpkg was trying to "upgrade" packages to previous releases that I had compiled myself. (Supposedly he added a option to not "upgrade" packages with a newer release already installed, but I could never get it to work.) This probably wouldn't be an issue for newbs using 14.1 and pulling from the SBo 14.1 repo, but slpkg can be configured to pull from many repos which could potentially lead to problems.

Honestly, I think that the safest and best thing to do is to not use any automated "package managers", slackpkg aside. Not only does this ensure that you are not "reinstalling" some packages, but you also learn from the experience.
As far as I know, there is an option for slpkg to not "downgrade" packages (I think Dimitris added it by your request) but I did't test it. Overall, you are right, if users use slpkg for different repos it is possible to break their system as slpkg is completely tag-blind.

And regrading automated package managers, you are absolutely correct. For that reason, I don't use any of them to garb and install packages on my system. I'm just using sbotools to update my local copy of SBo. If a package exist in Alien repository I will use it. If not, I use hoorex to track its dependencies through local SBo and then I will download, build and install them manually.
 
Old 06-10-2016, 03:36 AM   #25
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
As far as I know, there is an option for slpkg to not "downgrade" packages (I think Dimitris added it by your request) but I did't test it.
Yea, that is what I meant by slpkg was trying to "upgrade" packages. A little word play there. I tried it but if I remember correctly it still listed the packages that I compiled myself and wanted to remove them and install the version that was recommended by the SBo .info files. So I didn't let it proceed and was blacklisting them as I went, but I figured that it was taking just as much time to do that as it would have been for me to just run the SlackBuild myself.
 
Old 06-10-2016, 04:37 AM   #26
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
The words "upgrade" and "downgrade" are really unhelpful in this context.

What if a repo reverts a bad upgrade?

What if I want to follow repo X's stable release patches over repo Y's development releases?

slackpkg/slackpkgplus gets this absolutely right (IMO) with PKGS_PRIORITY and TAG_PRIORITY and the blacklist.
 
Old 06-11-2016, 04:28 AM   #27
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
@David: I had a look at the collisions list and the tuples built from them. Very interesting.

These lists could be made available to the SlackBuilds maintainers, who could use them to:
  • check which of their packages are among the tuples,
  • grep collisions to see which files are overwritten,
  • assess the collisions: some are harmless (e.g. replacing a file by itself), others not,
  • in case of harmful collisions, insert a warning in the README
  • possibly consult with the maintainers of the conflicting SlackBuilds, about how to avoid collisions if possible, else inform the users consistently.
A line beginning with "CONFLICTS=" in the .info would help as it could be parsed by the package tools (and help feeding the corresponding line in PACKAGES.TXT)

Just my two ¢.

PS in collisions I see that some packages belong to more than one category. Is it normal? Just wondering if it's really the same package then. Examples:

gis/CreateCloudMap usr/bin/create_map
graphics/CreateCloudMap usr/bin/create_map

academic/opengrads etc/profile.d/opengrads.sh
gis/opengrads etc/profile.d/opengrads.sh

Last edited by Didier Spaier; 06-11-2016 at 04:35 AM. Reason: PS added.
 
Old 06-11-2016, 08:38 AM   #28
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
PS in collisions I see that some packages belong to more than one category. Is it normal? Just wondering if it's really the same package then. Examples:

gis/CreateCloudMap usr/bin/create_map
graphics/CreateCloudMap usr/bin/create_map

academic/opengrads etc/profile.d/opengrads.sh
gis/opengrads etc/profile.d/opengrads.sh
Well spotted! It's just another of my cockups -- they're packages that have been moved to gis that I should have zapped. Sorry
 
  


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
may be add slackpkg+/sbopkg to disk? krwlr Slackware 5 09-25-2015 03:37 PM
Questions for Robby, ponce, or anyone from SBo about SBo submission requirements. ReaperX7 Slackware 4 06-07-2015 11:30 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
Slackpkg howto add (not replace) a kernel? offplanet Slackware 6 08-21-2012 04:12 PM

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

All times are GMT -5. The time now is 05:47 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