LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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: 126

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: 438

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
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 480

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

Rep: Reputation: 112Reputation: 112
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 14.1 64 Multi-Lib
Posts: 435

Rep: Reputation: 138Reputation: 138
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: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,982

Rep: Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610Reputation: 2610
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: 126

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: 128

Rep: Reputation: 31
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{,-current}, FreeBSD
Posts: 206

Rep: Reputation: 112Reputation: 112
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, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
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
Distribution: Slackware
Posts: 804

Rep: Reputation: 157Reputation: 157
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{,-current}, FreeBSD
Posts: 206

Rep: Reputation: 112Reputation: 112
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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/Novell 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


All times are GMT -5. The time now is 01:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration