LinuxQuestions.org
Help answer threads with 0 replies.
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-18-2008, 03:11 PM   #16
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612

Maybe that is specific to newer versions of cmake -I see that the general pattern is shown there for all variables with :something -the something seems to be a variable type specification, BOOL, PATH, STRING. You'll just have to try it both ways till it works.
 
Old 07-19-2008, 10:26 AM   #17
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Hi Gilbert,

I think you're right. The cmake documentation shows a change in the variable syntax in the newer versions.

If I understand how src2pkg works, however, I should be able to modify the cmake portion of the 06-configure_source file to accommodate the new syntax, right?

Again, thank you very much for your help.

Regards,

-Drew
 
Old 07-20-2008, 01:07 AM   #18
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Yeah, just look at lines approx 388-400 in 06-configure_source and change the two
occurrences of:
cmake .. -DCMAKE_INSTALL_PREFIX=/${PKG_DIR}/${PRE_FIX}
to:
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/${PKG_DIR}/${PRE_FIX}
and the two:
cmake . -DCMAKE_INSTALL_PREFIX=/${PKG_DIR}/${PRE_FIX}
to:
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/${PKG_DIR}/${PRE_FIX}

I'll have to implement a more elegant fix for the next release and check the version of cmake and use the appropriate syntax according to the version found.
Thanks, reporting the results of your research= better src2pkg.
 
Old 07-20-2008, 03:04 PM   #19
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Gilbert,

I'm glad to help. I'm saving this thread with an eye toward getting a lot of this information in the wiki this week.

Regards,

-Drew
 
Old 07-24-2008, 12:38 PM   #20
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Drew, have you been able to tell at what smake ersion those syntax changes started? I need to write a version-detection routine into src2pkg for that, but I haven't seen any direct references to the changes. Thanks for helping out on this one.
 
Old 07-24-2008, 08:44 PM   #21
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by gnashley View Post
Drew, have you been able to tell at what smake ersion those syntax changes started? I need to write a version-detection routine into src2pkg for that, but I haven't seen any direct references to the changes. Thanks for helping out on this one.
Gilbert,

I'm striking out. I've spend the past hour and a half digging through the cmake documentation to find when/if there was a change.

Here's a link to a page with documentation for the released versions of cmake. From what I can tell, this syntax:

Code:
-D<var>:<type>=<value>
...has been around since version 1.8.3. Slackware 12.1 uses cmake 2.4.8.

I hope this helps a little bit.

Regards,

-Drew
 
Old 08-05-2008, 09:58 AM   #22
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Gilbert (and others who are interested),

I finally got the Cmake information into the src2pkg wiki. Check it out here, and let me know what you think.

Regards,

-Drew
 
Old 08-05-2008, 12:05 PM   #23
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Thanks, Drew. Your tip should be outdated and removed from the wiki though with the next release of src2pkg. I had waited to see if any more specific info came out about when the new style of variable was adopted, but when you pointed out that it has been around for quite awile already, I figured that cmake is able to handle the variables using either syntax -since all the stuff I had tested with src2pkg which uses cmake was able to use the old-style syntax. Since that seems to be the case, src2pkg won't even need to detect the cmake version -I'll simply make it use the newer syntax whe it adds the CMAKE_INSTALL_PREFIX by default. This will keep it consistent with the usage for other types of configuration, and when a user needs to add other EXTRA_CONFIGS, they can safely use whatever syntax is suggested by the sources they are building.
 
Old 08-05-2008, 12:09 PM   #24
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Gilbert,

I'll make a note that the 06_configure_source stuff can be taken out when you release the next version of src2pkg.

Meanwhile, this should help some people, anyway.

Regards,

-Drew
 
Old 08-05-2008, 02:21 PM   #25
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Thank you, Drew, for following up on this.
 
  


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
dpkg-buildpackage: passing ./configure options? neocookie Debian 3 08-27-2008 09:20 PM
Passing IP options data to kernel from userspace kaushik1 Programming 2 12-26-2007 11:38 PM
passing options to build-in-modules nielchiano Linux - General 4 02-17-2004 11:40 PM
Shell script problems, passing options to gcc usernamed Programming 2 09-10-2003 06:47 AM
Passing options using k3b vexer Linux - General 1 06-06-2003 03:19 PM

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

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