Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 19-09-2014, 09: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, 10:56   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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, 18:54   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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, 16:47   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
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


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 04:17
make package from a fresh compile: about files right?? manuprenlair OpenCPN 8 11-06-2012 22:44
Dreams - make them good and make them big. anjou Construction, Maintenance & Refit 53 15-04-2012 11:46
Making Aluminum Oar Round Again? SvenG Construction, Maintenance & Refit 9 08-02-2010 12:45
Making a ground for the SSB. Will this work? sloopdavidb Marine Electronics 14 03-03-2008 22:18

Advertise Here


All times are GMT -7. The time now is 19:21.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.