Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-09-2014, 10:57   #1
Registered User

Join Date: Jun 2013
Location: Moscow, Russia
Boat: Clerk Chair 1.6ft
Posts: 39
Making “make package” work again

Until recently, there was an easy way to build RPM packages for OpenCPN on Linux by just running
Code:
make package
after compiling the source code. Now it is broken, as opencpn.spec.in still references some files like /gshhs/wdb_borders_l.b, /tcdata/HARMONIC.IDX, /sounds/3bells.wav that were deleted from /data folder in the source tree for a while.

I heard that packages should be modular now, and their contents may be selected by some -D switches, but none of those are apparent from the spec file. What if I simply want to build the complete package, as before? Is there an easy way to do this without modifying RPM specs or copying removed files back from an old backup and reverting all this to initial state before the next pull operation?
__________________

__________________
SamsonovAnton is offline   Reply With Quote
Old 19-09-2014, 11:56   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Making “make package” work again

Anton...
Clearly a bug. I'm not building RPMs very often, so forgot to implement the modifications in opencpn.spec.in - There are obviously more issues resulting from the changes in 3.3 beta, like the bells sound files etc.
Of course if someone else can do the patching, better - I know little to nothing about RPM generation and will have to study it quite a bit...

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 19-09-2014, 19:54   #3
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Making “make package” work again

Anton...
It did not even hurt too much... The RPM creation should work again and behave according to the settings you pass to cmake since https://github.com/OpenCPN/OpenCPN/c...7acba80d3ed631
For the documentation of the parameters refer to https://github.com/OpenCPN/OpenCPN/pull/151

Pavel
__________________
nohal is offline   Reply With Quote
Old 20-09-2014, 17:47   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,399
Re: Making “make package” work again

Quote:
On Windows and Mac we still don't have the same possibilities, so the default is set to produce monolithic package, with lower level of GSHHS base chart...minimal package can still be built using (The BLAH or similar value to circumvent cmake's inability to distinguish between unset and set to FALSE variables easily)

cmake -DBUNDLE_DOCS=BLAH -DBUNDLE_TCDATA=BLAH -DBUNDLE_GSHHS=BLAH ..
Would this cmake work as above for a smaller version without DOCS, TCDATA, GSHHS?
__________________
rgleason is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3.0.0 : make package : bad file right after installing the deb file manuprenlair OpenCPN 1 12-06-2012 05:17
make package from a fresh compile: about files right?? manuprenlair OpenCPN 8 11-06-2012 23:44
Dreams - make them good and make them big. anjou Construction, Maintenance & Refit 53 15-04-2012 12:46
Making Aluminum Oar Round Again? SvenG Construction, Maintenance & Refit 9 08-02-2010 13:45
Making a ground for the SSB. Will this work? sloopdavidb Marine Electronics 14 03-03-2008 23:18



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:49.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.