LinuxQuestions.org
Review your favorite Linux distribution.
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 11-13-2012, 11:57 AM   #1
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 71
Need a little help with a slackbuild I want to make


Hi gang,

I'm trying to make a slackbuild for an app that has a requirement. The requirement is fltk 1.3.

I have fltk 1.3 installed, but because it's named 'fltk13-config', the ./configure of the app source craps out because it's looking for 'fltk-config'.

In the slackbuild of the app I simply don't know how or where to change it so it will use the 'fltk13-config' instead of the 'fltk-config'.

Should it be somewhere in this section of the slackbuild?:

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--enable-ssl \
--prefix=/usr \
--libdir=/usr/lib/${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux


I'm not a programmer or anything like that but I can usually figure out enough to make a slackbuild work if I look at different other slackbuilds, but this one has me stumped. I'd like to build this slackbuild so that I can ask the maintainer of the app that requires this if I can take over maintenance, since the app that's on slackbuilds.org is pretty old.
 
Old 11-13-2012, 04:14 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I'm not a programmer as well, but I would say that this is not possible with the Slackbuild.script. You would have to change the sources of the program (for which you are writing the SlackBuild.script).

But I would recommend to simply create a symlink (execute this code as root within the directory where the fltk13-config resides
Code:
ln -s fltk13-config fltk-config
afterwards building the package should work.

Well, you can of course put making the symlink into the SlackBuild.script, but be sure to use the correct path (using whereis).

Markus
 
Old 11-13-2012, 04:34 PM   #3
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 71
Quote:
Originally Posted by markush View Post
I'm not a programmer as well, but I would say that this is not possible with the Slackbuild.script. You would have to change the sources of the program (for which you are writing the SlackBuild.script).

But I would recommend to simply create a symlink (execute this code as root within the directory where the fltk13-config resides
Code:
ln -s fltk13-config fltk-config
afterwards building the package should work.

Well, you can of course put making the symlink into the SlackBuild.script, but be sure to use the correct path (using whereis).

Markus
Hi,

Thanks, I appreciate the help and ideas, and not saying that is wrong or right, but I guess I need to clarify a little more...there is no fltk-config, but that is what the app's ./configure is looking for, yet the app itself *requires* fltk 1.3 (the config is looking for version(s) *lower* that 1.3), that's why I'm trying to figure out how to have the slackbuild use the fltk13-config that is installed from the fltk 1.3. If there's no fltk-config at all, then there's nothing to symlink to, is that correct or am I still missing something?

Surely there's a way to tell the app's ./configure to use the fltk13-config instead of looking for fltk-config. I just don't know how to write that into the slackbuild.
 
Old 11-13-2012, 04:59 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
You could look at the sources, most often theres a README or INSTALL file where configure is explained. Sometimes you can execute
Code:
./configure --help
and see the options.

I would also recommend to take a look at other Slackbuild.scripts, maybe you'll find a solution there.

Can you configure and compile the program without a Slackbuild.script? and how do you do this, could you please describe in detail? maybe this give us some hints what you mean. Which program is it you're writing the Slackbuild.script for?

Markus
 
Old 11-13-2012, 05:14 PM   #5
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 304

Rep: Reputation: 76
Quote:
Originally Posted by irgunII View Post
I'm trying to make a slackbuild for an app that has a requirement. The requirement is fltk 1.3.

I'd like to build this slackbuild so that I can ask the maintainer of the app that requires this if I can take over maintenance, since the app that's on slackbuilds.org is pretty old.
Perhaps the Slackbuilds.org mailing list or their IRC Chat would be better place for your question since slackbuilds are what that group is all about.
 
1 members found this post helpful.
Old 11-13-2012, 05:22 PM   #6
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 494

Rep: Reputation: 131Reputation: 131
which is the program you want to compile?
 
Old 11-14-2012, 05:03 AM   #7
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Creating a symbolic link, as suggested by markush in post #2, is (probably) by far the easiest solution.
 
Old 11-14-2012, 06:59 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
The OP has already posted his question to the mailinglist of slackbuilds.org. The question there differs a bit from the posting here:
Quote:
Originally Posted by OP@slackbuilds.org
...
I'm trying to make a slackbuild for an app that has a requirement. The
requirement is fltk 1.3.

I have fltk 1.3 installed, but because it's named 'fltk13-config',
the ./configure of the app source craps out because it's looking for
'fltk-config'.

In the slackbuild of the app, I simply don't know how or where to change it so
it will look for and use the 'fltk13-config' instead of 'fltk-config'.

Should it be somewhere in this section of the slackbuild?:
...
he got an answer
Quote:
Originally Posted by ErikHanson@slackbuilds.org
I think you might be able to solve this with:

sed -i 's/fltk-config/fltk13-config/g' configure.in
autoreconf
which seems to be helpful.

Markus
 
Old 11-14-2012, 08:37 PM   #9
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 71
Yes, the sed thing did the trick.

I don't understand how a symlink would have worked if there is no plain fltk to link to. There is *only* the fltk13.

Anyway, I'd done a 'man sed' before I asked my question(s) here and the mailing list, but I get too confused too easily, especially when one just doesn't understand all the programming stuff, though the sed answer I got looks kind of simple. I'm going to look into the man page again and see if just a little here and a little there will help me understand it easier and better.

Oh, and the program was Dillo, btw.

Thanks again all for the suggestions and help!

irgunII
 
Old 11-15-2012, 02:42 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Quote:
Originally Posted by irgunII View Post
I don't understand how a symlink would have worked if there is no plain fltk to link to. There is *only* the fltk13.
You would have created a link named 'fltk' pointing to 'fltk13'.

Good you got it solved the proper way with sed!
 
  


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
[SOLVED] fbdesk make errors during SlackBuild on Slackware 13.1 psionl0 Slackware 4 02-06-2011 12:16 PM
SlackBuild to make both STATIC and SHARED wireless-tools package. GrapefruiTgirl Slackware 1 01-31-2010 06:06 PM
How can I make PyQt4 slackbuild compile in Slackware64 <current>...? Alexvader Slackware 9 12-30-2009 08:45 AM
slackbuild vrs configure-make-make install garyg007 Slackware 12 12-21-2008 11:27 PM
DirectFB slackbuild make failed arubin Slackware 2 09-09-2007 04:13 AM


All times are GMT -5. The time now is 11:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration