LinuxQuestions.org
Help answer threads with 0 replies.
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 05-26-2013, 12:18 AM   #1
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Rep: Reputation: 15
How to bypass dependencies in SlackBuild


Hi,

I would like to know whether is it possible to bypass dependencies by
editing the file with the extension "SlackBuild" -> filename.SlackBuild.

If possible , which part of it should i edit?

Thanks in advance.

Justin
 
Old 05-26-2013, 01:03 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
The SlackBuild files are just scripts. Most of the time, it's the configure script (that comes with the program you want to build, but not the SlackBuild) that checks for certain dependencies on the system.
 
Old 05-26-2013, 02:02 AM   #3
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
what do you mean by "bypass dependencies"?
 
Old 05-26-2013, 02:06 AM   #4
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Do you mean building packages without the required dependencies? I guess this is not possible by definition, and if you find out a way you'll end up with a broken package.

Last edited by Philip Lacroix; 05-26-2013 at 02:10 AM.
 
Old 05-26-2013, 02:11 AM   #5
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
As far as I understand it, the slackbuild dependencies are advisory. I think you can go ahead and build. Of course, the build will fail if the required libraries are not there, but you may be lucky. (I doubt it tho').
 
Old 05-26-2013, 02:27 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Dependencies are not something secondary that you can avoid.

Very often the prerequisites (dependencies) are the main parts / tools.


And : It is difficult to build something with no parts or tools.


-

Last edited by knudfl; 05-26-2013 at 02:29 AM.
 
Old 05-26-2013, 06:27 AM   #7
s3phir0th115
LQ Newbie
 
Registered: Jan 2007
Distribution: Slackware
Posts: 22

Rep: Reputation: 3
You usually don't; the reason they are called dependencies is because the program depends upon them to build/work.

There are times where there are optional dependencies, in which case leaving them out just means missing out on an optional feature, but cases like that are typically clearly laid out on the documentation supplied with the slackbuild.
 
Old 05-30-2013, 08:46 AM   #8
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
Actually i tried to install the jack-audio-connection-kit package using the
installpkg and got some dependencies requirement message.

And when tried to install this package "libgnomecanvasmm" (not sure i spelt correctly) and got the error "No package: gtkmm-2.4" and "No package libgnomecanvas". And it also mentioned of the "pkg-config" which
suppose to be inside the file "SlackBuild" comes with the package to be installed. (i didn't write down the exact error message at that point of time.)

It seems to me that "pkg-config" could control whether or not to install
the dependencies.



Thanks all for the feedback once again.

I will to figure it out.
 
Old 05-30-2013, 09:46 AM   #9
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Rep: Reputation: 43
If you want to avoid issues, do a full installation. If you do, you'll never see "missing requirements" messages while running programs included in the installation dvd.

If you install from SlackBuilds, you need to understand the following: A SlackBuild is a script that controls how to build a single package. It does not resolve dependencies or have any dependency check inside.
The build process checks for required libraries, but it does so via the build scripts included in the source package. This is: each source package knows how to build itself, and includes code to check for required and optional dependencies. All that a SlackBuild does is to run the appropriate commands to launch the build process as defined by the package creator, and then create an installable package from what was compiled.

Slackware package management does not resolve dependencies, nor it enforces them. You must to build or install required dependencies, and you build or install optional dependencies if you want to get additional functionality.
Note that, in most cases, the description of the packages at slackbuilds.org assume that you have performed a full installation, so not all dependencies are listed, only those not included with the Slackware distribution.

To avoid issues and manual work, use sbopkg with the queue files from http://gitorious.org/sbopkg-slackware-queues
That is the best way to make sure all dependencies are compiled when you try to build something from slackbuilds.org


Regards

Last edited by AlvaroG; 05-30-2013 at 09:48 AM.
 
Old 05-30-2013, 09:58 AM   #10
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
These are the packages required before installing libgnomecanvasmm (assuming you have an ordinary Slackware installation):

libgnomecanvasmm requires libgnomecanvas and gtkmm.
gtkmm requires atkmm and mm-common.
atkmm requires pangomm.
pangomm requires cairomm.
cairomm requires glibmm.
glibmm requires libsigc++.

To make it short, you can install all dependencies required by libgnomecanvasmm in the following order:

1. libsigc++
2. glibmm
3. cairomm
4. pangomm
5. atkmm
6. gtkmm
7. mm-common
8. libgnomecanvas

EDIT: these packages are available as SlackBuilds.

Best regards,
Philip

Last edited by Philip Lacroix; 05-30-2013 at 11:26 AM.
 
Old 05-30-2013, 10:41 AM   #11
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
This reminded me to do something I've been meaning to do for awhile: upload a copy of the 'sqg' sbopkg queuefile generator script along with a full set of updated queuefiles. You can grab this at: https://github.com/chessgriffin/sqg
 
Old 05-30-2013, 11:48 AM   #12
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
I just built the jack-audio-connection-kit package from slackbuilds.org on a Slackware64 14.0 system that was recently built via a full install. I don't have libgnomecanvasmm or gtkmm, etc., installed on my system, and the jack-audio-connection-kit build didn't require them. Perhap's in the OP's case, there are some conditional dependencies being pulled in based on what is already installed on his system.
 
Old 05-30-2013, 12:16 PM   #13
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Quote:
Originally Posted by Z038 View Post
I don't have libgnomecanvasmm or gtkmm, etc., installed on my system, and the jack-audio-connection-kit build didn't require them. Perhap's in the OP's case, there are some conditional dependencies being pulled in based on what is already installed on his system.
The OP is probably installing something else (like Ardour) that requires both jack and libgnomecanvasmm.

Philip
 
  


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
Gambas: Package or SlackBuild and dependencies? gargamel Slackware 8 10-03-2010 12:23 PM
Bypass proxy inaki Linux - Server 8 05-21-2008 12:02 PM
How do I bypass GRUB? minrich SUSE / openSUSE 4 06-06-2005 07:28 PM
Bypass proxy hotplainrice Linux - Networking 1 02-26-2005 06:13 AM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM

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

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