LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2012, 07:37 AM   #46
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301

Quote:
Originally Posted by rayandrews View Post
One more thing: Yes, if I don't like it I don't have to use it, but that sort of remark suggests that Slack (or anything else who's users make that sort of remark) is no longer interested in being the best it can be and no longer interested in improving itself. And I'm sure that that is not correct.

I'll try Slack when I get the time, and then make up my own mind ;-)
You have not used it yet, so you cannot judge it yet. Try it and you will understand it. Do not be like most people and judge it based upon what you hear about it. Bad things are thrown around about Slackware all the time, and it is not tolerated here in the Slackware forum. You will surely get flamed for anything like that. You must try it first and use it for a while, and then you can complain.
 
Old 07-25-2012, 10:15 AM   #47
rayandrews
Member
 
Registered: Sep 2010
Posts: 78

Original Poster
Rep: Reputation: 2
This has me confused:

Quote:
Originally Posted by chess View Post
No, sbopkg does not do any dependency checking for you. The -i switch installs the package you are building. But sbopkg has the "queuefile" feature where you can save the correct order of dependencies and sbopkg will build and install everything in the right order from your list. But determining the dependency order is still left to the user.


'sbopkg does not do any dependency checking'
'sbopkg has the queuefile'
'sbopkg will build and install everything in the right order'
'determining the dependency order is still left to the user'

Now I don't doubt that chess knows what he's saying, and that it makes sense when you understand things, but from my limited knowledge, the above seems to contradict itself several times. If S does *not* do any checking, then what *does* it do when it builds and installs 'everything' in the right order? And if it does do everything in the right order, what does it mean to say that the order is still left to the user?

And, if sbopkg can infact take care of dependencies, how is it that we are talking about Slack *not* having DR? Does it, or doesn't it?

And another thing :-(

How/why is it that building a package from SRC somehow solves problems? I'd have thought that if I get a binary from somewhere and install it, that the end result would be identical to me compiling the same binary from SRC and installing it. How is it that compiling it 'here' is better/different than compiling it 'there'? In my DOS days I was a pretty good C coder, but it seems that in Linux things are just totally different, my old knowledge is actually working against me. It usta be that it didn't matter who compiled the code, the binary was identical. I want to understand this whole scene. Can someone point me to some document that will give me a foundation level understanding of all this stuff? Is there some excellent book that someone can recommend? Trying to build my understanding of Linux by going from being a Mint user and digging 'down' ain't working, gotta start from the bottom.

Last edited by rayandrews; 07-25-2012 at 10:16 AM.
 
Old 07-25-2012, 10:33 AM   #48
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Again, you can compile things with some optional features or dependencies enabled or disabled. You can also compile things for your native architecture, which provides some performance improvements. You can also compile them with safe CFLAGS which may increase stability. For example using '-O3' can cause programs to crash, while '-O2' (the default for most sane distros) is safe.

Here is one concrete example, compiling mesa with '--enable-texture-float' enables floating point textures, a feature of newer OpenGL standards that they are afraid to turn on by default because of possible software patent issues.

I haven't compiled gnash in a while, but you could compile it either with ffmpeg or gstreamer. I usually used ffmpeg because it was more stable.
 
Old 07-25-2012, 10:48 AM   #49
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
You misunderstand. sbopkg will just build everything in the queuefile, in order. This is the "right" order if and only if the user is "right" (but then, the customer is always right, right?)

The stuff in the queuefile doesn't all have to be interdependent. They can even be totally unrelated but sbopkg will build them in order anyway. This is a good thing.

Also, you just aren't up to date on how packages are built. They all use sophisticated tools like autotools, cmake and scons that detect what potential dependencies are present on the system where they are being built, and then chunks of functionality are enabled or disabled based on what has been found. *This* is where hard package dependencies come from, based on what else is present on the packager's system, *not* from the original source (because if the *source* had an unfulfilled requirement, you wouldn't even *have* a binary). If you move those binaries to another system, some of them may not work, depending on what is or isn't installed on the other system. And if you've installed something else that's an optional requirement but the packager didn't have it? Then you're out of luck. But if *you* build from source on the system where *you* will use the binaries, you are making binaries tailored to what else is on *your* system.
 
Old 07-25-2012, 10:51 AM   #50
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by rayandrews View Post
If S does *not* do any checking, then what *does* it do when it builds and installs 'everything' in the right order? And if it does do everything in the right order, what does it mean to say that the order is still left to the user?

And, if sbopkg can infact take care of dependencies, how is it that we are talking about Slack *not* having DR? Does it, or doesn't it?
Read this about sbopkg's queuefiles:
http://www.sbopkg.org/queues.php
 
Old 07-25-2012, 11:05 AM   #51
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Yeah, the clarification is that the queuefile has to user-written. (SBopkg has an interface that allows you to add packages to a queue one by one and then save that queue). It doesn't have to be written by you, however, because there are archives of prewritten queues.

Last edited by dugan; 07-25-2012 at 11:12 AM.
 
Old 07-25-2012, 11:05 AM   #52
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by rayandrews View Post
This has me confused:





'sbopkg does not do any dependency checking'
'sbopkg has the queuefile'
'sbopkg will build and install everything in the right order'
'determining the dependency order is still left to the user'

Now I don't doubt that chess knows what he's saying, and that it makes sense when you understand things, but from my limited knowledge, the above seems to contradict itself several times. If S does *not* do any checking, then what *does* it do when it builds and installs 'everything' in the right order? And if it does do everything in the right order, what does it mean to say that the order is still left to the user?

And, if sbopkg can infact take care of dependencies, how is it that we are talking about Slack *not* having DR? Does it, or doesn't it?
Slackware does not have DR and sbopkg is not able to resolve dependencies either. To make things easier sbopkg has the ability to use queue-files. A queue-file is nothing more than a text file that contains the names of packages (or other queue-files). sbopkg builds one by one. So after you have resolved the dependencies for software you want to install you can put them into the queue-file for later use.
 
Old 07-25-2012, 11:24 AM   #53
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I wrote a post not long ago (based on knowledge garnered from other Slackers), about the use of sbopkg with queuefiles:
http://www.linuxquestions.org/questi...ml#post4724019
 
Old 07-25-2012, 02:30 PM   #54
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by rayandrews View Post
This has me confused:





'sbopkg does not do any dependency checking'
'sbopkg has the queuefile'
'sbopkg will build and install everything in the right order'
'determining the dependency order is still left to the user'

Now I don't doubt that chess knows what he's saying, and that it makes sense when you understand things, but from my limited knowledge, the above seems to contradict itself several times. If S does *not* do any checking, then what *does* it do when it builds and installs 'everything' in the right order? And if it does do everything in the right order, what does it mean to say that the order is still left to the user?
Yes, I suppose I was not very clear in my earlier post, sorry about that. But the replies above explain it well. Once you get a handle on how to use slackbuild scripts from the slackbuilds.org repository, then sbopkg will probably make more sense. Reading the documentation on slackbuilds.org is critical, as is reading the sbopkg man page and other documentation. Sbopkg just tries to make using the slackbuilds.org repository a little easier by essentially offering a front-end to the repo which you may or may not find helpful.
 
Old 07-25-2012, 08:48 PM   #55
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I guess my question was whether the -i switch with sbopkg would automatically download a queue file from one of the available repositories, similar to how slackpkg will use a mirror which I specify to download packages from the Slackware tree. It's weird, until now I never looked in /etc/sbopkg...I don't know why. I like to keep a sperate /packages repo on my file server, I could have just been editing OUTPUT all this time.

Anyway I have some homework to do apparently especially after reading this thread. Yeehaw! A new Slackware adventure!
 
Old 07-25-2012, 09:04 PM   #56
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by damgar View Post
I guess my question was whether the -i switch with sbopkg would automatically download a queue file from one of the available repositories,
By now, it's certainly been answered. You make or download the queues yourself and put them in /var/lib/sbopkg/queues. That's where they're found.

We need to make a sticky post (possibly just a link to a LQWiki or SlackWiki article) about how package management in Slackware is done these days. I'll try to take care of it by the end of the week.

Last edited by dugan; 07-25-2012 at 09:31 PM.
 
Old 07-25-2012, 09:33 PM   #57
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by dugan View Post
I take it you know the answer now? You make or download the queues yourself and put them in /var/lib/sbopkg/queues. That's where they're found.
LOL, yes, I understood queue files, I just thought what was being said was that sbopkg would find queue files which I didn't have locally. I now understand that they either have to be created by the user or downloaded from some repo. Thank you.
 
Old 07-25-2012, 10:15 PM   #58
rayandrews
Member
 
Registered: Sep 2010
Posts: 78

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by 55020 View Post
You misunderstand. sbopkg will just build everything in the queuefile, in order. This is the "right" order if and only if the user is "right" (but then, the customer is always right, right?)

The stuff in the queuefile doesn't all have to be interdependent. They can even be totally unrelated but sbopkg will build them in order anyway. This is a good thing.

Also, you just aren't up to date on how packages are built. They all use sophisticated tools like autotools, cmake and scons that detect what potential dependencies are present on the system where they are being built, and then chunks of functionality are enabled or disabled based on what has been found. *This* is where hard package dependencies come from, based on what else is present on the packager's system, *not* from the original source (because if the *source* had an unfulfilled requirement, you wouldn't even *have* a binary). If you move those binaries to another system, some of them may not work, depending on what is or isn't installed on the other system. And if you've installed something else that's an optional requirement but the packager didn't have it? Then you're out of luck. But if *you* build from source on the system where *you* will use the binaries, you are making binaries tailored to what else is on *your* system.

I begin to understand. Compiling is 'personal' to one's machine, and one's environment. And I take it that it's possible to take some dependency and static link it rather than dynamic link it just in case one does not need/want some library floating around seperately?
 
Old 07-25-2012, 10:31 PM   #59
rayandrews
Member
 
Registered: Sep 2010
Posts: 78

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
Slackware does not have DR and sbopkg is not able to resolve dependencies either. To make things easier sbopkg has the ability to use queue-files. A queue-file is nothing more than a text file that contains the names of packages (or other queue-files). sbopkg builds one by one. So after you have resolved the dependencies for software you want to install you can put them into the queue-file for later use.

B-b-but ... surely that *is* DR, is it not? The dependencies for something are figured out, put into this queue file, and that makes sure that they are all built and installed. That's what I'd call DR. Or maybe I should say that that's what I have presumed DR is all about--a list of things that need to be installed along with the primary program. What else could there be?

Sorry guys, you've been very helpful all, I need to do some reading before I ask more questions, I think I'm wasting you guy's time right now.
 
Old 07-25-2012, 10:42 PM   #60
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by rayandrews View Post
B-b-but ... surely that *is* DR, is it not? The dependencies for something are figured out, put into this queue file, and that makes sure that they are all built and installed. That's what I'd call DR. Or maybe I should say that that's what I have presumed DR is all about--a list of things that need to be installed along with the primary program. What else could there be?

Sorry guys, you've been very helpful all, I need to do some reading before I ask more questions, I think I'm wasting you guy's time right now.
The difference is that sbopkg actually builds the packages in the order of the queue and installs them immediately after they are built.

You can look at it as somewhat like Gentoo's emerge if you squint really, really hard.

Slackware's package manager couldn't care less about that. If someone else built the packages for you, you could installpkg any or all of the packages in the sbopkg queue list and installpkg would not stop you from installing only the last package in the queue.

(edit: Meh. I should read more than the last message. Others have answered this quite well, I think.)

Last edited by Richard Cranium; 07-25-2012 at 10:44 PM. Reason: I'm a lazy idiot.
 
  


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
LXer: IBM Sun acquisition : Good for Unix. Good for Linux. Bad for HP LXer Syndicated Linux News 0 03-18-2009 11:00 AM
How can you tell that someone is bad? or Good ? someone is bad? or Good ? abrenar General 10 02-24-2009 02:42 PM
LXer: You only know good when you've seen bad... LXer Syndicated Linux News 0 03-12-2008 07:00 PM
Intel Fortran Compiler - glibc dependencies bad damien Linux - Software 1 12-02-2003 11:19 PM

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

All times are GMT -5. The time now is 08:43 AM.

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